/* =====================================================================
   Новое оформление «Песок и изумруд»
   Загружается последним и перекрывает исходные стили.
   Тексты, цены, ссылки и скрипты не меняются.
   ===================================================================== */

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/lora.woff") format("woff");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Палитра ---------- */
:root {
  --background: #f5efe5;
  --foreground: #14231f;
  --card: #fffdf9;
  --card-foreground: #14231f;
  --popover: #fffdf9;
  --popover-foreground: #14231f;
  --primary: #0e6b58;
  --primary-foreground: #fff;
  --secondary: #f1e9db;
  --secondary-foreground: #14231f;
  --muted: #f3ede2;
  --muted-foreground: #6d6a5f;
  --accent: #e3efe9;
  --accent-foreground: #0e6b58;
  --success: #138a5b;
  --border: #e7dcc8;
  --hairline: #ece3d3;
  --input: #e7dcc8;
  --ring: #0e6b58;
  --brand: #0f7a63;
  --brand-2: #0a4a3d;
  --warm: #b8612f;
  --warm-2: #8a3f1c;

  --dz-ink: #0b2a24;
  --dz-emerald: #0e6b58;
  --dz-emerald-deep: #082f28;
  --dz-gold: #c99a48;
  --dz-gold-light: #ecd3a1;
  --dz-sand: #efe4d1;
  --dz-serif: "Lora", Georgia, "Times New Roman", serif;
}

