/* ikony-schastye-vnutri.ru (Сайт 4 — «Иконы», домен не куплен) — вариант «охра-бордо» на базе стиля ntp52.ru. Отличие от style.css — акцентный цвет (--clr-primary и производные), тёплый пергаментный фон и добавленные в конце файла блоки под каталог/страницу образа; остальная система токенов и вёрстка идентичны. */
:root {
  --clr-primary:     #7A3B2C;
  --clr-primary-lt:  #E8D5C0;
  --clr-dark:        #241813;
  --clr-text:        #3A302A;
  --clr-heading:     #1F1512;
  --clr-bg:          #FAF4EC;
  --clr-bg-alt:      #F0E6D8;
  --clr-border:      #E3D6C4;
  --clr-white:       #FFFFFF;

  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --shadow-card:     0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-btn:      0 4px 12px rgba(122, 59, 44, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
  color: var(--clr-text); background: var(--clr-bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--clr-primary); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопки (из ДИЗАЙН.md) ---------- */
.btn-primary {
  display: inline-block; background: var(--clr-primary); color: #fff;
  padding: 14px 32px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  box-shadow: var(--shadow-btn); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(122, 59, 44, 0.45); }
.btn-outline {
  display: inline-block; background: transparent; color: var(--clr-primary);
  border: 2px solid var(--clr-primary); padding: 12px 30px;
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}
.btn-ghost {
  display: inline-block; background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.6); padding: 12px 30px;
  border-radius: var(--radius-md); font-weight: 600; text-decoration: none;
}

/* ---------- Карточки ---------- */
.card {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-card);
  padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.10); transform: translateY(-4px); }

