/* ==========================================================================
   Подарить Всё — design system
   Soft, pastel, premium-boutique aesthetic. Vanilla CSS, no framework.
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* ---- Palette (from design-doc.md) ------------------------------------ */
  --color-bg: #FFF8F4;
  --color-bg-alt: #FFFDFB;
  --color-lilac: #EEE6FF;
  --color-pink: #FBE7EC;
  --color-terracotta: #EFCFC4;

  /* Accent = "пыльная роза". Kept as the literal brand value for decorative
     use (icons, borders, badges); solid buttons use --color-accent-deep,
     a darkened variant, because white text on #D9919F fails WCAG contrast
     (~2.5:1) — see README "Accessibility notes". */
  --color-accent: #D9919F;
  --color-accent-deep: #B3556A;
  --color-accent-deep-hover: #9C4459;
  --color-accent-soft: #F3D9DE;

  --color-accent-2: #C7B6F4;
  --color-accent-2-deep: #7C5FBF;
  --color-accent-2-soft: #E6DFFB;

  --color-text: #2E2A2A;
  --color-text-muted: #746C6C;
  --color-white: #FFFFFF;
  --color-border: #EDE1DA;
  --color-border-strong: #E2D2CA;

  --color-success: #3D7A54;
  --color-success-bg: #E7F3EB;
  --color-error: #C43C4F;
  --color-error-bg: #FBE9EB;
  --color-warning: #A5691E;
  --color-warning-bg: #FBEFDE;

  /* ---- Typography -------------------------------------------------------- */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Radii -------------------------------------------------------------- */
  --radius-card: 24px;
  --radius-card-sm: 20px;
  --radius-button: 20px;
  --radius-input: 18px;
  --radius-image: 24px;
  --radius-pill: 999px;

  /* ---- Shadows (very soft, per doc) --------------------------------------- */
  --shadow-soft: 0 12px 35px rgba(46, 42, 42, 0.06);
  --shadow-softer: 0 6px 18px rgba(46, 42, 42, 0.05);
  --shadow-lift: 0 20px 45px rgba(46, 42, 42, 0.10);
  --shadow-focus: 0 0 0 4px rgba(179, 85, 106, 0.18);

  /* ---- Motion --------------------------------------------------------------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 220ms;

  /* ---- Layout ----------------------------------------------------------------- */
  --container-width: 1240px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
input, textarea, select, button { font: inherit; color: inherit; }
input[type="file"] { max-width: 100%; }
strong, b, th { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--color-accent-deep);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Typography scale
   ========================================================================== */
h1, .h1 { font-size: clamp(32px, 4.5vw, 56px); }
h2, .h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3, .h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4, .h4 { font-size: 18px; }
.text-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--color-text-muted); line-height: 1.6; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 14px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--space-8) 0; }
.section-sm { padding: var(--space-7) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: var(--radius-button);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px) scale(0.99); }
@media (max-width: 480px) {
  .btn { white-space: normal; }
}

.btn-primary {
  background: var(--color-accent-deep);
  color: #fff;
  box-shadow: var(--shadow-softer);
}
.btn-primary:hover { background: var(--color-accent-deep-hover); box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-softer);
}
.btn-secondary:hover { border-color: var(--color-accent-deep); color: var(--color-accent-deep); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--color-accent-deep);
  border-color: currentColor;
}
.btn-outline:hover { background: var(--color-accent-soft); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  min-height: 44px;
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--color-bg-alt); }

.btn-sm { min-height: 40px; padding: 9px 18px; font-size: 14px; border-radius: 14px; }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--color-error); color: #fff; }
.btn-danger:hover { background: #A32E3E; }

.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--duration) var(--ease);
}
.icon-btn:hover { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent-deep); }
.icon-btn.is-active { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #fff; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: var(--space-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-row > * { min-width: 0; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

label, .field-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--color-text);
}
.field-hint { font-size: 13px; color: var(--color-text-muted); margin-top: 6px; }

