@charset "UTF-8";
/*
  KoroBlox — public site styles.
  Two surface types, each with its own text and hover colours:
  - glass: translucent panels on the purple background, white text;
  - paper: white cards, dialogs and forms, dark text and violet accents.
  The admin panel uses admin.css.
*/

/* ---------- Tokens ---------- */
:root {
  /* Brand gradient, 8% deeper than the original #667eea → #7168bc → #764ba2 so white text stays readable on glass. */
  --bg-1: #5f75dc;
  --bg-2: #6a60b2;
  --bg-3: #6e469a;

  --on: #fff;
  --on-2: rgba(255, 255, 255, .88);
  --on-3: rgba(255, 255, 255, .74);
  --glass: rgba(255, 255, 255, .09);
  --glass-hover: rgba(255, 255, 255, .14);
  --glass-line: rgba(255, 255, 255, .24);
  --glass-line-strong: rgba(255, 255, 255, .55);

  --ink: #271f3d;
  --ink-2: #554e6c;
  --ink-3: #6f6884;
  --line: #e9e5f2;
  --soft: #f5f2fd;
  --accent: #6a4fd6;
  --accent-hover: #5638c2;
  --accent-soft: #eeeafd;
  --accent-line: #cbbff5;
  --error-on-glass: #ffe0e6;
  --error-on-paper: #b4234a;
  --ok: #8ef3c8;

  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --content: 944px;
  --gutter: 28px;
  --shadow-card: 0 22px 44px -26px rgba(28, 12, 74, .6);
  --shadow-card-hover: 0 30px 56px -26px rgba(28, 12, 74, .7);
  --shadow-pop: 0 20px 44px -14px rgba(28, 12, 74, .38), 0 2px 8px rgba(28, 12, 74, .08);
  --focus: #fff;
  --ease: cubic-bezier(.2, .7, .3, 1);

  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
  color: var(--on);
  -webkit-text-size-adjust: 100%;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; background: var(--bg-2); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--on);
  background: transparent;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 52%, var(--bg-3));
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.03em; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
input, textarea, select { min-width: 0; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
}
.skip-link:focus { top: 12px; }

/* Paper surfaces switch focus ring and button colours to the accent. */
.modal, .mobile-sheet, .mobile-nav, .profile-menu, .article-card, .community-composer,
.reaction-popover, .vk-card, .personal-post-card {
  --focus: #8b6ff2;
}

/* ---------- Buttons ---------- */
.button {
  --btn-bg: #fff;
  --btn-fg: var(--accent);
  --btn-bg-hover: #f3f0ff;
  --btn-fg-hover: var(--accent-hover);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s var(--ease);
}
.button:hover:not(:disabled) { background: var(--btn-bg-hover); color: var(--btn-fg-hover); border-color: var(--btn-border-hover, var(--btn-border)); }
.button .icon { width: 19px; height: 19px; }
.primary { box-shadow: 0 10px 22px -12px rgba(28, 12, 74, .55); }
.secondary {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bg-hover: rgba(255, 255, 255, .06);
  --btn-border-hover: #fff;
  --btn-fg-hover: #fff;
  --btn-border: rgba(255, 255, 255, .42);
}
.quiet {
  --btn-bg: transparent;
  --btn-fg: var(--on-2);
  --btn-bg-hover: rgba(255, 255, 255, .1);
  --btn-fg-hover: #fff;
}
.wide { width: 100%; }

/* On paper the primary button is filled violet. */
:is(.modal, .mobile-sheet, .community-composer, .vk-card) .button {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bg-hover: var(--accent-hover);
  --btn-fg-hover: #fff;
}
:is(.modal, .mobile-sheet, .community-composer) .secondary {
  --btn-bg: #fff;
  --btn-fg: var(--accent);
  --btn-bg-hover: var(--accent-soft);
  --btn-fg-hover: var(--accent-hover);
  --btn-border: var(--line);
  box-shadow: none;
}
:is(.modal, .mobile-sheet, .community-composer) .quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink-3);
  --btn-bg-hover: var(--soft);
  --btn-fg-hover: var(--ink);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .15s, opacity .15s;
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link .icon { width: 18px; height: 18px; }

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--glass-line);
  border-radius: 11px;
  background: transparent;
  color: #fff;
  transition: background-color .15s, border-color .15s;
}
.icon-button:hover { background: rgba(255, 255, 255, .06); border-color: var(--glass-line-strong); }
.icon-button .icon { width: 18px; height: 18px; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--glass-line);
  border-radius: 11px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover:not(:disabled) { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .8); }
