/* ─── CARAT shop — design tokens ─────────────────────────────────────── */
:root {
  --bg: #f4f0e8;
  --bg-2: #ece7dd;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #4a4a52;
  --muted: #82827e;
  --rule: #e2dccf;
  --rule-2: #d4ccb9;
  --accent: #b13322;
  --accent-ink: #ffffff;
  --accent-tint: #f7e9e6;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .04);
  --shadow-md: 0 6px 18px rgba(40, 30, 20, .08);
  --shadow-lg: 0 24px 56px rgba(40, 30, 20, .14);

  --max: 1180px;
  --pad-x: 28px;
  --gap: 22px;
}

/* ─── Language siblings ──────────────────────────────────────────────── */
[lang="hy"], [lang="ru"], [lang="en"] { display: none; }
html[data-lang="hy"] [lang="hy"],
html[data-lang="ru"] [lang="ru"],
html[data-lang="en"] [lang="en"] { display: revert; }
html[data-lang="hy"] span[lang="hy"],
html[data-lang="ru"] span[lang="ru"],
html[data-lang="en"] span[lang="en"] { display: inline; }
html[data-lang="hy"] div[lang="hy"],
html[data-lang="ru"] div[lang="ru"],
html[data-lang="en"] div[lang="en"] { display: block; }

/* ─── Reset-ish ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ─── Brand mark ─────────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.brand__text { font-size: 16px; }
.brand--lg .brand__text { font-size: 20px; }
.brand-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  display: inline-block;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.brand--lg .brand-mark { width: 28px; height: 28px; }

/* ─── Top bar ────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 240, 232, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar__links {
  display: flex;
  gap: 22px;
  flex: 1;
  justify-content: center;
}
.topbar__links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 4px;
  position: relative;
  transition: color .15s ease;
}
.topbar__links a:hover { color: var(--ink); }
.topbar__links a:hover::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Lang switcher */
.lang {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px;
}
.lang button {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-radius: 999px;
  transition: all .15s ease;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--pad-x) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 18px;
  max-width: 18ch;
}
.hero__lede {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 38ch;
  margin-bottom: 28px;
}
.hero__cta { padding: 14px 28px; font-size: 16px; }
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 120% at 80% 20%, rgba(177, 51, 34, .14), transparent 55%),
    radial-gradient(120% 120% at 20% 80%, rgba(20, 20, 20, .08), transparent 50%),
    linear-gradient(140deg, #efe6d1, #ece2c8 60%, #d8cdb1);
  box-shadow: var(--shadow-lg);
}
.hero__art::before, .hero__art::after {
  content: "";
  position: absolute;
  inset: 8% 14% 10% 14%;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(0,0,0,.02));
  border: 1px solid rgba(255,255,255,.5);
}
.hero__art::after {
  inset: auto 24% 16% 24%;
  height: 14%;
  border-radius: 999px;
  background: rgba(20, 20, 20, .15);
  filter: blur(14px);
  border: 0;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 36px; padding-bottom: 28px; }
  .hero__art { order: -1; aspect-ratio: 4 / 3; }
  .topbar__links { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  background: transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: #000; }
.btn--primary:active { transform: scale(.98); }
.btn--ghost {
  background: transparent;
  border-color: var(--rule-2);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ─── Sections ───────────────────────────────────────────────────────── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--pad-x);
}
.section--contrast {
  background: var(--surface);
  max-width: none;
  margin: 0;
  padding-left: 0; padding-right: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section--contrast > * {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section__head {
  margin-bottom: 36px;
  max-width: 720px;
}
.section__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.1;
}

/* ─── Product grid ───────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--gap);
}
.product-grid[data-state="loading"] .product-grid__empty,
.product-grid[data-state="empty"]   .product-grid__empty,
.product-grid[data-state="error"]   .product-grid__empty { display: block; }
.product-grid[data-state="ready"]   .product-grid__empty { display: none; }

.product-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 80px 20px;
  font-size: 15px;
  display: none;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product:hover {
  transform: translateY(-3px);
  border-color: var(--rule-2);
  box-shadow: var(--shadow-md);
}
.product__art {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(20, 20, 20, .12);
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(177, 51, 34, .08), transparent 70%),
    linear-gradient(160deg, #efe6d1, #ddd1b3);
}
.product__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product__name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.product__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.product__price small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 4px;
}
.product__cta {
  margin-top: auto;
  width: 100%;
}

/* ─── Contact card ───────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 36px;
  display: grid;
  gap: 16px;
}
.contact-card__copy p {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 60ch;
}
.contact-card__phone {
  margin-top: 18px !important;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.contact-card__phone-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.contact-card__phone-link {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.contact-card__phone-link:hover { text-decoration: underline; }

/* ─── Modal (buy) ────────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(2px);
}
.modal__card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 36px 28px 28px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  animation: pop .18s ease-out;
}
@keyframes pop {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: var(--bg-2); color: var(--ink); }
.modal__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}
.modal__form { display: grid; gap: 14px; }
.modal__submit { margin-top: 6px; }
.modal__hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.modal__error {
  margin-top: 10px;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
}
.modal__success {
  display: grid;
  gap: 12px;
  text-align: center;
  padding: 12px 0 6px;
}
.modal__success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #e9f5ec;
  color: #1f7a3a;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__success h4 { font-size: 18px; font-weight: 700; }
.modal__success p { font-size: 14px; color: var(--ink-2); }

/* ─── Form fields ────────────────────────────────────────────────────── */
.field {
  display: grid;
  gap: 6px;
  text-align: left;
}
.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--rule-2);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 20, 20, .08);
}
.field select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
    linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* ─── Age gate ───────────────────────────────────────────────────────── */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 14, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.age-gate[hidden] { display: none; }
.age-gate__card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 40px 32px 28px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.age-gate__brand {
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 14px;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.age-gate__title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.age-gate__lede { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.55; }
.age-gate__prompt { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.age-gate__form {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  text-align: left;
}
.age-gate__submit { grid-column: 1 / -1; margin-top: 4px; }
.age-gate__error {
  margin-top: 14px;
  background: var(--accent-tint);
  color: var(--accent);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
}
.age-gate__lang {
  margin-top: 18px;
  display: inline-flex;
  background: var(--bg-2);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.age-gate__lang button {
  background: transparent;
  border: 0;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  border-radius: 999px;
}
.age-gate__lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.age-gate__legal {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}
.age-gate__legal a { color: var(--ink); border-bottom: 1px solid var(--rule); }
.age-gate__legal a:hover { color: var(--accent); border-color: var(--accent); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.foot {
  background: #1d1d1f;
  color: #cfcfd1;
  padding: 56px var(--pad-x) 28px;
  margin-top: 0;
}
.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.foot .brand { color: #fff; }
.foot .brand-mark { background: var(--accent); }
.foot__tag {
  margin-top: 14px;
  font-size: 13px;
  color: #9c9ca0;
  max-width: 32ch;
  line-height: 1.55;
}
.foot__col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.foot__col ul li {
  font-size: 14px;
  margin-bottom: 8px;
  color: #cfcfd1;
}
.foot__col a { color: #cfcfd1; }
.foot__col a:hover { color: #fff; }
.foot__sign {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid #2c2c30;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: #82828a;
  flex-wrap: wrap;
}
.foot__warn {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e6c46a;
}

@media (max-width: 760px) {
  .foot__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .foot__inner { grid-template-columns: 1fr; }
  .topbar__inner { gap: 10px; }
  .brand__sub, .brand--lg .brand__text { display: none; }
}