.input, textarea.input, select.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 18px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.input::placeholder { color: #B9B0AC; }
.input:focus {
  outline: none;
  border-color: var(--color-accent-deep);
  box-shadow: var(--shadow-focus);
}
textarea.input { min-height: 120px; resize: vertical; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23746C6C' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 42px;
}

.field.has-error .input { border-color: var(--color-error); }
.form-error { display: block; margin-top: 6px; font-size: 13px; color: var(--color-error); font-weight: 600; }

.checkbox, .radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  padding: 6px 0;
}
.checkbox input, .radio input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--color-accent-deep);
  flex-shrink: 0;
}

.bank-options { display: flex; flex-wrap: wrap; gap: 12px; }
.bank-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: var(--color-bg-alt);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.bank-option:has(input:checked) {
  border-color: var(--color-accent-deep);
  background: var(--color-accent-soft);
}
.bank-option input { accent-color: var(--color-accent-deep); }
.bank-option__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.bank-option__badge--sberbank { background: #21A038; }
.bank-option__badge--tbank { background: #1A1A1A; }
.bank-option__badge--ozon { background: #005BFF; }

.file-drop {
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-card-sm);
  padding: var(--space-6);
  text-align: center;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.file-drop:hover, .file-drop.is-dragover { border-color: var(--color-accent-deep); background: var(--color-accent-soft); }
.file-drop input[type="file"] { display: block; margin: 12px auto 0; }

.file-preview-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.file-preview-list img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; }

/* Search / quantity steppers */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty-stepper button {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--color-text);
}
.qty-stepper button:hover { background: var(--color-accent-soft); }
.qty-stepper input {
  width: 42px;
  border: none;
  text-align: center;
  font-weight: 600;
  background: transparent;
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-pink);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }

.product-card__fav {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.product-card__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: 12px; color: var(--color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; line-height: 1.3; }
.product-card__title a:hover { color: var(--color-accent-deep); }
.product-card__price { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.product-card__old-price { font-weight: 500; font-size: 14px; color: var(--color-text-muted); text-decoration: line-through; }

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-6) var(--space-5);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.feature-card__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-lilac);
  color: var(--color-accent-2-deep);
  margin-bottom: var(--space-4);
}
.feature-card__title { font-size: 18px; margin-bottom: 8px; }
.feature-card__text { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.6; }

.category-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--color-lilac), var(--color-pink));
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  display: flex;
  align-items: flex-end;
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.category-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card__overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-5);
  background: linear-gradient(0deg, rgba(46,42,42,0.55), transparent 70%);
  color: #fff;
}
.category-card__overlay .category-card__title { color: #fff; }
.category-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }
.category-card__count { font-size: 13px; opacity: 0.85; margin-top: 4px; }

.review-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.review-card__stars { color: var(--color-accent-deep); letter-spacing: 2px; }
.review-card__text { color: var(--color-text); line-height: 1.65; font-size: 15px; }
.review-card__author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-accent-2-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--color-accent-2-deep);
}
.review-card__name { font-weight: 600; font-size: 14px; }
.review-card__meta { font-size: 12.5px; color: var(--color-text-muted); }

