:root {
  --accent: #FF2056;      /* цвет бренда ti-project */
  --site-accent: #C26A5A; /* цвет сайта клиента в предпросмотре конструктора */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FAFAF8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }
img { max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* FAQ */
details > summary { align-items: center; }
details > summary::-webkit-details-marker { display: none; }
.faq-ic { transition: transform .2s ease; }
details[open] > summary .faq-ic { transform: rotate(180deg); }

/* How it works: scrollspy tabs */
[data-target] { transition: color .2s ease, border-color .2s ease; }

/* Cookie banner */
.cookie-banner {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  max-width: 400px; background: #fff; border: 1px solid #ECECE7; border-radius: 16px;
  box-shadow: 0 20px 48px -16px rgba(20,20,30,.28); padding: 20px 22px;
  font-family: 'Poppins', sans-serif; color: #15151A;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; line-height: 1.6; color: #4B4B55; margin: 0 0 16px; }
.cookie-banner p a { color: #13131A; text-decoration: underline; text-decoration-color: #CFCFC8; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-accept, .cookie-necessary { padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.cookie-accept { background: #13131A; color: #fff; border: none; }
.cookie-necessary { background: transparent; color: #13131A; border: 1.5px solid #DCDCD6; }

/* 404 */
.nf-missing {
  height: 112px; border-radius: 12px; border: 2px dashed #D3D3CC; background: #FBFBF9;
  display: flex; align-items: center; justify-content: center;
  animation: nf-pulse 2.4s ease-in-out infinite;
}
@keyframes nf-pulse { 50% { border-color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .nf-missing { animation: none; } }

/* Templates filter: hidden cards */
article[data-niche].is-hidden { display: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .hiw-nav { position: static !important; flex-basis: 100% !important; flex-direction: row !important; flex-wrap: wrap; gap: 4px 16px; }
  .cx-steps { display: none !important; }
  .acc-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 1100px) {
  .cx-root { height: auto !important; }
  .cx-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  section, header > div, footer { padding-left: 16px !important; padding-right: 16px !important; }
}

/* ---------- App: вход, кабинет, админка ---------- */
[hidden] { display: none !important; }
.ti-label { display: block; font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500; color: #13131A; margin-bottom: 8px; }
.ti-input {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid #DCDCD6; border-radius: 12px; background: #fff;
  font-family: 'Poppins', sans-serif; font-size: 15px; color: #13131A; outline: none;
}
.ti-input:focus { border-color: var(--accent); }
.ti-input-code { letter-spacing: 0.4em; font-size: 22px; text-align: center; font-weight: 600; }
select.ti-input { padding-right: 8px; }
.ti-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px;
  border-radius: 12px; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.ti-btn-primary { background: var(--accent); color: #fff; border: none; }
.ti-btn-dark { background: #13131A; color: #fff; border: none; }
.ti-btn-ghost { background: #fff; color: #13131A; border: 1.5px solid #DCDCD6; }
.ti-btn-small { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.ti-btn[disabled] { opacity: .55; cursor: default; }
.ti-btn-link { background: none; border: none; padding: 0; font: inherit; color: #6B6B76; text-decoration: underline; text-decoration-color: #CFCFC8; text-underline-offset: 3px; cursor: pointer; }
.ti-error { color: #B42318; background: #FEF3F2; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.ti-note { color: #067647; background: #ECFDF3; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.ti-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.55; color: #4B4B55; }
.ti-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.ti-check a { color: #13131A; text-decoration: underline; text-decoration-color: #CFCFC8; text-underline-offset: 3px; }

.ti-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ti-badge[data-status="submitted"] { color: #55555E; background: #F1F1EC; }
.ti-badge[data-status="awaiting_payment"] { color: #3538CD; background: #EEF0FD; }
.ti-badge[data-status="paid"] { color: #3538CD; background: #EEF0FD; }
.ti-badge[data-status="building"] { color: #B54708; background: #FEF0C7; }
.ti-badge[data-status="transferred"] { color: #067647; background: #DCFAE6; }
.ti-badge[data-status="cancelled"] { color: #B42318; background: #FEF3F2; }

.ti-card { background: #fff; border: 1px solid #ECECE7; border-radius: 18px; }
.ti-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ti-table th { text-align: left; padding: 12px; font-size: 12px; font-weight: 500; color: #8A8A92; background: #FAFAF8; }
.ti-table td { padding: 14px 12px; border-top: 1px solid #F0F0EB; color: #13131A; vertical-align: middle; }
.ti-table th:first-child, .ti-table td:first-child { padding-left: 24px; }
.ti-table th:last-child, .ti-table td:last-child { padding-right: 24px; }
.ti-muted { color: #8A8A92; }

.ti-steps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.ti-step { padding-right: 12px; font-family: 'Poppins', sans-serif; }
.ti-step-head { display: flex; align-items: center; margin-bottom: 10px; }
.ti-step-dot { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #D3D3CC; background: #fff; }
.ti-step-line { flex: 1; height: 2px; background: #E6E6E0; margin-left: 8px; }
.ti-step:last-child .ti-step-line { display: none; }
.ti-step[data-state="done"] .ti-step-dot { background: #12B76A; border-color: #12B76A; }
.ti-step[data-state="done"] .ti-step-dot::after { content: ""; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.ti-step[data-state="done"] .ti-step-line { background: #12B76A; }
.ti-step[data-state="current"] .ti-step-dot { border-color: #F79009; }
.ti-step[data-state="current"] .ti-step-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #F79009; }
.ti-step-title { font-size: 14px; font-weight: 600; color: #13131A; }
.ti-step[data-state="todo"] .ti-step-title { font-weight: 500; color: #6B6B76; }
.ti-step-sub { font-size: 12px; color: #8A8A92; margin-top: 2px; }

@media (max-width: 700px) {
  .ti-steps { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .ti-step:nth-child(2) .ti-step-line { display: none; }
}

/* ---------- Hero: анимация конструктора (assets/hero-demo.js) ---------- */
/* Холст рисуется в размере 1016×572 и масштабируется под ширину блока (--s ставит скрипт) */
@property --da { syntax: '<color>'; inherits: true; initial-value: #C26A5A; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dm { --da: #C26A5A; transition: --da .9s ease; }
.dm-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -40px rgba(20,20,30,.3), 0 0 0 1px #ECECE7; }
.dm-canvas { position: absolute; left: 0; top: 0; width: 1016px; height: 572px; transform: scale(var(--s, 1)); transform-origin: 0 0; font-family: 'Inter', sans-serif; color: #13131A; user-select: none; transition: opacity .4s ease; }
.dm-canvas.is-fading { opacity: 0; }
.dm-instant, .dm-instant * { transition: none !important; animation: none !important; }
.dm i, .dm em { font-style: normal; }

.dm-body { position: relative; height: 501px; }  /* 572 минус шапка браузера 71px */
/* Сначала гаснет старый слой, потом проявляется новый: без каши из двух экранов */
.dm-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
.dm-layer.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease .25s; }

/* Конструктор */
.dm-top { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid #F0F0EB; font-family: 'Poppins', sans-serif; }
.dm-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dm-logo { width: 22px; height: 22px; border-radius: 7px; background: url(../favicon.svg) center / cover; }
.dm-tpl { font-size: 12px; color: #6B6B76; padding: 3px 10px; border-radius: 999px; background: #F4F4F1; }
.dm-stepper { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.dm-stepper li { display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; color: #9A9AA0; transition: background .3s, color .3s; }
.dm-stepper span { position: relative; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F0F0EB; font-size: 11px; font-weight: 600; color: #8A8A92; transition: background .3s, color .3s; }
.dm-stepper li.is-done { color: #13131A; }
.dm-stepper li.is-done span { background: #12B76A; color: transparent; }
.dm-stepper li.is-done span::after { content: ""; position: absolute; width: 8px; height: 4.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.dm-stepper li.is-cur { background: #13131A; color: #fff; }
.dm-stepper li.is-cur span { background: #fff; color: #13131A; }

.dm-main { display: flex; height: 449px; }
.dm-side { position: relative; width: 300px; flex-shrink: 0; border-right: 1px solid #F0F0EB; font-family: 'Poppins', sans-serif; }
.dm-panel { position: absolute; left: 18px; right: 18px; top: 18px; bottom: 84px; opacity: 0; visibility: hidden; transform: translateX(-10px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.dm-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease .18s, transform .35s ease .18s; }
.dm-h { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 12px; }
.dm-sub { font-size: 12px; line-height: 1.5; color: #8A8A92; margin: -6px 0 14px; }
.dm-hint { font-size: 11.5px; line-height: 1.5; color: #8A8A92; margin: 10px 0 0; }

.dm-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dm-tplcard { border: 1.5px solid #ECECE7; border-radius: 12px; padding: 7px 7px 9px; transition: border-color .25s, box-shadow .25s, transform .15s; }
.dm-tplcard b { display: block; font-size: 13px; font-weight: 600; margin-top: 7px; }
.dm-tplcard small { font-size: 11px; color: #8A8A92; }
.dm-tplcard.is-sel { border-color: #13131A; box-shadow: 0 0 0 3px rgba(19,19,26,.08); }
.dm-thumb { position: relative; height: 104px; border-radius: 8px; }
.dm-thumb::before { content: ""; position: absolute; left: 10px; top: 16px; width: 52%; height: 7px; border-radius: 4px; background: rgba(255,255,255,.9); box-shadow: 0 13px 0 -1px rgba(255,255,255,.6); }
.dm-thumb::after { content: ""; position: absolute; left: 10px; bottom: 12px; width: 38px; height: 13px; border-radius: 4px; background: rgba(19,19,26,.72); }
.dm-thumb.t1 { background: linear-gradient(160deg, #F7E6DF, #E2B9AB); }
.dm-thumb.t2 { background: linear-gradient(160deg, #ECE6F8, #C7B8EC); }
.dm-thumb.t3 { background: linear-gradient(160deg, #3A3A42, #1C1C21); }
.dm-thumb.t3::after { background: #E0A33A; }
.dm-thumb.t4 { background: linear-gradient(160deg, #E8EDF4, #BCC8DA); }

.dm-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid #F0F0EB; border-radius: 10px; margin-bottom: 7px; font-size: 13px; background: #fff; }
.dm-row small { color: #9A9AA0; font-size: 11px; margin-left: 7px; }
.dm-tg { position: relative; width: 32px; height: 18px; border-radius: 999px; background: #E3E3DD; transition: background .25s; }
.dm-tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .25s ease; }
.dm-tg.is-on { background: var(--accent); }
.dm-tg.is-on::after { transform: translateX(14px); }

.dm-sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.dm-sw i { aspect-ratio: 1; border-radius: 12px; transition: box-shadow .25s, transform .15s; }
.dm-sw i.is-sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #13131A; }
.dm-hex { display: flex; align-items: center; gap: 10px; border: 1.5px solid #ECECE7; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.dm-hex i { width: 20px; height: 20px; border-radius: 6px; background: var(--da); }

.dm-sum { list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; }
.dm-sum li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0F0EB; }
.dm-sum li > span { color: #8A8A92; }
.dm-sum b { font-weight: 600; display: flex; align-items: center; }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--da); margin-right: 6px; }
.dm-price { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }

.dm-send { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 48px; border-radius: 12px; background: #13131A; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; transition: background .3s, transform .15s; }
.dm[data-scene="4"] .dm-send { background: var(--accent); }
.is-press { transform: scale(.96) !important; }

.dm-preview { position: relative; flex: 1; background: #F4F4F1; padding: 18px 22px; }
.dm-empty { position: absolute; inset: 18px 22px; border: 2px dashed #D3D3CC; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #8A8A92; font-size: 14px; font-family: 'Poppins', sans-serif; transition: opacity .3s; }
.dm.has-tpl .dm-empty { opacity: 0; }
.dm-site { position: relative; height: 100%; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(20,20,30,.35); overflow: hidden; }
.dm-site > * { transition: opacity .45s ease var(--d, 0s), transform .45s ease var(--d, 0s), grid-template-rows .5s ease; }
.dm-site > :nth-child(2) { --d: .08s; }
.dm-site > :nth-child(3) { --d: .16s; }
.dm-site > :nth-child(4) { --d: .24s; }
.dm-site > :nth-child(5) { --d: .32s; }
.dm-site > :nth-child(6) { --d: .40s; }
.dm-site > :nth-child(7) { --d: .48s; }
.dm:not(.has-tpl) .dm-cx .dm-site { background: transparent; box-shadow: none; }
.dm:not(.has-tpl) .dm-cx .dm-site > * { opacity: 0; transform: translateY(12px); }

/* Мини-сайт клиента: цвет берётся из --da */
.ms-nav { display: flex; align-items: center; gap: 14px; padding: 12px 20px; }
.ms-nav b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 14px; margin-right: auto; }
.ms-nav span { width: 38px; height: 5px; border-radius: 3px; background: #E4E4DE; }
.ms-nav em, .ms-hero em { font-size: 10px; font-weight: 600; color: #fff; background: var(--da); padding: 5px 10px; border-radius: 6px; font-family: 'Poppins', sans-serif; }
.ms-w { display: grid; grid-template-rows: 1fr; }
.ms-w > div { min-height: 0; overflow: hidden; }
.ms-w > div > .ms-b { transition: opacity .4s ease; }
.ms-w.is-off { grid-template-rows: 0fr; }
.ms-w.is-off > div > .ms-b { opacity: 0; }
.ms-w.is-flash .ms-b { animation: ms-flash 1.4s ease; }
@keyframes ms-flash { 0%, 40% { box-shadow: inset 0 0 0 2px var(--accent); } 100% { box-shadow: inset 0 0 0 2px transparent; } }
.ms-b { padding: 12px 20px; font-family: 'Poppins', sans-serif; }
.ms-h { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; margin-bottom: 10px; }
.ms-l { display: block; height: 6px; border-radius: 3px; background: #E7E7E1; margin-bottom: 6px; width: 88%; }
.ms-l.s { width: 60%; }
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; padding-bottom: 18px; }
.ms-hero em { display: inline-block; margin-top: 10px; font-size: 11px; padding: 7px 12px; }
.ms-h1 { position: relative; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 25px; line-height: 1.12; letter-spacing: -0.02em; min-height: 56px; margin-bottom: 12px; border-radius: 4px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .2s; }
.ms-h1.is-edit { outline-color: #3B82F6; }
.ms-h1.is-typing::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px; vertical-align: -0.1em; background: #3B82F6; animation: ms-caret .8s steps(1) infinite; }
@keyframes ms-caret { 50% { opacity: 0; } }
.ms-photo { position: relative; height: 150px; border-radius: 12px; overflow: hidden; outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .2s;
  background: #EAD9D2;
  background: radial-gradient(circle at 72% 32%, rgba(255,255,255,.75) 0 16px, transparent 17px), linear-gradient(150deg, color-mix(in srgb, var(--da) 18%, #fff), color-mix(in srgb, var(--da) 55%, #F3E6E0)); }
/* «Загруженное фото»: интерьер салона, окно, зеркало и стол */
.ms-photo::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; background-repeat: no-repeat;
  background-image:
    radial-gradient(circle, #F4E7DE 0 24px, #C99F8D 25px 28px, transparent 29px),
    linear-gradient(#8A5C4E, #74493D),
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.18)),
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.18)),
    linear-gradient(170deg, #EAD7CC, #BC8F7D);
  background-size: 64px 64px, 100% 24%, 18% 46%, 18% 46%, 100% 100%;
  background-position: 78% 30%, 0 100%, 12% 22%, 34% 22%, 0 0; }
.ms-photo.is-new::before { opacity: 1; }
.ms-photo.is-edit { outline-color: #3B82F6; }
.ms-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms-cards > div { border: 1px solid #F0F0EB; border-radius: 10px; padding: 10px; font-size: 11px; }
.ms-cards b { display: block; font-weight: 600; margin-bottom: 4px; }
.ms-cards span { color: var(--da); font-weight: 600; }
.ms-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ms-grid4 i { aspect-ratio: 1.25; border-radius: 8px; background: #EAD9D2; background: color-mix(in srgb, var(--da) 22%, #fff); }
.ms-grid4 i:nth-child(2) { background: color-mix(in srgb, var(--da) 40%, #fff); }
.ms-grid4 i:nth-child(3) { background: color-mix(in srgb, var(--da) 14%, #fff); }
.ms-grid4 i:nth-child(4) { background: color-mix(in srgb, var(--da) 30%, #F6EEE9); }
.ms-rv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-rv > div { background: #FAFAF8; border-radius: 10px; padding: 10px; }
.ms-rv small { font-size: 10px; color: #8A8A92; }
.ms-stars { display: block; color: var(--da); font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; }
.ms-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.ms-map { position: relative; height: 84px; border-radius: 10px; background-color: #EEF0EA; background-image: repeating-linear-gradient(0deg, transparent 0 15px, #E0E4D9 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, #E0E4D9 15px 16px); }
.ms-map i { position: absolute; left: 55%; top: 30%; width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--da); }
.ms-link { font-size: 11px; font-weight: 600; color: var(--da); }
.ms-foot { margin-top: 6px; padding: 12px 20px; background: #13131A; color: #8A8A92; font-size: 10px; font-family: 'Poppins', sans-serif; }

.dm-modal { position: absolute; inset: 52px 0 0 0; display: flex; align-items: center; justify-content: center; background: rgba(250,250,248,.72); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.dm-modal.is-on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.dm-modal-card { width: 340px; background: #fff; border-radius: 18px; padding: 30px 32px; text-align: center; font-family: 'Poppins', sans-serif; box-shadow: 0 30px 60px -20px rgba(20,20,30,.3); transform: translateY(14px) scale(.95); transition: transform .5s cubic-bezier(.2,.9,.3,1.2); }
.dm-modal.is-on .dm-modal-card { transform: none; }
.dm-modal-card b { display: block; font-family: 'Manrope', sans-serif; font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.dm-modal-card p { font-size: 13px; color: #4B4B55; margin: 0 0 4px; }
.dm-modal-card small { font-size: 12px; color: #8A8A92; }
.dm-check { position: relative; width: 54px; height: 54px; border-radius: 50%; background: #12B76A; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.dm-check::after { content: ""; width: 20px; height: 10px; border-left: 3.5px solid #fff; border-bottom: 3.5px solid #fff; transform: translateY(-2px) rotate(-45deg); }

/* Сборка в Тильде */
.dm-build { display: grid; grid-template-columns: 360px 1fr; gap: 24px; padding: 28px; background: #FAFAF8; font-family: 'Poppins', sans-serif; }
.dm-order { align-self: start; background: #fff; border: 1px solid #ECECE7; border-radius: 16px; padding: 22px; }
.dm-order-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.dm-order-h b { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; }
.dm-badge { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #3538CD; background: #EEF0FD; transition: background .3s, color .3s; }
.dm-badge[data-state="building"] { color: #B54708; background: #FEF0C7; }
.dm-badge[data-state="done"] { color: #067647; background: #DCFAE6; }
.dm-track { list-style: none; margin: 0; padding: 0; }
.dm-track li { position: relative; display: flex; gap: 12px; padding-bottom: 24px; }
.dm-track li:last-child { padding-bottom: 0; }
.dm-track li::before { content: ""; position: absolute; left: 11px; top: 27px; bottom: 3px; width: 2px; background: #E6E6E0; transition: background .4s; }
.dm-track li:last-child::before { display: none; }
.dm-track li.is-done::before { background: #12B76A; }
.dm-track li > i { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #D3D3CC; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.dm-track li.is-done > i { background: #12B76A; border-color: #12B76A; }
.dm-track li.is-done > i::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.dm-track li.is-cur > i { border-color: #F79009; }
.dm-track li.is-cur > i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #F79009; animation: dm-pulse 1.1s ease-in-out infinite; }
@keyframes dm-pulse { 50% { transform: scale(.55); } }
.dm-track b { display: block; font-size: 13.5px; font-weight: 600; transition: color .3s; }
.dm-track li:not(.is-done):not(.is-cur) b { color: #8A8A92; font-weight: 500; }
.dm-track small { font-size: 11.5px; color: #8A8A92; }
.dm-tilda { position: relative; background: #fff; border: 1px solid #ECECE7; border-radius: 16px; overflow: hidden; }
.dm-tilda-h { height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #F0F0EB; }
.dm-tilda-h b { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; }
.dm-owner { font-size: 11.5px; color: #6B6B76; padding: 4px 10px; border-radius: 999px; background: #F4F4F1; transition: background .3s, color .3s; }
.dm-owner.is-yours { color: #067647; background: #DCFAE6; }
.dm-tilda-blocks { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.dm-tb { display: flex; align-items: center; gap: 12px; border: 1px solid #F0F0EB; border-radius: 10px; padding: 8px 12px 8px 8px; font-size: 12.5px; opacity: 0; transform: translateY(-16px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.9,.3,1.25); }
.dm-tb.is-in { opacity: 1; transform: none; }
.dm-tb i { position: relative; width: 66px; height: 36px; border-radius: 6px; flex-shrink: 0; background: #EAD9D2; background: color-mix(in srgb, var(--da) 20%, #fff); }
.dm-tb i::after { content: ""; position: absolute; left: 8px; top: 9px; width: 28px; height: 5px; border-radius: 3px; background: var(--da); box-shadow: 0 9px 0 -1px #D8D8D2; }
.dm-tb small { margin-left: auto; color: #9A9AA0; font-size: 11px; }
.dm-transfer { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #13131A; color: #fff; font-size: 12.5px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.dm-transfer.is-on { opacity: 1; transform: none; }
.dm-prog { display: block; height: 4px; border-radius: 2px; background: #33333C; overflow: hidden; }
.dm-prog i { display: block; height: 100%; width: 0; background: var(--accent); }
.dm-transfer.is-on .dm-prog i { width: 100%; transition: width 1.4s linear .1s; }

/* Публикация */
.dm-pub { display: flex; flex-direction: column; background: #F4F4F1; }
.dm-pub-bar { height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fff; border-bottom: 1px solid #ECECE7; font-family: 'Poppins', sans-serif; }
.dm-pub-bar b { display: block; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; }
.dm-pub-bar small { font-size: 11.5px; color: #8A8A92; }
.dm-pub-actions { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.dm-ghost { padding: 7px 14px; border-radius: 9px; border: 1.5px solid #E3E3DD; }
.dm-publish { min-width: 124px; text-align: center; padding: 9px 16px; border-radius: 9px; background: #13131A; color: #fff; font-weight: 600; transition: background .3s, transform .15s; }
.dm-publish.is-done { background: #12B76A; }
.dm-pub-view { flex: 1; min-height: 0; padding: 20px 64px 0; overflow: hidden; }
.dm-pub-view .dm-site { height: auto; border-radius: 12px 12px 0 0; }
.dm-pub-view .ms-hero { grid-template-columns: 1fr 1fr; gap: 28px; }
.dm-pub-view .ms-h1 { font-size: 30px; min-height: 68px; margin-bottom: 16px; }
.dm-pub-view .ms-photo { height: 170px; }
.dm-live { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 20px 40px -16px rgba(20,20,30,.35), 0 0 0 1px #ECECE7; font-family: 'Poppins', sans-serif; opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.9,.3,1.2); }
.dm-live.is-on { opacity: 1; transform: none; }
.dm-live > i { width: 10px; height: 10px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 4px rgba(18,183,106,.2); }
.dm-live b { display: block; font-size: 13px; }
.dm-live small { font-size: 11.5px; color: #6B6B76; }

/* Курсор */
.dm-cursor { position: absolute; left: 0; top: 0; z-index: 10; width: 22px; height: 22px; pointer-events: none; opacity: 0; transform: translate(var(--cx, 760px), var(--cy, 600px)); transition: transform .8s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.dm-cursor.is-on { opacity: 1; }
.dm-cursor svg { display: block; transform-origin: 4px 2px; }
.dm-cursor::before { content: ""; position: absolute; left: -10px; top: -12px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,32,86,.35); opacity: 0; transform: scale(.2); }
.dm-cursor.is-click::before { animation: dm-ripple .55s ease-out; }
.dm-cursor.is-click svg { animation: dm-tap .3s ease; }
@keyframes dm-ripple { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes dm-tap { 50% { transform: scale(.82); } }

/* Этапы под анимацией */
.dm-controls { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dm-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dm-steps button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 5px; border: 1px solid #E3E3DD; border-radius: 999px; background: #fff; color: #55555E; font-family: 'Poppins', sans-serif; font-size: 13px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.dm-steps button span { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #F1F1EC; font-size: 11px; font-weight: 600; transition: background .25s, color .25s; }
.dm-steps button[aria-pressed="true"] { background: #13131A; border-color: #13131A; color: #fff; }
.dm-steps button[aria-pressed="true"] span { background: var(--accent); color: #fff; }
.dm-caption { margin: 0; min-height: 24px; text-align: center; font-size: 15px; line-height: 1.5; color: #5B5B66; }

@media (max-width: 600px) {
  .hero-media { padding: 0 0 80px !important; }
  .dm-stage { border-radius: 12px; }
  .dm-steps button { padding: 4px; }
  .dm-steps .dm-l { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dm, .dm * { transition: none !important; animation: none !important; }
}

/* ---------- Появление блоков ---------- */
/* Первый экран: при загрузке, чистый CSS */
.hero-in > div:first-child > * { animation: ti-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-in > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero-in > div:first-child > :nth-child(3) { animation-delay: .16s; }
.hero-in > div:first-child > :nth-child(4) { animation-delay: .24s; }
.hero-in > .hero-media { animation: ti-rise 1s cubic-bezier(.2,.7,.2,1) .32s both; }
@keyframes ti-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Остальное: при прокрутке (класс ставит assets/app.js) */
.rv { opacity: 0; transform: translateY(28px); }
.rv.rv-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); }

@media (prefers-reduced-motion: reduce) {
  .hero-in > div:first-child > *, .hero-in > .hero-media { animation: none; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Шапка: закреплена, прячется при прокрутке вниз (класс .is-hidden ставит app.js) ---------- */
html { scroll-padding-top: 16px; }
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,250,248,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(19,19,26,.07);
  transition: transform .32s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 24px -20px rgba(20,20,30,.25); }
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.site-header.is-hidden:focus-within { transform: none; }

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; padding: 0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #13131A; color: #fff; cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(20,20,30,.5);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease, bottom .25s ease, visibility 0s linear .35s;
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease, bottom .25s ease; }
.to-top:hover { background: var(--accent); opacity: 1; }
.to-top:active { transform: scale(.94); }
@media (max-width: 600px) { .to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .site-header, .to-top { transition: none; } }

/* ---------- Документы: оферта, политики, согласие ---------- */
.doc-wrap { max-width: 1160px; margin: 0 auto; padding: 48px 32px 112px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 72px; align-items: start; }
.doc-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 28px; font-family: 'Poppins', sans-serif; }
.doc-tabs { display: flex; flex-direction: column; gap: 2px; }
.doc-tabs a { padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: #55555E; }
.doc-tabs a:hover { background: #F1F1EC; opacity: 1; }
.doc-tabs a[aria-current="page"] { background: #13131A; color: #fff; font-weight: 500; }
.doc-toc-h { margin: 0 0 10px 12px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #9A9AA0; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1.5px solid #E6E6E0; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -1.5px; border-left: 1.5px solid transparent; font-size: 13px; line-height: 1.45; color: #6B6B76; }
.doc-toc a::before { content: counter(toc) ". "; color: #A6A6AC; }
.doc-toc a.is-active { color: #13131A; border-left-color: var(--accent); }

.doc { max-width: 760px; min-width: 0; color: #2E2E36; }
.doc-kicker { margin: 0 0 14px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: var(--accent); }
.doc h1 { margin: 0 0 10px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; color: #13131A; }
.doc-sub { margin: 0 0 10px; font-size: 18px; line-height: 1.5; color: #55555E; }
.doc-meta { margin: 0 0 32px; font-size: 14px; color: #8A8A92; }
.doc-lead { font-size: 17px !important; color: #3B3B44 !important; }
.doc-summary { margin: 0 0 40px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid #ECECE7; }
.doc-summary-h { margin: 0 0 10px !important; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px !important; color: #13131A !important; }
.doc-summary ul { margin: 0 0 12px; padding-left: 20px; }
.doc-summary li { margin: 6px 0; font-size: 15px; line-height: 1.6; }
.doc-summary li::marker { color: var(--accent); }
.doc-summary-note { margin: 0 !important; font-size: 13px !important; color: #8A8A92 !important; }
.doc-sec { padding-top: 8px; scroll-margin-top: 16px; }
.doc h2 { margin: 36px 0 14px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; color: #13131A; }
.doc p { margin: 0 0 12px; font-size: 16px; line-height: 1.72; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin: 5px 0; font-size: 16px; line-height: 1.65; }
.doc a { color: #13131A; text-decoration: underline; text-decoration-color: #CFCFC8; text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--accent); opacity: 1; }
.doc b { color: #13131A; font-weight: 600; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 2px 6px; border-radius: 6px; background: #F1F1EC; color: #13131A; white-space: nowrap; }
.doc-table { margin: 4px 0 18px; overflow-x: auto; border: 1px solid #ECECE7; border-radius: 14px; background: #fff; }
.doc-table table { width: 100%; min-width: 640px; border-collapse: collapse; }
.doc-table th { padding: 12px 14px; text-align: left; vertical-align: bottom; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; color: #6B6B76; background: #FAFAF8; border-bottom: 1px solid #ECECE7; }
.doc-table td { padding: 14px; vertical-align: top; font-size: 14px; line-height: 1.55; border-top: 1px solid #F0F0EB; }
.doc-table tr:first-child td { border-top: none; }
.doc-table td:first-child { font-weight: 600; color: #13131A; }
.doc-req { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; margin: 0; padding: 20px 22px; border: 1px solid #ECECE7; border-radius: 14px; background: #fff; font-size: 15px; }
.doc-req dt { color: #8A8A92; }
.doc-req dd { margin: 0; color: #13131A; font-weight: 500; }
.doc-actions { margin-top: 32px; }

@media (max-width: 900px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .doc-side { position: static; }
  .doc-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .doc-tabs a { border: 1px solid #E3E3DD; background: #fff; font-size: 13px; padding: 7px 12px; }
  .doc-toc { display: none; }
}
@media (max-width: 600px) {
  .doc-wrap { padding-left: 16px; padding-right: 16px; }
  .doc-req { grid-template-columns: 1fr; gap: 2px; }
  .doc-req dd { margin-bottom: 10px; }
}

/* Шапка на телефоне: одна строка, остаются «Войти» и «Выбрать шаблон» */
@media (max-width: 600px) {
  .site-header > div { flex-wrap: nowrap !important; gap: 12px !important; padding-top: 12px !important; padding-bottom: 12px !important; }
  .site-header nav[aria-label="Основная навигация"] { gap: 14px !important; flex-wrap: nowrap !important; }
  .site-header nav[aria-label="Основная навигация"] a:not(:nth-last-child(-n+2)) { display: none; }
  .site-header nav[aria-label="Основная навигация"] a:last-child { padding: 8px 12px !important; font-size: 13px !important; white-space: nowrap; }
}
@media (max-width: 360px) {
  .site-header nav[aria-label="Основная навигация"] a:nth-last-child(2) { display: none; }
}
@media (max-width: 600px) {
  .site-header #user-email { display: none; }  /* кабинет: на телефоне почта не помещается, остаётся «Выйти» */
}

/* ---------- Кабинет: заявка ---------- */
.ti-textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.inq-card { padding: 28px; font-family: 'Poppins', sans-serif; }
.inq-dev { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px 5px 10px; border-radius: 999px; background: #FFF1F4; color: #C0123E; font-size: 12.5px; font-weight: 600; }
.inq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: inq-pulse 1.6s ease-in-out infinite; }
@keyframes inq-pulse { 50% { box-shadow: 0 0 0 5px rgba(255,32,86,.15); } }
.inq-h { margin: 0 0 8px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: #13131A; }
.inq-lead { margin: 0 0 22px; max-width: 620px; font-size: 14px; line-height: 1.6; color: #55555E; }
.inq-lead b { color: #13131A; font-weight: 600; }
.inq-niches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.inq-niches legend { padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.inq-chip { position: relative; cursor: pointer; }
.inq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.inq-chip span { display: inline-block; padding: 8px 14px; border: 1.5px solid #E3E3DD; border-radius: 999px; background: #fff; font-size: 13.5px; color: #3B3B44; transition: border-color .2s, background .2s, color .2s; }
.inq-chip:hover span { border-color: #C9C9C2; }
.inq-chip input:checked + span { background: #13131A; border-color: #13131A; color: #fff; }
.inq-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.inq-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; font-size: 12.5px; }
.inq-status { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.inq-status[data-kind="ok"] { color: #067647; background: #ECFDF3; }
.inq-status[data-kind="error"] { color: #B42318; background: #FEF3F2; }
.inq-item { padding: 18px 24px; border-top: 1px solid #F0F0EB; }
.inq-item:first-child { border-top: none; }
.inq-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.inq-item-title { font-size: 14px; font-weight: 600; color: #13131A; }
.inq-item-title small { margin-left: 6px; font-weight: 400; color: #9A9AA0; font-size: 13px; }
.inq-item-text { margin: 0; font-size: 14px; line-height: 1.6; color: #3B3B44; white-space: pre-wrap; overflow-wrap: anywhere; }
.inq-reply { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: #F6F6F2; border-left: 3px solid var(--accent); font-size: 14px; line-height: 1.6; color: #13131A; white-space: pre-wrap; overflow-wrap: anywhere; }
.inq-reply-h { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: #8A8A92; white-space: normal; }
.ti-badge[data-status="new"] { color: #55555E; background: #F1F1EC; }
.ti-badge[data-status="in_progress"] { color: #B54708; background: #FEF0C7; }
.ti-badge[data-status="done"] { color: #067647; background: #DCFAE6; }
@media (prefers-reduced-motion: reduce) { .inq-dot { animation: none; } }

/* ---------- Админка: статистика ---------- */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-tile { padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid #ECECE7; }
.adm-tile p { margin: 0; }
.adm-tile-label { font-size: 13px; color: #6B6B76; }
.adm-tile-value { margin-top: 6px !important; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; color: #13131A; font-variant-numeric: tabular-nums; }
.adm-tile-sub { margin-top: 4px !important; font-size: 12.5px; color: #8A8A92; }
.adm-tile-sub b { color: #13131A; font-weight: 600; }
.adm-chart-card { padding: 20px 24px 16px; }
.adm-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.adm-chart-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: #13131A; }
.adm-chart-head span { font-size: 13px; }
.adm-chart { position: relative; display: grid; grid-template-columns: 28px 1fr; grid-template-rows: 180px auto; column-gap: 8px; }
.adm-y { position: relative; grid-row: 1; font-size: 11px; color: #9A9AA0; font-variant-numeric: tabular-nums; }
.adm-y span { position: absolute; right: 0; transform: translateY(-50%); }
.adm-plot { position: relative; grid-row: 1; grid-column: 2; border-bottom: 1px solid #DCDCD6; }
.adm-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed #EDEDE8; }
.adm-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.adm-bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0; border: 0; background: none; cursor: default; }
.adm-bar i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 0 0; background: var(--accent); transition: opacity .15s; }
.adm-bar:hover i, .adm-bar:focus-visible i { opacity: .75; }
.adm-bar:hover, .adm-bar:focus-visible { background: rgba(19,19,26,.04); border-radius: 6px; }
.adm-x { grid-row: 2; grid-column: 2; display: flex; justify-content: space-between; padding-top: 8px; font-size: 11px; color: #9A9AA0; }
.adm-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, -100%); margin-top: -8px; padding: 6px 10px; border-radius: 8px; background: #13131A; color: #fff; font-size: 12px; white-space: nowrap; box-shadow: 0 8px 20px -10px rgba(20,20,30,.5); }
.adm-tip b { font-weight: 600; }
.adm-chart-foot { margin: 12px 0 0; font-size: 12.5px; color: #8A8A92; }

/* Вкладки */
.adm-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #F1F1EC; align-self: flex-start; flex-wrap: wrap; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14px; color: #55555E; cursor: pointer; }
.adm-tabs button[aria-selected="true"] { background: #fff; color: #13131A; font-weight: 600; box-shadow: 0 1px 3px rgba(20,20,30,.08); }
.adm-count { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #E3E3DD; font-size: 11.5px; font-weight: 600; color: #55555E; text-align: center; }
.adm-count:empty { display: none; }
.adm-count.is-hot { background: var(--accent); color: #fff; }

/* Заявки в админке */
.adm-inq-list { display: flex; flex-direction: column; gap: 12px; }
.adm-inq { padding: 20px 24px; }
.adm-inq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-inq-who { font-size: 14px; color: #13131A; }
.adm-inq-who b { font-weight: 600; }
.adm-inq-who a { color: #13131A; text-decoration: underline; text-decoration-color: #CFCFC8; text-underline-offset: 3px; }
.adm-inq-meta { font-size: 12.5px; color: #8A8A92; margin-top: 2px; }
.adm-inq-text { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #2E2E36; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-inq-form { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.adm-inq-form .ti-textarea { min-height: 44px; height: 44px; font-size: 13px; }
.adm-inq-actions { display: flex; flex-direction: column; gap: 6px; }
.adm-inq-hint { grid-column: 2 / 4; margin: -2px 0 0; font-size: 12px; color: #9A9AA0; }
@media (max-width: 760px) {
  .adm-inq-form { grid-template-columns: 1fr; }
  .adm-inq-hint { grid-column: auto; }
  .adm-chart { grid-template-rows: 140px auto; }
}

/* ---------- Мокапы: окно браузера в стиле Chrome ---------- */
.cr { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -22px rgba(20,20,30,.24), 0 0 0 1px rgba(19,19,26,.10); font-family: 'Inter', system-ui, sans-serif; color: #1F1F1F; }
.cr i, .cr em { font-style: normal; }
.cr-tabs { position: relative; display: flex; align-items: flex-end; height: 38px; padding-left: 8px; background: #DFE3E9; user-select: none; }
.cr-tab { position: relative; display: flex; align-items: center; gap: 8px; width: 210px; min-width: 0; height: 32px; padding: 0 8px 0 12px; font-size: 12px; color: #45474B; }
.cr-tab::after { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: #A9AEB6; }
.cr-tab:first-child::after, .cr-tab.is-active::after, .cr-tab.is-active + .cr-tab::after { display: none; }
.cr-tab.is-active { z-index: 1; background: #fff; border-radius: 10px 10px 0 0; color: #1F1F1F; }
.cr-tab.is-active::before, .cr-tab.is-active > .cr-flare { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; pointer-events: none; }
.cr-tab.is-active::before { left: -10px; background: radial-gradient(circle at 0 0, transparent 9.5px, #fff 10px); }
.cr-tab.is-active > .cr-flare { right: -10px; background: radial-gradient(circle at 100% 0, transparent 9.5px, #fff 10px); }
.cr-fav { width: 16px; height: 16px; flex-shrink: 0; border-radius: 4px; background: url(../favicon.svg) center / cover; }
.cr-fav.is-globe { border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #8D9199; }
.cr-fav.is-globe::before { content: ""; display: block; width: 6px; height: 16px; margin: 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #8D9199; }
.cr-title { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cr-x { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; color: #45474B; }
.cr-new { display: flex; align-items: center; justify-content: center; align-self: center; width: 28px; height: 28px; margin-left: 4px; border-radius: 50%; color: #45474B; }
.cr-win { display: flex; align-self: stretch; margin-left: auto; color: #1F1F1F; }
.cr-win span { display: flex; align-items: center; justify-content: center; width: 42px; }
.cr-bar { display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 8px; background: #fff; border-bottom: 1px solid #E3E5E8; }
.cr-ic { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: #474747; }
.cr-ic.is-off { color: #B9BCC1; }
.cr-omni { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 30px; margin: 0 6px; padding: 0 6px 0 4px; border-radius: 999px; background: #EDF0F4; font-size: 13px; }
.cr-site { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: #fff; color: #474747; }
.cr-url { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #1F1F1F; }
.cr-url span { color: #6A6E75; }
.cr-avatar { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0 4px; flex-shrink: 0; border-radius: 50%; background: #7C5CE0; color: #fff; font-size: 11px; font-weight: 600; }
.cr-body { background: #FBFBFA; }
@media (max-width: 600px) {
  .cr:not(.cr-fixed) .cr-tab:not(.is-active), .cr:not(.cr-fixed) .cr-win, .cr:not(.cr-fixed) .cr-hide-sm { display: none; }
  .cr:not(.cr-fixed) .cr-tab { width: auto; flex: 0 1 220px; }
}
/* в hero-анимации окно рисуется на холсте фиксированного размера */
.dm-canvas .cr-tabs, .dm-canvas .cr-bar { position: relative; z-index: 2; }
.dm-canvas .cr-tabs { height: 34px; }
.dm-canvas .cr-tab { height: 29px; }
.dm-canvas .cr-bar { height: 36px; }
.dm-canvas .cr-omni { height: 28px; }

/* Шаблоны (глава 1) */
.tp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-family: 'Poppins', sans-serif; }
.tp-head b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; color: #13131A; }
.tp-head span { font-size: 12px; color: #8A8A92; }
.tp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tp-card { position: relative; display: block; width: 100%; padding: 8px 8px 12px; border: 1.5px solid #ECECE7; border-radius: 14px; background: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tp-card:hover { border-color: #CFCFC8; transform: translateY(-2px); }
.tp-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,32,86,.12); }
.tp-badge { position: absolute; top: -10px; right: 10px; z-index: 1; display: none; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-family: 'Poppins', sans-serif; }
.tp-card[aria-pressed="true"] .tp-badge { display: inline-flex; }
.tp-thumb { position: relative; display: block; height: 116px; overflow: hidden; border-radius: 9px; padding: 9px 10px; background: var(--tp-bg); }
.tp-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.tp-nav b { margin-right: auto; font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 800; color: var(--tp-ink); }
.tp-nav i { width: 14px; height: 3px; border-radius: 2px; background: var(--tp-line); }
.tp-nav em { width: 22px; height: 8px; border-radius: 3px; background: var(--tp-btn); }
.tp-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; align-items: center; }
.tp-hero strong { display: block; margin-bottom: 6px; font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 800; line-height: 1.15; color: var(--tp-ink); }
.tp-hero i { display: block; height: 3px; margin-bottom: 4px; border-radius: 2px; background: var(--tp-line); }
.tp-hero i + i { width: 70%; }
.tp-hero em { display: block; width: 44px; height: 12px; margin-top: 7px; border-radius: 4px; background: var(--tp-btn); }
.tp-hero > span { display: block; min-width: 0; }
.tp-img { display: block; height: 62px; border-radius: 7px; background: var(--tp-img); }
.tp-row { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; padding: 0 4px; font-family: 'Poppins', sans-serif; }
.tp-row b { font-size: 13.5px; font-weight: 600; color: #13131A; }
.tp-row span { font-size: 11.5px; color: #8A8A92; }
.tp-row small { margin-left: auto; font-size: 11.5px; font-weight: 600; color: #13131A; white-space: nowrap; }
.t-pudra { --tp-bg: linear-gradient(160deg, #FBF1EC, #F3DDD4); --tp-ink: #3B2A26; --tp-line: rgba(59,42,38,.18); --tp-btn: #C26A5A; --tp-img: radial-gradient(circle at 70% 35%, #fff8 0 9px, transparent 10px), linear-gradient(150deg, #EBC9BC, #C9907E); }
.t-lak { --tp-bg: linear-gradient(160deg, #F3F0FB, #E2DAF6); --tp-ink: #2C2448; --tp-line: rgba(44,36,72,.18); --tp-btn: #7C5CE0; --tp-img: radial-gradient(circle at 30% 60%, #fff9 0 8px, transparent 9px), linear-gradient(150deg, #D3C6F2, #9C86DE); }
.t-britva { --tp-bg: linear-gradient(160deg, #2A2A30, #18181C); --tp-ink: #F4F1EA; --tp-line: rgba(244,241,234,.22); --tp-btn: #E0A33A; --tp-img: linear-gradient(150deg, #4A4A52, #2F2F35); }
.t-pravo { --tp-bg: linear-gradient(160deg, #F1F4F8, #DFE6EF); --tp-ink: #1C2B44; --tp-line: rgba(28,43,68,.18); --tp-btn: #1F3A64; --tp-img: linear-gradient(150deg, #C9D3E1, #8EA0BA); }

/* Блоки (глава 2) */
.bk { display: flex; flex-direction: column; gap: 12px; padding: 22px; font-family: 'Poppins', sans-serif; }
.bk-block { position: relative; border-radius: 12px; background: #fff; border: 1px solid #ECECE7; padding: 14px 16px; }
.bk-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 11px; font-weight: 600; color: #8A8A92; }
.bk-label span { padding: 2px 8px; border-radius: 999px; background: #F4F4F1; }
.bk-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: center; }
.bk-hero strong { display: block; margin-bottom: 8px; font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; line-height: 1.15; color: #13131A; }
.bk-l { display: block; height: 5px; margin-bottom: 5px; border-radius: 3px; background: #E7E7E1; }
.bk-l.s { width: 65%; }
.bk-btn { display: inline-block; margin-top: 8px; padding: 5px 10px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 600; }
.bk-img { height: 72px; border-radius: 9px; background: radial-gradient(circle at 72% 32%, #fff9 0 10px, transparent 11px), linear-gradient(150deg, #F6DCE2, #EBA9B8); }
.bk-block.is-active { border: 2px dashed var(--accent); padding: 18px 16px 14px; }
.bk-tools { position: absolute; top: -16px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 9px; background: #13131A; box-shadow: 0 8px 18px -8px rgba(0,0,0,.4); }
.bk-tools b { margin-left: 2px; padding-left: 10px; border-left: 1px solid #3A3A44; color: #fff; font-size: 11px; font-weight: 600; }
.bk-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-review { padding: 10px; border-radius: 9px; background: #FAFAF8; }
.bk-stars { display: block; margin-bottom: 6px; color: var(--accent); font-size: 10px; letter-spacing: 1.5px; }
.bk-review small { display: block; margin-top: 4px; font-size: 10px; color: #8A8A92; }
.bk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk-cards div { padding: 9px 10px; border-radius: 9px; border: 1px solid #F0F0EB; font-size: 11px; }
.bk-cards b { display: block; margin-bottom: 3px; font-weight: 600; color: #13131A; }
.bk-cards span { color: var(--accent); font-weight: 600; }
.bk-add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 10px; border: 1.5px dashed #D3D3CC; color: #8A8A92; font-size: 13px; font-weight: 600; }

/* Цвет (глава 3): кликабельный выбор и живой предпросмотр */
.cp { --da: #FF2056; transition: --da .5s ease; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.cp-side { padding: 22px; border-right: 1px solid #ECECE7; background: #fff; font-family: 'Poppins', sans-serif; }
.cp-h { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #13131A; }
.cp-sub { margin: 0 0 14px; font-size: 11.5px; line-height: 1.5; color: #8A8A92; }
.cp-sw { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.cp-swatch { position: relative; display: block; cursor: pointer; }
.cp-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cp-swatch > span:not(.sr-only) { display: block; aspect-ratio: 1; border-radius: 10px; transition: box-shadow .2s, transform .15s; }
.cp-swatch:hover > span:not(.sr-only) { transform: scale(1.06); }
.cp-swatch input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #13131A; }
.cp-swatch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.cp-hex { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid #ECECE7; border-radius: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cp-hex i { width: 18px; height: 18px; flex-shrink: 0; border-radius: 5px; background: var(--da); }
.cp-custom { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border: 1.5px dashed #DCDCD6; border-radius: 10px; font-size: 13px; color: #55555E; cursor: pointer; }
.cp-custom input { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; cursor: pointer; }
.cp-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.cp-custom input::-webkit-color-swatch { border: 0; border-radius: 6px; }
.cp-view { padding: 18px; background: #F4F4F1; }
.cp-view .dm-site { height: auto; }
.cp-view .ms-h1 { min-height: 0; font-size: 22px; }
@media (max-width: 700px) {
  .cp { grid-template-columns: 1fr; }
  .cp-side { border-right: 0; border-bottom: 1px solid #ECECE7; }
  .cp-sw { grid-template-columns: repeat(8, 1fr); gap: 8px; }
  .tp-grid { grid-template-columns: 1fr; }
  .bk-reviews, .bk-cards { grid-template-columns: 1fr 1fr; }
  .bk-reviews > :nth-child(3), .bk-cards > :nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cp { transition: none; } .tp-card:hover { transform: none; } }

/* ---------- Админка: шапка, период, обзор, трафик ---------- */
.adm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-period { display: inline-flex; padding: 3px; border-radius: 11px; background: #F1F1EC; }
.adm-period button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 13px; color: #55555E; cursor: pointer; }
.adm-period button[aria-pressed="true"] { background: #fff; color: #13131A; font-weight: 600; box-shadow: 0 1px 3px rgba(20,20,30,.08); }
.adm-panel { display: flex; flex-direction: column; gap: 16px; }
.adm-panel[hidden] { display: none; }
.adm-attn { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-attn:empty { display: none; }
.adm-attn button, .adm-attn span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; border: 1px solid #ECECE7; background: #fff; font: inherit; font-size: 13.5px; color: #13131A; }
.adm-attn button { cursor: pointer; }
.adm-attn button:hover { border-color: #CFCFC8; }
.adm-attn b { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }
.adm-attn .is-calm { color: #067647; background: #ECFDF3; border-color: #D1F5DF; }
.adm-delta { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 2px 7px; border-radius: 999px; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.adm-delta.is-up { color: #067647; background: #ECFDF3; }
.adm-delta.is-down { color: #B42318; background: #FEF3F2; }
.adm-delta.is-flat { color: #6B6B76; background: #F1F1EC; }
.adm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adm-card { padding: 20px 24px; }
.adm-card-head h2 { margin: 0; font-size: 16px; font-weight: 600; color: #13131A; }
.adm-card-head p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: #8A8A92; }
.adm-card-head { margin-bottom: 14px; }
.adm-funnel { display: flex; flex-direction: column; gap: 10px; }
.adm-step { display: grid; grid-template-columns: 170px minmax(0, 1fr) 70px 104px; gap: 12px; align-items: center; font-size: 14px; }
.adm-step-bar { height: 28px; border-radius: 0 6px 6px 0; background: #F1F1EC; overflow: hidden; }
.adm-step-bar i { display: block; height: 100%; min-width: 2px; border-radius: 0 6px 6px 0; background: var(--accent); }
.adm-step b { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.adm-step small { font-size: 12.5px; color: #6B6B76; text-align: right; font-variant-numeric: tabular-nums; }
.adm-rows { display: flex; flex-direction: column; gap: 10px; }
.adm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13.5px; }
.adm-row-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #13131A; }
.adm-row-label small { margin-left: 6px; color: #9A9AA0; font-size: 12px; }
.adm-row-val { color: #13131A; font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-row-val small { margin-left: 6px; font-weight: 400; color: #8A8A92; }
.adm-row-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #F1F1EC; overflow: hidden; }
.adm-row-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.adm-empty { font-size: 13px; color: #8A8A92; }
.adm-split { display: flex; height: 14px; gap: 2px; border-radius: 7px; overflow: hidden; background: #F1F1EC; }
.adm-split i { display: block; height: 100%; }
.adm-split i:first-child { background: #13131A; }
.adm-split i:last-child { background: var(--accent); }
.adm-split-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: #13131A; }
.adm-split-legend span { display: inline-flex; align-items: center; gap: 7px; }
.adm-split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.adm-help { margin-top: 16px; font-size: 13px; color: #55555E; }
.adm-help summary { cursor: pointer; color: #13131A; font-weight: 500; }
.adm-help ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; }
.adm-note { margin: 0; font-size: 13px; line-height: 1.6; color: #6B6B76; }
.adm-note a { color: #13131A; text-decoration: underline; text-decoration-color: #CFCFC8; text-underline-offset: 3px; }
.adm-tag-404 { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #FEF3F2; color: #B42318; font-size: 11px; font-weight: 600; }
.adm code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: #F1F1EC; }
@media (max-width: 900px) {
  .adm-grid2 { grid-template-columns: 1fr; }
  .adm-step { grid-template-columns: 120px minmax(0, 1fr) 50px; }
  .adm-step small { display: none; }
}
