@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #efece5;
  --text: #16181d;
  --muted: #5d6470;
  --line: #e2ded4;
  --accent: #2455e6;
  --accent-hover: #1a44c4;
  --accent-soft: #e6ecfd;
  --on-accent: #ffffff;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .04), 0 8px 24px rgba(22, 24, 29, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #191c22;
    --surface-2: #20242b;
    --text: #eceef2;
    --muted: #9aa3b2;
    --line: #2a2f38;
    --accent: #7ea2ff;
    --accent-hover: #a3bdff;
    --accent-soft: #1d2640;
    --on-accent: #0d1220;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Шапка */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.nav__logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; }
.nav__logo img { width: 36px; height: 36px; border-radius: 50%; }
.nav__links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
@media (max-width: 520px) { .nav__logo span { display: none; } }

/* Кнопки */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--text); color: var(--text); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

/* Общие блоки */
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 19px; max-width: 40em; }
.section { padding: 40px 0; }
@media (min-width: 720px) { .section { padding: 56px 0; } }
.section__title { font-size: 28px; margin-bottom: 20px; }
@media (min-width: 720px) { .section__title { font-size: 34px; margin-bottom: 28px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .card { padding: 28px; } }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 560px) and (max-width: 719px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Главная: первый экран */
.hero { display: grid; gap: 28px; padding: 16px 0 40px; align-items: center; }
@media (min-width: 820px) { .hero { grid-template-columns: 1fr 380px; gap: 56px; padding: 32px 0 56px; } }
.hero__photo { border-radius: 28px; overflow: hidden; background: var(--surface-2); max-width: 380px; aspect-ratio: 4 / 5; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 819px) { .hero__photo { order: -1; max-width: 280px; } }
.hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 800; margin: 12px 0 18px; }
.hero .lead { margin-bottom: 28px; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 6px; }

.card__link { display: inline-block; margin-top: 14px; font-weight: 700; }

.contact { display: grid; gap: 20px; align-items: center; background: var(--text); color: var(--bg); border-radius: 28px; padding: 32px 24px; }
@media (min-width: 720px) { .contact { grid-template-columns: 1fr auto; padding: 44px; } }
.contact h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.contact p { opacity: .75; }
.contact .btn { background: var(--bg); color: var(--text); border-color: var(--bg); }
.contact .btn:hover { opacity: .9; }
.contact .btn--ghost { background: transparent; color: var(--bg); border-color: rgba(128, 128, 128, .5); }

/* Страница рекламы */
.page-head { padding: 16px 0 32px; }
@media (min-width: 720px) { .page-head { padding: 32px 0 40px; } }
.page-head h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; margin: 12px 0 16px; }
.page-head .lead { margin-bottom: 24px; }

.channel { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.channel img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.channel b { display: block; line-height: 1.35; }
.channel span { color: var(--muted); font-size: 15px; }

.price { display: flex; flex-direction: column; }
.price__name { color: var(--muted); font-weight: 700; font-size: 15px; }
.price__value { font-size: clamp(36px, 6vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 18px; }
.price--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.price .badge { align-self: flex-start; }

.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.list li { position: relative; padding-left: 30px; }
.list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%232455e6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.card .list li { color: var(--muted); }
.card .list li b { color: var(--text); }

.addon { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.addon:first-of-type { border-top: 0; padding-top: 0; }
.addon b { font-size: 22px; font-weight: 800; white-space: nowrap; }
.addon span { color: var(--muted); flex: 1 1 240px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800;
}
.steps li b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps li span { color: var(--muted); }

.note { color: var(--muted); font-size: 15px; margin-top: 20px; }

/* Резюме */
.cv-head { display: grid; gap: 24px; align-items: center; padding: 16px 0 40px; }
@media (min-width: 720px) { .cv-head { grid-template-columns: 180px 1fr; gap: 36px; padding: 32px 0 48px; } }
.cv-head__photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; }
@media (min-width: 720px) { .cv-head__photo { width: 180px; height: 180px; } }
.cv-head h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; margin: 8px 0 10px; }
.cv-head .lead { margin-bottom: 18px; }
.cv-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 20px; font-weight: 600; }
.cv-contacts span { color: var(--muted); font-weight: 500; }

.cv-block { display: grid; gap: 12px; padding: 32px 0; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .cv-block { grid-template-columns: 240px 1fr; gap: 40px; padding: 40px 0; } }
.cv-block > h2 { font-size: 22px; }
.cv-block p + p { margin-top: 12px; }

.ai-card { background: var(--accent-soft); border-radius: var(--radius); padding: 24px; }
@media (min-width: 720px) { .ai-card { padding: 28px; } }
.ai-card .list li { color: var(--text); }
.ai-card .list li::before { background-color: var(--surface); }

.job { display: grid; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 620px) { .job { grid-template-columns: 130px 1fr; } }
.job__years { color: var(--muted); font-weight: 700; font-size: 15px; padding-top: 2px; white-space: nowrap; }
.job h3 { font-size: 18px; margin-bottom: 4px; }
.job p { color: var(--muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }

.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topics li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.topics li small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.topics .is-new { border-color: var(--accent); }

.bio { white-space: pre-line; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 16px; }

/* Подвал */
.footer { padding: 40px 0 48px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* Печать резюме */
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #444; --line: #ddd; --accent: #1a44c4; --accent-soft: #f1f4fd; --shadow: none; }
  body { font-size: 11pt; }
  .nav, .footer, .no-print { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .cv-head { grid-template-columns: 110px 1fr; gap: 24px; padding: 0 0 16px; }
  .cv-head__photo { width: 110px; height: 110px; }
  .cv-block { grid-template-columns: 150px 1fr; gap: 20px; padding: 14px 0; break-inside: avoid-page; }
  .job, .topics li { break-inside: avoid; }
  a { color: inherit; }
}

/* Отступы между соседними блоками */
.price .badge { margin-bottom: 14px; }
h3 + .list, .lead + .list { margin-top: 16px; }
.lead + .steps { margin-top: 24px; }
.steps + .btns { margin-top: 28px; }
p + .tags { margin-top: 18px; }
p + .bio { margin-top: 16px; }

@media (prefers-color-scheme: dark) {
  .list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%237ea2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* Вопросы и ответы */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--muted); font-size: 20px; font-weight: 600; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--accent-soft); color: var(--accent); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 46em; }
@media print { .faq details { break-inside: avoid; } }