.blog-card { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; background: var(--color-white); box-shadow: var(--shadow-soft); transition: transform var(--duration) var(--ease); }
.blog-card:hover { transform: translateY(-5px); }
.blog-card__media { aspect-ratio: 16/10; background: var(--color-terracotta); overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.blog-card__title { font-size: 18px; }
.blog-card__excerpt { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   Badges / pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.badge-accent { background: var(--color-accent-soft); color: var(--color-accent-deep); }
.badge-lilac { background: var(--color-lilac); color: var(--color-accent-2-deep); }
.badge-terracotta { background: var(--color-terracotta); color: #7A4B36; }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-error { background: var(--color-error-bg); color: var(--color-error); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-neutral { background: var(--color-bg-alt); color: var(--color-text-muted); border: 1px solid var(--color-border); }

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  transition: all var(--duration) var(--ease);
}
.tag-pill:hover { border-color: var(--color-accent-deep); }
.tag-pill.is-active { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #fff; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 244, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 248, 244, 0.98);
  box-shadow: 0 10px 28px rgba(46, 42, 42, 0.08);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  font-family: var(--font-heading);
  color: var(--color-text);
}
.site-brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
}
.site-brand__name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.site-brand__name span { color: var(--color-accent-deep); }
.site-brand--footer { gap: 10px; }
.site-brand--footer .site-brand__mark { width: 48px; height: 48px; }
.site-brand--footer .site-brand__name { font-size: 20px; }

/* Kept for the admin interface and printable invoices. */
.site-logo { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.site-logo span { color: var(--color-accent-deep); }

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2vw, 32px);
  margin-left: auto;
}
.main-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent-deep);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration) var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--color-accent-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: background var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.header-action:hover { background: var(--color-accent-soft); }
.header-action:active { opacity: 0.72; }
.header-action img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.header-action--shipping img { width: 28px; height: 28px; }
.header-action--cart { position: relative; }

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-accent-deep);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-toggle { display: none; }
.header-menu-icon,
.header-menu-icon::before,
.header-menu-icon::after {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent-deep);
}
.header-menu-icon { position: relative; }
.header-menu-icon::before,
.header-menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
}
.header-menu-icon::before { top: -7px; }
.header-menu-icon::after { top: 7px; }
.header-close-icon {
  position: relative;
  width: 24px;
  height: 24px;
}
.header-close-icon::before,
.header-close-icon::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 1px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent-deep);
}
.header-close-icon::before { transform: rotate(45deg); }
.header-close-icon::after { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--color-bg);
  padding: 18px 20px 32px;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--duration) var(--ease), visibility 0s linear var(--duration);
  overflow-y: auto;
}
.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.mobile-nav__header .site-brand__mark { width: 52px; height: 52px; }
.mobile-nav__header .site-brand__name { font-size: 20px; }
.mobile-nav__links a {
  display: block;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-border);
  font-size: 18px;
  font-weight: 500;
}
.mobile-nav__links a.is-active { color: var(--color-accent-deep); }
.mobile-nav__utilities {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}
.mobile-nav__utilities a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--color-white);
  font-weight: 500;
}
.mobile-nav__utilities img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.mobile-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--color-accent-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .site-header__bar {
    min-height: 64px;
    gap: 10px;
    padding: 8px 0;
  }
  .site-brand { gap: 6px; }
  .site-brand__mark { width: 38px; height: 38px; }
  .site-brand__name { font-size: 17px; }
  .header-action--shipping { display: none; }
}

@media (max-width: 430px) {
  .site-header__bar { gap: 6px; }
  .site-brand__mark { width: 34px; height: 34px; }
  .site-brand__name { font-size: 15px; }
  .header-actions { gap: 2px; }
  .header-action { width: 38px; height: 38px; border-radius: 12px; }
  .header-action img { width: 24px; height: 24px; }
}

