/* DenYard — дизайн-система. Шрифт Manrope (SIL OFL, см. fonts/OFL-Manrope.txt). */
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font: Manrope, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ink: #032a13;
  --g900: #03200e; --g800: #073a1d; --g700: #0d4a27; --g600: #146b3a; --g500: #1f8a4c;
  --mint: #3ccf8e; --mint-2: #7ee2b5; --mint-3: #b9f3d6; --mint-bg: #e6f6ee;
  --cream: #fdf5ea; --cream-2: #f6ecdc; --paper: #fffdf9;
  --gold: #b98a35; --gold-2: #e8d29b; --gold-bg: #f8eedb;
  --text: #13261a; --muted: #67776c; --line: #ece2d1; --line-2: #e2d5bf;
  --red: #c0392b; --red-bg: #fdebe7;
  --shadow-sm: 0 1px 2px rgba(3, 42, 19, .05), 0 2px 8px -2px rgba(3, 42, 19, .06);
  --shadow: 0 18px 40px -18px rgba(3, 42, 19, .25), 0 2px 6px rgba(3, 42, 19, .05);
  --shadow-lg: 0 40px 80px -30px rgba(3, 42, 19, .45);
  --r: 18px; --r-sm: 12px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

/* ---------- основа ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--text); font: 500 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--g600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--g500); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: 30px; line-height: 1.15; font-weight: 800; margin: 0 0 18px; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 800; margin: 30px 0 14px; }
h3 { font-size: 16px; font-weight: 800; margin: 0 0 14px; }
p { margin: 0 0 12px; }
img, video { max-width: 100%; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--mint-3); color: var(--ink); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- кнопки ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff; font: 700 14.5px/1.2 var(--font); cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px -12px rgba(13, 74, 39, .7); transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%); transform: translateX(-130%); transition: transform .8s var(--ease); }
.btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 16px 28px -14px rgba(13, 74, 39, .8); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn .i { width: 18px; height: 18px; }
.btn.small { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn.big { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn.ghost { background: rgba(255, 255, 255, .75); color: var(--g700); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { color: var(--g700); background: #fff; box-shadow: inset 0 0 0 1.5px var(--g500), 0 10px 20px -14px rgba(13, 74, 39, .5); }
.btn.mint { background: linear-gradient(135deg, var(--mint-2), var(--mint)); color: var(--g900); box-shadow: 0 12px 30px -12px rgba(60, 207, 142, .8); }
.btn.mint:hover { color: var(--g900); }
.btn.warn { background: linear-gradient(135deg, #d0782e, #9a4d0c); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--g600); cursor: pointer; }
.link:hover { text-decoration: underline; }
.danger { color: var(--red); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: inherit; cursor: pointer; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(3, 42, 19, .06); transform: translateY(-1px); }

/* ---------- формы ---------- */
.form label, .inline-form label, .filters label, .field { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 16px; color: var(--ink); }
input, select, textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 13px; border: 1.5px solid #e6dac6; border-radius: var(--r-sm); background: #fff;
  font: 500 15px/1.4 var(--font); color: var(--text); transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: #d6c6aa; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g500); box-shadow: 0 0 0 4px rgba(60, 207, 142, .2); }
input::placeholder, textarea::placeholder { color: #a5ab9f; }
select { appearance: none; padding-right: 40px; cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146b3a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 18px; }
input[type=checkbox] { display: inline-block; width: 19px; height: 19px; margin: 0 10px 0 0; accent-color: var(--g600); cursor: pointer; flex: none; }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.inline-form, .filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-form label, .filters label { margin: 0; flex: 1 1 180px; }
.filters label.check { flex: 0 0 auto; padding-bottom: 11px; }
.field .control { position: relative; display: block; margin-top: 7px; }
.field .control > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .2s; }
.field .control:focus-within > .i { color: var(--g500); }
.field .control input { margin: 0; padding-left: 44px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; color: var(--muted); }
.pw-toggle:hover { transform: translateY(-50%); }
.pw-toggle .i { width: 18px; height: 18px; }