.section-title { font-size: 34px; font-weight: 700; color: var(--clr-heading); margin: 0 0 12px; }
.section-subtitle { font-size: 16px; color: #6B6558; max-width: 560px; margin: 0 0 48px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; box-shadow: 0 1px 0 var(--clr-border);
}
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { font-weight: 800; font-size: 21px; color: var(--clr-heading); text-decoration: none; }
.logo span { color: var(--clr-primary); }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { color: var(--clr-heading); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--clr-primary); }
.nav .has-sub { position: relative; }
.nav .has-sub > a::after { content: " ▾"; font-size: 11px; color: #A69C8C; }
.nav .sub {
  display: none; position: absolute; top: 100%; left: -14px; min-width: 300px;
  background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: 10px 0; z-index: 60;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: block; }
.nav .sub a { display: block; padding: 9px 18px; font-size: 14px; }
.nav .sub a:hover { background: var(--clr-bg-alt); }
.header-cta { margin-left: 8px; padding: 11px 22px; font-size: 14px; }

/* мобильное меню: чекбокс без JS */
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Полоса заголовка внутренней страницы ---------- */
.page-hero { background: var(--clr-dark); color: #fff; padding: 52px 0 44px; }
.page-hero h1 { font-size: 38px; line-height: 1.15; margin: 10px 0 0; font-weight: 800; max-width: 900px; text-wrap: balance; }
.breadcrumbs { font-size: 13px; color: #B3A99B; }
.breadcrumbs a { color: #B3A99B; text-decoration: none; }
.breadcrumbs a:hover { color: var(--clr-primary); }

/* ---------- Статья ---------- */
.article { padding: 48px 0 64px; }
.article-inner { max-width: 800px; }
.article h2 { font-size: 28px; color: var(--clr-heading); margin: 42px 0 14px; line-height: 1.25; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 20px; color: var(--clr-heading); margin: 30px 0 10px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article hr { border: 0; border-top: 1px solid var(--clr-border); margin: 36px 0; }
.article blockquote {
  margin: 0 0 16px; padding: 14px 20px; border-left: 3px solid var(--clr-primary);
  background: var(--clr-bg-alt); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.table-wrap { overflow-x: auto; margin: 0 0 16px; }
.article table { border-collapse: collapse; width: 100%; font-size: 15px; }
.article th, .article td { border: 1px solid var(--clr-border); padding: 9px 14px; text-align: left; }
.article th { background: var(--clr-bg-alt); color: var(--clr-heading); }
.article tr:nth-child(even) td { background: #F5EBDD; }

/* ---------- Галерея фото в статье — карусель, листается влево/вправо ---------- */
.gallery { position: relative; margin: 24px 0 32px; }
.gallery-track {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-behavior: smooth; padding: 2px 2px 10px; margin: 0; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--clr-primary) var(--clr-bg-alt);
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-track { background: var(--clr-bg-alt); border-radius: 3px; }
.gallery-track::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 3px; }
.gallery-item {
  flex: 0 0 240px; scroll-snap-align: start; margin: 0;
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-card); background: #fff;
}
.gallery-item a { display: block; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; margin: 0; transition: transform .3s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption { padding: 10px 12px; font-size: 13px; color: var(--clr-text); line-height: 1.4; }
.gallery-item details.more { margin-top: 6px; }
.gallery-item details.more summary {
  cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--clr-primary);
  list-style: none; display: flex; align-items: center; gap: 4px;
}
.gallery-item details.more summary::-webkit-details-marker { display: none; }
.gallery-item details.more summary::before { content: "▸"; font-size: 10px; transition: transform .15s; }
.gallery-item details.more[open] summary::before { transform: rotate(90deg); }
.gallery-item details.more p {
  margin: 8px 0 0; font-size: 12.5px; color: #6B6558; line-height: 1.55;
  padding-top: 6px; border-top: 1px solid var(--clr-border);
}
.gallery-nav {
  position: absolute; top: 78px; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--clr-border);
  background: #fff; color: var(--clr-primary); font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center;
}
.gallery-prev { left: -16px; }
.gallery-next { right: -16px; }
.gallery-nav:hover { background: var(--clr-primary); color: #fff; }
@media (max-width: 720px) { .gallery-nav { display: none; } .gallery-item { flex-basis: 200px; } }

/* ---------- CTA-полоса ---------- */
.cta-band { background: var(--clr-dark); color: #fff; text-align: center; padding: 52px 20px; }
.cta-band .t { font-size: 26px; font-weight: 800; display: block; margin-bottom: 8px; }
.cta-band .s { color: #CFC5B6; display: block; margin-bottom: 22px; }

/* ---------- Футер ---------- */
.site-footer { background: #14100C; color: #B3A99B; font-size: 14px; padding: 40px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 26px; }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: #E5DDD0; font-size: 14px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #B3A99B; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: var(--clr-primary); }
.site-footer .bottom { border-top: 1px solid #2A241C; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Главная ---------- */
.hero {
  position: relative; color: #fff; text-align: center; padding: 96px 20px 88px;
  background:
    linear-gradient(rgba(28,26,22,.78), rgba(28,26,22,.88)),
    repeating-linear-gradient(115deg, #2a1a13 0 26px, #1a100b 26px 52px);
}
.hero .badge {
  display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(122,59,44,.25); color: #EAD3BE; border: 1px solid rgba(122,59,44,.5);
  padding: 6px 16px; border-radius: 99px; margin-bottom: 20px;
}
.hero h1 { font-size: 50px; line-height: 1.15; font-weight: 800; margin: 0 auto 16px; max-width: 800px; text-wrap: balance; }
.hero .sub { font-size: 17px; color: #D8CFC2; margin: 0 0 30px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 0; }
.metrics .m b { display: block; color: var(--clr-primary); font-size: 28px; margin-bottom: 6px; }
.metrics .m .mt { color: var(--clr-heading); font-weight: 600; display: block; margin-bottom: 4px; }
.metrics .m p { font-size: 14px; margin: 0; }

.section { padding: 64px 0; }
.section.alt { background: var(--clr-bg-alt); }

.hubs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hub { display: block; text-decoration: none; overflow: hidden; padding: 0; border-top: 3px solid var(--clr-primary); }
.hub .ph { height: 160px; background: linear-gradient(120deg, #6B3320, #241813); overflow: hidden; }
.hub .ph img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; transition: transform .3s; }
.hub:hover .ph img { transform: scale(1.06); }
.hub .tx { padding: 20px 22px 24px; }
.hub .tx b { color: var(--clr-heading); font-size: 18px; display: block; margin-bottom: 8px; }
.hub .tx p { font-size: 14px; color: var(--clr-text); margin: 0 0 10px; }
.hub .more { color: var(--clr-primary); font-weight: 600; font-size: 14px; }

.hubs.compact .tx { text-align: center; }

.mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mat { display: block; text-decoration: none; border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
       padding: 16px 18px; font-size: 14px; color: var(--clr-text); background: #fff; transition: border-color .2s, box-shadow .2s; }
.mat:hover { border-color: var(--clr-primary); box-shadow: var(--shadow-card); }
.mat b { display: block; color: var(--clr-heading); margin-bottom: 4px; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { text-align: center; font-size: 14px; }
.step i { display: block; font-style: normal; width: 42px; height: 42px; line-height: 42px; margin: 0 auto 12px;
          border-radius: 50%; background: var(--clr-primary); color: #fff; font-weight: 700; font-size: 17px; }
.step b { color: var(--clr-heading); display: block; margin-bottom: 6px; }
.step p { margin: 0; }

/* форма-витрина на главной */
.contact { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; }
.form label { display: block; font-size: 14px; color: var(--clr-heading); font-weight: 600; margin: 0 0 6px; }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--clr-border); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; margin-bottom: 16px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--clr-primary); outline-offset: -1px; }
.contact .info { font-size: 15px; }
.contact .info b { color: var(--clr-heading); }
.contact .info p { margin: 0 0 12px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .metrics, .mats { grid-template-columns: repeat(2, 1fr); }
  .hubs { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 27px; }
  .section-title { font-size: 26px; }
  .hubs, .metrics, .mats, .steps { grid-template-columns: 1fr; }

  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--clr-border); padding: 8px 0 12px;
    max-height: calc(100vh - 72px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav a { padding: 13px 20px; line-height: 18px; } /* тап-таргет >= 44px по высоте */
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav .sub a { padding: 13px 18px; line-height: 18px; } /* тап-таргет >= 44px по высоте */
  .nav .has-sub > a::after { content: ""; }
  .header-cta { margin: 8px 20px 0; text-align: center; }
  .nav-toggle-label {
    display: block; margin-left: auto; cursor: pointer; font-size: 26px;
    color: var(--clr-heading); user-select: none; padding: 7px 8px; line-height: 30px; /* тап-таргет >= 44px */
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .site-footer a { padding: 13px 0; line-height: 18px; } /* тап-таргет >= 44px по высоте */
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Сайт 4: каталог икон ── */
.page-hero .hero-lead { color: #D8CFC2; font-size: 15px; max-width: 620px; margin: 12px 0 0; line-height: 1.55; }
.catalog-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 24px 0; }
.obraz-card { display: flex; flex-direction: column; border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.obraz-card:hover { box-shadow: 0 8px 26px rgba(122, 59, 44, .16); transform: translateY(-2px); }
.obraz-card .ph { aspect-ratio: 3 / 4; overflow: hidden; background: var(--clr-bg-alt); }
.obraz-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.obraz-card .tx { padding: 12px 14px; }
.obraz-card .tx b { display: block; font-size: 15px; line-height: 1.3; color: var(--clr-heading); }
.obraz-card .tx .avail { display: block; color: var(--clr-primary); font-weight: 700; margin-top: 6px; font-size: 14px; }
.obraz-card .tx .fmts { display: block; color: #8A7D6C; font-size: 12px; margin-top: 2px; }
.obraz-card .tx .helps { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; color: #8A7D6C; font-size: 12.5px; line-height: 1.4; margin-top: 6px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-bar button { border: 1px solid var(--clr-border); background: #fff; border-radius: 20px; padding: 7px 15px; font: inherit; font-size: 13px; cursor: pointer; color: var(--clr-text); }
.filter-bar button.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.obraz-card[hidden] { display: none; }
.obraz-card .desc { display: none; }

/* режим «Список» на /katalog/ — переключается кнопкой #view-toggle, без перезагрузки страницы */
.catalog-grid.view-list { display: flex; flex-direction: column; gap: 10px; }
.catalog-grid.view-list .obraz-card { flex-direction: row; align-items: center; }
.catalog-grid.view-list .obraz-card .ph { flex: 0 0 72px; width: 72px; height: 72px; aspect-ratio: 1 / 1; }
.catalog-grid.view-list .obraz-card .tx { flex: 1; min-width: 0; padding: 10px 14px; }
.catalog-grid.view-list .obraz-card .avail,
.catalog-grid.view-list .obraz-card .fmts { display: none; }
.catalog-grid.view-list .obraz-card .desc { display: block; font-size: 13px; color: #6B6558; line-height: 1.45; margin-top: 4px; }

/* ── Сайт 4: страница образа ── */
.obraz-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 18px 0 24px; }
.obraz-gallery a { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--clr-bg-alt); }
.obraz-gallery img { width: 100%; height: 100%; object-fit: cover; }
.gal-block { margin: 6px 0 18px; }
.gal-size { font-size: 17px; color: var(--clr-heading); margin: 18px 0 0; }
.gal-block .obraz-gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 230px)); margin: 10px 0 6px; }
.ph-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 8px; box-sizing: border-box; text-align: center; font-size: 13px; color: #8A7D6C; background: var(--clr-bg-alt); }
.obraz-gallery .ph-empty { height: auto; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); }
.obraz-formats { width: 100%; border-collapse: collapse; margin: 16px 0; }
.obraz-formats th, .obraz-formats td { border: 1px solid var(--clr-border); padding: 10px 12px; text-align: left; font-size: 14px; }
.obraz-formats th { background: var(--clr-bg-alt); color: var(--clr-heading); }
.obraz-note { font-size: 13px; color: #8A7D6C; margin: 8px 0 0; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.buy-row a { display: inline-block; padding: 12px 22px; border-radius: var(--radius-md); font-weight: 700; text-decoration: none; }
.buy-wb { background: #CB11AB; color: #fff; }
.buy-ozon { background: #005BFF; color: #fff; }
.buy-order { background: var(--clr-primary); color: #fff; }
.order-only { color: #8A7D6C; font-weight: 600; }
.obraz-formats tr:target td { background: var(--clr-bg-alt); }
.similar-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 14px; }

/* ── прототип (29.09.2026): 3 плашки-формата наверху detail-страницы образа ── */
.fmt-tiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 18px 0 36px; }
@media (min-width: 640px) { .fmt-tiles { grid-template-columns: repeat(3, 1fr); } }
.back-link { margin-top: 24px; font-size: 14px; }

/* ── Чат-виджет «Помощник мастерской» (widget-chat.js) ────────────────── */
.svc-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--clr-primary, #7A3B2C); color: #fff;
  font: 600 15px/1 "Inter", "Segoe UI", system-ui, sans-serif;
  box-shadow: var(--shadow-btn, 0 4px 12px rgba(122, 59, 44, .35));
  transition: transform .15s ease, box-shadow .15s ease;
}
.svc-launch:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(122, 59, 44, .45); }
.svc-launch:focus-visible, .svc-send:focus-visible, .svc-close:focus-visible { outline: 3px solid #E8B98A; outline-offset: 2px; }
.svc-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 901;
  width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--clr-bg, #FAF4EC); color: var(--clr-text, #3A302A);
  border: 1px solid var(--clr-border, #E3D6C4); border-radius: 18px;
  box-shadow: 0 16px 48px rgba(36, 24, 19, .22);
  font: 400 15px/1.45 "Inter", "Segoe UI", system-ui, sans-serif;
}
.svc-panel[hidden], .svc-ts[hidden] { display: none; }
.svc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; background: var(--clr-primary, #7A3B2C); color: #fff;
}
.svc-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.svc-title b { font-size: 16px; font-weight: 700; }
.svc-title small { font-size: 12px; opacity: .85; }
.svc-close {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1;
}
.svc-close:hover { background: rgba(255, 255, 255, .28); }
.svc-log {
  flex: 1 1 auto; overflow-y: auto; padding: 14px 14px 6px;
  display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain;
}
.svc-msg { display: flex; flex-direction: column; gap: 8px; max-width: 88%; }
.svc-user { align-self: flex-end; align-items: flex-end; }
.svc-bot { align-self: flex-start; align-items: flex-start; }
.svc-bubble {
  padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.svc-user .svc-bubble { background: var(--clr-primary, #7A3B2C); color: #fff; border-bottom-right-radius: 4px; }
.svc-bot .svc-bubble { background: #fff; border: 1px solid var(--clr-border, #E3D6C4); border-bottom-left-radius: 4px; }
.svc-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.svc-bot .svc-bubble a { color: var(--clr-primary, #7A3B2C); font-weight: 600; }
.svc-typing .svc-bubble { letter-spacing: 3px; color: #9a8b7c; animation: svc-pulse 1.1s ease-in-out infinite; }
@keyframes svc-pulse { 50% { opacity: .35; } }
.svc-card {
  display: flex; gap: 12px; align-items: center; padding: 8px; width: 100%;
  background: #fff; border: 1px solid var(--clr-border, #E3D6C4); border-radius: 12px;
  color: inherit; text-decoration: none; box-shadow: var(--shadow-card, 0 8px 24px rgba(0, 0, 0, .06));
}
.svc-card:hover { border-color: var(--clr-primary, #7A3B2C); }
.svc-card img { flex: none; width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--clr-bg-alt, #F0E6D8); }
.svc-card-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svc-card-tx b { font-size: 15px; color: var(--clr-heading, #1F1512); }
.svc-card-tx span { font-size: 13px; color: var(--clr-primary, #7A3B2C); font-weight: 600; }
.svc-ts { display: flex; justify-content: center; padding: 8px 12px; border-top: 1px solid var(--clr-border, #E3D6C4); background: var(--clr-bg-alt, #F0E6D8); }
.svc-ts.svc-ts-wait { height: 0; padding: 0; border-top: 0; overflow: hidden; }
.svc-form {
  display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--clr-border, #E3D6C4); background: #fff;
}
.svc-input {
  flex: 1 1 auto; resize: none; box-sizing: border-box; min-height: 44px; max-height: 110px; padding: 10px 12px; overflow-y: hidden;
  border: 1px solid var(--clr-border, #E3D6C4); border-radius: 12px; background: var(--clr-bg, #FAF4EC);
  color: var(--clr-text, #3A302A); font: inherit; outline: none;
}
.svc-input:focus { border-color: var(--clr-primary, #7A3B2C); }
.svc-input:disabled { opacity: .6; }
.svc-send {
  flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--clr-primary, #7A3B2C); color: #fff;
}
.svc-send:disabled { opacity: .5; cursor: default; }
.svc-foot { padding: 8px 14px 10px; background: #fff; font-size: 12px; color: #7d6f63; }
.svc-foot a { color: var(--clr-primary, #7A3B2C); font-weight: 600; }
@media (max-width: 560px) {
  .svc-launch { right: 14px; bottom: 14px; padding: 15px; }
  .svc-launch-t { display: none; }
  .svc-panel { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: min(640px, calc(100vh - 16px)); max-height: none; border-radius: 16px; }
  .svc-open .svc-launch { display: none; }
  .svc-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .svc-launch, .svc-typing .svc-bubble { transition: none; animation: none; } }
@media print { .svc-launch, .svc-panel { display: none !important; } }
