/* doctormail.ru — тема по Figma «DoctorMail — триаж и приборы» (Шаблон наработки): Jost, светлый фон, акцент #F55165, круглые фото. */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(../fonts/jost-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --text: #1d1d1f; --text2: #4a4a4f; --muted: #86868b; --inverse: #fff;
  --accent: #f55165; --accent-d: #d93a50; --brand: #c53537; --soft: #fdecef;
  --crit: #e5294a; --warn: #f5a524; --ok: #1fb66f; --none: #b9bcc4;
  --bg: #fff; --bg2: #f5f5f7; --card: #f5f5f7; --white: #fff; --line: #e3e3e8; --strong: #cfd0d6; --error: #d92d20; --blue: #f55165;
  --r-s: 12px; --r-m: 24px; --r-l: 40px; --pad: 80px; --maxw: 1760px; --hdr-h: 84px;
  --shadow: 0 16px 48px rgba(20, 20, 30, .08);
  --font: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}
@media (max-width: 1200px) { :root { --pad: 40px; } }
@media (max-width: 640px) { :root { --pad: 16px; --r-l: 28px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; font: 400 18px/1.5 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: var(--r-s); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Типографика ---------- */
.display { font-size: clamp(40px, 4.4vw, 80px); line-height: 1.05; font-weight: 500; letter-spacing: -.01em; }
.display--page { font-size: clamp(36px, 3.6vw, 64px); max-width: 1100px; }
.h1 { font-size: clamp(30px, 3.2vw, 56px); line-height: 1.1; font-weight: 500; letter-spacing: -.01em; }
.h2 { font-size: clamp(22px, 1.8vw, 32px); line-height: 1.2; font-weight: 500; }
.h3 { font-size: clamp(19px, 1.3vw, 24px); line-height: 1.25; font-weight: 500; }
.display, .h1, .h2, .h3 { overflow-wrap: break-word; }
@media (max-width: 640px) { .display, .h1, .h2, .h3 { hyphens: auto; -webkit-hyphens: auto; } }
.lead { font-size: clamp(17px, 1.15vw, 21px); line-height: 1.5; color: var(--text2); }
.lead + .lead { margin-top: 16px; }
.eyebrow { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.45; }
.link { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; font-size: 17px; font-weight: 500; }
.link:hover { text-decoration: underline; }
.prose { max-width: 900px; }
.prose h2 { font-size: 26px; font-weight: 500; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--text2); margin: 0 0 12px; }
.prose ul { padding-left: 22px; list-style: disc; }

/* ---------- Сетка ---------- */
.wrap { max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); }
.section { margin-top: clamp(72px, 7vw, 140px); }
.section--tight { margin-top: 40px; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__lead { margin-top: 16px; max-width: 860px; }
.section__note { margin-top: 24px; max-width: 980px; }
.section__head + *, .section > .h1 + *, .section__lead + * { margin-top: 40px; }
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .cards--3, .cards--4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--r-m); padding: clamp(24px, 2.4vw, 40px); display: grid; align-content: start; gap: 14px; }
.card p { color: var(--text2); }
.card__num { font-size: clamp(44px, 4vw, 72px); line-height: 1; color: var(--accent); font-weight: 400; }
.card--line { background: var(--white); border: 1.5px solid var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 100px); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 30px; border-radius: 100px; font: 500 17px/1.2 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--inverse); }
.btn--primary:hover { background: var(--accent-d); }
.btn--secondary { background: transparent; border-color: var(--text); color: var(--text); }
.btn--secondary:hover { background: var(--text); color: var(--inverse); }
.btn--light { background: var(--white); color: var(--text); }
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; padding-top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .2s; }
.hdr.is-stuck { box-shadow: 0 1px 0 var(--line); }
.hdr__bar { max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: var(--hdr-h); display: flex; align-items: center; gap: 24px; }
.hdr__logo img { width: 160px; height: auto; }
.hdr__tagline { font-size: 14px; line-height: 1.25; color: var(--text2); max-width: 230px; }
.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 10px 12px; border-radius: 100px; font-size: 16px; text-decoration: none; background: none; border: 0; cursor: pointer; color: var(--text); }
.nav-link:hover, .nav-link.is-active { background: var(--bg2); }
.nav-link__chev { transition: transform .2s; }
.dd { position: relative; }
.dd.is-open .nav-link__chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(560px, 90vw); background: var(--white); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 12px; opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.dd.is-open .mega { opacity: 1; visibility: visible; }
.mega__list a { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-s); text-decoration: none; }
.mega__list a:hover { background: var(--bg2); }
.mega__list img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.mega__list b { display: block; font-weight: 500; }
.mega__list small { display: block; color: var(--text2); font-size: 14px; line-height: 1.35; }
.mega__all { display: flex; align-items: center; gap: 10px; margin: 4px 12px 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent); text-decoration: none; font-weight: 500; font-size: 15px; }
.hdr__phone { font-size: 17px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hdr__icon { display: none; width: 44px; height: 44px; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 50%; }
@media (max-width: 1700px) { .hdr__tagline { display: none; } }
@media (max-width: 1500px) { .hdr__phone { display: none; } }
@media (max-width: 1280px) {
  .hdr__nav, .hdr__phone, .hdr__cta { display: none; }
  .hdr__icon { display: grid; }
  .hdr__call { margin-left: auto; }
}
.mnav { position: fixed; inset: 0; z-index: 70; background: var(--white); display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 20px); overflow-y: auto; }
.mnav__top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.mnav__top .hdr__icon { display: grid; }
.mnav__list { display: grid; margin-top: 16px; }
.mnav__item, .mnav__acc summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 22px; text-decoration: none; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
.mnav__acc summary::-webkit-details-marker { display: none; }
.mnav__sub { display: grid; padding: 8px 0 12px 16px; }
.mnav__sub a { padding: 10px 0; text-decoration: none; color: var(--text2); font-size: 18px; }
.mnav__bottom { margin-top: auto; display: grid; gap: 14px; padding-top: 28px; }
.mnav__phone { font-size: 24px; font-weight: 500; text-decoration: none; }
.mnav__mail { color: var(--text2); }

