/* Стили страниц услуг (/uslugi/*.html). Палитры и компоненты общие для четырёх страниц. */

:root {
  /* Палитра J - наш зелёный */
  --bg: #FBF9F4; --bg-soft: #EFF4EF; --ink: #1E2A24; --muted: #63706A;
  --navy: #1D7A56; --navy-deep: #123F30; --blue: #1D7A56; --blue-soft: #C2DCCE;
  --tint: rgba(29, 122, 86, 0.07);
  --band-grad1: #0F3A2B; --band-grad2: #17553F; --band-accent: #8CC9AC;
  --line: rgba(30, 42, 36, 0.12);
  --head: 'Golos Text', 'Inter', -apple-system, sans-serif;
  --sans: 'Inter', -apple-system, sans-serif;
}
:root[data-pal="K"] {
  --bg: #FAF8F4; --bg-soft: #F1F1ED; --ink: #2B3340; --muted: #68707C;
  --navy: #3E6796; --navy-deep: #2E4C74; --blue: #3E6796; --blue-soft: #C6D4E5;
  --tint: rgba(62, 103, 150, 0.07);
  --band-grad1: #2C4568; --band-grad2: #3A5A85; --band-accent: #A9C4E3;
  --line: rgba(43, 51, 64, 0.12);
}
:root[data-pal="KW"] {
  --bg: #FFFFFF; --bg-soft: #F4F4F4; --ink: #212328; --muted: #6B7078;
  --navy: #3E6796; --navy-deep: #2E4C74; --blue: #3E6796; --blue-soft: #C6D4E5;
  --tint: rgba(62, 103, 150, 0.06);
  --band-grad1: #2C4568; --band-grad2: #3A5A85; --band-accent: #A9C4E3;
  --line: rgba(33, 35, 40, 0.12);
}
:root[data-pal="N"] {
  --bg: #FFFFFF; --bg-soft: #F4F4F4; --ink: #212121; --muted: #757575;
  --navy: #006B88; --navy-deep: #084A5E; --blue: #006B88; --blue-soft: #BFDCE5;
  --tint: rgba(0, 107, 136, 0.06);
  --band-grad1: #063845; --band-grad2: #0A5068; --band-accent: #7FC3D8;
  --line: rgba(33, 33, 33, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 64px 0; }

/* ---------- типографика ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.015em; line-height: 1.14; }
h1 { font-size: clamp(28px, 3.4vw, 42px); }
h2 { font-size: clamp(25px, 2.8vw, 34px); margin-bottom: 16px; }
h3 { font-size: 19px; font-weight: 700; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.dark .eyebrow { color: var(--band-accent); }
.sub { font-size: 18px; color: var(--muted); max-width: 700px; }
.lead-out { font-size: 16.5px; font-weight: 600; margin-top: 22px; max-width: 720px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 10px; font-family: var(--sans); font-size: 15.5px;
  font-weight: 600; text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: all .16s ease; white-space: nowrap; }
.btn-fill { background: var(--navy); color: #fff; }
.btn-fill:hover { background: var(--navy-deep); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.dark .btn-line { border-color: rgba(255,255,255,0.85); color: #fff; }
.dark .btn-line:hover { background: #fff; color: var(--navy-deep); }

/* ---------- шапка ---------- */
header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-family: var(--head); font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; line-height: 1.1; }
.logo span { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-top: 2px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; border-radius: 8px; }
.burger { display: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); padding: 4px 6px; user-select: none; }

/* ---------- хлебные крошки ---------- */
.crumbs { padding: 16px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.crumbs span { margin: 0 7px; opacity: 0.5; }

/* ---------- hero ---------- */
.hero { padding: 26px 0 56px; }
.hero .sub { margin-top: 16px; }
/* визитка: горизонтальные карточки, как у эталона */
.card-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.card-cells > div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 22px; }
.card-cells b { display: block; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.card-cells span { font-size: 17px; font-weight: 600; line-height: 1.45; }
.hero-cta { margin-top: 28px; }

/* ---------- списки ---------- */
.bullets { list-style: none; margin-top: 26px; max-width: 800px; }
/* висячий маркер: текст с <b> внутри должен течь одним абзацем, а не разрываться на колонки */
.bullets li { position: relative; padding-left: 22px; font-size: 16px; margin-bottom: 13px; }
.bullets li::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; background: var(--blue); border-radius: 2px; }
.bullets.rich li { margin-bottom: 15px; }
.bullets.rich li b { font-weight: 700; }

