/* ============================================================
   Мой Росточек — Design Tokens
   colors_and_type.css
   ============================================================ */

/* --- Cyrillic fonts: Lora (display serif) + Manrope (body sans) --- */

:root {
  /* ---------- COLORS ---------- */

  /* Leaf (primary garden green) */
  --leaf-900: #243d1f;
  --leaf-700: #3f6b36;   /* primary */
  --leaf-500: #6fa063;
  --leaf-300: #a8c49a;
  --leaf-200: #d6e5cc;
  --leaf-50:  #eef4e8;

  /* Forest — logo background / premium dark sections */
  --forest:     #013220;   /* brand logo bg — deepest green */
  --forest-700: #0a4a30;   /* lighter step for layering on forest */

  /* Earth (terracotta secondary) */
  --earth-700: #b45b3e;
  --earth-500: #d4856a;
  --earth-300: #e8c5b0;
  --earth-100: #f5e6dc;

  /* Bloom (pink blossom accent) */
  --bloom-700: #b8616f;
  --bloom-500: #d98a99;
  --bloom-300: #ecb5be;
  --bloom-200: #f4d9de;

  /* Sun (warm yellow accent — sparingly) */
  --sun-500: #d99a30;
  --sun-400: #e8b450;
  --sun-200: #f7e2b3;

  /* Surfaces */
  --cream:  #faf6ee;     /* page bg */
  --paper:  #ffffff;     /* cards, surfaces */
  --line:   #e4dfd2;     /* borders */
  --line-soft: #efeae0;

  /* Text */
  --ink-900: #2b3024;    /* primary text */
  --ink-700: #3d4334;
  --ink-600: #5c6353;    /* secondary text */
  --ink-400: #8b917f;    /* hints, metadata */
  --ink-200: #c3c6ba;    /* disabled */
  --ink-on-leaf: #ffffff;

  /* Semantic */
  --success: #3f6b36;    /* = leaf-700 */
  --warning: #d99a30;
  --danger:  #b54a3a;
  --info:    #4a7ab4;

  /* ---------- GRADIENTS (signature) ---------- */
  --grad-primary:    linear-gradient(180deg, #4d7e43 0%, #3f6b36 100%);
  --grad-primary-hv: linear-gradient(180deg, #588a4d 0%, #467539 100%);
  --grad-bloom:      linear-gradient(180deg, #e29ba9 0%, #d98a99 100%);
  --grad-earth:      linear-gradient(180deg, #c4694c 0%, #b45b3e 100%);
  --grad-soft-leaf:  linear-gradient(180deg, #f4f8ee 0%, #e6efdc 100%);
  --grad-soft-bloom: linear-gradient(180deg, #fdf1f3 0%, #f7dde2 100%);

  /* Inner highlight applied on top of buttons */
  --inset-hilite: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --inset-press:  inset 0 1px 2px rgba(0, 0, 0, 0.12);

  /* ---------- SHADOWS (soft, warm green tint) ---------- */
  --shadow-1: 0 1px 2px rgba(46, 60, 35, 0.05);
  --shadow-2: 0 4px 16px rgba(46, 60, 35, 0.07), 0 1px 2px rgba(46, 60, 35, 0.04);
  --shadow-3: 0 12px 32px rgba(46, 60, 35, 0.10), 0 2px 6px rgba(46, 60, 35, 0.05);
  --shadow-4: 0 24px 56px rgba(46, 60, 35, 0.14), 0 4px 10px rgba(46, 60, 35, 0.06);
  --shadow-glow: 0 8px 24px rgba(63, 107, 54, 0.22);
  --shadow-glow-bloom: 0 8px 24px rgba(217, 138, 153, 0.25);

  /* ---------- RADII ---------- */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;   /* buttons — signature */
  --r-xl:  28px;   /* cards */
  --r-2xl: 40px;   /* hero blocks */
  --r-pill: 999px;

  /* ---------- SPACING (4-base) ---------- */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-7:  32px;
  --sp-8:  40px;
  --sp-9:  56px;
  --sp-10: 72px;
  --sp-11: 96px;

  /* ---------- TYPOGRAPHY ---------- */
  --font-display: 'Lora', 'Times New Roman', Georgia, serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace;

  /* Sizes / line-heights */
  --fs-display-xl: 56px; --lh-display-xl: 64px;
  --fs-display-l:  40px; --lh-display-l:  48px;
  --fs-h1:         32px; --lh-h1:         40px;
  --fs-h2:         24px; --lh-h2:         32px;
  --fs-h3:         20px; --lh-h3:         28px;
  --fs-body-l:     18px; --lh-body-l:     28px;
  --fs-body:       16px; --lh-body:       26px;
  --fs-body-s:     14px; --lh-body-s:     22px;
  --fs-caption:    12px; --lh-caption:    18px;

  /* ---------- MOTION ---------- */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std:  cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-mid:   250ms;
  --dur-slow:  320ms;

  /* ---------- LAYOUT ---------- */
  --container: 1200px;
  --header-h:  72px;
}

/* ============================================================
   SEMANTIC TYPE — drop-in classes
   ============================================================ */

html, body {
  background: var(--cream);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.display-xl, h1.display, .h-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.display-l {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-l);
  line-height: var(--lh-display-l);
  letter-spacing: -0.005em;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  color: var(--ink-900);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  color: var(--ink-900);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  color: var(--ink-900);
  margin: 0;
}

.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body-l); }
.body   { font-size: var(--fs-body);   line-height: var(--lh-body); }
.body-s { font-size: var(--fs-body-s); line-height: var(--lh-body-s); color: var(--ink-600); }

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-400);
}

.price {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: 500;
  color: var(--ink-900);
}
.price--old {
  font-family: var(--font-body);
  font-size: var(--fs-body-s);
  text-decoration: line-through;
  color: var(--ink-400);
  font-weight: 400;
}

a {
  color: var(--leaf-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-std);
}
a:hover { color: var(--leaf-900); }

/* ============================================================
   BUTTONS — signature soft-gradient rounded
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 48px;
  padding: 0 var(--sp-6);
  border-radius: var(--r-lg);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-std),
              box-shadow var(--dur-fast) var(--ease-std),
              background var(--dur-fast) var(--ease-std);
  user-select: none;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--leaf-700);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--grad-primary);
  color: var(--ink-on-leaf);
  box-shadow: var(--shadow-1), var(--inset-hilite);
}
.btn--primary:hover {
  background: var(--grad-primary-hv);
  box-shadow: var(--shadow-glow), var(--inset-hilite);
}
.btn--primary:active {
  transform: translateY(1px);
  box-shadow: var(--inset-press);
}

.btn--bloom {
  background: var(--grad-bloom);
  color: white;
  box-shadow: var(--shadow-1), var(--inset-hilite);
}
.btn--bloom:hover { box-shadow: var(--shadow-glow-bloom), var(--inset-hilite); }
.btn--bloom:active { transform: translateY(1px); box-shadow: var(--inset-press); }

.btn--secondary {
  background: var(--paper);
  color: var(--leaf-700);
  border: 1.5px solid var(--leaf-300);
}
.btn--secondary:hover {
  background: var(--leaf-50);
  border-color: var(--leaf-700);
}
.btn--secondary:active { background: var(--leaf-200); }

.btn--ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn--ghost:hover { background: var(--leaf-50); color: var(--leaf-700); }

.btn--sm { height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-body-s); border-radius: var(--r-md); }
.btn--lg { height: 56px; padding: 0 var(--sp-7); font-size: var(--fs-body-l); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-3);
}

/* ============================================================
   FORMS
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.field__label {
  font-size: var(--fs-body-s);
  font-weight: 600;
  color: var(--ink-700);
}
.input {
  height: 48px;
  padding: 0 var(--sp-4);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--ink-900);
  transition: border-color var(--dur-fast) var(--ease-std),
              box-shadow var(--dur-fast) var(--ease-std);
}
.input::placeholder { color: var(--ink-400); }
.input:hover { border-color: var(--leaf-300); }
.input:focus {
  outline: none;
  border-color: var(--leaf-700);
  box-shadow: 0 0 0 4px var(--leaf-50);
}

/* ============================================================
   CHIPS / BADGES
   ============================================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  height: 28px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip--hit  { background: var(--bloom-500); color: white; }
.chip--new  { background: var(--leaf-700); color: white; }
.chip--sale { background: var(--sun-400); color: var(--ink-900); }
.chip--soft { background: var(--leaf-50); color: var(--leaf-700); }
