/* ============ Vince Robov — портфолио-сайт ============ */
:root {
  --bg: #0c0e11;
  --bg-soft: #111419;
  --surface: #161a20;
  --surface-2: #1c212a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eceef1;
  --muted: #99a1ad;
  --accent: #e8442e;
  --accent-soft: rgba(232, 68, 46, 0.12);
  --accent-text: #ff6a55;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --kwork: #ffd000;
}
html[data-theme="light"] {
  --bg: #f6f6f4;
  --bg-soft: #efefec;
  --surface: #ffffff;
  --surface-2: #f3f3f0;
  --border: rgba(15, 18, 24, 0.1);
  --border-strong: rgba(15, 18, 24, 0.2);
  --text: #15181d;
  --muted: #5d6573;
  --accent: #d63a26;
  --accent-soft: rgba(214, 58, 38, 0.09);
  --accent-text: #d63a26;
  --shadow: 0 20px 50px rgba(20, 24, 32, 0.12);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Переход между страницами ---------- */
.page-transition {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
  pointer-events: none;
}
.page-transition .pt-glyph {
  font-family: "Noto Serif JP", serif;
  font-size: 64px; color: #fff; opacity: 0.95;
}
.page-transition.is-hidden { transform: translateY(-101%); }
.page-transition.is-entering { transform: translateY(0); }
main.page { animation: pageIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.02em; }
.logo-glyph {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif JP", serif; font-size: 21px; font-weight: 600;
  box-shadow: 0 6px 18px rgba(232, 68, 46, 0.35);
}
.logo-name { font-size: 16px; }
.logo-name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.nav-link {
  padding: 9px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  color: var(--muted); transition: color 0.2s, background 0.2s;
}
.nav a.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav a.nav-link.active { color: var(--text); background: var(--surface-2); }
.nav .btn { margin-left: 8px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, transform 0.3s;
  margin-left: 10px;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }
.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px;
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(232, 68, 46, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(232, 68, 46, 0.42); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn-kwork { background: var(--kwork); color: #15181d; box-shadow: 0 8px 24px rgba(255, 208, 0, 0.25); }
.btn-kwork:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 208, 0, 0.35); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Секции ---------- */
section { padding: 96px 0; }
.section-head { margin-bottom: 48px; max-width: 640px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 16px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker .jp { font-family: "Noto Serif JP", serif; letter-spacing: 0.3em; }
h1, h2, h3 { line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 110px; position: relative; }
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none;
}
.hero-bg::before {
  content: ""; position: absolute; top: -220px; right: -180px; width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%); border-radius: 50%;
}
.hero-bg .hero-glyph {
  position: absolute; right: -40px; bottom: -90px;
  font-family: "Noto Serif JP", serif; font-size: 380px; line-height: 1;
  color: var(--text); opacity: 0.03; user-select: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 100px; font-size: 13.5px; color: var(--muted);
  margin-bottom: 26px; background: var(--surface);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
.hero h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 8px; }
.hero h1 .accent { color: var(--accent-text); }
.hero .hero-role { font-size: clamp(18px, 2.4vw, 24px); font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.hero .hero-role b { color: var(--text); font-weight: 600; }
.hero-desc { color: var(--muted); font-size: 16.5px; max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 38px; }
.stat .num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.stat .num span { color: var(--accent-text); }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* код-карточка в hero */
.code-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; font-size: 13.5px;
  transform: rotate(1.5deg); transition: transform 0.4s ease;
}
.code-card:hover { transform: rotate(0deg) translateY(-4px); }
.code-card .bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.code-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .bar i:nth-child(1) { background: #ff5f57; }
.code-card .bar i:nth-child(2) { background: #febc2e; }
.code-card .bar i:nth-child(3) { background: #28c840; }
.code-card .bar em { margin-left: 8px; font-style: normal; color: var(--muted); font-size: 12.5px; }
.code-card pre {
  padding: 20px 22px; font-family: "JetBrains Mono", "Consolas", monospace;
  line-height: 1.75; color: var(--muted); overflow-x: auto;
}
.code-card .c-key { color: #c678dd; }
.code-card .c-str { color: #98c379; }
.code-card .c-fn { color: #61afef; }
.code-card .c-com { color: #5c6370; }

/* ---------- Услуги ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.service-card .icon {
  width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft);
  color: var(--accent-text); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.service-card .icon svg { width: 23px; height: 23px; }
.service-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Стек ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; transition: transform 0.3s, border-color 0.3s;
}
.stack-item:hover { transform: translateY(-4px); border-color: var(--accent); }
.stack-item .head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.stack-item .glyph {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
  color: var(--accent-text); border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
}
.stack-item h3 { font-size: 16px; }
.stack-item p { color: var(--muted); font-size: 13.5px; }

/* ---------- Обо мне ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-visual {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 44px; text-align: center; box-shadow: var(--shadow);
}
.about-visual .big-glyph {
  font-family: "Noto Serif JP", serif; font-size: 120px; line-height: 1.1; color: var(--accent);
}
.about-visual .glyph-sub { color: var(--muted); font-size: 14px; margin-top: 10px; }
.about-visual .corner {
  position: absolute; top: 16px; right: 18px; font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--muted);
}
.about-text p { color: var(--muted); margin-bottom: 16px; font-size: 16px; }
.about-text p b { color: var(--text); font-weight: 600; }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.fact {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; font-size: 14px;
}
.fact svg { width: 19px; height: 19px; color: var(--accent-text); flex-shrink: 0; margin-top: 2px; }

/* ---------- Превью портфолио / кейсы ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform 0.35s ease, border-color 0.35s, box-shadow 0.35s;
  text-align: left; padding: 0; font-family: inherit; color: inherit; display: block; width: 100%;
}
.work-card:hover { transform: translateY(-7px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.work-card .thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.work-card:hover .thumb img { transform: scale(1.05); }
.work-card .thumb .ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface));
}
.work-card .thumb .ph .g { font-family: "Noto Serif JP", serif; font-size: 56px; color: var(--accent); }
.work-card .thumb .ph .t { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.work-card .tag {
  position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 100px;
  background: rgba(10, 12, 15, 0.72); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 600;
}
.work-card .body { padding: 22px; }
.work-card h3 { font-size: 18px; margin-bottom: 7px; display: flex; align-items: center; gap: 10px; }
.work-card h3 .arr { color: var(--accent-text); transition: transform 0.3s; }
.work-card:hover h3 .arr { transform: translate(3px, -3px); }
.work-card p { color: var(--muted); font-size: 14px; }
.center-cta { text-align: center; margin-top: 44px; }

/* ---------- Этапы ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  position: relative;
}
.step .n {
  font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--accent-text);
  margin-bottom: 14px; display: block; font-weight: 700;
}
.step h3 { font-size: 17px; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Контакты / CTA ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 18px; align-items: center; transition: transform 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.contact-card .icon {
  width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card .icon svg { width: 23px; height: 23px; }
.contact-card .label { font-size: 13px; color: var(--muted); }
.contact-card .value { font-weight: 600; font-size: 16.5px; }
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #b32a18 100%);
  border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner .bg-glyph {
  position: absolute; right: 24px; bottom: -40px; font-family: "Noto Serif JP", serif;
  font-size: 220px; opacity: 0.1; line-height: 1; user-select: none;
}
.cta-banner h2 { margin-bottom: 14px; }
.cta-banner p { opacity: 0.85; max-width: 560px; margin: 0 auto 32px; }
.cta-banner .btn-white { background: #fff; color: #15181d; }
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.cta-banner .btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.55); }
.cta-banner .btn-outline-white:hover { border-color: #fff; transform: translateY(-2px); }
.cta-banner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* kwork badge */
.kwork-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.01em;
}
.kwork-badge .kw-ic {
  width: 22px; height: 22px; border-radius: 6px; background: #15181d; color: var(--kwork);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 320px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--text); font-size: 15px; opacity: 0.85; transition: color 0.2s; }
.footer ul a:hover { color: var(--accent-text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; gap: 10px;
}

/* ---------- Страница: внутренний hero ---------- */
.page-hero { padding: 160px 0 40px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 620px; }

/* ---------- Портфолио ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 40px; }
.filter-btn {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* модалка кейса */
.case-modal {
  position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px;
}
.case-modal.open { display: flex; }
.case-modal .overlay { position: absolute; inset: 0; background: rgba(5, 7, 10, 0.72); backdrop-filter: blur(8px); animation: fadeIn 0.25s ease; }
.case-modal .dialog {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  max-width: 680px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow);
  animation: modalIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.97); } }
.case-modal .close {
  position: absolute; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10, 12, 15, 0.6); backdrop-filter: blur(6px); border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.case-modal .close:hover { background: rgba(10, 12, 15, 0.85); }
.case-modal .m-img { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.case-modal .m-img img { width: 100%; height: 100%; object-fit: cover; }
.case-modal .m-img .ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.case-modal .m-img .ph .g { font-family: "Noto Serif JP", serif; font-size: 84px; color: var(--accent); }
.case-modal .m-body { padding: 30px 32px 34px; }
.case-modal .m-tag { display: inline-block; padding: 6px 13px; border-radius: 100px; background: var(--accent-soft); color: var(--accent-text); font-size: 12.5px; font-weight: 600; margin-bottom: 14px; }
.case-modal h3 { font-size: 26px; margin-bottom: 10px; }
.case-modal .m-desc { color: var(--muted); margin-bottom: 24px; }
.m-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.m-meta .meta-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.m-meta .meta-item .l { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.m-meta .meta-item .v { font-weight: 700; font-size: 17px; }
.m-review {
  border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 14px 14px 0;
  padding: 18px 20px; margin-bottom: 26px;
}
.m-review .stars { color: #ffb01f; letter-spacing: 2px; margin-bottom: 8px; font-size: 14px; }
.m-review .text { font-size: 14.5px; color: var(--text); opacity: 0.92; white-space: pre-line; }
.m-review .author { font-size: 13px; color: var(--muted); margin-top: 10px; }
.case-modal .m-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* отзывы */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 14px; transition: transform 0.3s, border-color 0.3s;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.review-card .stars { color: #ffb01f; letter-spacing: 2px; font-size: 14px; }
.review-card .text { font-size: 14.5px; color: var(--text); opacity: 0.9; flex: 1; white-space: pre-line; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .ava {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.review-card .who .name { font-weight: 600; font-size: 14.5px; }
.review-card .who .meta { font-size: 12.5px; color: var(--muted); }

/* ---------- Страница заказа: чат ---------- */
.order-layout { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: 28px; align-items: start; }
.chat-shell {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
  height: 640px;
}
.chat-top {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.chat-top .ava {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: "Noto Serif JP", serif; font-size: 18px;
}
.chat-top .t .name { font-weight: 600; font-size: 15.5px; }
.chat-top .t .status { font-size: 12.5px; color: #3ddc84; display: flex; align-items: center; gap: 6px; }
.chat-top .t .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.msg { max-width: 78%; padding: 13px 17px; border-radius: 18px; font-size: 14.5px; line-height: 1.55; animation: msgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); white-space: pre-line; }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.msg.bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.summary { max-width: 92%; width: 92%; }
.msg .sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--border-strong); font-size: 13.5px; }
.msg .sum-row:last-child { border-bottom: none; }
.msg .sum-row .k { color: var(--muted); flex-shrink: 0; }
.msg .sum-row .v { font-weight: 600; text-align: right; word-break: break-word; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 15px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chips { display: flex; gap: 9px; flex-wrap: wrap; align-self: flex-start; animation: msgIn 0.4s ease; }
.chip {
  padding: 9px 17px; border-radius: 100px; border: 1px solid var(--accent); background: transparent;
  color: var(--accent-text); font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.chip:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

/* prompt-box — стиль ai-prompt-box */
.chat-input-wrap { padding: 14px 16px 16px; }
.prompt-box {
  border-radius: 24px; border: 1px solid #444444; background: #1f2023;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24); padding: 10px 10px 8px;
  transition: border-color 0.3s;
}
.prompt-box:focus-within { border-color: #666; }
.prompt-box textarea {
  width: 100%; border: none; background: transparent; resize: none; outline: none;
  color: #f3f4f6; font-family: inherit; font-size: 15px; line-height: 1.5;
  padding: 6px 8px; min-height: 26px; max-height: 140px;
}
.prompt-box textarea::placeholder { color: #9ca3af; }
.prompt-box textarea::-webkit-scrollbar { width: 6px; }
.prompt-box textarea::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.prompt-actions { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 0; }
.prompt-hint { font-size: 12px; color: #6b7280; padding-left: 6px; display: flex; align-items: center; gap: 7px; }
.prompt-hint svg { width: 14px; height: 14px; }
.send-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: #9ca3af; transition: all 0.25s;
}
.send-btn.ready { background: #fff; color: #1f2023; }
.send-btn:hover { transform: scale(1.08); }
.send-btn svg { width: 17px; height: 17px; }
.send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* сайдбар заказа */
.order-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.aside-card h3 { font-size: 17px; margin-bottom: 8px; }
.aside-card > p { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.aside-card .btn { width: 100%; }
.aside-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.aside-list li { display: flex; gap: 11px; font-size: 14px; color: var(--muted); align-items: flex-start; }
.aside-list li svg { width: 17px; height: 17px; color: var(--accent-text); flex-shrink: 0; margin-top: 2px; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .cards-grid, .work-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .order-aside { position: static; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 130px 0 70px; }
  .cards-grid, .work-grid, .reviews-grid, .stack-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px 22px; gap: 6px;
    transform: translateY(-130%); transition: transform 0.35s ease; z-index: 90; }
  .nav.open { transform: translateY(0); }
  .nav a.nav-link { padding: 13px 16px; }
  .nav .btn { margin: 8px 0 0; }
  .burger { display: flex; }
  .theme-toggle { margin-left: auto; margin-right: 12px; }
  .header-inner { gap: 0; }
  .cta-banner { padding: 48px 24px; }
  .chat-shell { height: 76vh; min-height: 520px; }
  .msg { max-width: 88%; }
  .m-meta { grid-template-columns: 1fr; }
}
