/* Витрина «В деле»: палитра и повадки сайта Pakman in Law и Legal CRM (индиго, тёмно-синий градиент, золото, Inter) */
:root {
  --page: #f2f4f8;
  --card: #ffffff;
  --ink: #0f172a;
  --navy: #0f2142;
  --muted: #64748b;
  --line: #e3e8f0;
  --indigo: #1e3a8a;
  --indigo-dark: #172e6e;
  --soft: #e3e9f8;
  --gold: #c9a45c;
  --gold-soft: #f6efe1;
  --ok: #15803d;
  --grad: linear-gradient(135deg, #0c1a3a, #16275a);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--indigo); }
.eyebrow-gold { color: var(--gold); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(242, 244, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 1.02rem; color: var(--navy); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: var(--gold); letter-spacing: 0; font-size: 1rem; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--indigo); }

/* Кнопки (скругление 10px, как в CRM) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 10px; font: 600 .95rem/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--indigo); }
.btn-line { border-color: #c5cddc; color: var(--navy); background: #fff; }
.btn-line:hover { background: var(--soft); }
.btn-ghost { border: 1px dashed #c5cddc; color: var(--muted); cursor: default; background: transparent; }
.btn-ghost:hover { transform: none; }
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { background: #d9b46e; }
.btn-line-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-line-light:hover { background: rgba(255, 255, 255, .1); }

/* Первый экран */
.hero { padding-block: clamp(48px, 8vw, 104px); background: radial-gradient(60% 80% at 88% 20%, rgba(30, 58, 138, .10), transparent 65%), var(--page); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; font-weight: 700; margin-block: 14px 20px; color: var(--navy); text-wrap: balance; }
h1 em { font-style: normal; color: var(--indigo); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { justify-self: center; width: min(100%, 340px); background: var(--grad); color: #e8ecf8; border-radius: 20px; padding: 34px 30px 28px; box-shadow: 0 24px 50px rgba(12, 26, 58, .25); position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 164, 92, .28), transparent 70%); }
.hero-word { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: .06em; line-height: 1; color: #fff; }
.gold-rule { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin-block: 16px 12px; }
.hero-sub { font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: #aebbe0; }
.hero-faces { display: flex; align-items: center; margin-top: 28px; }
.hero-faces img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #16275a; margin-right: -14px; }
.face-plus { margin-left: 22px; width: 56px; height: 56px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .35); display: grid; place-items: center; font-size: 1.4rem; color: #aebbe0; }

/* Разделы */
.sec { padding-block: clamp(52px, 8vw, 96px); }
.sec-band { background: linear-gradient(180deg, var(--page), #e9edf4 90px, #e9edf4 calc(100% - 90px), var(--page)); }
.sec-dark { background: linear-gradient(180deg, var(--page) 0, #0c1a3a clamp(36px, 5vw, 72px), #16275a 100%); color: #e8ecf8; padding-bottom: 28px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.015em; font-weight: 700; margin-block: 10px 30px; color: var(--navy); }
.sec-dark h2 { color: #fff; }

/* Карточки специалистов */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 10px; align-content: start; box-shadow: 0 4px 18px rgba(15, 23, 42, .04); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 23, 42, .10); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ava { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--soft), 0 6px 16px rgba(15, 23, 42, .12); display: block; }
.ava-icon { display: grid; place-items: center; background: var(--gold-soft); color: #8a6a2a; box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(15, 23, 42, .08); }
.chip { font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; background: #eef1f6; color: var(--muted); }
.chip-ok { background: #dcfce7; color: var(--ok); }
.card h3 { font-size: 1.1rem; line-height: 1.3; color: var(--navy); }
.who { color: var(--indigo); font-weight: 700; }
.card ul { display: grid; gap: 6px; margin-block: 6px; font-size: .95rem; color: #334155; }
.card li { padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--gold); }
.note { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border-radius: 14px; padding: 22px; display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-weight: 800; color: var(--gold); }
.steps b { font-size: 1.05rem; color: var(--navy); }
.steps span { font-size: .93rem; color: var(--muted); }

/* Контакты */
.contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.contact h2 { margin-bottom: 14px; }
.sec-dark .lead { color: #aebbe0; }
.contact dl { display: grid; gap: 14px; }
.contact dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8e9bc4; }
.contact dd { font-size: 1.1rem; margin-top: 2px; }
.contact dd a { text-decoration-color: rgba(201, 164, 92, .6); text-underline-offset: 4px; }
.consent { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: #8e9bc4; max-width: 34em; }
.consent a { color: #c7d0ec; }
.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .84rem; color: #8e9bc4; }
.foot a { color: inherit; }

@media (max-width: 900px) {
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero-grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero-card { justify-self: start; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card { transition: none; } }

/* Заглушка «проект в разработке», две визитки, друзья проекта */
.stub { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 20px; background: var(--gold-soft); color: #7a5b1f; font-size: .82rem; font-weight: 700; letter-spacing: .04em; border: 1px solid rgba(201, 164, 92, .5); }
.stub span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.stub + h1 { margin-top: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 780px; }
.card .who { margin-top: 2px; }
.friends { display: grid; gap: 14px; max-width: 780px; }
.friend { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; box-shadow: 0 4px 18px rgba(15, 23, 42, .04); }
.friend .ava { flex: none; width: 60px; height: 60px; }
.friend h3 { font-size: 1.05rem; color: var(--navy); }
.friend p { font-size: .92rem; color: var(--muted); }
.friend .chip { margin-left: auto; flex: none; }
@media (max-width: 900px) { .cards-2 { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .stub span { animation: none; } }