/* ---------- Фон и типографика ---------- */
.site-bg {
  background:
    radial-gradient(38rem 22rem at 50% -8rem, rgba(201, 154, 72, .22), transparent 70%),
    linear-gradient(180deg, #f7f2ea 0%, #f1e8da 100%);
}
main h1, main h2 {
  font-family: var(--dz-serif);
  font-weight: 600;
  letter-spacing: -0.01em !important;
}
main h2 { line-height: 1.12 !important; }
.text-champagne {
  background-image: none;
  color: var(--dz-emerald);
  -webkit-text-fill-color: currentColor;
  font-style: italic;
}
.grad-text {
  background-image: linear-gradient(120deg, var(--dz-emerald) 0%, var(--warm) 100%);
}

/* ---------- Карточки-секции ---------- */
main > section,
main section.rounded-\[28px\] {
  border-radius: 24px !important;
  border: 1px solid var(--hairline) !important;
  background-color: var(--card);
  box-shadow: 0 1px 0 rgba(20, 35, 31, .03), 0 20px 40px -32px rgba(60, 45, 20, .45) !important;
  --tw-ring-color: transparent !important;
}
/* бейджи-«ярлыки» над заголовками секций */
main section > div:first-child > span.rounded-full:first-child {
  background: var(--dz-sand) !important;
  color: var(--dz-ink) !important;
  border: 1px solid #e2d3b6;
}
.bg-\[\#dfc28e\] { background-color: var(--dz-gold) !important; }
.text-\[\#dfc28e\] { color: var(--dz-gold) !important; }

/* ---------- Кнопки ---------- */
.grad-primary {
  background-image: linear-gradient(135deg, #12846b 0%, #0a4a3d 100%) !important;
  box-shadow: 0 12px 24px -14px rgba(10, 74, 61, .8);
  letter-spacing: .02em;
}
.grad-warm {
  background-image: linear-gradient(135deg, #d9a654 0%, #a9752a 100%) !important;
  color: #1d1406 !important;
  letter-spacing: .02em;
}
.price-cta {
  background-image: linear-gradient(135deg, #e6bd6c 0%, #cf9a43 50%, #b07c2c 100%) !important;
  color: #1d1406 !important;
  box-shadow: 0 14px 30px -14px rgba(176, 124, 44, .95), inset 0 1px rgba(255, 255, 255, .45) !important;
}
.price-cta * { color: inherit; }
.price-cta .text-white\/85 { color: rgba(29, 20, 6, .72) !important; }
.price-cta:before { border-color: rgba(214, 167, 85, .55) !important; }

/* ---------- Конфигуратор ---------- */
.bg-\[\#191b20\] { background-color: var(--dz-emerald-deep) !important; }
.shadow-\[0_6px_18px_-14px_rgba\(49\,85\,245\,0\.6\)\],
.shadow-\[0_14px_34px_-24px_rgba\(49\,85\,245\,0\.5\)\],
.shadow-\[0_20px_42px_-24px_rgba\(49\,85\,245\,0\.55\)\],
.shadow-\[0_10px_20px_-14px_rgba\(49\,85\,245\,0\.9\)\] {
  box-shadow: 0 10px 24px -18px rgba(14, 107, 88, .55) !important;
}

/* ---------- Блок Telegram ---------- */
.from-\[\#2a9ee0\] {
  background-image: linear-gradient(180deg, #0f5e4e 0%, #0a4a3d 100%) !important;
}
.tg-wallpaper {
  background-color: #eadfca;
  background-image:
    radial-gradient(rgba(255, 255, 255, .45) 1.2px, transparent 1.4px),
    radial-gradient(rgba(120, 90, 40, .12) 1.2px, transparent 1.4px),
    linear-gradient(160deg, #f0e4cc 0%, #e4d2b0 45%, #d8c4a0 100%);
}

/* ---------- Нижняя панель ---------- */
.bg-\[\#0b1224\]\/90 {
  background-color: rgba(8, 47, 40, .92) !important;
  border-color: rgba(236, 211, 161, .18) !important;
}

/* ---------- Подвал ---------- */
main footer { background: rgba(255, 253, 249, .75) !important; }

/* =====================================================================
   Баннер на главной
   ===================================================================== */
.dz-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4px;
}
.dz-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--dz-serif); font-size: 17px; font-weight: 600; color: var(--dz-ink);
}
.dz-logo {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: var(--dz-emerald); color: var(--dz-gold-light);
}
.dz-online {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hairline);
  font-size: 11.5px; font-weight: 500; color: var(--muted-foreground);
}
.dz-online-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(19, 138, 91, .15); }

.dz-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 16px 16px;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffaf1 0%, #f6ecdb 100%);
  border: 1px solid #eadcc2;
  box-shadow: 0 30px 60px -40px rgba(80, 55, 20, .55);
}
.dz-hero-sun {
  position: absolute; z-index: -1; right: -90px; top: -110px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 186, 102, .55) 0%, rgba(232, 186, 102, .12) 45%, transparent 70%);
}
.dz-hero-head { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.dz-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(14, 107, 88, .08); border: 1px solid rgba(14, 107, 88, .18);
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dz-emerald);
}
.dz-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dz-gold); }
.dz-h1 {
  font-family: var(--dz-serif) !important;
  font-size: 31px; line-height: 1.08; font-weight: 600; color: var(--dz-ink);
  text-wrap: balance;
}
.dz-h1 em { font-style: italic; color: var(--dz-emerald); }
.dz-lead { font-size: 14px; line-height: 1.55; color: #5d594e; text-wrap: pretty; }

.dz-banners { display: flex; flex-direction: column; gap: 10px; }
.dz-banner {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 42%; align-items: center; gap: 6px;
  min-height: 196px; padding: 18px 10px 18px 18px;
  border-radius: 22px; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dz-banner:active { transform: scale(.985); }
.dz-banner--emerald {
  color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(233, 190, 110, .28), transparent 55%),
    linear-gradient(150deg, #0f6e5a 0%, #0a4a3d 55%, #072f28 100%);
  box-shadow: 0 22px 40px -26px rgba(7, 47, 40, .9);
}
.dz-banner--sand {
  color: var(--dz-ink);
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(255, 255, 255, .8), transparent 55%),
    linear-gradient(150deg, #f0dcb4 0%, #e3c48c 60%, #d6b070 100%);
  box-shadow: 0 22px 40px -28px rgba(140, 100, 40, .8);
}
.dz-banner-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.dz-banner-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dz-gold-light);
}
.dz-banner--sand .dz-banner-tag { color: #7a4f12; }
.dz-banner-name {
  font-family: var(--dz-serif); font-size: 24px; line-height: 1.1; font-weight: 600; margin-top: 2px;
}
.dz-banner-price { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; opacity: .85; }
.dz-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.dz-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600;
  background: rgba(255, 255, 255, .14); color: inherit;
}
.dz-banner--sand .dz-chip { background: rgba(255, 255, 255, .5); }
.dz-chip--ok { background: rgba(127, 224, 168, .18); color: #9ff0c2; }
.dz-banner--sand .dz-chip--ok { background: rgba(14, 107, 88, .14); color: #0a5a49; }
.dz-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dz-banner-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: 12.5px; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 1px; opacity: .9;
}
.dz-banner-media { position: relative; display: grid; place-items: center; height: 170px; }
.dz-banner-halo {
  position: absolute; bottom: 6px; width: 80%; height: 22px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); filter: blur(14px);
}
.dz-banner--sand .dz-banner-halo { background: rgba(90, 60, 15, .35); }
.dz-banner-shots { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.dz-banner-shots img {
  grid-area: 1 / 1; height: 168px; width: auto; max-width: 100%; object-fit: contain;
  transition: opacity .6s ease, transform .4s ease;
}
.dz-banner-shots img + img { opacity: 0; } /* до запуска карусели виден первый кадр */
.dz-banner:hover .dz-banner-shots img { transform: scale(1.03) rotate(-1deg); }

.dz-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.dz-perks li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .7); border: 1px solid #eadcc2;
  font-size: 11.5px; font-weight: 600; line-height: 1.3; color: var(--dz-ink);
}
.dz-perks svg { color: var(--dz-emerald); }

.dz-cta-row { display: flex; gap: 8px; }
.dz-btn-order {
  flex: 1; min-height: 52px; border-radius: 16px; cursor: pointer;
  background: var(--dz-ink); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 14px 26px -16px rgba(11, 42, 36, .9);
  transition: transform .15s ease, background .2s ease;
}
.dz-btn-order:hover { background: var(--dz-emerald); }
.dz-btn-order:active { transform: scale(.98); }

