/* CITYCOCO демо-концепт. Тёмная витрина, оранжевый акцент, скругления 30px -
   характер снят с боевого citycoco-russia.com (фон #0c0f17, акцент #ff4500).
   Всё локальное: системные шрифты, никаких внешних запросов. Анимаций появления нет. */

:root {
  --bg: #0c0f17;
  --bg-2: #121622;
  --panel: #171c28;
  --ink: #0c0f17;
  --card: #ffffff;
  --text: #14181f;
  --muted: #5c5c5c;
  --line: #e4e7ec;
  --accent: #ff4500;
  --accent-2: #e84002;
  --accent-soft: #fff1ea;
  --on-dark: #f4f6fb;
  --on-dark-mut: #9aa3b2;
  --r: 30px;
  --r-sm: 14px;
  --shadow: 0 10px 30px rgba(8, 11, 18, 0.10);
  --shadow-lg: 0 20px 50px rgba(8, 11, 18, 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1120px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-2);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(30px, 5.2vw, 52px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin-top: 1.2em; }
h3 { font-size: clamp(19px, 2.4vw, 23px); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 15, 23, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: 60px; max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 800; letter-spacing: .02em; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand .spark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px rgba(255,69,0,.16); }
.brand b { color: #fff; }
.brand span { color: var(--accent); }
.nav-links { display: none; gap: 6px; margin-left: 8px; }
.nav-links a { color: var(--on-dark-mut); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; transition: color 160ms var(--ease-out), background 160ms var(--ease-out); }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { margin-left: auto; }

.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 0;
  background: var(--b); color: #fff; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  box-shadow: 0 8px 20px rgba(255, 69, 0, 0.25);
  white-space: nowrap; text-align: center;
}
.btn:hover { background: var(--accent-2); text-decoration: none; box-shadow: 0 10px 26px rgba(255, 69, 0, 0.32); }
.btn:active { transform: scale(0.975); }
.btn.ghost { background: transparent; color: var(--on-dark); box-shadow: none; border: 1px solid rgba(255,255,255,.22); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.dark:hover { background: #000; }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(120% 100% at 80% -10%, #1b2436 0%, var(--bg) 55%); color: var(--on-dark); padding: 40px 0 54px; }
.hero .wrap { display: grid; gap: 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { color: #fff; }
.hero p.lead { color: var(--on-dark-mut); font-size: 18px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-media { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--on-dark-mut); font-size: 14px; }
.trust b { color: #fff; }

/* ---------- Секции ---------- */
.section { padding: 46px 0; background: var(--bg-2); }
.section.light { background: #fff; }
.section-head { max-width: 640px; margin-bottom: 26px; }
.section-head .eyebrow { color: var(--accent-2); }
.section.light .muted, .section .muted { color: var(--muted); }
.lead { font-size: 18px; }

.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: var(--shadow);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.card.pad-0 { padding: 0; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
}
.card h3 { margin-top: 0; }
.card .thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: #eef1f5; }
.card-body { padding: 20px; }
.price { font-weight: 800; font-size: 22px; color: var(--text); }
.price .old { color: var(--muted); font-weight: 500; font-size: 15px; text-decoration: line-through; margin-left: 8px; }
.spec { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); font-size: 14.5px; }
.spec li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.spec li:first-child { border-top: 0; }
.spec b { color: var(--text); font-weight: 600; }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 999px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); }
.section:not(.light) .pill { background: var(--panel); border-color: rgba(255,255,255,.08); color: var(--on-dark); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.feature { display: grid; gap: 12px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.section:not(.light) .feature h3 { color: var(--on-dark); }
.section:not(.light) .feature p { color: var(--on-dark-mut); }

/* ---------- Заявка (форма) ---------- */
.cta {
  background: linear-gradient(135deg, #171c28, #0c0f17);
  color: var(--on-dark); border-radius: var(--r); padding: 30px; border: 1px solid rgba(255,255,255,.08);
}
.cta h3, .cta h2 { color: #fff; margin-top: 0; }
.cta p { color: var(--on-dark-mut); }
.cta.inline { padding: 24px; }
.cta-form { display: grid; gap: 12px; margin-top: 16px; }
.cta-form .row { display: grid; gap: 12px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--on-dark-mut); font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); color: #fff; font: inherit; font-size: 15px;
}
.field input::placeholder, .field textarea::placeholder { color: #7b8496; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-note { font-size: 13px; color: var(--on-dark-mut); margin: 4px 0 0; }
.form-status { display: none; margin-top: 12px; padding: 13px 16px; border-radius: 14px; background: rgba(255,69,0,.12); border: 1px solid rgba(255,69,0,.4); color: #ffd9c9; font-size: 14.5px; }
.form-status.on { display: block; }

/* мид-CTA внутри статьи */
.cta.article-cta { margin: 26px 0; }
.cta .btn { white-space: normal; max-width: 100%; }

/* ---------- Плашка демо ---------- */
.demo-ribbon {
  background: var(--accent); color: #fff; text-align: center; font-size: 13px; font-weight: 600;
  padding: 7px 16px; letter-spacing: .01em;
}
.demo-ribbon b { font-weight: 800; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg); color: var(--on-dark-mut); padding: 40px 0 26px; border-top: 1px solid rgba(255,255,255,.06); }
.foot-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-footer a { color: var(--on-dark-mut); }
.site-footer a:hover { color: #fff; }
.foot-col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.foot-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; display: grid; gap: 6px; }
.foot-bottom .disclaimer { color: #7b8496; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-2); }

/* ---------- Статья ---------- */
.article-head { background: var(--bg); color: var(--on-dark); padding: 28px 0 34px; }
.article-head h1 { color: #fff; max-width: 20ch; }
.article-meta { color: var(--on-dark-mut); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.article-cover { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.article-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); padding: 34px 0 10px; }
.article-layout > * { min-width: 0; }
.share { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; align-items: center; }
.share .share-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.share button, .share a.round {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: transform 140ms var(--ease-out), border-color 140ms var(--ease-out), background 140ms var(--ease-out);
}
.share button:hover, .share a.round:hover { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.share button:active, .share a.round:active { transform: scale(0.97); }
.share-menu { position: relative; display: inline-block; }
.share-pop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 190px; display: none;
}
.share-pop.on { display: block; }
.share-pop a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14.5px; }
.share-pop a:hover { background: var(--accent-soft); text-decoration: none; }

.prose { font-size: 17.5px; min-width: 0; }
.prose > p, .prose > ul, .prose > ol, .prose > .callout, .prose > .table-wrap, .prose > figure { max-width: 720px; }
.prose h2 { max-width: 720px; }
.prose h3 { max-width: 720px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose figure { margin: 22px 0; }
.prose figure img { border-radius: var(--r-sm); }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

.callout {
  background: var(--accent-soft); border: 1px solid #ffd9c9; border-left: 4px solid var(--accent);
  border-radius: var(--r-sm); padding: 14px 18px; margin: 18px 0;
}
.callout b { color: var(--accent-2); }
.callout p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 460px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6f7f9; font-weight: 700; }
tr:last-child td { border-bottom: 0; }

.toc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; margin: 0 0 22px; max-width: 720px; }
.toc h4 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: 15px; }
.toc a { color: var(--text); }

.read-more { margin-top: 30px; }
.read-more h3 { margin-bottom: 14px; }
.rm-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.rm-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); color: var(--text); transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; } }
.rm-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.rm-card .rm-body { padding: 14px 16px; }
.rm-card .rm-body b { display: block; font-size: 16px; margin-bottom: 4px; }
.rm-card .rm-body span { color: var(--muted); font-size: 13.5px; }

/* ---------- 404 ---------- */
.err { min-height: 52vh; display: grid; place-items: center; text-align: center; padding: 50px 20px; }
.err .big { font-size: 68px; font-weight: 800; color: var(--accent); line-height: 1; }

/* ---------- Ширины ---------- */
@media (min-width: 700px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .cta-form .row.two { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .rm-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .hero p.lead { font-size: 19px; }
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .section { padding: 60px 0; }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); align-items: start; }
  .share { position: sticky; top: 78px; flex-direction: column; align-items: stretch; }
  .share .share-label { margin-bottom: 4px; }
  .share-pop { left: 0; }
}

@media (max-width: 460px) {
  .nav { gap: 8px; }
  .brand { font-size: 16px; }
  .brand .spark { width: 18px; height: 18px; }
  .nav-cta { padding: 8px 12px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