/* зона перетаскивания файлов: само поле растянуто на всю зону, поэтому drag&drop работает и без JS */
.drop, .form .drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 18px; margin: 8px 0 14px; border: 2px dashed #bfe0cc; border-radius: 16px;
  background: linear-gradient(180deg, #f7fcf9, #edf8f2); text-align: center; color: var(--muted); font-weight: 500; font-size: 13.5px; transition: all .25s var(--ease); }
.drop:hover, .drop.over { border-color: var(--g500); background: #e5f6ec; box-shadow: 0 0 0 6px rgba(60, 207, 142, .12); transform: scale(1.01); }
.drop.over .i { transform: translateY(-4px) scale(1.1); }
.drop:focus-within { border-color: var(--g500); box-shadow: 0 0 0 4px rgba(60, 207, 142, .25); }
.drop .i { width: 36px; height: 36px; color: var(--g600); transition: transform .3s var(--spring); }
.drop b { color: var(--ink); font-size: 15px; }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.drop-list { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.drop-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--mint-bg); color: var(--g700); font-size: 13px; font-weight: 700; animation: pop .3s var(--spring) both; }
.drop-list small { color: var(--muted); font-weight: 600; }
.progress { position: relative; height: 10px; margin: 10px 0 4px; border-radius: 10px; background: #e4efe8; overflow: hidden; }
.progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--mint), var(--g600)); border-radius: 10px; transition: width .2s; }
.progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: shimmer 1.2s linear infinite; }
.progress-label { font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* ---------- карточки, плитки, сообщения ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card h3 .i { color: var(--g600); }
.card > * + h3 { margin-top: 24px; }
.head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head h1 { margin: 0 auto 0 0; }
.narrow { max-width: 760px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 36px 20px; color: var(--muted); text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: rgba(255, 253, 249, .6); }
.empty::before { content: ""; width: 54px; height: 54px; border-radius: 16px; background: var(--mint-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23146b3a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 3.5c-2.5 0-4 2-4 4.6 0 2 .8 3.4 1.4 5 .6 1.7.8 3.6 1.3 5.4.4 1.5 1 2.5 1.9 2.5 1.6 0 1.4-3.5 2-5.2.3-.9.9-1.4 1.9-1.4s1.6.5 1.9 1.4c.6 1.7.4 5.2 2 5.2.9 0 1.5-1 1.9-2.5.5-1.8.7-3.7 1.3-5.4.6-1.6 1.4-3 1.4-5 0-2.6-1.5-4.6-4-4.6-1.7 0-2.8 1-4.5 1s-2.8-1-4.5-1z'/%3E%3C/svg%3E") no-repeat center / 28px; }
.note { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #fff7e2, #fdf0d2); border: 1px solid #f0dca0; padding: 12px 16px; border-radius: 14px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 6px 0 14px; }
.error, .ok { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; font-weight: 600; animation: shake .45s; }
.error { background: var(--red-bg); color: var(--red); }
.ok { background: var(--mint-bg); color: var(--g700); animation: pop .4s var(--spring); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 3px 9px; border-radius: 8px; background: var(--cream-2); color: var(--muted); font-weight: 700; }
.tag.gold { background: var(--gold-bg); color: var(--gold); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
.back .i { width: 17px; height: 17px; transform: rotate(180deg); transition: transform .25s var(--ease); }
.back:hover .i { transform: rotate(180deg) translateX(3px); }
.head .back { margin: 0; }
.head .back + .back { margin-left: auto; }
.js .upload[data-auto] > .btn { display: none; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 24px; }
.kpi { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 18px;
  border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
a.kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.kpi .i { grid-row: span 2; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--mint-bg); color: var(--g600); }
.kpi b { font-size: 26px; line-height: 1.1; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(60, 207, 142, .14), transparent 70%); }
.kpi.k-amber .i { background: #fff1d3; color: #9a6400; }
.kpi.k-blue .i { background: #e5eefc; color: #1f56a3; }
.kpi.k-red .i { background: var(--red-bg); color: var(--red); }
.kpi.k-red b { color: var(--red); }
.kpi.k-dark { background: linear-gradient(135deg, var(--g800), var(--g600)); border-color: transparent; }
.kpi.k-dark b { color: #fff; }
.kpi.k-dark span { color: var(--mint-3); }
.kpi.k-dark .i { background: rgba(255, 255, 255, .12); color: var(--mint-2); }

/* ---------- таблицы и статусы ---------- */
.table { overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.card .table { border: 0; box-shadow: none; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fbf6ee; white-space: nowrap; font-weight: 800; }
tbody tr { transition: background .15s; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f3faf6; }
tbody tr[data-href] { cursor: pointer; }
tbody tr[data-href]:hover td:first-child { box-shadow: inset 3px 0 0 var(--mint); }
tr.row-late { background: #fff6f3; }
tr.off { opacity: .55; }
td form { margin: 0; }
td.num { text-align: right; white-space: nowrap; font-weight: 700; }
td.c { text-align: center; }
td .left, .left { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.nowrap { white-space: nowrap; }
table.edit input { margin: 0; padding: 7px 9px; }
table.edit td { padding: 6px 8px; }
.late, .left.late { color: var(--red); font-weight: 700; }
.who { display: flex; align-items: center; gap: 10px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--cream-2); color: var(--text); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-new { background: #e6effc; color: #1f56a3; }
.st-waiting { background: #fff1d3; color: #8a5a00; }
.st-assigned { background: #efe9fd; color: #5a3aa6; }
.st-in_work { background: #dcf2f4; color: #0b6470; }
.st-review { background: #fde9d6; color: #9a4d0c; }
.st-fix { background: var(--red-bg); color: var(--red); }
.st-approved { background: #e1f5e8; color: #1d6e3b; }
.st-delivered { background: #d2f0e0; color: #0d5a30; }
.st-paid { background: var(--ink); color: #fff; }
.st-in_work::before, .st-review::before, .st-new::before { animation: pulse-dot 1.8s infinite; }
.badge.urgent { background: #ffe3d4; color: #a33a0c; }
.badge.urgent::before { content: "⚡"; width: auto; height: auto; background: none; }
.badge.late-badge { background: var(--red); color: #fff; }

/* ---------- кабинет: боковая панель и верхняя строка ---------- */
.app { background: radial-gradient(900px 500px at 100% 0%, rgba(60, 207, 142, .08), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(185, 138, 53, .07), transparent 60%), var(--cream); background-attachment: fixed; }
.side { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 264px; display: flex; flex-direction: column; padding: 22px 14px 16px; color: #d9f5e6; overflow-y: auto;
  background: radial-gradient(400px 300px at 0% 100%, rgba(60, 207, 142, .22), transparent 70%), linear-gradient(180deg, #03200e, #08391b 70%, #0b4222); }
.side::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(185, 243, 214, .09) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(180deg, transparent, #000 60%); }
.side-logo { position: relative; padding: 4px 10px 26px; }
.side-logo img { height: 34px; display: block; }
.side-nav { position: relative; display: grid; gap: 4px; flex: 1; align-content: start; }
.side-nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: rgba(217, 245, 230, .72); font-weight: 650; transition: background .2s, color .2s, transform .2s; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; transform: translateX(3px); }
.side-nav a.on { background: linear-gradient(90deg, rgba(60, 207, 142, .22), rgba(60, 207, 142, .06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(126, 226, 181, .18); }
.side-nav a.on::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.side-nav a.on .i { color: var(--mint-2); }
.side-nav .count { margin-left: auto; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--mint); color: var(--g900); font-size: 12px; font-weight: 800; animation: pop .4s var(--spring); }
.count[hidden] { display: none; }
.side-foot { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 8px 4px; margin-top: 16px; border-top: 1px solid rgba(185, 243, 214, .12); }
.side-foot .me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #fff; padding: 6px; border-radius: 12px; }
.side-foot .me:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-foot .me span { display: grid; min-width: 0; line-height: 1.25; }
.side-foot .me b, .side-foot .me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot small { color: rgba(217, 245, 230, .6); }
.side-foot .icon-btn { color: rgba(217, 245, 230, .7); }
.side-foot .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.av { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.av-0 { background: linear-gradient(135deg, #1f8a4c, #0d4a27); }
.av-1 { background: linear-gradient(135deg, #c99a45, #8d6420); }
.av-2 { background: linear-gradient(135deg, #2b8fa3, #135566); }
.av-3 { background: linear-gradient(135deg, #8d6bd6, #5a3aa6); }
.av-4 { background: linear-gradient(135deg, #d6774a, #9a4d0c); }
.av-5 { background: linear-gradient(135deg, #3ccf8e, #148257); }
.av.sm { width: 30px; height: 30px; border-radius: 10px; font-size: 11.5px; }

.shell { margin-left: 264px; min-height: 100vh; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 34px; min-height: 70px;
  background: rgba(253, 245, 234, .78); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(236, 226, 209, .8); }
.burger, .bar-logo { display: none; }
.bar-logo img { height: 28px; display: block; }
.hello { margin: 0; color: var(--muted); font-weight: 600; }
.hello b { color: var(--ink); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; width: min(340px, 34vw); }
.search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { margin: 0; padding: 10px 14px 10px 40px; border-radius: 12px; background: rgba(255, 255, 255, .8); }
.bell { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); color: var(--g700); }
.bell .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; font-size: 11px; background: var(--red); color: #fff; box-shadow: 0 0 0 3px var(--cream); }
.main { flex: 1; width: 100%; max-width: 1320px; padding: 30px 34px 60px; }
.main > * { animation: rise .55s var(--ease) both; }
.main > :nth-child(2) { animation-delay: .05s; } .main > :nth-child(3) { animation-delay: .1s; } .main > :nth-child(4) { animation-delay: .15s; }
.main > :nth-child(5) { animation-delay: .2s; } .main > :nth-child(n+6) { animation-delay: .25s; }
.scrim { display: none; }

/* ---------- заказ ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.order-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 18px 30px; align-items: end; padding: 28px 30px; margin-bottom: 18px; border-radius: 24px; color: #e3fbef;
  background: radial-gradient(500px 260px at 100% 0%, rgba(60, 207, 142, .3), transparent 70%), linear-gradient(135deg, #04240f, #0d4a27 75%, #146b3a); box-shadow: var(--shadow-lg); }
.order-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(185, 243, 214, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 243, 214, .07) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: radial-gradient(ellipse at 80% 20%, #000 20%, transparent 70%); }
.order-hero > * { position: relative; }
.oh-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oh-num { font-weight: 800; color: var(--mint-2); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-right: 6px; }
.order-hero h1 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin: 2px 0 12px; }
.oh-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(227, 251, 239, .82); font-weight: 600; }
.oh-meta span { display: inline-flex; align-items: center; gap: 8px; }
.oh-meta .i { color: var(--mint-2); width: 18px; height: 18px; }
.oh-meta .left { display: inline; color: var(--mint-3); margin-left: 4px; }
.oh-meta .late { color: #ffb4a6; }
.oh-price { text-align: right; }
.oh-price small { display: block; color: rgba(227, 251, 239, .65); font-weight: 600; }
.oh-price b { display: block; font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.oh-price em { font-style: normal; font-size: 12.5px; color: var(--gold-2); }
.order-hero .badge.st-paid { background: var(--gold-2); color: var(--g900); }

.stepper { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); list-style: none; padding: 4px 0 2px; margin: 0; overflow-x: auto; scrollbar-width: thin; }
.stepper li { position: relative; display: grid; justify-items: center; align-content: start; gap: 9px; padding: 0 4px; text-align: center; font-size: 12px; line-height: 1.3; font-weight: 600; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: #e9dfcd; }
.stepper li::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--g600), var(--mint)); transform: scaleX(0); transform-origin: left; }
.stepper li:first-child::before, .stepper li:first-child::after { display: none; }
.stepper li.done::after, .stepper li.cur::after { animation: grow .5s var(--ease) forwards; }
.stepper li:nth-child(2)::after { animation-delay: .1s; } .stepper li:nth-child(3)::after { animation-delay: .2s; } .stepper li:nth-child(4)::after { animation-delay: .3s; }
.stepper li:nth-child(5)::after { animation-delay: .4s; } .stepper li:nth-child(6)::after { animation-delay: .5s; } .stepper li:nth-child(7)::after { animation-delay: .6s; }
.stepper li:nth-child(8)::after { animation-delay: .7s; } .stepper li:nth-child(9)::after { animation-delay: .8s; }
.stepper i { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid #e6dccb; font-style: normal; font-weight: 800; font-size: 13px; color: var(--muted); transition: all .3s; }
.stepper li.done i { background: var(--g600); border-color: var(--g600); color: #fff; }
.stepper li.done i .i { width: 16px; height: 16px; stroke-width: 2.6; }
.stepper li.done { color: var(--g700); }
.stepper li.cur { color: var(--ink); font-weight: 800; }
.stepper li.cur i { background: var(--ink); border-color: var(--mint); color: #fff; animation: ring 2s infinite; }
.stepper li.cur.fixing i { background: var(--red); border-color: #ffb4a6; }
.stepper li.cur.fixing { color: var(--red); }

.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; margin: 0 0 18px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 600; }
.body { overflow-wrap: anywhere; }
.quote { padding: 14px 16px; border-radius: 14px; background: #f8f3ea; border-left: 3px solid var(--gold-2); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.acts form { margin: 0; }
.fixform { flex: 1 1 100%; display: grid; gap: 10px; justify-items: start; }
.fixform textarea { margin: 0; }
.actions-card { border-color: #cfe9da; background: linear-gradient(180deg, #f6fcf8, var(--paper)); }
.files { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.files li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; transition: background .2s, transform .2s; animation: rise .4s var(--ease) both; }
.files li:hover { background: #f5efe4; transform: translateX(2px); }
.files .f-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.files .f-name a { font-weight: 700; overflow-wrap: anywhere; color: var(--ink); }
.files .f-name a:hover { color: var(--g500); }
.files .f-name small { color: var(--muted); font-weight: 600; }
.files form { margin: 0; }
.files .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.files .icon-btn:hover { color: var(--red); background: var(--red-bg); }
.files .dl-btn:hover { color: var(--g600); background: var(--mint-bg); }
.ext { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.ext-3d { background: linear-gradient(135deg, #dcf7ea, #b7ead1); color: #0d5a30; }
.ext-zip { background: linear-gradient(135deg, #fbefd2, #f1dca6); color: #7a5300; }
.ext-img { background: linear-gradient(135deg, #e6effc, #cddff8); color: #1f56a3; }
.ext-vid { background: linear-gradient(135deg, #efe9fd, #dcd0f7); color: #5a3aa6; }
.ext-doc { background: #eee8dd; color: #6b5e48; }
.history { list-style: none; padding: 0; margin: 0; font-size: 13.5px; max-height: 380px; overflow: auto; }
.history li { position: relative; padding: 8px 0 8px 18px; border-left: 2px solid var(--line); margin-left: 5px; }
.history li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--g500); }
.history time { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
details summary { cursor: pointer; font-weight: 700; }
details .history { margin-top: 12px; }

/* новый заказ */
.order-form { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.summary { position: sticky; top: 90px; overflow: hidden; color: #e3fbef; border: 0; background: radial-gradient(300px 200px at 100% 0%, rgba(60, 207, 142, .28), transparent 70%), linear-gradient(160deg, #04240f, #0d4a27); box-shadow: var(--shadow-lg); }
.summary h3 { color: #fff; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 14px; font-weight: 600; }
.summary dt { color: rgba(227, 251, 239, .7); }
.summary dd { margin: 0; text-align: right; color: #fff; }
.summary .total { display: block; padding: 14px 0; margin-bottom: 14px; border-top: 1px dashed rgba(185, 243, 214, .25); border-bottom: 1px dashed rgba(185, 243, 214, .25); }
.summary .total small { color: rgba(227, 251, 239, .7); font-weight: 600; }
.summary .total b { display: block; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.02em; transition: transform .3s var(--spring); }
.summary .total b.bump { transform: scale(1.06); }
.summary ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; font-size: 13.5px; color: rgba(227, 251, 239, .8); }
.summary li { display: flex; gap: 9px; }
.summary li .i { width: 18px; height: 18px; color: var(--mint-2); }
.summary .btn { width: 100%; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 16px; }
.quick button { padding: 6px 11px; border-radius: 9px; border: 1.5px solid var(--line-2); background: #fff; font: 700 12.5px var(--font); color: var(--g700); cursor: pointer; transition: all .2s; }
.quick button:hover { border-color: var(--g500); background: var(--mint-bg); transform: translateY(-1px); }
.toggle, .form .toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #fff6ec; border: 1.5px solid #f3dfc4; cursor: pointer; font-weight: 700; margin-bottom: 16px; transition: all .2s; }
.toggle:has(input:checked) { background: #ffe9dc; border-color: #f0b896; box-shadow: 0 0 0 4px rgba(214, 119, 74, .12); }
.toggle small { display: block; font-weight: 600; color: var(--muted); }

/* ---------- чат ---------- */
.chat { padding: 0; overflow: hidden; }
.chat h3 { padding: 18px 20px 0; }
.chat .messages { display: flex; flex-direction: column; gap: 12px; max-height: 480px; min-height: 160px; overflow-y: auto; padding: 14px 16px 18px; scroll-behavior: smooth;
  background: radial-gradient(rgba(3, 42, 19, .045) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(180deg, #fbf7ef, #f6efe2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.msg { display: flex; align-items: flex-end; gap: 9px; max-width: 90%; animation: msg-in .35s var(--ease) both; }
.msg.mine { flex-direction: row-reverse; align-self: flex-end; }
.bubble { min-width: 0; padding: 9px 13px 10px; border-radius: 16px 16px 16px 5px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.msg.mine .bubble { border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, var(--g500), var(--g700)); border-color: transparent; color: #f0fff7; }
.msg.senior:not(.mine) .bubble { border-left: 3px solid var(--gold); }
.msg .meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 12px; margin-bottom: 2px; }
.msg .meta b { font-weight: 800; }
.msg .meta .tag { font-size: 10.5px; padding: 1px 6px; }
.msg.senior .meta .tag { background: var(--gold-bg); color: var(--gold); }
.msg.mine .meta .tag { background: rgba(255, 255, 255, .16); color: #e3fbef; }
.msg time { color: var(--muted); font-size: 11.5px; }
.msg.mine time { color: rgba(240, 255, 247, .7); }
.msg .body { font-size: 14.5px; }
.att { margin-top: 6px; }
.att img { display: block; max-height: 240px; border-radius: 10px; transition: transform .3s var(--ease); }
.att .shot:hover img { transform: scale(1.02); }
.att video { display: block; max-height: 320px; width: 100%; border-radius: 10px; background: #000; margin-bottom: 6px; }
.file { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; overflow-wrap: anywhere; color: inherit; }
.file .ext { width: 36px; height: 36px; border-radius: 10px; }
.msg.mine .file { color: #fff; }
.empty-chat { margin: auto; color: var(--muted); }
.composer { padding: 12px 14px 14px; background: var(--paper); }
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.composer-files:empty { display: none; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; padding: 6px; border: 1.5px solid #e6dac6; border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.composer-row:focus-within { border-color: var(--g500); box-shadow: 0 0 0 4px rgba(60, 207, 142, .18); }
.composer textarea { margin: 0; border: 0; padding: 9px 4px; resize: none; max-height: 160px; box-shadow: none; background: transparent; overflow-y: auto; }
.composer-hint { display: block; margin-top: 7px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.composer textarea:focus { box-shadow: none; }
.attach { width: 40px; height: 40px; color: var(--muted); cursor: pointer; }
.attach:focus-within { box-shadow: 0 0 0 3px rgba(60, 207, 142, .35); }
.send-btn { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--g500), var(--g700)); box-shadow: 0 8px 18px -10px rgba(13, 74, 39, .8); transition: transform .25s var(--spring); }
.send-btn:hover { transform: translateY(-2px) rotate(-8deg); }
.send-btn .i { width: 19px; height: 19px; }
.chat.over .composer-row { border-color: var(--g500); background: var(--mint-bg); }
.threads { list-style: none; padding: 6px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.threads li a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--text); transition: background .2s, transform .2s; }
.threads li a:hover { background: #f4faf6; transform: translateX(3px); color: var(--text); }
.threads .t-title { flex: 1; min-width: 0; font-weight: 650; }
.threads time { color: var(--muted); font-size: 12.5px; white-space: nowrap; font-weight: 600; }
.threads li.unread .t-title { font-weight: 800; color: var(--ink); }
.threads li.unread time::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(60, 207, 142, .2); animation: pulse-dot 1.8s infinite; }
.t-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--mint-bg); color: var(--g600); }
.t-ic.gold { background: var(--gold-bg); color: var(--gold); }

/* ---------- фильтры-чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); color: var(--text); font-size: 13.5px; font-weight: 650; transition: all .2s; }
.chips a b { font-size: 11.5px; color: var(--muted); background: var(--cream-2); padding: 1px 7px; border-radius: 10px; }
.chips a:hover { border-color: var(--g500); color: var(--g700); transform: translateY(-1px); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(3, 42, 19, .8); }
.chips a.on b { background: rgba(255, 255, 255, .15); color: var(--mint-3); }
.chips a.late-chip b { background: var(--red-bg); color: var(--red); }

/* ---------- обучение ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card.mat { padding: 0; margin: 0; overflow: hidden; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s; }
.card.mat:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--text); }
.mat-band { position: relative; display: grid; place-items: center; height: 118px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--g700), var(--g500)); }
.mat-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 20px 20px; }
.mat-band .i { position: relative; width: 46px; height: 46px; stroke-width: 1.5; transition: transform .4s var(--spring); }
.card.mat:hover .mat-band .i { transform: scale(1.15) rotate(-6deg); }
.kind-review .mat-band { background: linear-gradient(135deg, #135566, #2b8fa3); }
.kind-material .mat-band { background: linear-gradient(135deg, #3d2f7a, #6c55c4); }
.kind-error .mat-band { background: linear-gradient(135deg, #8f2c1f, #d6774a); }
.kind-example .mat-band { background: linear-gradient(135deg, #7a5a1c, #c99a45); }
.kind-task .mat-band { background: linear-gradient(135deg, #0a3d1f, #3ccf8e); }
.mat-body { padding: 16px 18px 18px; }
.mat-body h3 { margin: 8px 0 6px; }
.mat-body p { margin: 0; font-size: 13px; }
.material .att { margin-bottom: 14px; }
.material .att video { max-height: 480px; }

/* ---------- плитки цифр ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { position: relative; overflow: hidden; padding: 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.tile span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.tile b { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tile.accent { background: linear-gradient(135deg, var(--g800), var(--g600)); border-color: transparent; }
.tile.accent span { color: var(--mint-3); }
.tile.accent b { color: #fff; }

/* ---------- уведомления ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 380px; padding: 13px 16px; border-radius: 16px; color: #eafff3; font-weight: 650; pointer-events: auto;
  background: linear-gradient(135deg, #062f17, #0d4a27); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(126, 226, 181, .2); animation: toast-in .5s var(--spring) both; }
.toast .i { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: rgba(60, 207, 142, .2); color: var(--mint-2); }
.toast.err { background: linear-gradient(135deg, #5a1610, #8f2c1f); }
.toast.err .i { background: rgba(255, 255, 255, .12); color: #ffd2c8; }
.toast.out { animation: toast-out .4s var(--ease) forwards; }

/* ---------- сайт: шапка ---------- */
.site-top { position: sticky; top: 0; z-index: 40; transition: background .3s, box-shadow .3s, border-color .3s; background: rgba(253, 245, 234, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { position: relative; display: block; flex: none; }
.logo img { height: 36px; display: block; transition: opacity .3s; }
.logo .logo-light { position: absolute; inset: 0; opacity: 0; }
.site-nav { display: flex; gap: 6px; flex: 1; }
.site-nav a { padding: 8px 12px; border-radius: 10px; color: var(--text); font-weight: 650; white-space: nowrap; }
.site-nav a:hover { background: rgba(3, 42, 19, .05); color: var(--ink); }
.site-cta { display: flex; gap: 10px; margin-left: auto; flex: none; }
.bar-logo { flex: none; }
.has-hero .site-top { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-top:not(.scrolled) .logo-dark { opacity: 0; }
.has-hero .site-top:not(.scrolled) .logo-light { opacity: 1; }
.has-hero .site-top:not(.scrolled) .site-nav a { color: rgba(233, 255, 243, .82); }
.has-hero .site-top:not(.scrolled) .site-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.has-hero .site-top:not(.scrolled) .btn.ghost { background: rgba(255, 255, 255, .06); color: #eafff3; box-shadow: inset 0 0 0 1.5px rgba(233, 255, 243, .3); }
.has-hero .site-top.scrolled { background: rgba(253, 245, 234, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(3, 42, 19, .4); }
.site main > .wrap { padding-top: 40px; padding-bottom: 60px; }

/* ---------- главная ---------- */
:root { --dark-bg: radial-gradient(60% 80% at 85% 15%, rgba(60, 207, 142, .24), transparent 60%), radial-gradient(45% 60% at 5% 95%, rgba(185, 138, 53, .18), transparent 60%), linear-gradient(160deg, #021a0b 0%, #052c14 55%, #0a3d1f 100%); }
.dark, .feature.dark { color: #e3fbef; background: var(--dark-bg); }
.cad-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(126, 226, 181, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 226, 181, .08) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 25%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000 25%, transparent 75%); animation: grid-move 24s linear infinite; }
.hero { position: relative; overflow: hidden; padding: 150px 0 120px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; border-radius: 30px; font-weight: 750; font-size: 13px; letter-spacing: .01em; background: var(--mint-bg); color: var(--g600); }
.dark .eyebrow { background: rgba(126, 226, 181, .1); border: 1px solid rgba(126, 226, 181, .25); color: var(--mint-3); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse-dot 1.8s infinite; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.04em; color: #fff; margin: 20px 0 20px; }
.grad { background: linear-gradient(90deg, var(--mint-2), var(--mint) 35%, var(--gold-2) 70%, var(--mint-2)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
.lead { font-size: 18.5px; line-height: 1.6; color: rgba(227, 251, 239, .78); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 30px; }
.hero-cta .btn.ghost { background: rgba(255, 255, 255, .06); color: #eafff3; box-shadow: inset 0 0 0 1.5px rgba(233, 255, 243, .3); }
.hero-cta .btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; color: rgba(227, 251, 239, .72); font-weight: 600; font-size: 14px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .i { color: var(--mint); width: 18px; height: 18px; }
.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .2s; } .hero-copy > :nth-child(4) { animation-delay: .3s; } .hero-copy > :nth-child(5) { animation-delay: .4s; }
.hero-art { position: relative; max-width: 500px; width: 100%; justify-self: center; aspect-ratio: 400 / 440; }
.hero-art::before { content: ""; position: absolute; inset: 12% 10% 18%; border-radius: 50%; background: radial-gradient(circle, rgba(60, 207, 142, .35), transparent 65%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
.tooth-art { position: relative; display: block; width: 100%; height: 100%; overflow: visible; animation: float 8s ease-in-out infinite; }
.tooth-art .t-outline { fill: none; stroke-width: 2.6; stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: draw 2.8s .2s var(--ease) forwards; filter: drop-shadow(0 0 8px rgba(60, 207, 142, .7)); }
.tooth-art .t-slices path { stroke: var(--mint-2); stroke-width: 1; opacity: .16; }
.tooth-art .t-rings use { fill: none; stroke: var(--mint-2); stroke-width: 1.1; stroke-dasharray: 3 7; opacity: .4; animation: dash 40s linear infinite; }
.tooth-art .t-rings use:nth-child(2) { opacity: .28; animation-direction: reverse; }
.tooth-art .t-rings use:nth-child(3) { opacity: .18; }
.tooth-art .t-fill { opacity: 0; animation: fade-in 1.6s 1.6s forwards; }
.tooth-art .t-scan { animation: scan 5s 1.4s cubic-bezier(.45, 0, .55, 1) infinite; }
.tooth-art .t-points circle { fill: var(--mint-3); transform-box: fill-box; transform-origin: center; opacity: 0; animation: blink 2.6s 2s infinite; }
.tooth-art .t-points circle:nth-child(2n) { animation-delay: 2.6s; } .tooth-art .t-points circle:nth-child(3n) { animation-delay: 3.1s; }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--mint-3); white-space: nowrap; opacity: 0; animation: fade-in .8s forwards; }
.callout i { width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--mint-2)); }
.callout span { padding: 5px 10px; border-radius: 8px; background: rgba(3, 32, 14, .6); border: 1px solid rgba(126, 226, 181, .3); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.callout.c1 { top: 11%; left: -6%; flex-direction: row-reverse; animation-delay: 2.2s; }
.callout.c1 i { background: linear-gradient(270deg, transparent, var(--mint-2)); }
.callout.c2 { top: 31%; right: -10%; animation-delay: 2.6s; }
.callout.c3 { top: 55%; left: -12%; flex-direction: row-reverse; animation-delay: 3s; }
.callout.c3 i { background: linear-gradient(270deg, transparent, var(--mint-2)); }
.float-card { position: absolute; display: grid; gap: 6px; padding: 12px 14px; border-radius: 16px; font-size: 13px; font-weight: 650; color: #eafff3; min-width: 190px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 255, 243, .18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.float-card .row1 { display: flex; align-items: center; gap: 8px; }
.float-card .i { width: 18px; height: 18px; color: var(--mint-2); }
.float-card small { color: rgba(227, 251, 239, .6); font-weight: 600; }
.float-card .badge { justify-self: start; font-size: 11.5px; padding: 2px 9px 2px 7px; }
.f1 { left: -14%; bottom: 14%; animation: rise .8s 1s both, float 7s 1.8s ease-in-out infinite; }
.f2 { right: -8%; top: 4%; animation: rise .8s 1.3s both, float 8s 2.1s ease-in-out infinite; }
.f3 { right: -4%; bottom: 2%; animation: rise .8s 1.6s both, float 6.5s 2.4s ease-in-out infinite; }
.mini-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 30%; border-radius: 6px; background: linear-gradient(90deg, var(--mint), var(--mint-2)); animation: fill 4s 1.8s ease-in-out infinite alternate; }

.stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin: -64px auto 0; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.stat { padding: 26px 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 38px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat b em { font-style: normal; color: var(--g500); }
.stat > span { color: var(--muted); font-weight: 600; font-size: 14px; }

.marquee { overflow: hidden; padding: 46px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.mq-set { display: flex; gap: 12px; padding-right: 12px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 40px; background: var(--paper); border: 1px solid var(--line); font-weight: 750; color: var(--g700); white-space: nowrap; }
.marquee span .i { width: 17px; height: 17px; color: var(--g500); }
.marquee span.fmt { background: var(--ink); border-color: var(--ink); color: var(--mint-3); letter-spacing: .06em; }

.section { position: relative; padding: 96px 0; scroll-margin-top: 40px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(29px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.035em; margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.steps4 { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps4::before { content: ""; position: absolute; top: 56px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); }
.step { position: relative; padding: 26px 22px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.step .ic { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; border-radius: 18px; color: var(--mint-3); background: linear-gradient(135deg, var(--g700), var(--g500)); box-shadow: 0 14px 26px -14px rgba(13, 74, 39, .9); transition: transform .4s var(--spring); }
.step:hover .ic { transform: rotate(-8deg) scale(1.08); }
.step .ic .i { width: 28px; height: 28px; }
.step .num { position: absolute; top: 18px; right: 22px; font-size: 52px; font-weight: 800; line-height: 1; color: #f1e7d6; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { position: relative; overflow: hidden; padding: 28px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature.wide { grid-column: span 2; }
.feature.dark { border: 0; }
.feature.dark h3 { color: #fff; }
.feature.dark p { color: rgba(227, 251, 239, .75); }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.feature .ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: var(--mint-bg); color: var(--g600); }
.feature.dark .ic { background: rgba(126, 226, 181, .12); color: var(--mint-2); }
.feature .ic .i { width: 26px; height: 26px; }
.mini-steps { display: flex; align-items: center; margin: 24px 0 6px; }
.mini-steps i { position: relative; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid rgba(185, 243, 214, .3); background: rgba(3, 32, 14, .6); }
.mini-steps b { flex: 1; height: 3px; background: rgba(185, 243, 214, .2); }
.mini-steps i, .mini-steps b { animation: light 6s infinite; }
.mini-steps > :nth-child(2) { animation-delay: .4s; } .mini-steps > :nth-child(3) { animation-delay: .8s; } .mini-steps > :nth-child(4) { animation-delay: 1.2s; }
.mini-steps > :nth-child(5) { animation-delay: 1.6s; } .mini-steps > :nth-child(6) { animation-delay: 2s; } .mini-steps > :nth-child(7) { animation-delay: 2.4s; }
.mini-steps > :nth-child(8) { animation-delay: 2.8s; } .mini-steps > :nth-child(9) { animation-delay: 3.2s; } .mini-steps > :nth-child(10) { animation-delay: 3.6s; } .mini-steps > :nth-child(11) { animation-delay: 4s; }
.mini-labels { display: flex; justify-content: space-between; font-size: 12px; color: rgba(227, 251, 239, .6); font-weight: 600; }
.mini-chat { display: grid; gap: 8px; margin-top: 20px; }
.mini-chat span { justify-self: start; max-width: 85%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: var(--cream-2); font-size: 13px; font-weight: 600; opacity: 0; animation: bubble 9s infinite; }
.mini-chat span.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: linear-gradient(135deg, var(--g500), var(--g700)); color: #fff; animation-delay: 1.2s; }
.mini-chat span:nth-child(3) { animation-delay: 2.4s; }

.menu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 52px; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 650; transition: padding .25s var(--ease), color .2s; }
.price-row::after { content: ""; order: 1; flex: 1; border-bottom: 2px dotted var(--line-2); transform: translateY(-5px); }
.price-row b { order: 2; white-space: nowrap; color: var(--g600); font-weight: 800; }
.price-row:hover { padding-left: 10px; color: var(--ink); }
.price-row:hover b { color: var(--g500); }
.conditions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 34px 0 0; padding: 0; list-style: none; }
.conditions li { display: flex; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-size: 14px; color: #3b4a40; }
.conditions .i { color: var(--g500); }
.center { text-align: center; }
.cta-line { margin: 34px 0 0; }
.faq { display: grid; gap: 12px; max-width: 840px; margin: 0 auto; }
.faq details { padding: 2px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); transition: box-shadow .3s, border-color .3s; interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details[open] { box-shadow: var(--shadow); border-color: #d3eadc; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; font-size: 17px; font-weight: 750; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--mint-bg); color: var(--g600); font-size: 22px; font-weight: 600; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--g600); color: #fff; }
.faq details p { margin: 0 0 20px; color: #3b4a40; }
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 54px 56px; border-radius: 30px; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin: 0 0 10px; letter-spacing: -.03em; }
.cta-band p { color: rgba(227, 251, 239, .78); margin: 0; font-size: 17px; }
.cta-band .tooth-art { position: absolute; right: 26%; top: -30%; width: 260px; height: auto; opacity: .35; }
.cta-band > * { position: relative; }
.site-foot { margin-top: 90px; padding: 56px 0 30px; color: rgba(227, 251, 239, .7); background: linear-gradient(160deg, #021a0b, #062f17); }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-logo { height: 34px; margin-bottom: 14px; }
.site-foot p { max-width: 420px; font-size: 14px; }
.site-foot nav { display: grid; gap: 8px; align-content: start; }
.site-foot nav b { color: #fff; margin-bottom: 4px; }
.site-foot nav a { color: rgba(227, 251, 239, .7); font-weight: 600; }
.site-foot nav a:hover { color: var(--mint-2); }
.foot-copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(185, 243, 214, .12); font-size: 13px; }
.has-hero .site-foot { margin-top: 0; }

/* появление при прокрутке — только CSS, без JS */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise both linear; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  }
}

/* ---------- вход и регистрация ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; padding: 40px 56px; color: #e3fbef;
  background: radial-gradient(60% 70% at 80% 20%, rgba(60, 207, 142, .26), transparent 60%), radial-gradient(50% 50% at 0% 100%, rgba(185, 138, 53, .2), transparent 60%), linear-gradient(160deg, #021a0b, #052c14 55%, #0a3d1f); }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(126, 226, 181, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 226, 181, .07) 1px, transparent 1px); background-size: 40px 40px; animation: grid-move 24s linear infinite; }
.auth-art > * { position: relative; }
.auth-logo img { height: 38px; display: block; }
.auth-copy h2 { color: #fff; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 26px; animation: rise .8s both; }
.auth-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-copy li { display: flex; align-items: center; gap: 14px; color: rgba(227, 251, 239, .85); font-weight: 600; animation: rise .8s both; }
.auth-copy li:nth-child(1) { animation-delay: .15s; } .auth-copy li:nth-child(2) { animation-delay: .3s; } .auth-copy li:nth-child(3) { animation-delay: .45s; }
.auth-copy li .i { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(126, 226, 181, .12); color: var(--mint-2); }
.auth-copy { max-width: 420px; z-index: 1; }
.auth-tooth { position: absolute; right: -70px; bottom: -80px; width: 340px; opacity: .6; pointer-events: none; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; background: radial-gradient(600px 400px at 100% 0%, rgba(60, 207, 142, .1), transparent 60%), var(--cream); }
.auth-card { width: 100%; max-width: 430px; animation: rise .7s var(--ease) both; }
.auth-card h1 { font-size: 32px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 26px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-card .alt { margin: 22px 0 0; text-align: center; color: var(--muted); }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head .av { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.profile-head h1 { margin: 0; }

/* ---------- ключевые кадры ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(520px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.4); } }
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes grid-move { to { background-position: 46px 46px; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 6px transparent; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(60, 207, 142, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(60, 207, 142, 0); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fill { from { width: 22%; } to { width: 88%; } }
@keyframes light { 0%, 8% { border-color: rgba(185, 243, 214, .3); background: rgba(185, 243, 214, .2); } 12%, 80% { border-color: var(--mint); background: var(--mint); } 100% { border-color: rgba(185, 243, 214, .3); background: rgba(185, 243, 214, .2); } }
@keyframes bubble { 0%, 4% { opacity: 0; transform: translateY(8px) scale(.96); } 10%, 85% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- адаптивность ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .side { transform: translateX(-100%); transition: transform .35s var(--ease), box-shadow .35s; }
  .menu-open .side { transform: none; box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .5); }
  .scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(2, 20, 10, .45); opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .shell { margin-left: 0; }
  .burger, .bar-logo { display: inline-grid; }
  .bar { padding: 10px 18px; }
  .hello { display: none; }
  .main { padding: 22px 18px 50px; }
  .grid2, .order-form { grid-template-columns: 1fr; }
  .summary { position: static; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; margin-top: 10px; }
  .steps4, .bento { grid-template-columns: 1fr 1fr; }
  .steps4::before { display: none; }
  .feature.wide { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  h1 { font-size: 24px; }
  .site-nav { display: none; }
  .top-in { gap: 12px; min-height: 64px; }
  .logo img { height: 30px; }
  .hero { padding: 108px 0 100px; }
  .callout { display: none; }
  .float-card { min-width: 0; font-size: 12px; padding: 9px 11px; }
  .f1 { left: -2%; bottom: 8%; } .f2 { right: -2%; top: 0; } .f3 { display: none; }
  .steps4, .bento, .menu-list, .foot-in { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .stat { padding: 18px; }
  .stat b { font-size: 28px; }
  .section { padding: 70px 0; }
  .cta-band { grid-template-columns: 1fr; padding: 34px 26px; }
  .row { grid-template-columns: 1fr; }
  .dl { grid-template-columns: 1fr; gap: 2px; }
  .dl dd { margin-bottom: 10px; }
  .card { padding: 18px; }
  .order-hero { grid-template-columns: 1fr; padding: 22px; }
  .oh-price { text-align: left; }
  .search { display: none; }
  .bar-actions .btn span { display: none; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { padding: 22px 22px 26px; gap: 16px; }
  .auth-copy h2 { font-size: 24px; margin: 0; }
  .auth-copy ul, .auth-tooth { display: none; }
  .msg { max-width: 96%; }
  .toasts { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none !important; }
  .mini-chat span { animation: none !important; opacity: 1; }
}