@media (max-width: 360px) {
  .site-brand__name { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: var(--space-8) 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}
.hero__title { margin-bottom: var(--space-4); }
.hero__subtitle { margin-bottom: var(--space-6); max-width: 480px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__media {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 5/4.4;
  background: linear-gradient(150deg, var(--color-lilac), var(--color-pink) 55%, var(--color-terracotta));
  box-shadow: var(--shadow-lift);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__float-card {
  position: absolute;
  bottom: 20px; left: 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

/* ==========================================================================
   How it works / steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.step-card__number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent-deep);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.step-card__title { font-size: 16.5px; margin-bottom: 6px; }
.step-card__text { color: var(--color-text-muted); font-size: 14px; line-height: 1.6; }

/* ==========================================================================
   Promo / custom-order banner
   ========================================================================== */
.promo-banner {
  border-radius: var(--radius-card);
  background: linear-gradient(120deg, var(--color-lilac), var(--color-pink));
  padding: var(--space-8) var(--space-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 800px) { .promo-banner { flex-direction: column; text-align: center; padding: var(--space-6); } }
.promo-banner__title { margin-bottom: 10px; max-width: 520px; }
.promo-banner__text { max-width: 480px; margin-bottom: var(--space-5); }

/* ==========================================================================
   Accordion (FAQ)
   ========================================================================== */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--color-white);
  border-radius: var(--radius-card-sm);
  box-shadow: var(--shadow-softer);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  min-height: 44px;
}
.accordion-trigger .accordion-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease);
}
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration) var(--ease);
}
.accordion-panel__inner { padding: 0 24px 22px; color: var(--color-text-muted); line-height: 1.65; font-size: 14.5px; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--space-5); }
.breadcrumbs a:hover { color: var(--color-accent-deep); }
.breadcrumbs .sep { opacity: 0.5; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: var(--space-6); flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
}
.pagination a:hover { border-color: var(--color-accent-deep); color: var(--color-accent-deep); }
.pagination .is-current { background: var(--color-accent-deep); color: #fff; border-color: var(--color-accent-deep); }
.pagination .is-disabled { opacity: 0.4; pointer-events: none; }

/* ==========================================================================
   Toasts / flash messages
   ========================================================================== */
.flash-stack {
  position: fixed;
  top: 90px; right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.flash {
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: flash-in 260ms var(--ease);
}
.flash-success { background: var(--color-success-bg); color: var(--color-success); }
.flash-error { background: var(--color-error-bg); color: var(--color-error); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Inline page banners (non-JS fallback / persistent messages) */
.alert { padding: 16px 20px; border-radius: 16px; font-size: 14.5px; font-weight: 600; margin-bottom: var(--space-5); }
.alert-success { background: var(--color-success-bg); color: var(--color-success); }
.alert-error { background: var(--color-error-bg); color: var(--color-error); }
.alert-info { background: var(--color-lilac); color: var(--color-accent-2-deep); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(46, 42, 42, 0.35);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  max-width: 480px;
  width: 100%;
  padding: var(--space-6);
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in 260ms var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 18px; right: 18px; }

/* ==========================================================================
   Rating stars
   ========================================================================== */
.stars { color: var(--color-accent-deep); font-size: 15px; letter-spacing: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding: var(--space-8) 0 var(--space-6); margin-top: var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--color-accent-deep); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: var(--space-5); border-top: 1px solid var(--color-border); font-size: 13px; color: var(--color-text-muted); }

/* ==========================================================================
   Cart / checkout
   ========================================================================== */
.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 640px) { .cart-line { grid-template-columns: 64px 1fr; grid-template-rows: auto auto; } }
.cart-line__media { width: 88px; height: 88px; border-radius: 16px; overflow: hidden; background: var(--color-pink); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-weight: 600; font-size: 15px; }
.cart-line__variant { font-size: 13px; color: var(--color-text-muted); }
.cart-line__price { font-weight: 600; font-family: var(--font-heading); white-space: nowrap; }

.summary-box {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-5);
  position: sticky;
  top: 100px;
}
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.summary-row.is-total { font-weight: 600; font-size: 18px; font-family: var(--font-heading); border-top: 1px solid var(--color-border); margin-top: 10px; padding-top: 16px; }
.summary-row.is-discount { color: var(--color-success); }

.two-col-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-6); align-items: start; }
.two-col-layout > * { min-width: 0; }
.two-col-layout--sidebar { grid-template-columns: 280px 1fr; }
@media (max-width: 900px) {
  .two-col-layout,
  .two-col-layout--sidebar { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Status timeline (order tracking)
   ========================================================================== */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 16px; position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px; top: 34px; bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border-strong);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}
.timeline-item.is-done .timeline-dot { background: var(--color-accent-deep); border-color: var(--color-accent-deep); color: #fff; }
.timeline-content { padding-top: 4px; }
.timeline-title { font-weight: 600; font-size: 15px; }
.timeline-meta { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.timeline-photo { margin-top: 10px; border-radius: 14px; overflow: hidden; max-width: 220px; }

/* ==========================================================================
   Misc components
   ========================================================================== */
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent-2-soft);
  color: var(--color-accent-2-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
}

/* Account navigation */
.account-nav { display: flex; flex-direction: column; padding: 12px; }
.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.account-nav-link:hover { background: var(--color-bg-alt); }
.account-nav-link.is-active { background: var(--color-accent-soft); color: var(--color-accent-deep); }
.account-nav-link .icon { width: 20px; height: 20px; flex: 0 0 20px; }
.account-nav__logout { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--color-border); }
.account-nav__logout .account-nav-link { cursor: pointer; }

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