/* ---------- Главная: hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 150px); align-items: stretch; padding-block: clamp(32px, 4vw, 80px); }
.hero__text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hero__offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--bg2); border-radius: var(--r-l); padding: 24px 24px 24px 32px; margin-top: 28px; }
.hero__offer p { font-size: clamp(18px, 1.4vw, 26px); line-height: 1.3; }
.hero__note { max-width: 420px; color: var(--text2); font-size: 16px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; border-radius: var(--r-l); background: var(--bg2); }
.hero__go { position: absolute; left: -33px; bottom: 40px; width: 66px; height: 66px; border-radius: 50%; background: var(--white); color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow); }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero__offer { flex-direction: column; align-items: flex-start; }
  .hero__go { left: 20px; bottom: 20px; }
}

/* ---------- Бегущая строка ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); margin-top: clamp(24px, 3vw, 48px); padding-block: 20px; }
.ticker__track { display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-size: clamp(48px, 6vw, 110px); line-height: 1; font-weight: 400; white-space: nowrap; }
.ticker span:nth-child(4n + 1) { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Главная: пациент / компания ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 8vw, 150px); margin-top: clamp(56px, 6vw, 100px); }
.duo__card { display: grid; justify-items: center; text-align: center; gap: 16px; text-decoration: none; }
.duo__media { position: relative; width: min(100%, 735px); }
.duo__img { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg2); }
.duo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.duo__card:hover .duo__img img { transform: scale(1.03); }
.duo__more { position: absolute; left: 1%; bottom: 1%; width: clamp(64px, 12%, 88px); aspect-ratio: 1; border-radius: 50%; background: var(--white); color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s; }
.duo__card:hover .duo__more { background: var(--accent); color: var(--inverse); transform: translate(2px, -2px); }
.duo__title { font-size: clamp(28px, 3vw, 56px); text-transform: uppercase; line-height: 1.1; }
.duo__text { color: var(--text2); max-width: 520px; }
@media (max-width: 800px) { .duo { grid-template-columns: 1fr; } }

/* ---------- Главная: о проекте ---------- */
.about-sec { display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; gap: clamp(24px, 4vw, 80px); align-items: center; background: var(--bg2); border-radius: var(--r-l); padding-block: clamp(40px, 4vw, 80px); }
.about-sec__col { display: grid; gap: 24px; align-content: start; }
.about-sec__img { aspect-ratio: 1; border-radius: 50%; background: var(--white); display: grid; place-items: center; padding: 8%; }
.quote { border-left: 6px solid var(--accent); padding: 8px 0 8px 24px; color: var(--text2); }
.pill { background: var(--accent); color: var(--inverse); border-radius: var(--r-l); padding: 22px 28px; font-size: 16px; line-height: 1.4; }
@media (max-width: 1100px) { .about-sec { grid-template-columns: 1fr; } .about-sec__img { max-width: 420px; justify-self: center; } }
.parts .card { min-height: 280px; }

