/* PlateMate — общие стили всех страниц по брендбуку «PlateMate Visual System 2026».
   Цвета: Apple Green — логотип и иконки, Vivid Orange — призывы к действию,
   Powder Petal — светлые фоны, Pale Sky — подпись-лента, чёрный — как автомат и упаковка. */
:root {
  --green: #8CAE13;          /* Apple Green */
  --green-ink: #3f5200;      /* тёмный зелёный для текста на светлом */
  --green-tint: #eef5d8;
  --orange: #E57C04;         /* Vivid Orange */
  --petal: #FCEADE;          /* Powder Petal */
  --sky: #B0CFDF;            /* Pale Sky */
  --mint: #7BC69F;           /* Mint Leaf */
  --black: #000000;
  --graphite: #444444;       /* Matte Graphite */
  --gray-44: #707070;
  --gray-60: #999999;
  --white: #FFFFFF;
  --card-dark: #111111;
  --line-dark: #2a2a2a;
  --line: #ecdccf;
  --radius: 16px;
  --header-h: 64px;
  --consent-h: 0px;
  --font: "Onest", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--black);
  background: var(--petal);
  overflow-x: hidden;
}
html[lang="th"] body { font-family: "Noto Sans Thai", "Onest", system-ui, sans-serif; line-height: 1.65; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--graphite); }
.small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

/* ---------- иконки (монолинейные, цвет = currentColor) ---------- */
.ic { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--xl { width: 44px; height: 44px; }
.ic--ring { width: 52px; height: 52px; padding: 12px; border: 1.5px solid currentColor; border-radius: 50%; color: var(--green); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1.15; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--orange); color: var(--black); }
.btn--accent:hover { background: #f08d1d; }
.btn--dark, .btn--primary { background: var(--black); color: var(--white); }
.btn--dark:hover, .btn--primary:hover { background: #262626; }
.btn--ghost { background: transparent; border-color: #d9c7b9; color: var(--black); }
.btn--ghost:hover { border-color: var(--black); }
.btn--outline-light { background: transparent; border-color: #4a4a4a; color: var(--white); }
.btn--outline-light:hover { border-color: var(--white); }
.btn--wa { background: #1FA855; color: var(--white); }
.btn--wa:hover { background: #179147; }
.btn--tg { background: #2A9FD8; color: var(--white); }
.btn--tg:hover { background: #218BC0; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn .ic svg { fill: none; }

/* ---------- плашка демо-данных ---------- */
.demo-bar {
  background: repeating-linear-gradient(45deg, #fff3c4, #fff3c4 12px, #ffe89a 12px, #ffe89a 24px);
  color: #5a4300; font-size: 13px; font-weight: 600; text-align: center; padding: 6px 16px;
}

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 1100; background: var(--black); border-bottom: 1px solid #1d1d1d; }
.top__in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; text-decoration: none; flex: none; }
.logo img { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: #e6e6e6; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }
.lang { display: flex; margin-left: 8px; background: #1a1a1a; border-radius: 999px; padding: 3px; flex: none; }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--gray-60); }
.lang button[aria-pressed="true"] { background: var(--green); color: var(--black); }
.burger { display: none; position: relative; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #1a1a1a; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--white); transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .burger { display: block; }
  .lang { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px;
    background: var(--black); border-bottom: 1px solid #1d1d1d;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid #1f1f1f; }
}

/* ---------- лента-подпись как на автомате ---------- */
.band {
  background: var(--sky); color: var(--black);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  text-align: center; padding: 12px 16px;
}
.band span { font-weight: 500; letter-spacing: .02em; text-transform: none; margin-left: 14px; color: var(--graphite); }

/* ---------- перекрёстные ссылки «Ещё от PlateMate» ---------- */
.more { padding: 56px 0; background: var(--petal); }
.more h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 20px; }
.more__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.more__card {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius);
  background: var(--black); color: var(--white); text-decoration: none;
  transition: transform .15s ease;
}
.more__card:hover { transform: translateY(-2px); }
.more__card .ic--ring { flex: none; }
.more__card h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
html[lang="th"] .more__card h3 { text-transform: none; }
.more__card p { color: #bdbdbd; font-size: 14px; margin-top: 6px; }
.more__card span.more__go { display: inline-block; margin-top: 10px; color: var(--orange); font-weight: 700; font-size: 14px; }

/* ---------- подвал ---------- */
.foot { background: var(--black); color: var(--white); padding-top: 44px; }
.foot__logo { display: block; height: 72px; width: auto; }
.band--foot { position: relative; }
.band__meerkat { position: absolute; right: max(16px, calc((100% - 1200px) / 2 + 28px)); bottom: 6px; height: 96px; width: auto; pointer-events: none; }
@media (max-width: 599px) { .band--foot { text-align: left; padding-right: 80px; } .band__meerkat { height: 72px; } }
.foot__in { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding-bottom: 40px; }
.foot .muted { color: var(--gray-60); margin-top: 10px; }
.foot h3 { font-size: 14px; margin-bottom: 12px; color: var(--gray-60); text-transform: uppercase; letter-spacing: .06em; }
.foot__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot__links--nav { margin-top: 18px; }
.foot__links a { color: var(--white); font-weight: 600; text-decoration: none; }
.foot__links a:hover { color: var(--green); }
.foot__privacy p { font-size: 13px; line-height: 1.6; color: #bdbdbd; }
.foot__privacy p + p { margin-top: 10px; }
.foot__privacy a { color: var(--green); }
.foot__link { margin-top: 10px; padding: 0; border: 0; background: none; font-size: 13px; color: #d9d9d9; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.band--foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

/* ---------- баннер согласия на Meta Pixel ---------- */
body.has-consent { padding-bottom: var(--consent-h); }
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  padding-bottom: env(safe-area-inset-bottom);
  background: #111; color: #d5d5d5; box-shadow: 0 -16px 40px -24px rgba(0, 0, 0, .55);
}
.consent__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.consent__text { max-width: 760px; font-size: 14px; line-height: 1.5; }
.consent__title { margin-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--white); }
.consent__text a { color: var(--green); text-underline-offset: 3px; }
.consent__status { margin-top: 6px; font-weight: 600; color: var(--green); }
.consent__buttons { flex: none; display: flex; gap: 10px; }
/* обе кнопки намеренно одинаковые — выбор равнозначный */
.consent__btn {
  min-width: 132px; min-height: 46px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .75); background: transparent; color: var(--white);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s;
}
.consent__btn:hover { background: var(--white); color: var(--black); }
@media (max-width: 760px) {
  .consent__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .consent__text { font-size: 13px; }
  .consent__buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .consent__btn { min-width: 0; padding: 0 12px; }
}

/* ---------- уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom) + var(--consent-h)); z-index: 2000;
  max-width: calc(100% - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--black); color: var(--white); padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
