/* ==========================================================================
   02-base.css
   Reset, base typography, layout primitives (.shell/.section), icons, buttons, chips.
   Load order: 2 of 7 - see README.md ("Stylesheet layer order").
   ========================================================================== */

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(.975rem, .3vw + .9rem, 1.0625rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--plum-800);
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--plum-600); text-decoration: none; transition: color .22s var(--ease); }
a:hover { color: var(--sun-600); }

img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
}

::selection { background: var(--sun-300); color: var(--plum-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: .75rem 1.25rem; background: var(--plum-800); color: #fff;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section-tint { background: var(--cream-2); }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sun-600);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 2px;
  background: currentColor;
}
.eyebrow-light { color: var(--sun-300); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow::before { display: none; }

.section-title { font-size: clamp(1.65rem, 3.1vw, 2.65rem); margin-bottom: .45em; }
.section-title.small { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.section-lead { color: var(--ink-soft); font-size: 1.03em; margin: 0; }

.section-action { margin: clamp(2rem, 4vw, 3rem) 0 0; text-align: center; }

.intro-prose {
  max-width: 68ch; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center; color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. Icons
   -------------------------------------------------------------------------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.icon.star { color: var(--sun-500); fill: currentColor; stroke-width: 1; }

/* --------------------------------------------------------------------------
   5. Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.7rem;
  font-size: .94rem; font-weight: 600; line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1rem; }
.btn-sm { padding: .62rem 1.25rem; font-size: .85rem; }
.btn-xs { padding: .5rem 1rem; font-size: .8rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--plum-700); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--plum-800); color: #fff; box-shadow: var(--shadow-lg); }

.btn-gold { background: var(--sun-500); color: var(--plum-900); box-shadow: 0 14px 32px -14px rgba(227, 175, 27,.8); }
.btn-gold:hover { background: var(--sun-400); color: var(--plum-900); }

.btn-outline { background: transparent; color: var(--plum-700); border-color: var(--plum-300); }
.btn-outline:hover { background: var(--plum-700); border-color: var(--plum-700); color: #fff; }

.btn-outline-light { background: rgba(255,255,255,.09); color: #fff; border-color: rgba(255,255,255,.42); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--plum-800); border-color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .48rem 1rem;
  font-size: .82rem; font-weight: 600;
  background: var(--paper); color: var(--plum-800);
  border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip-telegram:hover { background: var(--telegram); border-color: var(--telegram); color: #fff; }
.chip-zalo:hover     { background: var(--zalo);     border-color: var(--zalo);     color: #fff; }
.chip-phone:hover    { background: var(--plum-700);border-color: var(--plum-700);color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: var(--plum-600);
}
.link-arrow .icon { transition: transform .25s var(--ease); }