.chip.active, .chip.active:hover:not(:disabled) { background: #fff; border-color: #fff; color: var(--accent); }

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--on-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { flex-shrink: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.logo {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.logo > span:last-child { color: inherit; }
.logo-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .18);
  transition: background-color .15s;
}
.logo:hover .logo-symbol { background: rgba(255, 255, 255, .28); }
.logo-symbol .icon { width: 22px; height: 22px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--on-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a.current { color: #fff; }
.main-nav a.current::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.login-button, .profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  transition: background-color .15s, border-color .15s;
}
.login-button:hover, .profile-button:hover, .profile-button[aria-expanded="true"] {
  background: var(--glass);
  border-color: rgba(255, 255, 255, .8);
}
.login-button .icon { width: 19px; height: 19px; }
.profile-wrap { position: relative; }
.profile-button { padding: 5px 10px 5px 5px; }
.profile-avatar { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; background: rgba(255, 255, 255, .2); }
.profile-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-button > .icon { width: 15px; height: 15px; transition: transform .2s; }
.profile-button[aria-expanded="true"] > .icon { transform: rotate(180deg); }
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 260px;
  padding: 16px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  animation: pop-in .16s var(--ease);
  transform-origin: top right;
}
.profile-menu > strong, .profile-menu > span { display: block; overflow-wrap: anywhere; }
.profile-menu > strong { font-size: 16px; line-height: 1.35; }
.profile-menu > span { font-size: 13px; color: var(--ink-3); }
.profile-menu > a, .profile-menu > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background-color .15s, color .15s;
}
.profile-menu > a:hover { background: var(--accent-soft); color: var(--accent); }
.profile-menu > a .icon { width: 18px; height: 18px; }
.profile-menu > button { margin-top: 4px; background: transparent; color: var(--ink-3); }
.profile-menu > button:hover { background: #fff0f3; color: var(--error-on-paper); }

/* ---------- Page layout ---------- */
.site-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding-top: 22px;
  color: var(--on-3);
  font-size: 13px;
}
.breadcrumbs a { color: var(--on-2); transition: color .15s; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero, .page-heading { padding: 26px 0 30px; text-align: center; }
.home-hero { padding-top: 40px; }
.hero h1, .page-heading h1 { color: #fff; font-size: 40px; line-height: 1.12; letter-spacing: -.035em; }
.hero p, .page-heading p { max-width: 620px; margin: 10px auto 0; color: var(--on-2); font-size: 16px; }
.blog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
}
.blog-heading p { margin-left: 0; }
.blog-heading .button { flex-shrink: 0; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 { color: #fff; font-size: 24px; }

/* ---------- Purchase block ---------- */
.purchase-section {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  box-shadow: 0 30px 60px -36px rgba(28, 12, 74, .55);
  scroll-margin-top: 16px;
}
.delivery-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--glass-line);
}
.delivery-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  transition: background-color .15s, color .15s;
}
.delivery-tab:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.delivery-tab.active, .delivery-tab.active:hover {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 18px -10px rgba(28, 12, 74, .55);
}
.delivery-tab .icon { width: 21px; height: 21px; }
.delivery-tab-label { display: flex; align-items: baseline; gap: 5px; min-width: 0; white-space: nowrap; }
.delivery-tab-label b { font-weight: 700; }
.delivery-tab-label small { font-size: inherit; font-weight: 600; }
.tab-title-short { display: none; }

