/* ==========================================================================
   Zakaz Plus — tokens, reset and shared primitives

   Values come from the Figma file n2FXRUAsfYUN29KYiovVsa (page "dev RU",
   B2C Desktop 405:12334 / B2C Mobile 215:2570), read through the Figma MCP.
   Names in comments are the file's own styles and variables.
   ========================================================================== */

:root {
  /* ---- colour (Zakaz Plus/Color/Text/*) ---- */
  --green:       #62B910;
  --green-dark:  #53634B;
  --ink:         #111827;
  --ink-muted:   #4B5563;
  --ink-grey:    #676E63;   /* hero lead                                 */
  --ink-label:   #4A4F45;   /* section labels                            */
  --night:       #1A1C1E;   /* dark buttons                              */
  --white:       #FFFFFF;
  --orange:      #EA8A41;   /* the download panel                        */

  /* ---- surfaces ---- */
  --page:        #FFFFFF;   /* the page itself                           */
  --card:        #F2F3F1;   /* section cards and the footer              */
  --mint:        #E9EEE4;   /* the pinned header bar                     */
  --glass:       rgba(233, 238, 228, .8);
  --chip:        rgba(208, 214, 201, .6);   /* nav and language pills     */
  --chip-solid:  #D0D6C9;                   /* the phone language pill   */
  --muted-fill:  rgba(155, 160, 149, .15);  /* transparent button, label */

  /* ---- effects ---- */
  --shadow-updown: 0 4px 10px rgba(39, 37, 37, .1), 0 -4px 10px rgba(39, 37, 37, .1);   /* "Drop Shd Up Down" */
  --shadow-up:     0 -4px 10px rgba(39, 37, 37, .1);

  /* ---- gradients ---- */
  /* footer banner: Figma radial fill, centre at 37.9% / 40%, reach 49.6% of
     the width; its vertical reach is so large the bands run straight down */
  --grad-banner: radial-gradient(49.6% 10285% at 37.9% 40%, #FF6B4A 0%, #FFCF4A 100%);

  /* ---- radii ---- */
  --r-section: 50px;
  --r-card:    30px;
  --r-button:  25px;
  --r-pill:    999px;

  /* ---- type (Text/* and Heading/* styles) ---- */
  --font:         "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --t1:  400 16px/1.3 var(--font);   /* Text/T1_16_Regular */
  --t4:  500 14px/1.2 var(--font);   /* Text/T4_14_Medium  */
  --t5:  500 16px/1.3 var(--font);   /* Text/T5_16_Medium  */
  --t14: 400 14px/1.3 var(--font);
  --h2:  500 24px/1.3 var(--font);   /* Heading/H2_24_Medium */
  --title-card: 700 16px/1.2 var(--font-display);

  /* ---- layout ---- */
  --shell: 1440px;

  --focus: 0 0 0 3px rgba(98, 185, 16, .45);

  /* ---- motion (design brief §10: a rise of up to 24pt with a fade,
          200–300 ms; reduced motion keeps only state changes) ---- */
  --ease-out:     cubic-bezier(.22, .61, .36, 1);
  --reveal-shift: 24px;
  --reveal-time:  300ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: var(--t1);
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
/* height:auto: without it a width/height attribute pair keeps the attribute
   height while max-width shrinks the width, squashing the image */
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--focus); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

/* ---------- shared primitives ---------- */

/* the brand name inside copy: "Больше преимуществ {brand}" */
.brand { color: var(--green); }

/* the small grey label above section titles ("Удобство пользования") */
.eyebrow {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--muted-fill);
  font: 500 12px/1.2 var(--font);
  color: var(--ink-label);
}
@media (min-width: 768px) {
  .eyebrow { padding: 5px 15px; font-size: 14px; }
}

/* section heading: Heading 24 on a phone, 35 on a desktop */
.section-title { font: 500 24px/1.3 var(--font); color: var(--ink); }
@media (min-width: 1280px) {
  .section-title { font-size: 35px; }
}

/* a glyph icon from the design, drawn as a mask so it takes the text colour */
.glyph {
  display: block;
  flex: none;
  width: 25px;
  height: 25px;
  background-color: currentColor;
  -webkit-mask: var(--glyph) center / 25px 25px no-repeat;
          mask: var(--glyph) center / 25px 25px no-repeat;
}
.glyph--gift     { --glyph: url("../img/icon-gift@2x.webp"); }
.glyph--wallet   { --glyph: url("../img/icon-wallet@2x.webp"); }
.glyph--shop     { --glyph: url("../img/icon-shop@2x.webp"); }
.glyph--download { --glyph: url("../img/icon-download@2x.webp"); }

/* the logo: mark + wordmark, 35px tall everywhere it appears */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  flex: none;
}
.logo__mark { width: 35.0254px; height: 35px; }
.logo__word {
  font: 800 20px/normal var(--font-display);
  letter-spacing: -.5px;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- buttons (Figma component set "Button", 481:5452) ----------
   Hover swaps the fill for a 2px outline in the same colour. The border is
   always there, transparent at rest, so hovering never changes the size. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: 2px solid transparent;
  border-radius: var(--r-button);
  font: var(--t5);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, scale .15s var(--ease-out);
}
.btn--dark-green { background: var(--green-dark); color: var(--white); }
.btn--green      { background: var(--green);      color: var(--white); }
.btn--dark       { background: var(--night);      color: var(--white); }
.btn--ghost      { background: var(--muted-fill); color: var(--night); }

@media (hover: hover) {
  .btn--dark-green:hover { background: transparent; border-color: var(--green-dark); color: var(--green-dark); }
  .btn--green:hover      { background: transparent; border-color: var(--green);      color: var(--green); }
  .btn--dark:hover       { background: transparent; border-color: var(--night);      color: var(--night); }
  .btn--ghost:hover      { border-color: var(--night); }
}
/* pressed: a slight give under the finger or the click */
@media (prefers-reduced-motion: no-preference) {
  .btn:active { scale: .97; }
}
