/* CityForge — главная. Один акцент: живая сцена с шаблоном в первом экране. */
.main--wide > .note { width: min(1160px, 100% - 32px); margin: 20px auto 0; }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 12px; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: #ffc24d; }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--onDark:hover { border-color: #fff; }

section { scroll-margin-top: 16px; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.035em; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 1.12rem; margin: 0; }
.sec-head--light p { color: #b7bfd6; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg) translateY(-3px); }

.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 30px 60px -30px rgba(20, 26, 42, .35); }
.frame img { display: block; width: 100%; height: auto; }
.frame--dark { border-color: #29324a; }
.ph { width: 168px; border-radius: 26px; padding: 6px; background: #141a2a; box-shadow: 0 30px 50px -20px rgba(20, 26, 42, .5); flex: none; }
.ph img { display: block; width: 100%; height: auto; border-radius: 20px; }

/* Первый экран */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.02; letter-spacing: -.045em; margin-bottom: 20px; }
.hero__lead { font-size: 1.18rem; color: #3b4258; margin: 0 0 28px; max-width: 34em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { color: var(--muted); font-size: .95rem; margin: 18px 0 0; }
.stage { position: relative; padding-bottom: 40px; }
.stage__controls { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; border: 1px solid var(--border); }
.seg button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 26, 42, .15); }
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 40px 80px -30px rgba(20, 26, 42, .45); background: #fff; }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef0f5; border-bottom: 1px solid var(--border); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd3de; }
.browser__bar span { margin: 0 auto; font-size: .78rem; color: var(--muted); background: #fff; padding: 2px 40px; border-radius: 6px; }
.browser img { display: block; width: 100%; height: auto; transition: opacity .25s; }
.ph--hero { position: absolute; right: -18px; bottom: 0; width: 150px; }
.stage.is-swapping img { opacity: .35; }
@media (max-width: 960px) { .hero__in { grid-template-columns: 1fr; } .ph--hero { right: 8px; width: 120px; } }
@media (max-width: 520px) { .hero { padding-top: 32px; } .ph--hero { display: none; } }

/* Коротко */
.facts { border-block: 1px solid var(--border); }
.facts__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts p { margin: 0; padding: 26px 24px; color: #3b4258; border-left: 1px solid var(--border); font-size: .98rem; }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts b { color: var(--ink); }
@media (max-width: 900px) { .facts__in { grid-template-columns: 1fr 1fr; } .facts p:nth-child(3) { border-left: 0; padding-left: 0; } .facts p { border-top: 1px solid var(--border); } .facts p:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 560px) { .facts__in { grid-template-columns: 1fr; } .facts p { border-left: 0; padding-left: 0; } .facts p:nth-child(2) { border-top: 1px solid var(--border); } }

/* Модули */
.modules { padding: 96px 0 40px; }
.mod-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; }
.mod-index a { padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mod-index a:hover { background: var(--brand-soft); color: var(--brand); }
.mod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.mod h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; }
.mod__lead { font-size: 1.08rem; color: #3b4258; margin: 0 0 22px; }
.mod__pic { position: relative; margin: 0; padding: 0 0 36px; }
.mod__pic .ph { position: absolute; right: -12px; bottom: 0; width: 132px; }
@media (max-width: 960px) { .mod { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; } .mod__pic .ph { right: 8px; width: 110px; } }
@media (max-width: 520px) { .mod__pic .ph { display: none; } .mod__pic { padding: 0; } }

/* Заработок */
.money { background: #0f1424; color: #fff; padding: 96px 0; margin-top: 56px; }
.money__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.money__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.money__list li { padding: 18px 0; border-top: 1px solid #252d44; display: grid; gap: 4px; }
.money__list li:first-child { border-top: 0; padding-top: 0; }
.money__list b { font-size: 1.1rem; color: var(--accent); }
.money__list span { color: #c6cce0; }
.money__pic { margin: 0; position: sticky; top: 24px; }
.money__pic figcaption { color: #8d96b3; font-size: .9rem; margin-top: 12px; }
@media (max-width: 960px) { .money__grid { grid-template-columns: 1fr; } .money__pic { position: static; } }

/* Шаблоны */
.templates { padding: 96px 0 40px; }
.tpl { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-bottom: 72px; }
.tpl--rev .tpl__pic { order: 2; }
.tpl__pic { position: relative; padding-bottom: 60px; }
.tpl__phones { position: absolute; right: -10px; bottom: 0; display: flex; gap: 12px; }
.tpl__phones .ph { width: 120px; }

.tpl h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -.03em; }
.tpl p { color: #3b4258; font-size: 1.05rem; }
.tpl-more { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 48px; background: var(--surface); border-radius: 20px; }
.tpl-more .frame { box-shadow: none; }
@media (max-width: 960px) { .tpl, .tpl-more { grid-template-columns: 1fr; gap: 28px; } .tpl--rev .tpl__pic { order: 0; } .tpl-more { padding: 24px; } .tpl__phones .ph { width: 92px; } }
@media (max-width: 520px) { .tpl__phones { display: none; } .tpl__pic { padding: 0; } }

/* Редакция */
.editor { padding: 64px 0 96px; }
.editor__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.editor h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.035em; }
.editor__lead { color: var(--muted); font-size: 1.12rem; margin: 0 0 24px; }
@media (max-width: 960px) { .editor__in { grid-template-columns: 1fr; } }

/* Доверие */
.trust { padding: 96px 0; background: var(--surface); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trust h3 { font-size: 1.2rem; margin-bottom: 16px; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr; gap: 32px; } }

/* Планы развития */
.roadmap { padding: 96px 0; }
.roadmap__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.roadmap h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; }
.roadmap p { color: var(--muted); font-size: 1.08rem; }
.roadmap__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.roadmap__list li { padding: 14px 0; border-top: 1px dashed var(--border); display: grid; }
.roadmap__list span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .roadmap__in { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 520px) { .roadmap__list { grid-template-columns: 1fr; } }

/* Тарифы */
.plans { padding: 96px 0; border-top: 1px solid var(--border); }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; padding: 32px 28px; border: 1px solid var(--border); border-radius: 20px; }
.plan--main { border: 2px solid var(--brand); box-shadow: 0 30px 60px -36px rgba(61, 76, 245, .55); }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan__for { color: var(--muted); margin: 0 0 14px; }
.plan__price { margin: 0; }
.plan__price b { font-size: 2.3rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan__price span { color: var(--muted); }
.plan__renew { color: var(--muted); font-size: .92rem; margin: 0 0 20px; min-height: 1.4em; }
.plan .ticks { margin-bottom: 28px; font-size: .97rem; }
.plan .btn { margin-top: auto; }
.plans__note { color: var(--muted); margin: 24px 0 0; }
@media (max-width: 960px) { .plans__grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Вопросы */
.faq { padding: 96px 0; background: var(--surface); }
.faq__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.faq h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); letter-spacing: -.035em; }
.faq__list details { border-top: 1px solid var(--border); }
.faq__list details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq details p { margin: 0 0 20px; color: #3b4258; max-width: 62ch; }
@media (max-width: 900px) { .faq__in { grid-template-columns: 1fr; gap: 16px; } }

/* Финал */
.final { background: var(--brand); color: #fff; padding: 88px 0; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -.04em; max-width: 14em; }
.final p { font-size: 1.15rem; color: #dfe3ff; margin: 0 0 28px; max-width: 36em; }
.main--wide + .foot { border-top: 0; }

@media (prefers-reduced-motion: reduce) { .browser img, .faq summary::after { transition: none; } }