/* ---------- Аудитории ---------- */
.aud { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.aud--2 { grid-template-columns: repeat(2, 1fr); }
.aud--3 { grid-template-columns: repeat(3, 1fr); }
.aud--1 { grid-template-columns: minmax(0, 520px); }
@media (max-width: 1500px) { .aud--5, .aud--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .aud, .aud--3, .aud--4, .aud--5 { grid-template-columns: repeat(2, 1fr); } }
.aud__card { position: relative; display: grid; gap: 20px; align-content: start; padding: 28px; background: var(--card); border-radius: var(--r-m); text-decoration: none; transition: background .2s; }
.aud__card:hover { background: var(--soft); }
.aud__img { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; }
.aud__body { display: grid; gap: 10px; }
.aud__text { color: var(--text2); font-size: 17px; }
.aud__go { position: absolute; top: 24px; right: 24px; color: var(--accent); }

@media (max-width: 640px) { .aud, .aud--1, .aud--2, .aud--3, .aud--4, .aud--5 { grid-template-columns: 1fr; } .aud__img { width: 96px; height: 96px; } }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 20px; counter-reset: s; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--card); border-radius: var(--r-m); padding: clamp(24px, 2.4vw, 40px); display: grid; align-content: start; gap: 14px; }
.step__num { font-size: clamp(48px, 4.4vw, 80px); line-height: 1; color: var(--accent); }
.step__line { display: block; height: 2px; background: linear-gradient(90deg, var(--accent) 0 70%, transparent 70%); position: relative; margin-bottom: 8px; }
.step__line::after { content: ''; position: absolute; right: 30%; top: -4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); background: var(--white); }
.step p { color: var(--text2); }
@media (max-width: 1200px) { .steps--4, .steps--6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .steps--3, .steps--4, .steps--6 { grid-template-columns: 1fr; } }