/* Data tables (account area; admin.css restyles the same classes for the admin panel) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card-sm); box-shadow: var(--shadow-soft); background: var(--color-white); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.data-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--color-bg-alt); }
.data-table .cell-strong { font-weight: 600; }
.data-table .cell-actions { display: flex; gap: 8px; justify-content: flex-end; white-space: nowrap; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-created, .status-processing { background: var(--color-lilac); color: var(--color-accent-2-deep); }
.status-accepted, .status-contractor_found, .status-awaiting_payment { background: var(--color-warning-bg); color: var(--color-warning); }
.status-in_production, .status-courier, .status-delivering { background: var(--color-accent-soft); color: var(--color-accent-deep); }
.status-delivered, .status-paid, .status-succeeded, .status-active { background: var(--color-success-bg); color: var(--color-success); }
.status-cancelled, .status-overdue, .status-failed, .status-inactive, .status-refunded { background: var(--color-error-bg); color: var(--color-error); }
.status-draft, .status-sent, .status-unpaid, .status-pending, .status-new { background: var(--color-bg-alt); color: var(--color-text-muted); border: 1px solid var(--color-border); }

.empty-state { text-align: center; padding: var(--space-8) var(--space-5); color: var(--color-text-muted); }
.empty-state__icon { width: 72px; height: 72px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; color: var(--color-accent); }

.gallery { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-3); }
.gallery__main { border-radius: var(--radius-image); overflow: hidden; aspect-ratio: 1/1; background: var(--color-pink); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery__thumbs button { border-radius: 14px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 1/1; background: var(--color-pink); padding: 0; }
.gallery__thumbs button.is-active { border-color: var(--color-accent-deep); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Utility spacing */
.mt-2 { margin-top: var(--space-2); } .mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); } .mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); } .mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); } .mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.text-center { text-align: center; }

/* ==========================================================================
   Standalone payment gateway page (app/Views/site/payment.php)
   ========================================================================== */
.gateway-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-text);
}
.gateway-wrap { width: 100%; max-width: 460px; }
.gateway-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: var(--space-6);
}
.gateway-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-success);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-5);
}
.gateway-order {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
}
.gateway-order strong { font-size: 22px; font-family: var(--font-heading); }
.gateway-requisites {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card-sm);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-4);
}
.gateway-requisites__row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.gateway-requisites__row + .gateway-requisites__row { border-top: 1px dashed var(--color-border); }
.gateway-requisites__card { font-size: 17px; letter-spacing: 0.03em; }
.gateway-state { text-align: center; padding: var(--space-5) 0; color: var(--color-text-muted); }
.gateway-state .icon-lg { margin: 0 auto var(--space-3); color: var(--color-accent-deep); }
.gateway-state--success .icon-lg { color: var(--color-success); }
.gateway-state h2 { margin: 0 0 var(--space-2); color: var(--color-text); }
.gateway-footer { text-align: center; margin: var(--space-5) 0 0; }

/* ==========================================================================
   Celebratory login
   ========================================================================== */
