/* =====================================================================
   ELEGANTEA by Чайный Палач
   Две темы: «Пудра» (светлая) и «Бордо» (тёмная). Розовое золото, арки,
   тонкая антиква, медленные анимации. Логика сайта — в assets/js/app.js.
   ===================================================================== */

:root {
  /* Пудра — розоватая слоновая кость, винная роза, розовое золото */
  --bg:        #F7EDEB;
  --bg-soft:   #F0DEDB;
  --card:      #FBF4F2;
  --text:      #3B1E26;
  --text-soft: #76545B;
  --muted:     #A28389;
  --line:      #E6CFCC;
  --accent:    #8F3A50;
  --accent-2:  #6E2A3C;
  --on-accent: #FBEFEC;
  --clay:      #B0475F;          /* бейджи, ошибки, «скидка» */
  --gold:      #B08562;
  --gold-grad: linear-gradient(100deg, #9A6E4E 0%, #D9B394 30%, #F4DCC6 48%, #C2946F 64%, #9A6E4E 100%);
  --glow:      rgba(222, 150, 168, .32);
  --motif:     #3B1E26;
  --khaki:     #B08562;
  --shadow:        0 34px 70px -40px rgba(90, 30, 45, .45);
  --shadow-soft:   0 12px 28px -18px rgba(90, 30, 45, .4);
  --shadow-float:  0 18px 44px -24px rgba(90, 30, 45, .45);

  --wax-hi: #E8A0B2; --wax: #B04A66; --wax-lo: #6A1C33; --wax-in: #8E3550; --wax-in-2: #B85A74; --wax-mark: #A2435C;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --radius: 14px;
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-pill: 999px;
  --arch: 999px 999px 12px 12px;
  --ease: cubic-bezier(.22, .61, .12, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 84px;
}

:root[data-theme='dark'] {
  /* Бордо — глубокое сливово-винное, розовое золото */
  --bg:        #1A0E12;
  --bg-soft:   #22131A;
  --card:      #26151C;
  --text:      #F4E4E1;
  --text-soft: #CBA9AE;
  --muted:     #8F6E75;
  --line:      #3B232B;
  --accent:    #E3A3B2;
  --accent-2:  #F0BCC7;
  --on-accent: #2A1219;
  --clay:      #E58FA4;
  --gold:      #D7B08C;
  --gold-grad: linear-gradient(100deg, #A87B57 0%, #E8C6A6 30%, #FBE6D2 48%, #D3A57F 64%, #A87B57 100%);
  --glow:      rgba(227, 120, 150, .16);
  --motif:     #F4E4E1;
  --khaki:     #D7B08C;
  --shadow:        0 34px 80px -36px rgba(0, 0, 0, .85);
  --shadow-soft:   0 12px 28px -18px rgba(0, 0, 0, .7);
  --shadow-float:  0 18px 44px -24px rgba(0, 0, 0, .7);
  --wax-hi: #F0AFC0; --wax: #BF5A76; --wax-lo: #73203A; --wax-in: #9A3D58; --wax-in-2: #C8687F; --wax-mark: #AE4B66;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); transition: background .8s var(--ease); }
body {
  font-family: var(--sans); font-size: 15.5px; line-height: 1.65;
  background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .8s var(--ease), color .8s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
em { font-style: italic; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; pointer-events: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }

/* зерно бумаги — фактура вместо плоской заливки */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: .045; mix-blend-mode: multiply;
}
:root[data-theme='dark'] body::after { opacity: .05; mix-blend-mode: screen; }
/* мягкое розовое свечение, медленно дышит */
.aura {
  position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vmax 34vmax at 18% 12%, var(--glow), transparent 60%),
    radial-gradient(36vmax 30vmax at 88% 70%, var(--glow), transparent 60%);
  animation: breathe 16s ease-in-out infinite alternate;
}
@keyframes breathe { to { transform: translate3d(3vmax, -2vmax, 0) scale(1.08); } }
.bg-art { display: none; }

/* золотой текст с медленным переливом */
.gold-text {
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -100% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .66rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 38px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--gold { color: var(--gold); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 52px; padding: 0 1.9em; border-radius: var(--radius-pill);
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: transform .5s var(--ease-out), box-shadow .5s, background .5s, color .5s, border-color .5s;
}
.btn--solid { background: var(--accent); color: var(--on-accent); box-shadow: 0 16px 34px -20px var(--accent); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -18px var(--accent); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--block { width: 100%; }
.btn .arr { transition: transform .5s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn--sheen::after {   /* блик, пробегающий по кнопке */
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-20deg); animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }

/* =====================================================================
   Интро — один раз за сессию
   ===================================================================== */
.intro { display: none; }
html.has-intro .intro {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: #2A121A; color: #F7E3DE; cursor: pointer;
  transition: transform 1.2s var(--ease-out) .1s;
}
html.has-intro .intro.is-done { transform: translateY(-100%); }
.intro__logo { text-align: center; }
.intro__word { display: flex; overflow: hidden; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 9vw, 112px); letter-spacing: .28em; padding-left: .28em; }
.intro__word span { display: inline-block; transform: translateY(110%); animation: rise 1s var(--ease-out) forwards; }
.intro__word span:nth-child(1) { animation-delay: .15s; } .intro__word span:nth-child(2) { animation-delay: .22s; }
.intro__word span:nth-child(3) { animation-delay: .29s; } .intro__word span:nth-child(4) { animation-delay: .36s; }
.intro__word span:nth-child(5) { animation-delay: .43s; } .intro__word span:nth-child(6) { animation-delay: .5s; }
.intro__word span:nth-child(7) { animation-delay: .57s; } .intro__word span:nth-child(8) { animation-delay: .64s; }
.intro__word span:nth-child(9) { animation-delay: .71s; }
.intro__line { height: 1px; width: 0; margin: 18px auto 14px; background: linear-gradient(100deg, #A87B57, #F4DCC6, #A87B57); animation: draw 1.1s var(--ease-out) .9s forwards; }
.intro__by { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(16px, 2.2vw, 22px); letter-spacing: .08em; color: #E6C2B4; opacity: 0; animation: fade 1s ease 1.3s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes draw { to { width: min(320px, 60vw); } }
@keyframes fade { to { opacity: 1; } }

/* =====================================================================
   Хедер: разделы · логотип · действия
   ===================================================================== */
.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .45s var(--ease), backdrop-filter .5s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__inner {
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter);
  height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  transition: height .5s var(--ease);
}
.header.is-scrolled .header__inner { height: 68px; }
.header__nav { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-soft); }
.header__nav a { position: relative; padding: 6px 0; transition: color .4s; }
.header__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.header__nav a:hover { color: var(--text); }
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; text-align: center; }
.brand__name { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; letter-spacing: .32em; padding-left: .32em; }
.brand__by { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: .82rem; letter-spacing: .05em; color: var(--muted); }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; position: relative; color: var(--text-soft);
  transition: color .4s var(--ease), background .4s var(--ease);
}
.icon-btn:hover { color: var(--text); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding-inline: 4px;
  display: grid; place-items: center; border-radius: 20px;
  background: var(--accent); color: var(--on-accent); font-size: .6rem; font-weight: 600;
  animation: count-in .5s var(--ease-out);
}
@keyframes count-in { from { transform: scale(0); } }
.cart-count[data-count='0'] { display: none; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }
.currency-toggle [data-currency-symbol] { font-family: var(--serif); font-size: 1.15rem; line-height: 1; }
.user-btn.is-auth { color: var(--accent); }
.fav-btn.is-active { color: var(--clay); }

/* =====================================================================
   Герой: заголовок + арка с фото и сургучной печатью
   ===================================================================== */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(64px, 9vw, 120px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.hero__title { margin: 4px 0 26px; font-weight: 300; font-size: clamp(46px, 7.2vw, 102px); line-height: .98; letter-spacing: -.015em; }
.hero__title em { font-weight: 300; }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
.hero.is-in .line > span { transform: none; }
.hero.is-in .line:nth-child(2) > span { transition-delay: .12s; }
.hero__lead { max-width: 450px; color: var(--text-soft); font-size: 1.02rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__meta { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__meta b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.hero__meta span { font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.arch-wrap { position: relative; justify-self: center; width: min(460px, 100%); }
.arch {
  position: relative; display: block; aspect-ratio: 4 / 5.3; border-radius: var(--arch); overflow: hidden;
  box-shadow: var(--shadow); background: var(--bg-soft);
  clip-path: inset(100% 0 0 0 round 999px 999px 12px 12px); transition: clip-path 1.6s var(--ease-out) .2s;
}
.hero.is-in .arch { clip-path: inset(0 0 0 0 round 999px 999px 12px 12px); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 2.6s var(--ease-out) .2s; }
.hero.is-in .arch img { transform: scale(1.04); animation: kenburns 22s ease-in-out 3s infinite alternate; }
@keyframes kenburns { to { transform: scale(1.13) translate(-2%, 1%); } }
.arch::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(40, 10, 20, .5)); }
.arch-frame { position: absolute; inset: -14px; border: 1px solid var(--gold); border-radius: 999px 999px 26px 26px; opacity: .5; pointer-events: none; }
.arch__cap { position: absolute; left: 24px; right: 24px; bottom: 26px; z-index: 2; text-align: center; color: #FBEDE8; }
.arch__name { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; }
.arch__cap small { display: block; margin-top: 6px; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; opacity: .82; }
.steam { position: absolute; left: 50%; top: 26%; width: 120px; height: 160px; transform: translateX(-50%); z-index: 2; pointer-events: none; opacity: .5; }
.steam path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; filter: blur(3px); stroke-dasharray: 160; stroke-dashoffset: 160; animation: steam 5.5s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.6s; }
.steam path:nth-child(3) { animation-delay: 3.1s; }
@keyframes steam { 0% { stroke-dashoffset: 160; opacity: 0; transform: translateY(20px); } 30% { opacity: .9; } 100% { stroke-dashoffset: -160; opacity: 0; transform: translateY(-30px); } }

/* ---------- Сургучная печать (SVG рисует app.js → waxSealSVG) ---------- */
.wax svg { width: 100%; height: auto; overflow: visible; transition: transform .8s var(--ease-out); }
.wax--hero { position: absolute; right: -38px; bottom: -34px; width: 150px; z-index: 3; opacity: 0; transform: translateY(-30px) scale(1.7) rotate(-34deg); }
.hero.is-in .wax--hero { animation: stamp .85s cubic-bezier(.3, .7, .3, 1) 1.7s forwards; }
.wax--hero:hover svg { transform: rotate(6deg) scale(1.04); }
@keyframes stamp {
  0%   { opacity: 0; transform: translateY(-30px) scale(1.7) rotate(-34deg); }
  55%  { opacity: 1; transform: translateY(0) scale(.93) rotate(-10deg); }
  75%  { transform: scale(1.03) rotate(-13deg); }
  100% { opacity: 1; transform: scale(1) rotate(-12deg); }
}
.wax::after { /* волна от удара */
  content: ''; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; pointer-events: none;
}
.hero.is-in .wax--hero::after { animation: ripple 1.1s var(--ease-out) 2.17s; }
@keyframes ripple { from { opacity: .8; transform: scale(.9); } to { opacity: 0; transform: scale(1.8); } }

/* =====================================================================
   Цитата-интерлюдия
   ===================================================================== */
.quote { padding: clamp(64px, 9vw, 120px) 0; text-align: center; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--bg-soft) 55%, transparent); }
.quote__hz { display: block; margin-bottom: 18px; font-family: serif; font-size: 1.4rem; letter-spacing: .2em; color: var(--gold); }
.quote blockquote { max-width: 900px; margin: 0 auto; font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 3.5rem); line-height: 1.15; text-wrap: balance; }
.quote__author { margin-top: 20px; font-size: .66rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* ---------- Полёт чая в корзину ---------- */
.fly-disc { position: fixed; z-index: 90; border-radius: 50%; pointer-events: none; overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 22px var(--gold); }
@keyframes cart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.cart-pop { animation: cart-pop .45s var(--ease); }

/* =====================================================================
   Категории — текстовые вкладки с золотой чертой
   ===================================================================== */
.cats {
  position: sticky; top: 68px; z-index: 30; scroll-margin-top: 68px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: top .45s var(--ease);
}
.cats__track {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; gap: clamp(2px, 1vw, 10px); overflow-x: auto; scrollbar-width: none;
}
.cats__track::-webkit-scrollbar { display: none; }
.cats__track .cat:first-of-type { margin-left: auto; }
.cats__track .cat:last-of-type { margin-right: auto; }
.cat {
  flex: none; position: relative; padding: 20px 16px 18px;
  font-size: .7rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); transition: color .4s var(--ease);
}
.cat:hover, .cat.is-active { color: var(--text); }
.cat__count { margin-left: 6px; font-family: var(--serif); font-size: .95em; letter-spacing: 0; color: var(--gold); }
.cats__ink { position: absolute; bottom: 0; height: 1px; background: var(--gold); transition: left .7s var(--ease-out), width .7s var(--ease-out); pointer-events: none; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-block: 2px 14px; }
.subcat {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--text-soft); transition: all .4s var(--ease);
}
.subcat:hover { border-color: var(--gold); color: var(--text); }
.subcat.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* =====================================================================
   Каталог
   ===================================================================== */
.catalog { padding-block: clamp(44px, 6vw, 84px) clamp(70px, 9vw, 130px); }
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; margin-bottom: clamp(30px, 4vw, 52px); }
.catalog__titlerow { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.catalog__title { font-weight: 300; font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1; }
.catalog__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.catalog__count { font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 1.4; pointer-events: none; }
.tool-input {
  height: 46px; font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 0 18px; transition: border-color .4s var(--ease), width .6s var(--ease-out);
}
.tool-input:focus-visible { outline: none; border-color: var(--gold); }
.tool-input::placeholder { color: var(--muted); }
.tool-input--search { width: 230px; padding-left: 44px; }
.tool-input--search:focus { width: 280px; }
select.tool-input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px; font-size: .9rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23B08562' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.tool-input option { background: var(--card); color: var(--text); }
.grid-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 70px 0; font-family: var(--serif); font-style: italic; font-size: 1.4rem; }
.grid-empty .btn { margin-top: 22px; font-style: normal; }
.fav-exit {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--text-soft); transition: all .4s var(--ease);
}
.fav-exit:hover { border-color: var(--gold); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3.4vw, 50px) clamp(14px, 2vw, 28px); transition: opacity .25s ease; }