/* ---------- Доска триажа ---------- */
.board-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 100px); align-items: center; }
.board-sec__text .lead { margin-top: 20px; }
.zones { display: grid; gap: 14px; margin-top: 32px; }
.zone { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding-left: 18px; border-left: 4px solid; }
.zone b { font-weight: 500; }
.zone span { color: var(--text2); font-size: 16px; }
.zone--crit { border-color: var(--crit); } .zone--warn { border-color: var(--warn); } .zone--ok { border-color: var(--ok); } .zone--none { border-color: var(--none); }
.board { background: var(--bg2); border-radius: var(--r-l); padding: clamp(18px, 2vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 15px; }
.board__head { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.board__head b { font-weight: 500; font-size: 18px; }
.board__head span { color: var(--muted); font-size: 14px; }
.board__bar { grid-column: 1 / -1; display: flex; gap: 4px; height: 8px; }
.board__bar i { border-radius: 4px; }
.crit { --z: var(--crit); } .warn { --z: var(--warn); } .ok { --z: var(--ok); } .none { --z: var(--none); }
.board__bar i { background: var(--z); }
.board__col { display: grid; gap: 10px; align-content: start; }
.board__zone { font-weight: 500; color: var(--z); }
.bcard { background: var(--white); border-radius: 14px; border-left: 4px solid var(--z); padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.bcard b { width: 100%; display: flex; justify-content: space-between; font-weight: 500; }
.bcard em { font-style: normal; color: var(--z); }
.bcard small { width: 100%; color: var(--muted); font-size: 13px; }
.chip { font-size: 13px; padding: 3px 9px; border-radius: 100px; background: var(--bg2); }
.chip.red { background: var(--soft); color: var(--crit); }
.board__fold { grid-column: 1 / -1; background: var(--white); border-radius: 14px; padding: 12px 16px; display: flex; justify-content: space-between; color: var(--z); font-weight: 500; }
.board__fold span { color: var(--muted); font-weight: 400; }
@media (max-width: 1100px) { .board-sec { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } .zone { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Результаты ---------- */
.results { background: var(--text); color: var(--inverse); border-radius: var(--r-l); padding: clamp(32px, 4vw, 80px); display: grid; gap: 40px; }
.results__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: end; }
.results .lead { color: #c7c7cc; }
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.results__grid li { border-top: 1px solid #48484a; padding-top: 20px; display: grid; gap: 6px; }
.results__grid b { font-size: clamp(44px, 4.4vw, 84px); line-height: 1; font-weight: 400; color: var(--accent); }
.results__grid small { color: #98989d; font-size: 15px; }
@media (max-width: 1100px) { .results__head { grid-template-columns: 1fr; } .results__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .results__grid { grid-template-columns: 1fr; } }

/* ---------- Устройства ---------- */
.devs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dev { background: var(--card); border-radius: var(--r-m); padding: clamp(24px, 2vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.dev__ch { color: var(--accent); font-size: 16px; }
.dev__label { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 14px; padding: 5px 12px; border-radius: 100px; background: var(--white); }
.tags--accent li { background: var(--soft); color: var(--accent-d); }
.dev__for { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); color: var(--text2); font-size: 16px; }
.dev__for span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 1300px) { .devs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .devs { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border-radius: var(--r-m); border: 1px solid var(--line); }
.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
.matrix th, .matrix td { padding: 14px 20px; text-align: center; border-bottom: 1px solid var(--line); font-weight: 400; }
.matrix th:first-child { text-align: left; }
.matrix thead th { font-weight: 500; background: var(--bg2); }
.matrix__group th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--white); }
.dot { color: var(--accent); }

/* ---------- Страницы решений ---------- */
.phero { padding-block: clamp(24px, 3vw, 48px) 0; }
.phero .lead { margin-top: 24px; max-width: 860px; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 100px); align-items: center; margin-top: 24px; }
.phero__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--bg2); }
@media (max-width: 900px) { .phero__grid { grid-template-columns: 1fr; } .phero__img { max-width: 360px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.phero--slim .display { margin-top: 24px; }
.pains { display: grid; gap: 0; }
.pains li { padding: 22px 0 22px 44px; border-bottom: 1px solid var(--line); position: relative; font-size: clamp(17px, 1.15vw, 21px); color: var(--text2); }
.pains li:first-child { border-top: 1px solid var(--line); }
.pains li::before { content: ''; position: absolute; left: 6px; top: 33px; width: 14px; height: 2px; background: var(--accent); }
.checks { display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(17px, 1.1vw, 20px); }
.checks svg { flex: none; color: var(--accent); margin-top: 4px; }
.segs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.seg-card { display: flex; gap: 24px; align-items: center; background: var(--card); border-radius: var(--r-m); padding: 24px; text-decoration: none; }
a.seg-card:hover { background: var(--soft); }
.seg-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.seg-card p { color: var(--text2); margin-top: 8px; font-size: 17px; }
@media (max-width: 900px) { .segs { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .seg-card { flex-direction: column; align-items: flex-start; } .seg-card img { width: 88px; height: 88px; } }
.media-sec { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(32px, 6vw, 120px); align-items: center; background: var(--bg2); border-radius: var(--r-l); padding: clamp(32px, 4vw, 80px) clamp(32px, 4vw, 80px) 0; overflow: hidden; }
.media-sec .lead { margin-top: 20px; }
.media-sec img { border-radius: 32px 32px 0 0; box-shadow: var(--shadow); }
@media (max-width: 900px) { .media-sec { grid-template-columns: 1fr; } .media-sec img { max-width: 360px; justify-self: center; } }
.faq { display: grid; max-width: 1100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(18px, 1.3vw, 22px); font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 24px; color: var(--text2); max-width: 900px; }

/* ---------- О проекте ---------- */
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline li:first-child { border-top: 1px solid var(--line); }
.timeline b { font-size: clamp(28px, 2.4vw, 44px); line-height: 1; font-weight: 400; color: var(--accent); }
.timeline p { color: var(--text2); margin-top: 8px; }
@media (max-width: 700px) { .timeline li { grid-template-columns: 1fr; gap: 10px; } }
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 100px); background: var(--bg2); border-radius: var(--r-l); padding: clamp(32px, 4vw, 80px); }
.founder__role { color: var(--text2); margin-top: 12px; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* ---------- Заявка ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 100px); background: var(--bg2); border-radius: var(--r-l); padding: clamp(32px, 4vw, 80px); }
.cta__text .lead { margin-top: 20px; }
.cta__contacts { display: grid; gap: 8px; margin-top: 32px; font-size: 22px; font-weight: 500; }
.cta__contacts a { text-decoration: none; }
.cta__contacts a + a { font-size: 18px; font-weight: 400; color: var(--text2); }
.cta .form-success { grid-column: 2; }
@media (max-width: 1000px) { .cta { grid-template-columns: 1fr; } .cta .form-success { grid-column: auto; } }
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 100px); }
.contacts__info { display: grid; gap: 16px; align-content: start; }
.contacts__phone { font-size: clamp(30px, 3vw, 52px); font-weight: 500; text-decoration: none; }
.contacts__mail { font-size: 22px; color: var(--accent); }
.contacts dl { display: grid; grid-template-columns: 160px 1fr; gap: 12px 24px; margin-top: 16px; }
.contacts dt { color: var(--muted); }
.contacts__form { background: var(--bg2); border-radius: var(--r-l); padding: clamp(28px, 3vw, 56px); }
.contacts .form-success { grid-column: 2; }
@media (max-width: 1000px) { .contacts { grid-template-columns: 1fr; } .contacts .form-success { grid-column: auto; } .contacts dl { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Подвал ---------- */
.ftr { margin-top: clamp(80px, 8vw, 160px); background: var(--bg2); padding-block: clamp(48px, 5vw, 80px) 0; overflow: hidden; }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.8fr) 1fr 1fr 1fr minmax(0, 1.3fr); gap: 40px; }
.ftr__about p { margin-top: 24px; color: var(--text2); max-width: 520px; font-size: 18px; }
.ftr__h { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; cursor: pointer; list-style: none; }
.ftr__h::-webkit-details-marker { display: none; }
.ftr__col ul { display: grid; gap: 10px; }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { color: var(--accent); }
.ftr__contacts { display: grid; gap: 8px; justify-items: end; text-align: right; align-content: start; }
.ftr__phone { font-size: clamp(24px, 2vw, 36px); font-weight: 500; text-decoration: none; }
.ftr__muted { color: var(--muted); }
.ftr__wordmark { font-size: clamp(72px, 15vw, 300px); line-height: .9; font-weight: 500; color: #e6e6ea; letter-spacing: -.02em; margin-top: 48px; white-space: nowrap; }
.ftr__note { color: var(--muted); font-size: 14px; max-width: 980px; margin-top: 24px; }
.ftr__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); margin-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text2); }
.ftr__legal a { color: var(--accent); }
@media (max-width: 1000px) { .ftr__top { grid-template-columns: 1fr 1fr; } .ftr__about { grid-column: 1 / -1; } .ftr__contacts { justify-items: start; text-align: left; } }
@media (max-width: 640px) { .ftr__top { grid-template-columns: 1fr; } }

