/* BioPharmTools - лендинг. Светлая тема, один акцент, системный шрифт, без внешних зависимостей. */
:root {
  --accent: #0b6e69;        /* единственный акцентный цвет: кнопки, активные элементы схемы, подчёркивания */
  --accent-soft: #e6f2f1;
  --ink: #1b2129;
  --muted: #5b6573;          /* AA на белом и на --alt */
  --line: #dde2e8;
  --alt: #f6f7f9;
  --white: #fff;
  --radius: 14px;
  --wrap: 1100px;
  --on-accent: #fff;
  --accent-hover: #095a56;
  --ink-2: #333b46;          /* основной текст лида и описаний */
  --page: var(--white);
  --header-bg: rgba(255, 255, 255, .94);
  --field-line: #c4ccd6;
  --bar-bg: #f3f6f6;
  --bar-ink: #5d6b6a;
  --dot-off: #c9d3d2;
  --helix-back: #9fc9c6;
  --helix-line: #b9c2cc;
  --owner-ink: #0a524e;
  --owner-line: #c7e1df;
  --bad: #b42318;
  --shadow: 0 2px 6px rgb(15 40 40 / .06), 0 18px 40px rgb(15 60 55 / .12);
}

/* ----- дизайны (переключатель в шапке; ключи совпадают с кабинетом: cookie bpt_theme) ----- */
/* Графит: тёмная, индиго */
html[data-theme="dark"] {
  color-scheme: dark;
  --accent: #8b9bff; --accent-soft: rgba(139, 155, 255, .14); --ink: #e8eaf2; --muted: #9aa2b8; --line: #2b3144;
  --alt: #161a26; --white: #1c2130; --page: #121521; --on-accent: #12152a; --accent-hover: #a4b1ff; --ink-2: #c8cde0;
  --header-bg: rgba(18, 21, 33, .92); --field-line: #3a4258; --bar-bg: #232a3d; --bar-ink: #9aa2b8; --dot-off: #3a4258;
  --helix-back: #4a5380; --helix-line: #3a4258; --owner-ink: #cdd5ff; --owner-line: #3a4570; --bad: #ff9b9b;
  --shadow: 0 2px 6px rgb(0 0 0 / .3), 0 18px 40px rgb(0 0 0 / .4);
}
/* Лаванда: светлая, сиреневая */
html[data-theme="lavender"] {
  --accent: #6d4fd6; --accent-soft: #efeafb; --ink: #231d38; --muted: #645c80; --line: #e2dcf3; --alt: #f3effb;
  --white: #fff; --page: radial-gradient(800px 480px at 90% -10%, rgba(196, 181, 253, .55), transparent 60%),
    radial-gradient(700px 460px at -5% 100%, rgba(251, 207, 232, .5), transparent 60%), #f6f3fc;
  --accent-hover: #5a3fb8; --ink-2: #3a3354; --header-bg: rgba(255, 255, 255, .85); --field-line: #cfc6ea;
  --bar-bg: #f4f0fc; --bar-ink: #645c80; --dot-off: #d5cdee; --helix-back: #c4b5fd; --helix-line: #d0c8e8;
  --owner-ink: #4b36a0; --owner-line: #d9d0f3; --radius: 20px;
  --shadow: 0 2px 6px rgb(60 40 120 / .06), 0 18px 40px rgb(80 55 170 / .14);
}
/* Хвоя: тёмно-зелёная */
html[data-theme="forest"] {
  color-scheme: dark;
  --accent: #b7e36a; --accent-soft: rgba(183, 227, 106, .13); --ink: #e9f3ec; --muted: #9bb5a4; --line: #2a4535;
  --alt: #12261b; --white: #1a3326; --page: linear-gradient(180deg, #14281e, #0f1f17); --on-accent: #14281e;
  --accent-hover: #cdf08a; --ink-2: #cfe3d5; --header-bg: rgba(20, 40, 30, .92); --field-line: #3a5a47;
  --bar-bg: #1f3d2d; --bar-ink: #9bb5a4; --dot-off: #3a5a47; --helix-back: #4f7a5d; --helix-line: #3a5a47;
  --owner-ink: #d6f0a6; --owner-line: #3d6048; --bad: #fca5a5; --radius: 16px;
  --shadow: 0 2px 6px rgb(0 15 5 / .3), 0 18px 40px rgb(0 15 5 / .4);
}
/* Биоссет: цвета логотипа БИОССЕТ (индиго и малиновый) */
html[data-theme="biosset"] {
  --accent: #302088; --accent-soft: #f6e8ef; --ink: #1d1840; --muted: #5f5a80; --line: #e0dcf0; --alt: #f6f4fb;
  --white: #fff; --page: linear-gradient(180deg, #fff, #f6f4fb 70%); --accent-hover: #241870; --ink-2: #332e58;
  --field-line: #cdc7e6; --bar-bg: #f6f4fb; --bar-ink: #5f5a80; --dot-off: #d2cdea; --helix-back: #d79bb8;
  --helix-line: #cdc7e6; --owner-ink: #302088; --owner-line: #e6c9d8; --bad: #a01050; --radius: 12px;
  --shadow: 0 2px 6px rgb(48 32 136 / .06), 0 18px 40px rgb(48 32 136 / .12);
}
html[data-theme="biosset"] .eyebrow, html[data-theme="biosset"] .role, html[data-theme="biosset"] .directions span { color: #a01050; }
html[data-theme="biosset"] .brand-mark rect { fill: #302088; }
html[data-theme="lavender"] .hero h1 { background: linear-gradient(90deg, #3b2a8c, #8b5cf6); -webkit-background-clip: text;
  background-clip: text; color: transparent; }

/* переключатель дизайна */
.theme-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.theme-switch select { font: inherit; font-size: 14px; padding: 6px 28px 6px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--white); color: var(--ink); cursor: pointer; }
@media (max-width: 760px) { .theme-switch span { display: none; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  background-attachment: fixed;
  font: 17.5px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 750; }
.hero h1 { font-size: clamp(26px, 2.45vw, 36px); margin: 0; }
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 720; }
h3 { font-size: 20px; font-weight: 680; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow-text > p { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ----- шапка ----- */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header-bg);
  border-bottom: 1px solid var(--line); backdrop-filter: saturate(160%) blur(6px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 19px; }
.brand-mark { width: 30px; height: 30px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: var(--on-accent); stroke-width: 2; fill: none; stroke-linecap: round; }
.site-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* ----- кнопки ----- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none;
  border: 1px solid var(--accent); cursor: pointer; }
.button:hover { background: var(--accent-hover); }
.button-ghost { background: transparent; color: var(--accent); }
.button-ghost:hover { background: var(--accent-soft); }
.button[disabled] { opacity: .55; cursor: not-allowed; }

/* ----- первый экран ----- */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px; align-items: center; }
.hero-text { margin-top: 40px; }
.hero-text .lead { max-width: none; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 19.5px; color: var(--ink-2); max-width: 620px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-figure { margin: 0; }
.hero-figure svg { width: 100%; height: auto; max-height: 360px; }
.slideshow .shot { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: var(--bar-bg); font-size: 12.5px; color: var(--bar-ink); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-off); }
.shot-bar span { margin-left: 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-view { position: relative; aspect-ratio: 16 / 10; background: var(--white); }
.shot-view .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity .7s ease; }
.shot-view .slide.is-on { opacity: 1; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slide-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--dot-off); cursor: pointer; }
.slide-dots button[aria-current="true"] { background: var(--accent); width: 22px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .shot-view .slide { transition: none; } }
.helix path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.helix path.back { stroke: var(--helix-back); }
.helix line { stroke: var(--helix-line); stroke-width: 2.2; stroke-linecap: round; }
.steps-mini rect { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.steps-mini rect.accent { fill: var(--accent); stroke: var(--accent); }
.steps-mini text { font: 600 16px system-ui, sans-serif; text-anchor: middle; fill: var(--ink); }
.steps-mini text.on-accent { fill: var(--on-accent); }
.steps-mini path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----- секции ----- */
.section { padding: 76px 0; }
.section-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lead { color: var(--muted); font-size: 18.5px; margin-bottom: 32px; }

/* ----- продукты ----- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.partner-logo { height: 44px; width: auto; display: block; }
.icon-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: contain; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 20px;
  display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.role { font-size: 13.5px; font-weight: 650; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.card h3 { margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: 16px; }
.card ul { margin: 4px 0 16px; padding-left: 20px; }
.card li { margin: 4px 0; }
.status { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.dot-ok { background: var(--accent); border-color: var(--accent); }
.icon { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ----- схема контура ----- */
.flow { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px 24px; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; counter-reset: s; }
.flow-steps li { position: relative; text-align: center; font-weight: 640; font-size: 15.5px; padding: 0 4px; }
.flow-steps .n { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); background: var(--white); font-weight: 750; position: relative; z-index: 1; }
.flow-steps li.is-key .n { background: var(--accent); color: var(--on-accent); }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 22px); right: calc(-50% + 22px);
  height: 2px; background: var(--accent); }