/* ---------- Карточка чая ---------- */
.tea { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.tea .disc {
  position: relative; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 18px;
  border-radius: 200px 200px 10px 10px; overflow: hidden; background: var(--bg-soft); cursor: pointer;
  isolation: isolate; box-shadow: var(--shadow-soft);
  transition: box-shadow .8s var(--ease);
}
.tea:hover .disc { box-shadow: var(--shadow); }
.tea .disc__ring { display: none; }
.disc__face {
  position: absolute; inset: 0; overflow: hidden; border-radius: inherit;
  background:
    radial-gradient(120% 120% at 32% 26%, rgba(255,255,255,.18), transparent 52%),
    linear-gradient(150deg, var(--brew-a, #5a3a24), var(--brew-b, #8a5a34));
  display: grid; place-items: center;
}
.disc__photo, .disc__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.tea .disc__photo { transition: transform 1.6s var(--ease-out); }
.tea:hover .disc__photo { transform: scale(1.07); }
.disc__video { opacity: 0; transition: opacity .6s var(--ease); }
.disc__face.is-live .disc__video { opacity: 1; }
.disc__hanzi { font-family: serif; font-size: 2.6rem; color: rgba(255,255,255,.28); user-select: none; }
.tea .disc::after {   /* шёлковый блик при наведении */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 230, 235, .32) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 1.3s var(--ease-out);
}
.tea:hover .disc::after { transform: translateX(120%); }
.tea__hz { position: absolute; top: 20px; left: 0; right: 0; z-index: 2; font-family: serif; font-size: .9rem; letter-spacing: .3em; color: rgba(255, 238, 232, .85); pointer-events: none; }
.media-toned { filter: saturate(.92) contrast(.98); }

.tea__fav {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(-6px); transition: opacity .5s, transform .5s var(--ease-out), background .4s;
}
.tea:hover .tea__fav, .tea__fav.is-active { opacity: 1; transform: none; }
.tea__fav:hover { background: rgba(255,255,255,.28); }
.tea__fav.is-active { color: #fff; background: color-mix(in srgb, var(--clay) 70%, transparent); }
.tea__fav svg { width: 17px; height: 17px; }

.tea__name { font-size: 1.45rem; line-height: 1.12; font-weight: 400; }
.tea__name a { color: inherit; }
.tea__sub { margin-bottom: 6px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); line-height: 1.55; }
.tea__origin { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: .92rem; color: var(--text-soft); }
.tea__notes { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.tea__unit { display: inline-flex; align-items: center; height: 38px; margin-top: 14px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* граммовка: сегменты с переезжающей «пилюлей» */
.gram-chips {
  --i: 1; --n: 4;
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin-top: 14px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill);
}
.gram-chips::before {
  content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n));
  border-radius: var(--radius-pill); background: var(--accent); box-shadow: 0 6px 14px -8px var(--accent);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .55s var(--ease-out);
}
.gram-chip {
  position: relative; z-index: 1; min-width: 48px; height: 30px; padding: 0 8px; border-radius: var(--radius-pill);
  font-size: .7rem; letter-spacing: .04em; white-space: nowrap; color: var(--text-soft); transition: color .4s;
}
.gram-chip:hover { color: var(--text); }
.gram-chip.is-on { color: var(--on-accent); }
.gram-chip:disabled { opacity: .35; text-decoration: line-through; text-decoration-thickness: 1px; }

.tea__foot { width: 100%; margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tea__price { display: block; min-height: 2.6em; text-align: center; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--accent); font-variant-numeric: tabular-nums; }
.tea__price.tick > * { animation: tick .55s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.cur { font-size: .7em; margin-right: 1px; opacity: .8; }
.vol-badge {
  display: inline-block; vertical-align: 3px; margin-left: 8px; font-family: var(--sans); font-size: .62rem; letter-spacing: .08em; color: var(--gold);
  padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: var(--radius-pill);
}
.per50 { display: block; font-family: var(--sans); font-size: .7rem; letter-spacing: .03em; color: var(--muted); }
.price-soon { font-style: italic; color: var(--muted); font-size: .9em; }
.price-old { margin-right: 6px; color: var(--muted); font-size: .75em; text-decoration-color: var(--clay); text-decoration-thickness: 1px; }

.tea__add, .tea__notify {
  width: 100%; height: 44px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  background: transparent; color: var(--text); border: 1px solid var(--line);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.tea__add svg, .tea__notify svg { width: 16px; height: 16px; flex: none; }
.tea__add:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tea__add.is-added { background: var(--gold); border-color: var(--gold); color: #fff; }
.tea__notify { background: transparent; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: none; }
.tea__notify:hover, .tea__notify.is-on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.leaf-back {
  display: inline-flex; align-items: center; gap: 3px; vertical-align: 3px; margin-left: 6px;
  font-family: var(--sans); font-size: .62rem; letter-spacing: .04em; color: var(--gold);
  padding: 2px 8px; border-radius: var(--radius-pill); border: 1px dashed color-mix(in srgb, var(--gold) 50%, transparent);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.leaf-back:hover { background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: var(--gold); }
.leaf-back .leaf-ic svg { width: 10px; height: 10px; }
.leaf-ic { display: inline-block; vertical-align: -2px; color: var(--gold); }
.leaf-ic svg { display: inline-block; width: 13px; height: 13px; }
.hanzi-mark { font-family: serif; color: var(--gold); margin-right: 2px; }

.sale-badge, .stock-badge {
  position: absolute; z-index: 3; padding: 4px 11px; border-radius: var(--radius-pill); white-space: nowrap;
  font-size: .62rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sale-badge { top: 14px; left: 14px; color: var(--clay); border: 1px solid var(--clay); }
.stock-badge { bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--text-soft); border: 1px solid var(--line); }
.stock-badge--out { color: var(--clay); border-color: var(--clay); }
.tea.is-out .disc { filter: grayscale(.55); opacity: .7; }

/* =====================================================================
   Витрина, обещания, о доме
   ===================================================================== */
.feature { padding: clamp(60px, 9vw, 120px) 0; background: var(--bg-soft); overflow: hidden; }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.feature__img { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.feature__img img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.feature__title { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.02; margin: 0 0 20px; }
.feature__lead { color: var(--text-soft); max-width: 470px; }
.feature__list { margin: 26px 0 34px; display: grid; gap: 12px; }
.feature__list li { display: flex; gap: 14px; align-items: baseline; color: var(--text-soft); }
.feature__list li::before { content: ''; flex: none; width: 6px; height: 6px; transform: rotate(45deg) translateY(-2px); background: var(--gold); }

.promise { padding: clamp(60px, 8vw, 100px) 0; }
.promise__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.promise__item { padding: 10px clamp(18px, 3vw, 44px); text-align: center; }
.promise__item + .promise__item { border-left: 1px solid var(--line); }
.promise__ic { width: 54px; height: 54px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-family: serif; font-size: 1.2rem; transition: transform 1s var(--ease-out); }
.promise__item:hover .promise__ic { transform: rotateY(180deg); }
.promise h4 { font-size: 1.5rem; margin-bottom: 8px; }
.promise p { color: var(--text-soft); font-size: .9rem; }

.about { padding-block: clamp(60px, 9vw, 110px); border-top: 1px solid var(--line); }
.about__title { font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 30px; }
.about__grid { display: grid; gap: 40px; }
.about__text { max-width: 62ch; color: var(--text-soft); line-height: 1.75; display: grid; gap: 14px; }
.about__addr { font-size: .9rem; color: var(--muted); }
.about__addr a { color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
@media (min-width: 920px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
}
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; font-family: var(--serif); font-size: 1.2rem; transition: color .3s var(--ease);
}
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; flex-shrink: 0; transition: transform .4s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-soft); line-height: 1.65; font-size: .92rem; padding: 0 0 18px; max-width: 62ch; }
.faq__item a { color: var(--accent); }

/* =====================================================================
   Футер
   ===================================================================== */
.footer { padding: clamp(70px, 9vw, 110px) 0 40px; border-top: 1px solid var(--line); text-align: center; overflow: hidden; }
.footer__word { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 11.5vw, 170px); line-height: .9; letter-spacing: .1em; padding-left: .1em; white-space: nowrap; }
.footer__by { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--muted); }
.footer__inner { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer__cats, .footer__links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer__cats a, .footer__links a { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s var(--ease); }
.footer__cats a:hover, .footer__links a:hover { color: var(--text); }
.footer__note { font-size: .74rem; letter-spacing: .06em; color: var(--muted); }
/* тонкий футер служебных страниц (корзина) */
.footer--slim { padding: 34px 0; }
.footer--slim .footer__inner { margin-top: 0; padding-top: 0; border-top: 0; }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .22em; }
.footer__brand em { font-size: .8rem; letter-spacing: .04em; color: var(--muted); margin-left: 6px; }

/* =====================================================================
   Плавающие контакты и веер Telegram
   ===================================================================== */
.floating {
  position: fixed; right: clamp(14px, 3vw, 30px); bottom: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-bottom, 0px));
  z-index: 45; display: flex; flex-direction: column; gap: 12px; align-items: flex-end;
}
.fc {
  display: flex; flex-direction: row-reverse; align-items: center; height: 50px; border-radius: var(--radius-pill); overflow: hidden;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-float); color: var(--text-soft);
  transition: border-color .35s var(--ease), transform .35s var(--ease), color .35s;
}
.fc:hover { transform: translateY(-2px); }
.fc__icon { position: relative; width: 50px; height: 50px; display: grid; place-items: center; flex-shrink: 0; color: var(--gold); transition: color .35s; }
.fc__icon svg { width: 22px; height: 22px; fill: currentColor; }
.fc__label { max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; transition: max-width .4s var(--ease), opacity .35s var(--ease), padding .4s var(--ease); }
.fc:hover .fc__label { max-width: 140px; opacity: 1; padding-left: 18px; }
/* в цветах темы: розовое золото, при наведении — винная заливка */
.fc:hover, .fc--tg.is-open { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fc:hover .fc__icon, .fc--tg.is-open .fc__icon { color: var(--on-accent); }
.tg-fan { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.tg-fan__item {
  display: flex; align-items: center; height: 46px; border-radius: var(--radius-pill); padding-left: 18px;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow-float);
  opacity: 0; transform: translateY(14px) scale(.95); pointer-events: none;
  transition: opacity .28s var(--ease), transform .34s var(--ease), border-color .3s var(--ease);
}
.tg-fan.is-open .tg-fan__item { opacity: 1; transform: none; pointer-events: auto; }
.tg-fan.is-open .tg-fan__item:nth-last-child(2) { transition-delay: .05s; }
.tg-fan.is-open .tg-fan__item:nth-last-child(3) { transition-delay: .1s; }
.tg-fan__item:hover { border-color: var(--gold); }
.tg-fan__txt { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.tg-fan__txt b { font-size: .82rem; font-weight: 500; }
.tg-fan__txt small { font-size: .66rem; color: var(--muted); }
.tg-fan__icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--gold); flex-shrink: 0; }
.tg-fan__icon svg { width: 20px; height: 20px; }
.fc__icon svg, .fc__x { transition: opacity .28s var(--ease), transform .34s var(--ease); }
.fc__x { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; opacity: 0; transform: rotate(-90deg) scale(.55); }
.fc--tg.is-open .fc__icon svg { opacity: 0; transform: rotate(90deg) scale(.5); }
.fc--tg.is-open .fc__x { opacity: 1; transform: none; }
.fc--tg.is-open .fc__label { max-width: 0; opacity: 0; padding-left: 0; }
@media (hover: none) {
  .fc:hover { transform: none; }
  .fc:hover .fc__label { max-width: 0; opacity: 0; padding-left: 0; }
}