/* ---------- Формы, модалка ---------- */
.form { display: grid; gap: 18px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 16px; color: var(--text2); padding: 0; }
.field__input { width: 100%; font: 400 18px/1.4 var(--font); color: var(--text); background: var(--white); border: 1px solid var(--strong); border-radius: var(--r-s); padding: 13px 18px; }
textarea.field__input { resize: vertical; min-height: 90px; }
.field__input::placeholder { color: var(--muted); }
.field__input:focus { outline: none; border: 1.5px solid var(--blue); }
.field__input[aria-invalid='true'] { border: 1.5px solid var(--error); }
.file { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px dashed var(--strong); border-radius: var(--r-s); color: var(--text2); cursor: pointer; font-size: 16px; background: var(--white); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file__label { display: inline-flex; gap: 10px; align-items: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.check.is-invalid { color: var(--error); }
.form__submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__note { color: var(--muted); font-size: 15px; }
.form__error { color: var(--error); font-size: 15px; }
.form.is-sending button[type='submit'] { opacity: .6; pointer-events: none; }
.form-success { display: grid; gap: 16px; justify-items: start; padding: 24px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.seg { border: 0; margin: 0; padding: 4px; display: inline-flex; flex-wrap: wrap; gap: 0; background: var(--bg); border-radius: var(--r-s); justify-self: start; }
.seg legend { position: absolute; left: -9999px; }
.seg label { cursor: pointer; }
.seg input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 10px 20px; border-radius: 8px; font-size: 16px; color: var(--text2); }
.seg input:checked + span { background: var(--white); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--accent); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chips label { cursor: pointer; }
.chips span { display: block; padding: 9px 16px; border-radius: 100px; border: 1px solid var(--strong); font-size: 16px; background: var(--white); }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--inverse); }