.transfer-layout { display: block; }
.calculator { padding: 24px 26px 22px; }
.purchase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.purchase-heading h2 { color: #fff; font-size: 21px; letter-spacing: -.02em; }
.purchase-heading p { margin-top: 4px; color: var(--on-2); font-size: 14px; }
.rate-pill, .soft-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.soft-badge .icon { width: 15px; height: 15px; }

.exchange-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.amount-field {
  display: block;
  margin: 0;
  padding: 11px 16px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  cursor: text;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.amount-field:hover { border-color: rgba(255, 255, 255, .42); }
.amount-field:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}
.amount-field > span { display: block; color: #fff; font-size: 12px; font-weight: 600; }
.amount-field > div { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.amount-field > div > span { color: var(--on-2); font-size: 13px; font-weight: 600; }
.amount-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -.03em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.amount-field input::-webkit-outer-spin-button,
.amount-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-field input[aria-invalid="true"] { color: var(--error-on-glass); }
.exchange-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.exchange-symbol .icon { width: 18px; height: 18px; }

.amount-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 6px;
  margin: 24px 0 9px;
  border-radius: 99px;
  background: linear-gradient(to right, #fff var(--progress, 20%), rgba(255, 255, 255, .25) var(--progress, 20%));
  cursor: pointer;
}
.amount-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(28, 12, 74, .35);
  transition: transform .15s;
}
.amount-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(28, 12, 74, .35);
}
.amount-range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.amount-range:focus-visible { outline-offset: 8px; }
.range-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--on-2);
  font-size: 12px;
}
.quick-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-amounts .chip { min-width: 72px; font-variant-numeric: tabular-nums; }
.calculator .form-error { margin: 12px 0 0; color: var(--error-on-glass); font-size: 13px; font-weight: 600; }
.form-error:empty { display: none; }
.calculator > .primary { width: 100%; min-height: 54px; margin-top: 16px; font-size: 16px; }
.purchase-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: var(--on-2);
  font-size: 13px;
}
.purchase-bottom > span { display: inline-flex; align-items: center; gap: 7px; }
.purchase-bottom .icon { width: 17px; height: 17px; }
.stock b { color: #fff; font-weight: 700; }
.stock .icon { color: var(--ok); }
.stock.empty .icon { color: #ffb8c6; }

/* Home: compact calculator with the button next to the fields. */
.is-home .amount-range, .is-home .range-labels { display: none; }
@media (min-width: 641px) {
  .is-home .calculator {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    column-gap: 18px;
  }
  .is-home .purchase-heading { grid-column: 1 / -1; }
  .is-home .exchange-fields { grid-column: 1; grid-row: 2; }
  .is-home .calculator > .primary { grid-column: 2; grid-row: 2; align-self: stretch; height: auto; margin: 0; }
  .is-home .quick-amounts { display: none; }
  .is-home .calculator .form-error, .is-home .purchase-bottom { grid-column: 1 / -1; }
}

/* Packages: instant and codes */
.packages-body { padding: 24px 26px 26px; }
.packages-body > .purchase-heading { align-items: flex-start; margin-bottom: 20px; }
.package-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 18px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-align: left;
  transition: background-color .18s, border-color .18s, box-shadow .2s, transform .2s var(--ease);
}
.package-card:not(.gift-card):hover:not(:disabled) {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .8);
}
.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 16px;
}
.package-top > span:first-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
}
.package-top .icon { width: 26px; height: 26px; }
.package-badge {
  min-width: 0;
  overflow: hidden;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.package-amount { font-size: 34px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.package-unit { margin: 3px 0 18px; color: #fff; font-size: 13px; opacity: .9; }
.code-decoration { display: block; margin: -6px 0 16px; color: rgba(255, 255, 255, .5); font-size: 13px; letter-spacing: 3px; }
.package-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.package-footer strong { font-size: 19px; font-weight: 750; white-space: nowrap; }
.package-footer > span {
  padding: 5px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.package-card:hover:not(:disabled) .package-footer > span { background: #fff; color: var(--accent); }
.package-stock { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #fff; font-size: 12px; }
.package-stock::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--ok); }
.sold-out { opacity: .55; }
.sold-out .package-stock::before { background: #ffb8c6; }
.gift-card { border-color: rgba(255, 255, 255, .2); background: linear-gradient(150deg, #54408a, #33255c); }
.gift-card:nth-child(4n+2) { background: linear-gradient(150deg, #3f64a0, #263f6d); }
.gift-card:nth-child(4n+3) { background: linear-gradient(150deg, #925487, #5e2f60); }
.gift-card:nth-child(4n+4) { background: linear-gradient(150deg, #377a78, #1f4d4f); }
.gift-card::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 140px;
  height: 140px;
  border: 22px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  pointer-events: none;
}
.gift-card:hover:not(:disabled) { border-color: rgba(255, 255, 255, .5); filter: brightness(1.08); }
.expand-packages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, .42);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  transition: background-color .15s, border-color .15s;
}
.expand-packages:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .8); border-style: solid; }
.expand-packages .icon { width: 18px; height: 18px; transition: transform .2s; }
.expand-packages[aria-expanded="true"] .icon { transform: rotate(180deg); }
.delivery-hint {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}
.delivery-hint .icon { width: 19px; height: 19px; margin-top: 2px; color: #fff; }
.delivery-hint p { color: #fff; font-size: 14px; line-height: 1.55; }

/* ---------- Article cards ---------- */
.articles-section { margin-top: 44px; }
.page-blog .articles-section { margin-top: 0; }
.page-blog .articles-section > .section-heading { display: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-empty { margin-top: 24px; color: var(--on-2); text-align: center; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.article-card.has-popover { z-index: 20; }
.article-cover {
  position: relative;
  display: block;
  margin: 8px 8px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #ece8fb;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cover-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(39, 31, 61, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.cover-label .icon { width: 13px; height: 13px; }
.article-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 16px 20px 16px; }
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink-3);
  font-size: 12px;
}
.article-meta > span:first-child {
  min-width: 0;
  overflow: hidden;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-meta > span:last-child { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.article-meta .icon { width: 15px; height: 15px; }
.article-card h3 { color: var(--ink); font-size: 18px; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.article-card h3 a { transition: color .15s; }
/* The title link covers the whole card; reactions and comments sit above it. */
.article-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.article-card h3 a:focus-visible { outline: none; }
.article-card:has(h3 a:focus-visible) { outline: 3px solid #fff; outline-offset: 3px; }
.article-card p {
  display: -webkit-box;
  margin: 8px 0 16px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-author { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.card-author img { width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px; object-fit: cover; }
.card-author span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-social { position: relative; z-index: 2; display: flex; flex-shrink: 0; align-items: center; gap: 2px; }
.comment-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s;
}
a.comment-count:hover { background: var(--accent-soft); color: var(--accent); }
.comment-count .icon { width: 17px; height: 17px; }

/* Featured layout: the first card is wide with the cover on the left. */
.featured-articles .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-articles .article-card:first-child { grid-column: 1 / -1; flex-direction: row; }
.featured-articles .article-card:first-child .article-cover {
  flex: 0 0 42%;
  aspect-ratio: auto;
  min-height: 236px;
  margin: 8px 0 8px 8px;
}
.featured-articles .article-card:first-child .article-card-body { padding: 22px 26px 18px; }
.featured-articles .article-card:first-child h3 { font-size: 23px; line-height: 1.3; }
.featured-articles .article-card:first-child p { font-size: 15px; -webkit-line-clamp: 2; line-clamp: 2; }

/* ---------- Reactions ---------- */
.reaction-group.is-compact { position: relative; }
.reaction-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 11px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color .15s, border-color .15s, color .15s;
}
.reaction-trigger:hover, .reaction-trigger[aria-expanded="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.reaction-trigger.is-active { border-color: var(--accent-line); color: var(--accent); }
.reaction-preview { display: inline-flex; font-size: 15px; line-height: 1; letter-spacing: -3px; padding-right: 3px; }
.reaction-popover {
  position: absolute;
  right: -6px;
  bottom: calc(100% + 12px);
  z-index: 30;
  width: max-content;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  transform: translateX(var(--shift, 0px));
  transform-origin: bottom right;
  animation: popover-in .16s var(--ease);
}
.reaction-popover::after {
  content: "";
  position: absolute;
  right: calc(34px + var(--shift, 0px));
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}
.reaction-popover.is-below { top: calc(100% + 12px); bottom: auto; transform-origin: top right; }
.reaction-popover.is-below::after { top: -7px; bottom: auto; transform: rotate(225deg); }
.reaction-popover-title { display: block; margin: 0 4px 6px; color: var(--ink-3); font-size: 12px; font-weight: 650; }
.reaction-popover .reaction-row { display: grid; grid-template-columns: repeat(5, 46px); gap: 4px; }
.reaction-popover .reaction {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 52px;
  padding: 4px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-3);
  transition: background-color .12s, border-color .12s;
}
.reaction-popover .reaction span { font-size: 22px; line-height: 1.15; transition: transform .15s var(--ease); }
.reaction-popover .reaction b { font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.reaction-popover .reaction:hover { background: var(--soft); }
.reaction-popover .reaction:hover span { transform: scale(1.2); }
.reaction-popover .reaction.selected { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

.reactions {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.reactions h2 { margin-bottom: 16px; color: #fff; font-size: 22px; }
.reactions .reaction-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.reactions .reaction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--glass-line);
  border-radius: 14px;
  background: transparent;
  color: #fff;
  transition: background-color .15s, border-color .15s;
}
.reactions .reaction span { font-size: 22px; line-height: 1; transition: transform .15s var(--ease); }
.reactions .reaction b { color: #fff; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.reactions .reaction:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .8); }
.reactions .reaction:hover span { transform: scale(1.15); }
.reactions .reaction.selected, .reactions .reaction.selected:hover { background: #fff; border-color: #fff; }
.reactions .reaction.selected b { color: var(--accent); }

/* ---------- How it works ---------- */
.how-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  counter-reset: step;
}
.page-home .how-section { display: none; }
.how-section h2 { color: #fff; font-size: 26px; line-height: 1.2; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how-grid > div {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
  counter-increment: step;
}
.how-grid > div::after {
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--on-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.how-grid .icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  padding: 9px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
}
.how-grid h3 { margin-bottom: 6px; color: #fff; font-size: 16px; }
.how-grid p { color: var(--on-2); font-size: 14px; line-height: 1.55; }

/* ---------- Reviews ---------- */
.reviews-section { margin-top: 48px; }
.page-reviews .page-heading { padding-bottom: 8px; }
.page-reviews .reviews-section { margin-top: 0; }
.page-reviews .community-composer { max-width: 720px; margin: 18px auto 40px; }
.reviews-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: var(--glass);
}
.review-card::before {
  content: "\201D";
  position: absolute;
  top: 2px;
  right: 18px;
  color: rgba(255, 255, 255, .2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  pointer-events: none;
}
.review-author { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.review-author > img { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .2); }
.review-author > div { flex: 1; min-width: 0; }
.review-author strong { display: block; color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.review-author time { display: block; margin-top: 1px; color: var(--on-3); font-size: 12px; }
.review-sentiment { font-size: 20px; }
.review-card:has(.review-sentiment)::before { display: none; }
.review-card:has(.review-sentiment) .review-author { padding-right: 0; }
.review-card p { margin-top: 14px; color: var(--on-2); font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-wrap; }
#local-reviews:empty { display: none; }
#local-reviews:not(:empty) { margin-bottom: 16px; }
#more-reviews { margin-top: 18px; }

/* ---------- Composer (paper) ---------- */
.community-composer {
  margin: 20px 0 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.composer-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.composer-heading > img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.composer-heading h3 { color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.composer-heading span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 13px; }
.review-mood { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.review-mood label { position: relative; margin: 0; }
.review-mood input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-mood label > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.review-mood label:hover > span { border-color: var(--accent-line); background: var(--soft); }
.review-mood input:checked + span { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.review-mood input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.community-composer textarea {
  display: block;
  width: 100%;
  min-height: 104px;
  max-height: 280px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf9fe;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  resize: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.community-composer textarea::placeholder { color: #8f88a3; }
.community-composer textarea:hover { border-color: #d5ccef; }
.community-composer textarea:focus { outline: 0; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(106, 79, 214, .14); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.composer-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.composer-counter { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.composer-actions > .primary { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.composer-actions .icon { width: 17px; height: 17px; }
.emoji-picker { position: relative; }
.emoji-picker > summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s, color .15s;
}
.emoji-picker > summary::-webkit-details-marker { display: none; }
.emoji-picker > summary:hover, .emoji-picker[open] > summary { background: var(--accent-soft); color: var(--accent); }
.emoji-picker > div {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 40px);
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-pop);
  animation: popover-in .16s var(--ease);
  transform-origin: bottom left;
}
.emoji-picker button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; font-size: 22px; transition: background-color .12s; }
.emoji-picker button:hover { background: var(--soft); }
.community-composer .form-error { margin-top: 10px; color: var(--error-on-paper); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-section { margin-top: 48px; }
.page-heading + .faq-section { margin-top: 0; }
.faq-list { overflow: hidden; border: 1px solid var(--glass-line); border-radius: var(--radius-lg); background: var(--glass); }
.faq-list details + details { border-top: 1px solid rgba(255, 255, 255, .16); }
.faq-list details[open] { background: rgba(255, 255, 255, .04); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
  transition: background-color .15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: rgba(255, 255, 255, .05); }
.faq-list summary:focus-visible { outline-offset: -3px; border-radius: 4px; }
.faq-list summary > span {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.faq-list summary .icon { width: 16px; height: 16px; }
.faq-list details[open] > summary > span { background: #fff; color: var(--accent); transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { max-width: 760px; color: #fff; font-size: 15px; line-height: 1.7; }
.faq-answer a {
  display: inline-flex;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .5);
  text-underline-offset: 4px;
  transition: text-decoration-color .15s;
}
.faq-answer a:hover { text-decoration-color: #fff; }
.help-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 24px 26px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.help-banner h2 { color: #fff; font-size: 22px; }
.help-banner p { margin-top: 4px; color: var(--on-2); }

/* ---------- Support ---------- */
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; gap: 24px; }
.support-layout > aside { display: grid; gap: 16px; }
.support-note {
  padding: 24px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}
.support-note > .icon { width: 26px; height: 26px; margin-bottom: 14px; }
.support-note h2 { color: #fff; font-size: 20px; }
.support-note p { margin-top: 8px; color: var(--on-2); font-size: 14px; line-height: 1.6; }
.support-note .text-link { margin-top: 14px; text-decoration-color: rgba(255, 255, 255, .5); }
.support-note .text-link:hover { text-decoration-color: #fff; }
.support-note.small {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-style: dashed;
  background: rgba(255, 255, 255, .05);
}
.support-note.small > .icon { width: 20px; height: 20px; margin: 1px 0 0; }
.support-note.small p { margin: 0; font-size: 13px; }
.vk-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.vk-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #0077ff;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.vk-card .eyebrow { color: var(--accent); }
.vk-card h2 { color: var(--ink); font-size: 20px; }
.vk-card p { margin: 8px 0 16px; color: var(--ink-2); font-size: 14px; }
.vk-card .button { width: 100%; min-height: 44px; font-size: 14px; }
.vk-card:hover .button { background: var(--accent-hover); }

.panel { border: 1px solid var(--glass-line); border-radius: var(--radius-xl); background: var(--glass); }
.support-form { padding: 28px; }
.support-form h2 { color: #fff; font-size: 24px; }
.support-form > p { margin: 6px 0 22px; color: var(--on-2); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.support-form label { display: block; margin: 0 0 18px; color: #fff; font-size: 14px; font-weight: 600; }
.support-form :is(input, select, textarea) {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.support-form :is(input, textarea)::placeholder { color: rgba(255, 255, 255, .64); }
.support-form :is(input, select, textarea):hover { border-color: rgba(255, 255, 255, .55); }
.support-form :is(input, select, textarea):focus {
  outline: 0;
  border-color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}
.support-form :is(input, select, textarea):user-invalid { border-color: #ffb8c6; }
.support-form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.support-form select:invalid { color: rgba(255, 255, 255, .64); }
.support-form select option { background: #fff; color: var(--ink); }
.support-form textarea { min-height: 150px; resize: vertical; }
.support-form .form-error { margin: -4px 0 14px; color: var(--error-on-glass); font-size: 13px; font-weight: 600; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.support-success {
  padding: 36px 28px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  text-align: center;
}
.support-success h2 { color: #fff; font-size: 24px; }
.support-success p { margin: 8px 0 20px; color: var(--on-2); }

/* ---------- Article page ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: start;
  gap: 48px;
  margin-top: 28px;
}
.reading-article { min-width: 0; }
.article-kicker { display: flex; gap: 12px; color: var(--on-2); font-size: 13px; }
.article-kicker span { display: inline-flex; align-items: center; gap: 6px; }
.article-kicker .icon { width: 16px; height: 16px; }
.reading-article h1 { margin-top: 12px; color: #fff; font-size: 42px; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.article-lead { margin-top: 16px; color: var(--on-2); font-size: 18px; line-height: 1.65; }
.author-line { display: flex; align-items: center; gap: 10px; margin: 22px 0 26px; color: var(--on-2); font-size: 14px; }
.author-line > span:nth-of-type(1) { color: #fff; font-weight: 600; }
.author-line > span:nth-of-type(2) { margin-left: auto; font-size: 13px; }
.article-author-avatar { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, .2); }
.article-hero-image { width: 100%; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .1); box-shadow: var(--shadow-card); }
.prose { margin-top: 30px; color: var(--on-2); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 40px; color: #fff; font-size: 26px; line-height: 1.25; scroll-margin-top: 24px; }
.prose h3 { margin-top: 28px; color: #fff; font-size: 20px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: #fff; }
.prose strong { color: #fff; }
.prose a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .55);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}
.prose a:hover { text-decoration-color: #fff; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid #fff; border-radius: 0 12px 12px 0; background: var(--glass); }

.comments { margin-top: 44px; scroll-margin-top: 16px; }
.comments h2 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 24px; }
.comments h2 > [data-comment-count] {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 14px;
  letter-spacing: 0;
}
#comments-list, #local-comments { display: grid; gap: 12px; }
#local-comments:not(:empty) { margin-bottom: 12px; }
.comment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--glass);
}
.comment-avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .2); }
.comment > div { min-width: 0; }
.comment strong { display: block; color: #fff; font-size: 14px; }
.comment p { margin-top: 4px; color: var(--on-2); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
#local-comments .comment p { white-space: pre-wrap; }

.article-sidebar { position: sticky; top: 24px; }
.sidebar-inner { display: grid; gap: 20px; }
.sidebar-inner > .eyebrow { margin: 0 0 -10px; }
#toc { display: grid; border-left: 2px solid rgba(255, 255, 255, .2); }
#toc:empty { display: none; }
#toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: var(--on-2);
  font-size: 14px;
  line-height: 1.45;
  transition: color .15s, border-color .15s;
}
#toc a:hover { color: #fff; border-left-color: #fff; }
.sidebar-cta { padding: 22px; border: 1px solid var(--glass-line); border-radius: var(--radius-lg); background: var(--glass); }
.sidebar-cta > .icon { width: 30px; height: 30px; margin-bottom: 12px; }
.sidebar-cta h3 { color: #fff; font-size: 20px; line-height: 1.25; }
.sidebar-cta p { margin: 8px 0 16px; color: var(--on-2); font-size: 14px; }
.sidebar-cta .button { width: 100%; min-height: 44px; font-size: 14px; }

/* ---------- Profile and personal post ---------- */
.profile-page {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
  padding: 28px;
}
.profile-page > img { width: 128px; height: 128px; flex-shrink: 0; border-radius: 28px; object-fit: cover; background: rgba(255, 255, 255, .2); }
.account-details { flex: 1; min-width: 0; }
.account-details h2 { color: #fff; font-size: 28px; overflow-wrap: anywhere; }
.account-details > p { margin-top: 2px; color: var(--on-2); font-size: 16px; }
.account-id-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--on-2); font-size: 14px; }
.account-id-row b { color: #fff; }
.account-id-row .icon-button { width: 32px; height: 32px; border-radius: 9px; }
.account-id-row .icon { width: 16px; height: 16px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.profile-actions .button { min-height: 44px; font-size: 14px; }
.empty-state {
  max-width: 540px;
  margin: 12px auto 0;
  padding: 36px 28px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-xl);
  background: var(--glass);
  text-align: center;
}
.packages-body .empty-state { max-width: none; margin: 0 0 4px; }
.empty-state h1, .empty-state h2, .empty-state h3 { color: #fff; }
.empty-state h1 { font-size: 30px; }
.empty-state p { margin: 8px 0 22px; color: var(--on-2); }
.not-found, .page-my-post .empty-state { margin-top: 40px; }
.error-code { display: block; margin-bottom: 10px; color: #fff; font-size: 88px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }

.personal-post-section { margin-top: 32px; }
.page-blog .personal-post-section { margin: 0 0 32px; }
.personal-post-section > h2 { margin-bottom: 14px; color: #fff; font-size: 22px; }
.personal-post-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.personal-post-card > img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.personal-post-card > div { min-width: 0; padding: 22px 24px; }
.personal-post-card > div > span:first-child {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}
.personal-post-card h3 { margin: 10px 0 6px; color: var(--ink); font-size: 21px; overflow-wrap: anywhere; }
.personal-post-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.personal-post-card .text-link { margin-top: 12px; color: var(--accent); }
.personal-post-card:hover .text-link { text-decoration-color: currentColor; }
.personal-post-page { max-width: 760px; margin: 28px auto 0; }
.personal-post-page > .text-link { text-decoration-color: rgba(255, 255, 255, .5); }
.personal-post-page > h1 { margin-top: 18px; color: #fff; font-size: 40px; line-height: 1.15; overflow-wrap: anywhere; }
.personal-post-page > .author-line { margin: 20px 0 24px; }
.personal-post-text { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(22, 8, 58, .2);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px var(--gutter) 34px;
}
.footer-brand .logo { font-size: 22px; }
.footer-brand > p { max-width: 340px; margin-top: 14px; color: var(--on-2); font-size: 14px; line-height: 1.6; }
.footer-facts { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.footer-facts li { display: flex; align-items: center; gap: 10px; color: var(--on-2); font-size: 13px; }
.footer-facts .icon { width: 17px; height: 17px; color: #fff; }
.footer-facts b { color: #fff; font-weight: 650; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-col h2 { margin-bottom: 10px; color: var(--on-3); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: var(--on-2);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s;
}
.footer-col a:hover { color: #fff; text-decoration-color: currentColor; }
.footer-col .icon { width: 14px; height: 14px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: calc(1200px - var(--gutter) * 2);
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: var(--on-3);
  font-size: 13px;
}

/* ---------- Dialogs ---------- */
.modal {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 28px;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(22, 8, 58, .5);
}
.modal[open] { animation: modal-in .2s var(--ease); }
.modal::backdrop, .mobile-sheet::backdrop { background: rgba(26, 12, 56, .55); backdrop-filter: blur(4px); }
.modal h2 { margin: 0 40px 8px 0; color: var(--ink); font-size: 24px; }
.modal h3 { color: var(--ink); }
.modal p { color: var(--ink-2); font-size: 15px; }
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink-2);
  transition: background-color .15s, color .15s;
}
.modal-close:hover { background: var(--accent-soft); color: var(--accent); }
.modal-close .icon { width: 18px; height: 18px; }
.modal label:not(.button):not(.sr-only) { display: block; margin: 0 0 16px; color: var(--ink); font-size: 14px; font-weight: 600; }
.modal :is(input:not([type="file"]):not([type="radio"]):not([type="checkbox"]), textarea) {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #faf9fe;
  color: var(--ink);
  font-size: 15px;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.modal :is(input, textarea)::placeholder { color: #8f88a3; }
.modal :is(input, textarea):hover { border-color: #d5ccef; }
.modal :is(input, textarea):focus { outline: 0; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(106, 79, 214, .14); }
.modal textarea { min-height: 140px; resize: vertical; }
.modal .form-error { margin-top: 10px; color: var(--error-on-paper); font-size: 13px; font-weight: 600; }
.search-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 50px; gap: 8px; margin-top: 18px; }
.modal .search-input-row > input { height: 50px; margin: 0; }
.search-input-row > .button { min-height: 50px; padding: 0; }
.account-results { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.account-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, background-color .15s;
}
.account-result:hover:not(:disabled) { border-color: var(--accent-line); background: var(--accent-soft); }
.account-result > img { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: var(--soft); }
.result-info { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.result-info strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.result-info > span { margin-top: 2px; color: var(--ink-2); font-size: 13px; overflow-wrap: anywhere; }
.result-info small { color: var(--ink-3); font-size: 12px; }
.result-select {
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.account-result:hover:not(:disabled) .result-select { background: var(--accent); color: #fff; }
.checkout-account { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 12px; border-radius: 14px; background: var(--soft); }
.checkout-account > img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; }
.checkout-account > div { flex: 1; min-width: 0; }
.checkout-account strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.checkout-account span { color: var(--ink-3); font-size: 12px; }
.checkout-account > .text-link {
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  transition: background-color .15s;
}
.checkout-account > .text-link:hover { background: var(--accent-soft); }
.order-summary { margin: 0 0 20px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-summary dt { color: var(--ink-3); font-size: 14px; }
.order-summary dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.order-summary .order-total { padding-top: 14px; border-bottom: 0; }
.order-total dt { color: var(--ink); font-weight: 700; }
.order-total dd { color: var(--accent); font-size: 22px; font-weight: 800; }
.modal .checkout-status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fff5e6; color: #6d4300; font-size: 14px; }
.checkout-status a { color: inherit; font-weight: 650; text-decoration: underline; }
.post-modal { width: min(580px, calc(100vw - 32px)); }
#post-form { margin-top: 20px; }
.post-cover-control { display: flex; align-items: center; gap: 8px; margin: 2px 0 16px; }
.post-cover-control .button { min-height: 42px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
.post-cover-control .icon { width: 17px; height: 17px; }
#post-cover-preview { width: 100%; max-height: 220px; margin-bottom: 16px; border-radius: 14px; object-fit: cover; }
#post-created { padding-top: 12px; text-align: center; }
.post-success-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
}
#post-created h3 { font-size: 22px; }
#post-created p { margin: 6px 0 20px; }
#post-limit > p { margin: 16px 0 20px; }

/* ---------- Mobile navigation ---------- */
.mobile-nav { display: none; }
.mobile-sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 88dvh;
  margin: 0;
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: var(--ink);
}
.mobile-sheet[open] { animation: sheet-in .24s var(--ease); }
.sheet-handle { width: 38px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #e2dcef; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.sheet-heading h2 { color: var(--ink); font-size: 22px; }
.sheet-heading .icon-button { width: 36px; height: 36px; border: 0; background: var(--soft); color: var(--ink-2); }
.sheet-heading .icon-button:hover { background: var(--accent-soft); color: var(--accent); }
.mobile-sheet nav { display: grid; gap: 2px; }
.mobile-sheet nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 550;
  transition: background-color .15s;
}
.mobile-sheet nav a:hover { background: var(--soft); }
.mobile-sheet nav .icon { width: 22px; height: 22px; color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 550;
  box-shadow: 0 16px 40px -12px rgba(22, 8, 58, .6);
  transform: translateX(-50%);
  animation: toast-in .2s var(--ease);
}

/* ---------- Animations ---------- */
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes popover-in { from { opacity: 0; transform: translateX(var(--shift, 0px)) translateY(4px) scale(.97); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Lift effects only where a real pointer can hover. */
@media (hover: hover) {
  .button:hover:not(:disabled) { transform: translateY(-1px); }
  .article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
  .article-card:hover .article-cover img { transform: scale(1.03); }
  .article-card:hover h3 a { color: var(--accent); }
  .package-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(28, 12, 74, .7); }
  .personal-post-card:hover, .vk-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
}

/* ---------- Responsive ---------- */
@media (min-width: 1440px) {
  .home-hero { padding-top: 52px; }
}

@media (max-width: 1060px) {
  .header-inner { gap: 16px; }
  .main-nav a { padding: 8px 9px; font-size: 13.5px; }
  .footer-inner { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .article-sidebar { position: static; }
  .article-sidebar .eyebrow, #toc { display: none; }
  .sidebar-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .how-section h2 br { display: none; }
  .support-layout { grid-template-columns: minmax(0, 1fr); }
  .support-layout > .support-form, .support-layout > .support-success { order: -1; }
  .delivery-tab-label small { display: none; }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .footer-brand > .logo { grid-column: 1 / -1; justify-self: start; }
  .footer-facts { margin-top: 14px; }
}

@media (max-width: 760px) {
  .profile-name { display: none; }
  .profile-button { padding: 5px 8px 5px 5px; gap: 6px; }
  .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Header switches to the bottom bar before the links start to collide. */
@media (max-width: 720px) {
  .site-footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(39, 31, 61, .08);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -12px 30px -14px rgba(22, 8, 58, .35);
  }
  .mobile-nav > a, .mobile-nav > button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    transition: color .15s, background-color .15s;
  }
  .mobile-nav .icon { width: 23px; height: 23px; }
  .mobile-nav [aria-current="page"], .mobile-nav [aria-expanded="true"] { color: var(--accent); }
  .mobile-nav [aria-current="page"]::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--accent);
  }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) and (hover: hover) {
  .mobile-nav > a:hover, .mobile-nav > button:hover { color: var(--ink); background: var(--soft); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-inner { min-height: 64px; }
  .logo { font-size: 22px; }
  .logo-symbol { width: 34px; height: 34px; }
  .login-button { min-height: 40px; padding: 6px 12px; }
  .profile-button { min-height: 42px; }
  .breadcrumbs { padding-top: 14px; font-size: 12px; }
  .breadcrumbs [aria-current="page"] { max-width: 70vw; }
  .hero, .page-heading { padding: 18px 0 20px; }
  .home-hero { padding-top: 22px; }
  .hero h1, .page-heading h1 { font-size: 30px; }
  .hero p, .page-heading p { font-size: 14px; }
  .site-main { padding-bottom: 48px; }
  .section-heading h2 { font-size: 21px; }

  .purchase-section { border-radius: var(--radius-lg); }
  .delivery-tabs { gap: 4px; padding: 6px; }
  .delivery-tab { gap: 6px; min-height: 46px; padding: 8px 6px; border-radius: 12px; font-size: 13.5px; }
  .delivery-tab .icon { width: 18px; height: 18px; }
  .tab-title-full, .delivery-tab-label small { display: none; }
  .tab-title-short { display: inline; }
  .calculator, .packages-body { padding: 18px 16px; }
  .purchase-heading h2 { font-size: 18px; }
  .packages-body > .purchase-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .exchange-fields { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 6px; }
  .exchange-symbol { width: 28px; height: 28px; }
  .exchange-symbol .icon { width: 15px; height: 15px; }
  .amount-field { padding: 9px 12px 10px; }
  .amount-field > span { font-size: 11px; }
  .amount-field > div { display: block; }
  .amount-field input { font-size: 25px; }
  .amount-field > div > span { display: block; font-size: 11px; }
  .quick-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .quick-amounts .chip { min-width: 0; padding: 6px 4px; font-size: 13px; }
  .calculator > .primary { min-height: 50px; }
  .purchase-bottom { flex-wrap: wrap; font-size: 12px; }
  .package-grid { gap: 10px; }
  .package-card { padding: 14px 13px 13px; border-radius: 16px; }
  .package-top { min-height: 34px; margin-bottom: 12px; }
  .package-top > span:first-child { width: 34px; height: 34px; border-radius: 10px; }
  .package-top .icon { width: 22px; height: 22px; }
  .package-amount { font-size: 28px; }
  .package-unit { margin-bottom: 14px; }
  .package-footer { flex-wrap: wrap; gap: 6px; padding-top: 12px; }
  .package-footer strong { font-size: 17px; }
  .package-footer > span { font-size: 12px; padding: 4px 9px; }
  .package-stock { font-size: 11px; }
  .delivery-hint p { font-size: 13px; }

  .articles-section, .reviews-section, .faq-section, .how-section { margin-top: 36px; }
  .article-grid, .featured-articles .article-grid, .reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .featured-articles .article-card:first-child { flex-direction: column; }
  .featured-articles .article-card:first-child .article-cover { flex: none; aspect-ratio: 16 / 9; min-height: 0; margin: 8px 8px 0; }
  .featured-articles .article-card:first-child .article-card-body { padding: 16px 18px; }
  .featured-articles .article-card:first-child h3 { font-size: 19px; }
  .featured-articles .article-card:first-child p { font-size: 14px; }
  .article-card-body { padding: 16px 18px; }
  .article-card h3 { font-size: 19px; }

  .blog-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .blog-heading .button { width: 100%; }
  .filter-row { flex-wrap: nowrap; margin: 0 calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter) 4px; overflow-x: auto; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .chip { flex-shrink: 0; }

  .how-section { padding: 20px 16px; border-radius: var(--radius-lg); }
  .how-section h2 { font-size: 22px; }
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .how-grid > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 14px 16px; }
  .how-grid .icon { grid-row: span 2; margin: 0; }
  .how-grid h3 { margin: 0 34px 2px 0; }

  .review-card { padding: 18px; }
  .review-card p { font-size: 14px; }
  .community-composer { margin: 16px 0 24px; padding: 18px 16px; border-radius: 18px; }
  .page-reviews .community-composer { margin: 12px 0 32px; }
  .community-composer textarea { font-size: 16px; }
  .composer-actions { flex-wrap: wrap; }
  .composer-actions > .primary { flex: 1 0 auto; }

  .faq-list summary { padding: 16px; font-size: 15px; }
  .faq-answer { padding: 0 16px 18px; }
  .faq-answer p { font-size: 14px; }
  .help-banner { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .help-banner .button { width: 100%; }

  .support-form { padding: 22px 16px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .support-form :is(input, select, textarea) { font-size: 16px; }

  .article-layout { margin-top: 18px; }
  .reading-article h1 { font-size: 30px; }
  .article-lead { font-size: 16px; }
  .author-line { font-size: 13px; }
  .article-hero-image { border-radius: var(--radius); }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 32px; font-size: 22px; }
  .reactions { padding: 18px 14px; }
  .reactions h2 { font-size: 20px; }
  .reactions .reaction-row { gap: 6px; }
  .reactions .reaction { flex-direction: column; gap: 2px; min-height: 58px; padding: 6px 2px; }
  .reactions .reaction b { font-size: 12px; }
  .comments h2 { font-size: 22px; }
  .comment { padding: 14px; gap: 12px; }
  .sidebar-inner { grid-template-columns: minmax(0, 1fr); }

  .profile-page { flex-direction: column; padding: 24px 18px; text-align: center; }
  .profile-page > img { width: 108px; height: 108px; border-radius: 24px; }
  .account-id-row, .profile-actions { justify-content: center; }
  .profile-actions > .button { width: 100%; }
  .personal-post-card { grid-template-columns: minmax(0, 1fr); }
  .personal-post-card > img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .personal-post-card > div { padding: 18px; }
  .personal-post-page > h1 { font-size: 30px; }
  .empty-state { padding: 28px 18px; }

  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 32px; padding-bottom: 26px; }
  .footer-brand { display: block; }
  .footer-col:nth-child(2) { grid-column: 1; grid-row: 2; }
  .footer-col:nth-child(3) { grid-column: 2; grid-row: 2 / span 2; }
  .footer-col:nth-child(4) { grid-column: 1; grid-row: 3; }
  .footer-bottom { flex-direction: column; padding-bottom: 20px; }

  .modal { padding: 24px 20px; border-radius: 20px; }
  .modal h2 { font-size: 22px; }
  .modal :is(input, textarea) { font-size: 16px; }
  .account-result > img { width: 50px; height: 50px; }
}

@media (max-width: 374px) {
  .delivery-tab { flex-direction: column; gap: 3px; min-height: 54px; font-size: 12.5px; }
  .package-grid { grid-template-columns: minmax(0, 1fr); }
  .reaction-popover .reaction-row { grid-template-columns: repeat(5, 42px); }
  .calculator { padding: 16px 12px; }
  .exchange-fields { grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr); gap: 4px; }
  .exchange-symbol { width: 22px; height: 22px; }
  .exchange-symbol .icon { width: 13px; height: 13px; }
  .amount-field { padding: 8px 10px 9px; }
  .amount-field > span { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .amount-field input { font-size: 22px; }
  .hero h1, .page-heading h1 { font-size: 27px; }
}

@media (max-width: 640px) and (max-height: 740px) {
  .page-home .hero p { display: none; }
  .page-home .hero h1 { font-size: 26px; }
  .page-home .quick-amounts { display: none; }
}

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