.flow-owners { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px 6px; margin-top: 24px; }
.owner { display: flex; align-items: center; justify-content: center; border-radius: 8px; padding: 8px 10px; font-size: 14.5px; text-align: center; background: var(--accent-soft);
  color: var(--owner-ink); border: 1px solid var(--owner-line); }
.o-design { grid-column: 1 / 2; }
.o-nice-a { grid-column: 2 / 4; }
.o-synth { grid-column: 4 / 5; }
.o-nice-b { grid-column: 5 / 8; }
.o-lims { grid-column: 1 / 8; background: var(--white); border: 1px dashed var(--accent); color: var(--ink); font-weight: 600; }
.flow-legend { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; color: var(--ink-2); font-size: 16.5px; }
.flow-legend b { color: var(--ink); }

/* ----- платформа ----- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { margin-bottom: 12px; }
.feature p { color: var(--ink-2); margin: 0; }

/* ----- заказ ----- */
.order-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.h-small { font-size: 17px; margin-top: 22px; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.order-steps { list-style: none; margin: 0; padding: 0; counter-reset: o; border-left: 2px solid var(--accent); }
.order-steps li { counter-increment: o; position: relative; padding: 0 0 24px 34px; }
.order-steps li:last-child { padding-bottom: 0; }
.order-steps li::before { content: counter(o); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.order-steps b { display: block; font-size: 18px; }
.order-steps span { color: var(--muted); }

/* ----- направления ----- */
.directions { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.directions li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; font-weight: 640; font-size: 18px; }
.directions span { display: block; color: var(--accent); font-size: 14px; font-weight: 750; margin-bottom: 6px; }

/* ----- контакты ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.form { position: relative; display: grid; gap: 14px; background: var(--alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15.5px; }
.form input, .form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 9px; background: var(--white); color: var(--ink); }
.form textarea { resize: vertical; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; color: var(--muted); }
.form .consent input { margin-top: 5px; }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.4em; font-size: 15.5px; }
.form-status.ok { color: var(--accent); font-weight: 600; }
.form-status.bad { color: var(--bad); font-weight: 600; }
.nav-login { padding: 6px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent) !important; }

/* ----- подвал ----- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 15px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.footer-row b { color: var(--ink); }
.footer-row a { margin-left: auto; color: var(--muted); }

/* ----- адаптив ----- */
@media (max-width: 960px) {
  .hero-grid, .order-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-figure:not(.slideshow) { max-width: 380px; }
  .features, .directions { grid-template-columns: 1fr; }
  .flow-legend { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 26px; overflow-wrap: break-word; }
  .hero-text { margin-top: 28px; }
  body { font-size: 17px; }
  .site-nav a:not(.nav-login) { display: none; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 52px 0; }
  .cards { grid-template-columns: 1fr; }
  /* схема - вертикально: шаг и его продукт в одной строке */
  .flow { padding: 20px 16px; }
  .flow-steps { grid-template-columns: 1fr; gap: 0; }
  .flow-steps li { display: flex; align-items: center; gap: 14px; text-align: left; padding: 0 0 18px; }
  .flow-steps .n { margin: 0; width: 38px; height: 38px; }
  .flow-steps li:not(:last-child)::after { top: 38px; bottom: 0; left: 18px; right: auto; width: 2px; height: auto; }
  .flow-owners { grid-template-columns: 1fr; }
  .owner { display: block; text-align: left; }
  .o-design, .o-nice-a, .o-synth, .o-nice-b, .o-lims { grid-column: auto; }
  .owner::before { font-weight: 700; color: var(--accent); }
  .o-design::before { content: "Шаг 1 · "; } .o-nice-a::before { content: "Шаги 2–3 · "; }
  .o-synth::before { content: "Шаг 4 · "; } .o-nice-b::before { content: "Шаги 5–7 · "; } .o-lims::before { content: "Все шаги · "; }
  .checklist { grid-template-columns: 1fr; }
  .footer-row a { margin-left: 0; }
}

/* логотип партнёра прозрачный и тёмный: в тёмных дизайнах — на светлой плашке */
html[data-theme="dark"] .partner-logo, html[data-theme="forest"] .partner-logo {
  background: #fff; padding: 4px 8px; border-radius: 8px; box-sizing: content-box; }