@media (min-width: 560px) {
  .dz-hero { padding: 28px 22px 20px; }
  .dz-h1 { font-size: 40px; }
  .dz-banner { min-height: 220px; padding-left: 24px; }
  .dz-banner-name { font-size: 28px; }
  .dz-banner-media { height: 196px; }
  .dz-banner-shots img { height: 192px; }
}
@media (prefers-reduced-motion: reduce) {
  .dz-banner, .dz-banner-shots img { transition: none; }
}

/* ---------- Фон фото в карточках товаров ---------- */
[style*="#f5f6f9"] {
  background: radial-gradient(ellipse at 50% 45%, #fffdf8, #f2e9da) !important;
}
[style*="#14161b"] {
  background: radial-gradient(ellipse at 50% 92%, #3a5a4a 0%, #12382f 46%, #082f28 100%) !important;
}
[style*="rgba(181,58,94,0.1)"] { background: rgba(184, 97, 47, .12) !important; }

/* =====================================================================
   Телефон в шапке, блок Telegram, форма заявки, контакты
   ===================================================================== */
.dz-phone {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hairline);
  font-size: 12.5px; font-weight: 700; color: var(--dz-ink); text-decoration: none;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dz-phone svg { color: var(--dz-emerald); }

.dz-tg {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 24px;
  border: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(20, 35, 31, .03), 0 20px 40px -32px rgba(60, 45, 20, .45);
}
.dz-tg {
  color: #fff;
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(233, 190, 110, .25), transparent 55%),
    linear-gradient(150deg, #0f6e5a 0%, #0a4a3d 60%, #072f28 100%);
  border-color: transparent;
}
.dz-tg-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dz-tg-badge {
  display: inline-flex; padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .12); color: var(--dz-gold-light);
}
.dz-tg-badge--dark { background: var(--dz-sand); color: var(--dz-ink); border: 1px solid #e2d3b6; }
.dz-tg-title { font-family: var(--dz-serif); font-size: 25px; line-height: 1.12; font-weight: 600; }
.dz-tg .dz-tg-text { color: rgba(255, 255, 255, .78); }
.dz-tg-text { font-size: 13.5px; line-height: 1.55; color: var(--muted-foreground); }
.dz-tg-btn {
  display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 0 16px; border-radius: 16px; text-decoration: none;
}
.dz-tg-btn-text { display: flex; flex-direction: column; text-align: left; }
.dz-tg-btn-main { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.dz-tg-btn-sub { font-size: 12.5px; opacity: .75; }

.dz-foot-contacts { font-size: 12px; color: var(--muted-foreground); }
.dz-foot-contacts a { color: var(--dz-ink); font-weight: 600; text-decoration: none; }

/* кнопки, ставшие ссылками */
a.dz-btn-order { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.fixed a.min-h-\[50px\]:not(.price-cta) { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ---------- Блок Telegram, вариант 2 ---------- */
.dz-tg2 {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 24px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(42, 171, 238, .16), transparent 60%),
    linear-gradient(180deg, #fffaf1 0%, #f4e9d6 100%);
  border: 1px solid #eadcc2;
  box-shadow: 0 20px 40px -32px rgba(60, 45, 20, .45);
}
.dz-tg2-top { display: flex; align-items: center; gap: 12px; }
.dz-tg2-ava {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2aabee;
}
.dz-tg2-who { display: flex; flex-direction: column; min-width: 0; }
.dz-tg2-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1c8fd0; }
.dz-tg2-name { font-size: 16px; font-weight: 700; color: var(--dz-ink); }
.dz-tg2-title { font-family: var(--dz-serif); font-size: 24px; line-height: 1.15; font-weight: 600; color: var(--dz-ink); }
.dz-tg2-body { display: grid; grid-template-columns: 1fr 112px; gap: 8px; align-items: center; }
.dz-tg2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dz-tg2-list li { display: flex; gap: 10px; align-items: flex-start; }
.dz-tg2-list li > span:last-child { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; color: var(--muted-foreground); }
.dz-tg2-list b { font-size: 13.5px; color: var(--dz-ink); }
.dz-tg2-ico {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
  background: #fff; border: 1px solid #eadcc2; color: var(--dz-emerald);
}
.dz-tg2-pics { position: relative; height: 150px; }
.dz-tg2-pics > span { position: absolute; display: block; }
.dz-tg2-pics img { display: block; height: 118px; width: auto; filter: drop-shadow(0 12px 14px rgba(60, 40, 10, .3)); }
.dz-tg2-p1 { left: -4px; top: 0; transform: rotate(-9deg); }
.dz-tg2-p2 { right: -8px; bottom: 0; transform: rotate(7deg); }
@media (min-width: 560px) {
  .dz-tg2 { padding: 24px; }
  .dz-tg2-body { grid-template-columns: 1fr 160px; }
  .dz-tg2-pics { height: 180px; }
  .dz-tg2-pics img { height: 150px; }
}