.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- кто ведёт ---------- */
.who { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
.who p { font-size: 16.5px; margin-bottom: 16px; max-width: 660px; }
.who img { width: 100%; border-radius: 14px; }
.regalia { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.regalia div .n { font-family: var(--head); font-weight: 800; font-size: 22px; color: var(--navy); }
.regalia div .c { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- шаги ---------- */
.steps-list { counter-reset: st; margin-top: 30px; max-width: 820px; }
.step-row { display: flex; gap: 16px; margin-bottom: 22px; }
.step-row .n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 15px; }
.step-row b { font-size: 16.5px; display: block; margin-bottom: 3px; }
.step-row p { font-size: 15px; color: var(--muted); }

/* ---------- уровни вовлечения ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.tier { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 26px 24px; }
.tier .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.tier h3 { font-size: 20px; margin-bottom: 8px; }
.tier p { font-size: 14.5px; color: var(--muted); }

/* ---------- дисквалификация ---------- */
.nope { border-left: 4px solid var(--navy); background: var(--bg-soft); border-radius: 0 14px 14px 0; padding: 30px 32px; max-width: 860px; }
.nope h2 { margin-bottom: 12px; }
.nope .bullets { margin-top: 18px; }
.nope .bullets li::before { background: var(--muted); }

/* ---------- CTA-полоса ---------- */
.cta-strip { background: var(--bg-soft); border: 1px dashed var(--navy); border-radius: 14px; padding: 32px 36px; text-align: center; }
.cta-strip .plate { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.cta-strip h2 { font-size: clamp(23px, 2.4vw, 30px); }
.cta-strip p { font-size: 16px; color: var(--muted); max-width: 620px; margin: 10px auto 20px; }

/* ---------- таблица сравнения ---------- */
.cmp { width: 100%; border-collapse: collapse; margin-top: 30px; background: var(--bg); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--bg-soft); }
.cmp thead th:last-child { color: var(--navy); }
.cmp td:first-child { font-weight: 600; }
.cmp td:last-child { background: var(--tint); }
.cmp tr:last-child td { border-bottom: none; }

/* ---------- кейсы ---------- */
.res-list { display: grid; gap: 16px; margin-top: 30px; }
.res-item { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.res-item p { font-size: 15.5px; }
.res-item b { color: var(--navy); }
.res-item a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 14.5px; display: inline-block; margin-top: 8px; }
.res-item a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 30px; max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 19px 0; font-family: var(--head); font-size: 17.5px; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--blue); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .a { padding: 0 0 20px; font-size: 15px; color: var(--muted); max-width: 700px; }

/* ---------- смежные услуги ---------- */
.also { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.also-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px;
  text-decoration: none; color: var(--ink); display: block; transition: all .16s ease; }
.also-card:hover { border-color: var(--navy); box-shadow: 0 10px 30px rgba(20,57,94,0.10); }
.also-card h3 { font-size: 18px; margin-bottom: 7px; }
.also-card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.also-card .go { font-size: 14px; font-weight: 700; color: var(--navy); }

/* ---------- форма ---------- */
.dark { background: linear-gradient(165deg, var(--band-grad1) 0%, var(--band-grad2) 100%); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 44px; }
.step { display: flex; gap: 13px; }
.step > span { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12);
  color: var(--band-accent); display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 800; font-size: 15px; }
.step b { font-size: 15.5px; display: block; color: #fff; }
.step p { font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.founder { display: flex; flex-direction: column; gap: 20px; }
.founder img { width: 300px; border-radius: 14px; }
.founder .quote { font-family: var(--head); font-weight: 500; font-size: 20px; line-height: 1.45; color: #fff; max-width: 440px; }
.founder .fname { font-weight: 700; }
.founder .frole { font-size: 13.5px; color: rgba(255,255,255,0.65); }
.form-card { background: var(--bg); border-radius: 14px; padding: 36px; color: var(--ink); }
.form-card h2 { font-size: 26px; }
.form-card .fsub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--sans); font-size: 15px; background: var(--bg-soft); color: var(--ink); }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin: 16px 0 20px; }
.agree input { margin-top: 3px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- футер ---------- */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 48px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 36px; margin-bottom: 36px; }
.foot-grid h4 { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-accent); margin-bottom: 14px; }
.foot-grid a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; margin-bottom: 9px; }
.foot-grid a:hover { color: #fff; }
.foot-logo { font-family: var(--head); font-weight: 800; font-size: 19px; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.soc { display: flex; gap: 10px; margin-top: 18px; }
.soc a, .soc span { display: flex; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12);
  align-items: center; justify-content: center; color: #fff; }
.soc span { color: rgba(255,255,255,0.4); }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  section { padding: 48px 0; }
  .who, .form-grid { grid-template-columns: 1fr; }
  .who img { max-width: 260px; }
  .tiers, .also { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .burger { display: block; }
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 24px; gap: 16px;
    box-shadow: 0 16px 30px rgba(0,0,0,0.08); }
  .nav-links a { font-size: 16px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .steps { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .cmp { display: block; overflow-x: auto; }
  .card-cells { grid-template-columns: 1fr 1fr; }
  #pal-switch { max-width: calc(100vw - 32px); }
  #pal-switch > div { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .nav-cta .btn-line { display: none; }
  .founder img { width: 150px; }
  .nope { padding: 24px 22px; border-radius: 0 12px 12px 0; }
  .card-cells { grid-template-columns: 1fr; }
}