/* Модалка */
.modal { border: 0; padding: 0; background: transparent; max-width: 760px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); }
.modal::backdrop { background: rgba(10, 20, 40, .45); }
.modal__box { position: relative; background: var(--white); border-radius: var(--r-m); padding: 48px 48px 40px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.modal .h2 { padding-right: 40px; }
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 520px; background: var(--white); border-radius: var(--r-m); box-shadow: var(--shadow); padding: 20px 24px; display: grid; gap: 14px; font-size: 15px; color: var(--text2); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--inverse); }
.field__input:focus { border-color: var(--accent); }
.modal__box { border-radius: var(--r-l); }
.cookie { border-radius: var(--r-m); }

/* ---------- Форматы сотрудничества ---------- */
.formats { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 100px); background: var(--text); color: var(--inverse); border-radius: var(--r-l); padding: clamp(32px, 4vw, 80px); }
.formats__head { display: grid; gap: 24px; align-content: start; justify-items: start; }
.formats .lead { color: #c7c7cc; }
.formats__list { display: grid; }
.formats__list li { padding: 22px 0; border-bottom: 1px solid #48484a; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; }
.formats__list li:first-child { padding-top: 0; }
.formats__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.formats__list p { color: #c7c7cc; }
@media (max-width: 1000px) { .formats { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .formats__list li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Нумерованная лента (как на прежнем сайте) ---------- */
.rows { display: grid; gap: 16px; counter-reset: none; }
.row { display: grid; grid-template-columns: 136px 136px minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 0 clamp(16px, 2vw, 36px); background: var(--bg2); border-radius: 999px; padding: 8px clamp(24px, 3vw, 56px) 8px 8px; }
.row__num { display: grid; place-items: center; width: 136px; height: 136px; border-radius: 50%; background: var(--bg); font-size: clamp(36px, 3vw, 48px); line-height: 1; color: var(--accent); box-shadow: inset 0 0 0 1px var(--line); }
.row__img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; justify-self: center; }
.row__title { font-size: clamp(22px, 1.8vw, 32px); line-height: 1.2; font-weight: 400; }
.row__text { color: var(--text2); font-size: 17px; line-height: 1.45; }
@media (max-width: 1100px) {
  .row { grid-template-columns: 96px 96px minmax(0, 1fr); padding-right: 32px; }
  .row__num { width: 96px; height: 96px; font-size: 32px; }
  .row__img { width: 88px; height: 88px; }
  .row__text { grid-column: 3; }
  .row__num, .row__img { grid-row: span 2; }
  .row__title { align-self: end; }
  .row__text { align-self: start; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 64px 64px minmax(0, 1fr); border-radius: var(--r-m); padding: 12px 16px 16px 12px; gap: 8px 12px; align-items: start; }
  .row__num { width: 64px; height: 64px; font-size: 22px; }
  .row__img { width: 64px; height: 64px; }
  .row__title { grid-column: 3; align-self: center; font-size: 19px; }
  .row__text { grid-column: 1 / -1; font-size: 16px; }
  .row__num, .row__img { grid-row: auto; }
}
.dev__media { aspect-ratio: 4 / 3; margin: -8px -8px 8px; border-radius: calc(var(--r-m) - 8px); background: var(--white); display: grid; place-items: center; color: var(--strong); overflow: hidden; }
.dev__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Телефон: компактный баннер cookie ---------- */
@media (max-width: 640px) {
  .cookie { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-width: none; padding: 14px 16px; gap: 10px; font-size: 13px; line-height: 1.4; }
  .cookie__actions { flex-wrap: nowrap; }
  .cookie__actions .btn { flex: 1; min-height: 40px; padding: 8px 12px; font-size: 14px; }
}