.to-top {
  position: fixed; left: clamp(14px, 3vw, 30px); bottom: clamp(14px, 3vw, 30px); z-index: 38;
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); color: var(--text-soft);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .3s, border-color .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--gold); border-color: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* =====================================================================
   Корзина
   ===================================================================== */
.cart-page { padding-block: clamp(30px, 5vw, 64px) clamp(60px, 9vw, 120px); min-height: 62vh; }
.cart-page h1 { font-weight: 300; font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: clamp(24px, 4vw, 44px); }
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:first-child { border-top: 1px solid var(--line); }
.cart-item__media { width: 84px; aspect-ratio: 4 / 5; border-radius: 60px 60px 6px 6px; overflow: hidden; position: relative; }
.cart-item__media .disc__ring { display: none; }
.cart-item__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
.cart-item__sub { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.cart-item__ctrls { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cart-item__remove { font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; transition: color .3s; }
.cart-item__remove:hover { color: var(--clay); }
.cart-item__price { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qty button { width: 34px; height: 36px; font-size: 1.05rem; color: var(--text); position: relative; transition: color .25s var(--ease); }
.qty button:hover { color: var(--gold); }
.qty span { min-width: 24px; text-align: center; font-family: var(--serif); font-size: 1.1rem; }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(22px, 3vw, 34px); position: sticky; top: 90px; box-shadow: var(--shadow-soft); }
.summary h3 { font-weight: 300; font-size: 2rem; margin-bottom: 18px; }
.summary__row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-soft); font-size: .9rem; font-variant-numeric: tabular-nums; }
.summary__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 18px; color: var(--text); align-items: baseline; }
.summary__row--total .v { font-family: var(--serif); font-size: 2rem; color: var(--accent); }
.summary__row--discount { color: var(--clay); }
.summary .btn { margin-top: 20px; }
.summary form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.summary form .btn { margin-top: 6px; }
.summary__note { font-size: .76rem; color: var(--muted); margin-top: 14px; text-align: center; }
.ship-progress { margin: 12px 0 4px; }
.ship-progress__track { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ship-progress__fill { height: 100%; border-radius: 3px; background: var(--gold-grad); background-size: 200% 100%; animation: shimmer 4s linear infinite; transition: width .6s var(--ease); }
.ship-progress__label { font-size: .78rem; color: var(--text-soft); margin-top: 8px; }
.ship-progress.is-done .ship-progress__label { color: var(--gold); }
.samples { margin: 12px 0 4px; padding: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-s); }
.samples__title { font-size: .85rem; font-weight: 500; }
.samples__title span { font-weight: 400; font-size: .72rem; color: var(--muted); margin-left: 4px; }
.samples__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sample-chip { font-size: .76rem; padding: 6px 13px; border-radius: 20px; border: 1px solid var(--line); color: var(--text-soft); transition: all .25s var(--ease); }
.sample-chip:hover { border-color: var(--gold); color: var(--text); }
.sample-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); cursor: pointer; }
.sample-roll { margin: 8px 0; padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--text); font-size: .85rem; transition: all .3s; }
.sample-roll:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.summary__balance {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 12px 14px; margin: 10px 0 4px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: .84rem; line-height: 1.4; color: var(--text-soft); transition: border-color .3s var(--ease);
}
.summary__balance:hover { border-color: var(--gold); }
.summary__balance input { accent-color: var(--accent); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.summary__balance b { font-weight: 500; color: var(--text); }
.promo-form { display: flex; gap: 8px; margin-top: 12px; }
.promo-form .field { flex: 1; min-width: 0; }
.promo-form button { flex-shrink: 0; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .76rem; letter-spacing: .06em; color: var(--text-soft); transition: border-color .3s, color .3s; }
.promo-form button:hover { border-color: var(--gold); color: var(--text); }
.promo-line__x { margin-left: 8px; color: var(--muted); font-size: .78rem; }
.promo-line__x:hover { color: var(--clay); }
.promo-line--warn { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .8rem; color: var(--clay); }

.field {
  font-family: var(--sans); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; resize: none; transition: border-color .3s var(--ease);
}
.field:focus-visible { outline: none; border-color: var(--gold); }
.field::placeholder { color: var(--muted); }
.field.is-error { border-color: var(--clay); }

.empty { text-align: center; padding: clamp(50px, 9vw, 100px) 0; }
.empty__mark { font-family: serif; font-size: 3.2rem; color: var(--gold); opacity: .6; }
.empty h2 { font-weight: 300; font-size: 2.4rem; margin: 14px 0 10px; }
.empty p { color: var(--text-soft); margin-bottom: 26px; }
.empty .promo__later { display: inline-block; width: auto; margin-top: 18px; }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
/* экран «заказ принят»: сургучная печать с номером */
.wax--order { position: relative; width: 150px; margin: 6px auto 2px; animation: stamp-order .85s cubic-bezier(.3, .7, .3, 1) .2s both; }
@keyframes stamp-order {
  0%   { opacity: 0; transform: translateY(-30px) scale(1.7) rotate(-34deg); }
  55%  { opacity: 1; transform: scale(.93) rotate(-6deg); }
  75%  { transform: scale(1.03) rotate(-9deg); }
  100% { opacity: 1; transform: rotate(-8deg); }
}
.ceremony__tip { max-width: 420px; margin: 16px auto 0; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.5; color: var(--muted); }

/* мои заказы в кабинете */
.acc-orders { margin-top: 18px; }
.acc-orders__title { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.acc-orders__list { display: flex; flex-direction: column; gap: 9px; max-height: 240px; overflow-y: auto; }
.acc-orders__empty { font-size: .84rem; color: var(--muted); }
.acc-order { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 11px 13px; }
.acc-order__top { font-size: .84rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acc-status { font-size: .64rem; letter-spacing: .06em; padding: 2px 9px; border-radius: var(--radius-s); background: var(--bg-soft); color: var(--text-soft); margin-left: auto; }
.acc-status--paid, .acc-status--done { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.acc-status--cancelled { opacity: .6; text-decoration: line-through; }
.acc-order__items { font-size: .76rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.acc-order__more { padding: 2px 4px; font-size: inherit; color: var(--accent); white-space: nowrap; text-decoration: underline dotted; text-underline-offset: 3px; }
.acc-order__bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.acc-order__bottom > span { font-family: var(--serif); font-size: 1.1rem; }
.acc-order__repeat { font-size: .7rem; letter-spacing: .06em; padding: 5px 13px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--text-soft); transition: all .25s var(--ease); }
.acc-order__repeat:hover { border-color: var(--gold); color: var(--text); }

/* =====================================================================
   Модальные окна, вход, профиль
   ===================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
  background: rgba(30, 10, 18, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.modal-backdrop.is-open { opacity: 1; }
.modal {
  position: relative; width: 100%; max-width: 430px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 52px 30px 28px; box-shadow: var(--shadow);
  max-height: min(88vh, 88dvh); overflow: auto; overscroll-behavior: contain;
  transform: translateY(16px) scale(.985); transition: transform .45s var(--ease-out);
}
.modal-backdrop.is-open .modal { transform: none; }
.modal__close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; font-family: var(--serif); font-size: 1.15rem; color: var(--muted); transition: color .3s; }
.modal__close:hover { color: var(--text); }
.promo__hanzi { font-family: serif; font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.promo__eyebrow { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.promo__title { font-weight: 300; font-size: 2rem; line-height: 1.1; margin-bottom: 8px; }
.promo__title em { color: var(--accent); }
.promo__steps { display: flex; flex-direction: column; gap: 12px; margin: 20px 0 24px; }
.promo__step { display: flex; gap: 14px; align-items: baseline; font-size: .9rem; color: var(--text-soft); line-height: 1.45; }
.promo__step b { font-family: serif; font-weight: 400; color: var(--gold); flex-shrink: 0; }
.promo__later { width: 100%; margin-top: 12px; padding: 8px; font-size: .78rem; letter-spacing: .04em; color: var(--muted); transition: color .3s; }
.promo__later:hover { color: var(--text); }
.auth__tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.auth__tab { flex: 1; font-size: .78rem; letter-spacing: .08em; padding: 10px; border-radius: var(--radius-pill); border: 1px solid var(--line); color: var(--text-soft); transition: all .3s var(--ease); }
.auth__tab.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.auth form { display: flex; flex-direction: column; gap: 10px; }
.auth__note { font-size: .76rem; color: var(--muted); margin-top: 16px; text-align: center; line-height: 1.5; }
.auth__google { display: flex; justify-content: center; min-height: 44px; margin-bottom: 10px; }
.social-btn {
  width: 100%; height: 48px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: .86rem; letter-spacing: .04em; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--bg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.social-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.social-btn__icon { display: grid; place-items: center; }
.social-btn--tg .social-btn__icon { color: var(--gold); }
.social-btn__icon svg { width: 19px; height: 19px; fill: currentColor; }
.auth__divider { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: var(--muted); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.auth__divider::before, .auth__divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.account__balance { display: flex; gap: 10px; margin: 18px 0 14px; }
.acc-metric { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 8px; text-align: center; }
.acc-metric .v { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; }
.acc-metric .l { font-size: .6rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.account__how { display: flex; flex-direction: column; gap: 7px; font-size: .85rem; color: var(--text-soft); line-height: 1.45; margin-bottom: 14px; }
.account__how span { display: flex; align-items: baseline; gap: 10px; }
.account__how b { font-weight: 500; color: var(--text); white-space: nowrap; min-width: 92px; }
.ref-box { display: flex; gap: 8px; align-items: stretch; }
.ref-box .field { flex: 1; font-size: .82rem; color: var(--text-soft); }
.ref-box .icon-btn { width: 46px; height: auto; border-radius: var(--radius-s); border: 1px solid var(--line); flex-shrink: 0; }

/* лента листьев для гостей — над каталогом */
.leaf-ribbon { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); transition: opacity .45s var(--ease); }
.leaf-ribbon.is-gone { opacity: 0; }
.leaf-ribbon__inner { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.leaf-ribbon__hanzi { font-family: serif; font-size: 1.5rem; color: var(--gold); line-height: 1; flex-shrink: 0; }
.leaf-ribbon__text { flex: 1; font-size: .86rem; line-height: 1.45; min-width: 0; }
.leaf-ribbon__text b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.leaf-ribbon__text span { display: block; color: var(--text-soft); font-size: .8rem; }
.leaf-ribbon__cta {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: .75em 1.4em; border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.leaf-ribbon__cta:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.leaf-ribbon__cta:disabled { opacity: .6; }
.leaf-ribbon__cta .social-btn__icon { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; }
.leaf-ribbon__cta .social-btn__icon svg { width: 100%; height: 100%; }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%) translateY(24px);
  display: flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg); font-size: .86rem; box-shadow: 0 18px 36px -18px rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .55s; }
.hero .hero__cta.reveal { transition-delay: .68s; }
.hero .hero__meta.reveal { transition-delay: .8s; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; }
.header { view-transition-name: site-header; }
html.tg-webview, html.tg-webview body { overscroll-behavior-y: none; }
html.tg-webview body { min-height: calc(100vh + 2px); }
html.tg-webview .header { position: static; }
html.tg-webview .cats { position: static; top: auto; transition: none; }
/* смена темы — капля из кнопки */
html.theme-vt .header { view-transition-name: none; }
html.theme-vt::view-transition-old(root) { animation: none; }
html.theme-vt::view-transition-new(root) { animation: ink-in .6s var(--ease) forwards; }
@keyframes ink-in { from { clip-path: circle(0 at var(--ink-x, 50%) var(--ink-y, 50%)); } to { clip-path: circle(142vmax at var(--ink-x, 50%) var(--ink-y, 50%)); } }

/* =====================================================================
   Страница чая — лист поверх каталога
   ===================================================================== */
.psheet {
  position: fixed; inset: 0; z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transition: opacity .4s var(--ease);
}
.psheet.is-open { opacity: 1; }
.psheet__close {
  position: fixed; top: 16px; right: 18px; z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 80%, transparent);
  font-family: var(--serif); font-size: 1.2rem; color: var(--muted); transition: color .3s, border-color .3s;
}
.psheet__close:hover { color: var(--text); border-color: var(--gold); }
.psheet__inner { display: grid; grid-template-columns: minmax(280px, 1fr) 1.15fr; gap: clamp(28px, 6vw, 90px); align-items: center; min-height: 100%; padding-block: clamp(60px, 9vh, 100px); }
.psheet__media .disc { position: relative; width: min(400px, 74vw); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: var(--arch); overflow: hidden; box-shadow: var(--shadow); }
.psheet__media .disc::before { content: ''; position: absolute; inset: 10px; z-index: 2; border: 1px solid rgba(255, 230, 220, .35); border-radius: inherit; pointer-events: none; }
.psheet__media .disc__ring { display: none; }
.psheet__media .disc__hanzi { font-size: clamp(3.4rem, 8vw, 5.6rem); }
.psheet.is-open .psheet__media .disc__photo { animation: kenburns 22s ease-in-out infinite alternate; }
.psheet__info { position: relative; isolation: isolate; max-width: 560px; }
.psheet__hanzi { position: absolute; top: -.55em; right: -.1em; z-index: -1; font-family: serif; font-size: clamp(6rem, 14vw, 11rem); line-height: 1; color: var(--gold); opacity: .08; user-select: none; pointer-events: none; }
.psheet__eyebrow { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.psheet__name { font-weight: 300; font-size: clamp(2.5rem, 5vw, 4rem); }
.psheet__subtitle { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--text-soft); margin-top: 8px; }
.psheet__story { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--text-soft); margin-top: 18px; }
.psheet__facts { margin-top: 24px; border-top: 1px solid var(--line); }
.psheet__facts > div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.psheet__facts dt { color: var(--muted); }
.psheet__facts dd { text-align: right; color: var(--text-soft); }
.psheet__map { position: relative; display: inline-block; margin-top: 26px; }
.psheet__map svg { width: min(320px, 76vw); color: var(--khaki); opacity: .55; }
.psheet__map-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent); }
.psheet__map-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); animation: map-pulse 2.4s var(--ease) infinite; }
@keyframes map-pulse { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.psheet__map-note { position: absolute; left: 4px; bottom: 2px; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.psheet__buy { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.psheet__buy .gram-chips { margin-top: 0; }
.psheet__price { font-family: var(--serif); font-size: 1.9rem; color: var(--accent); font-variant-numeric: tabular-nums; margin-left: auto; }
#psheet-add, .psheet__notify { min-width: 200px; }
.psheet__notify { display: inline-flex; align-items: center; gap: 8px; }
.psheet__notify svg { width: 16px; height: 16px; flex-shrink: 0; }
.psheet__notify.is-on { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* нижняя таб-панель (мобила) */
.tabbar { display: none; }

/* шапка прячется при скролле вниз (мобила) */
@media (max-width: 700px) {
  html.hdr-hide .header { transform: translateY(-100%); }
  html.hdr-hide .cats { top: 0; }
}

/* тач-цели */
@media (pointer: coarse) {
  .qty button::after { content: ''; position: absolute; inset: -8px -2px; }
  .cart-item__remove { position: relative; }
  .cart-item__remove::after, .modal__close::after, .promo-line__x::after, .leaf-back::after, .acc-order__more::after { content: ''; position: absolute; inset: -8px; }
  .modal__close, .promo-line__x, .leaf-back, .acc-order__more { position: relative; }
  .tea__fav { opacity: 1; transform: none; }
}

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1060px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .header__nav { display: none; }
  .header__inner { grid-template-columns: auto 1fr; }
  .brand { align-items: flex-start; text-align: left; }
  .brand__name { font-size: 1.3rem; letter-spacing: .26em; padding-left: 0; }
  .brand__by { font-size: .74rem; }
  .hero__grid, .feature__grid { grid-template-columns: 1fr; }
  .arch-wrap { width: min(310px, 70%); order: -1; margin-top: 8px; }
  .arch__cap { left: 20px; right: 92px; bottom: 20px; text-align: left; }
  .arch__name { font-size: 1.4rem; }
  .wax--hero { right: -22px; bottom: -26px; width: 108px; }
  .hero__title { margin-bottom: 18px; }
  .promise__grid { grid-template-columns: 1fr; gap: 36px; }
  .promise__item + .promise__item { border-left: 0; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: relative; top: 0; }
  .psheet__inner { grid-template-columns: 1fr; align-items: start; gap: 30px; padding-top: 76px; }
  .psheet__price { margin-left: 0; }
}
@media (max-width: 700px) {
  .fc--wa { display: none; }
  .fc--tg[data-fan] .fc__icon svg { width: 24px; height: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; }
  .tea__hz { display: none; }
  .tea__name { font-size: 1.2rem; }
  .tea__sub { font-size: .58rem; letter-spacing: .12em; }
  .gram-chip { min-width: 0; padding: 0 5px; font-size: .64rem; letter-spacing: 0; height: 28px; }
  .tea__foot { gap: 10px; }
  .tea__price { font-size: 1.2rem; }
  .tea__add, .tea__notify { height: 40px; font-size: .58rem; letter-spacing: .14em; gap: 7px; }
  .catalog__tools { width: 100%; }
  .search-field { flex: 1 1 100%; }
  .tool-input--search, .tool-input--search:focus { width: 100%; }
  .leaf-ribbon__inner { flex-wrap: wrap; gap: 8px 12px; }
  .leaf-ribbon__hanzi { display: none; }
  .leaf-ribbon__text, .leaf-ribbon__cta { flex: 1 1 100%; justify-content: center; }
  .footer__inner { justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  .header__actions { gap: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .header .fav-btn, .header a.icon-btn[href='cart.html'] { display: none; }
  .tool-input, .field { font-size: 16px; }
  .fc { height: 42px; opacity: .92; }
  .fc__icon { width: 42px; height: 42px; }
  .fc__icon svg { width: 19px; height: 19px; }
  .tg-fan__item { height: 42px; padding-left: 15px; }
  .tg-fan__icon { width: 42px; height: 42px; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item__media { width: 64px; }
  .cart-item__price { grid-column: 2; text-align: left; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
    display: grid; grid-template-columns: repeat(3, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border-top: 1px solid var(--line);
  }
  .tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .tabbar__item.is-active { color: var(--accent); }
  .tabbar__item.is-active::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 1px; background: var(--gold); }
  .tabbar__item svg { width: 20px; height: 20px; }
  .tabbar__hanzi { font-family: serif; font-size: 1.15rem; line-height: 1; padding-top: 1px; }
  .tabbar__item .cart-count { top: 4px; left: calc(50% + 7px); right: auto; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .floating { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .to-top { width: 42px; height: 42px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .brand__name { font-size: 1.1rem; letter-spacing: .2em; }
  .brand__by { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .line > span { opacity: 1; transform: none; }
  .arch { clip-path: none; }
  .wax--hero { opacity: 1; transform: rotate(-12deg); }
}

/* =====================================================================
   AdminCMS — редактирование каталога прямо на витрине
   ===================================================================== */
.cms-toggle { font-size: 18px; line-height: 1; }
.cms-toggle.is-on { background: var(--accent); color: var(--on-accent); }
.cms-ctl { position: absolute; top: 8px; left: 8px; z-index: 5; display: none; gap: 6px; }
body.cms-edit .cms-ctl { display: flex; }
.cms-ctl__btn { width: 34px; height: 34px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 15px; line-height: 1; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.14); }
.cms-ctl__btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
body.cms-edit .tea { outline: 1px dashed var(--line); outline-offset: 6px; }
.tea.is-hidden { opacity: .5; }
.tea.is-hidden::after { content: 'скрыт'; position: absolute; top: 8px; right: 8px; z-index: 5; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; background: var(--text); color: var(--bg); padding: 2px 8px; border-radius: var(--radius-pill); }
.cms-fab { position: fixed; right: 18px; bottom: 84px; z-index: 60; display: none; padding: 12px 18px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
body.cms-edit .cms-fab { display: inline-flex; }
.cms-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .2s ease; }
.cms-modal.is-open { opacity: 1; }
.cms-modal__box { width: 100%; max-width: 560px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; transform: translateY(8px); transition: transform .2s ease; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.cms-modal.is-open .cms-modal__box { transform: none; }
.cms-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cms-modal__x { color: var(--muted); font-size: 18px; }
.cms-form { padding: 16px 18px; display: grid; gap: 12px; }
.cms-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.cms-f { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.cms-f > span { font-size: 12px; }
.cms-f input:not([type="checkbox"]):not([type="color"]), .cms-f select, .cms-f textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; }
.cms-f input[type="color"] { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); cursor: pointer; }
.cms-f textarea { resize: vertical; }
.cms-f--inline { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; }
.cms-modal__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line); }
.cms-modal__foot > div { display: flex; gap: 8px; }
.cms-modal__foot button { padding: 10px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.cms-save { background: var(--accent) !important; color: var(--on-accent) !important; border-color: var(--accent) !important; font-weight: 600; }
.cms-del { color: #b4413c !important; border-color: #b4413c !important; }