.auth-celebration {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(54px, 7vw, 104px) 0;
}
.auth-celebration::before,
.auth-celebration::after {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  content: '';
  opacity: .7;
}
.auth-celebration::before {
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(199, 182, 244, .44), rgba(199, 182, 244, 0) 68%);
}
.auth-celebration::after {
  right: -160px;
  bottom: -210px;
  background: radial-gradient(circle, rgba(217, 145, 159, .22), rgba(217, 145, 159, 0) 68%);
}
.auth-celebration__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .82fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
}
.auth-story {
  position: relative;
  padding: clamp(8px, 2.5vw, 38px);
  animation: auth-reveal .65s var(--ease) both;
}
.auth-story h1 {
  max-width: 760px;
  margin: 14px 0 22px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.auth-story__lead {
  max-width: 660px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}
.auth-story__ornament {
  position: absolute;
  top: -44px;
  right: 0;
  width: 122px;
  height: 122px;
  pointer-events: none;
}
.auth-story__ornament span {
  position: absolute;
  width: 48px;
  height: 78px;
  border: 1px solid rgba(179, 85, 106, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
  transform-origin: 50% 62px;
}
.auth-story__ornament span:nth-child(1) { transform: translate(37px, 0); }
.auth-story__ornament span:nth-child(2) { transform: translate(37px, 0) rotate(60deg); }
.auth-story__ornament span:nth-child(3) { transform: translate(37px, 0) rotate(120deg); }
.auth-benefits {
  display: grid;
  gap: 18px;
  max-width: 660px;
  margin-top: 38px;
}
.auth-benefit {
  display: flex;
  gap: 16px;
  align-items: center;
}
.auth-benefit__icon {
  display: inline-flex;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(179, 85, 106, .12);
  border-radius: 16px;
  color: var(--color-accent-deep);
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-softer);
}
.auth-benefit div { display: grid; gap: 2px; }
.auth-benefit strong { font-size: 15px; }
.auth-benefit div span {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
}
.auth-story__promise {
  max-width: 630px;
  margin: 34px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--color-accent);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.auth-panel {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  animation: auth-reveal .65s .08s var(--ease) both;
}
.auth-card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid rgba(179, 85, 106, .1);
  border-radius: 32px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 70px rgba(46, 42, 42, .11);
  backdrop-filter: blur(12px);
}
.auth-card__seal {
  display: inline-flex;
  width: 62px;
  height: 62px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid rgba(179, 85, 106, .12);
  border-radius: 20px;
  color: var(--color-accent-deep);
  background: linear-gradient(145deg, var(--color-pink), var(--color-lilac));
  box-shadow: 0 12px 28px rgba(179, 85, 106, .14);
}
.auth-card__header { margin-bottom: 30px; }
.auth-card__header h2 {
  margin: 8px 0;
  font-size: clamp(28px, 3vw, 36px);
}
.auth-card__header p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.auth-card .input {
  min-height: 56px;
  background: var(--color-white);
}
.auth-password { position: relative; }
.auth-password .input { padding-right: 104px; }
.auth-password__toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  min-width: 86px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  color: var(--color-accent-deep);
  background: var(--color-pink);
  font: 600 13px/1 var(--font-body);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.auth-password__toggle:hover {
  color: var(--color-white);
  background: var(--color-accent-deep);
}
.auth-password__toggle:focus-visible {
  outline: 3px solid rgba(179, 85, 106, .24);
  outline-offset: 2px;
}
.auth-card__submit {
  min-height: 56px;
  margin-top: 8px;
  font-size: 16px;
}
.auth-security {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: var(--color-success);
  font-size: 13px;
  font-weight: 600;
}
.auth-card__legal {
  margin: 22px 0 0;
  color: var(--color-text-muted);
  font-size: 11px;
  line-height: 1.65;
  text-align: center;
}
.auth-register {
  margin-top: 20px;
  padding: 22px 26px;
  border: 1px solid rgba(179, 85, 106, .1);
  border-radius: 22px;
  background: rgba(255, 255, 255, .58);
  text-align: center;
}
.auth-register > span { color: var(--color-text-muted); }
.auth-register > a { margin-left: 5px; font-weight: 700; }
.auth-register p {
  margin: 5px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
}
@keyframes auth-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 940px) {
  .auth-celebration__shell { grid-template-columns: 1fr; gap: 44px; }
  .auth-story { text-align: center; }
  .auth-story h1,
  .auth-story__lead,
  .auth-benefits,
  .auth-story__promise { margin-right: auto; margin-left: auto; }
  .auth-benefits { grid-template-columns: repeat(3, 1fr); max-width: 860px; }
  .auth-benefit { flex-direction: column; align-items: center; text-align: center; }
  .auth-story__promise { padding-left: 0; border-left: 0; }
  .auth-panel { max-width: 580px; justify-self: center; }
}
@media (max-width: 640px) {
  .auth-celebration { padding: 38px 0 56px; }
  .auth-celebration__shell { gap: 32px; }
  .auth-story { padding: 0; }
  .auth-story h1 { margin-top: 10px; font-size: clamp(36px, 11vw, 48px); }
  .auth-story__lead { font-size: 18px; }
  .auth-story__ornament { top: -62px; right: -54px; opacity: .52; }
  .auth-benefits { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .auth-benefit { flex-direction: row; align-items: center; text-align: left; }
  .auth-story__promise { display: none; }
  .auth-card { padding: 28px 22px; border-radius: 26px; }
  .auth-card__seal { width: 54px; height: 54px; margin-bottom: 18px; border-radius: 18px; }
  .auth-card .input { font-size: 16px; }
  .auth-register { padding: 19px 18px; }
}
