/* ==========================================================================
   DevBuzz — дизайн-система
   Палитра и метрики повторяют design2023 (new.getblogger.ru):
     фон            #fff
     текст          #212121   вторичный #757575   третичный #65657e
     панели         #f4f6f8 / #eef1f4
     линии          #dbe2e8 / #c9ced4
     акцент 1       #ff2d55  hover #f9002f   мягкий #ffe9ed
     акцент 2       #5faf2d  hover #549b28   светлый #5fbb26
     акцент 3       #ff9737  мягкий #ffedc0
     акцент 4       #007aff
   Типографика: Gilroy 400–800 → свободная замена Manrope (есть кириллица + w800)
   Радиусы: 12px основной, 8px мелкий, 20px крупный
   Контейнер: 1100px
   ========================================================================== */

:root {
  --white: #fff;
  --ink: #212121;
  --ink-deep: #1a1c21;
  --grey: #757575;
  --grey-2: #65657e;
  --grey-3: #626975;
  --panel: #f4f6f8;
  --panel-2: #eef1f4;
  --panel-3: #f0f1f5;
  --line: #dbe2e8;
  --line-2: #c9ced4;
  --pink: #ff2d55;
  --pink-hover: #f9002f;
  --pink-deep: #ff1b63;
  --pink-soft: #ffe9ed;
  --green: #5faf2d;
  --green-hover: #549b28;
  --green-light: #5fbb26;
  --green-soft: #eaf6e2;
  --orange: #ff9737;
  --orange-soft: #ffedc0;
  --blue: #007aff;
  --blue-soft: #e5f1ff;

  --font: 'Manrope', 'Gilroy', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container: 1100px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

.inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ШАПКА ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-2);
}
.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
/* знак-лигатура DB с краном; цвет задан внутри SVG, поэтому для тёмных
   подложек подключается logo-db-light.svg */
.logo__mark { display: block; width: auto; height: 30px; }
.nav { margin-left: auto; }
.nav__menu { display: flex; align-items: center; gap: 22px; }
.nav__link { font-size: 14px; font-weight: 600; color: var(--grey); white-space: nowrap; transition: color .15s; }
.nav__link:hover { color: var(--ink); }
.header__login { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--white); border-radius: var(--r-sm); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px;
  border: 0; border-radius: var(--r);
  font-size: 15px; font-weight: 700; line-height: 1;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn--pink { background: var(--pink); color: var(--white); }
.btn--pink:hover { background: var(--pink-hover); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-hover); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--border { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.btn--border:hover { background: var(--panel); }
/* контур обязателен: фон кнопки совпадает с фоном рабочей области .main,
   без границы она читается как обычный текст */
.btn--ghost { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--panel-2); border-color: var(--line-2); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--panel-2); }
/* для акцентных подложек: контур по белому */
.btn--outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255, 255, 255, .55); }
.btn--outline:hover { background: rgba(255, 255, 255, .14); border-color: var(--white); }
.btn--lg { height: 72px; padding: 0 40px; font-size: 18px; border-radius: var(--r); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: var(--r-sm); }
.btn--block { display: flex; width: 100%; }

/* ===== ТИПОГРАФИКА ===== */
.h-hero {
  margin: 0 0 15px;
  font-size: 72px; font-weight: 800; line-height: .9; letter-spacing: -.02em;
}
.h-hero span {
  display: block; margin-top: 20px;
  font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
}
.h-sec {
  margin: 0 0 15px;
  font-size: 56px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
}
.h-sec span {
  display: block; margin-top: 20px;
  font-size: 36px; font-weight: 600; line-height: 1.2;
}
.lead { margin: 0; font-size: 24px; line-height: 1.33; }
.lead--grey { color: var(--grey); }
.mark-pink { color: var(--pink); }
.mark-green { color: var(--green); }

/* ===== ГЕРОЙ ===== */
.hero { position: relative; margin: 70px 0 140px; }
.hero__inner {
  display: flex; align-items: center;
  /* ряд выходит за контейнер до самого края экрана — как на референсе,
     но изображение при этом не обрезается */
  margin-right: min(0px, calc((var(--container) - 100vw) / 2 - 20px));
}
.hero__text { position: relative; z-index: 1; width: 485px; flex-shrink: 0; }
.hero__text .lead { margin-bottom: 40px; }
.hero__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* «Разместить техническое задание» не умещается в строку рядом со второй кнопкой —
   при переносе обе растягиваются на всю колонку и читаются как пара */
.hero__actions .btn { flex: 1 1 auto; }
.hero__note { margin: 22px 0 0; font-size: 14px; color: var(--grey); }
.hero__image { flex: 1 1 auto; min-width: 0; }
.hero__image img { position: relative; width: 100%; max-width: none; }

/* ===== ЦИФРЫ ===== */
.digits { margin-bottom: 130px; }
.digits__items { display: flex; align-items: flex-start; justify-content: space-between; margin: 0 -20px; }
.digits__unit { padding: 0 20px; text-align: center; }
.digits__unit p { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; }
.digits__unit strong { display: block; font-size: 72px; font-weight: 800; line-height: 1; white-space: nowrap; letter-spacing: -.03em; }

/* ==========================================================================
   ШАХМАТКА: текст вертикальной колонкой + изображение сбоку.
   .zz:nth-child(even) переворачивает ряд — блоки идут через строку.
   ========================================================================== */
.zz { position: relative; margin-bottom: 140px; }
.zz__inner { display: flex; align-items: center; gap: 48px; }
.zz:not(.zz--flip) .zz__inner { margin-right: min(0px, calc((var(--container) - 100vw) / 2 - 20px)); }
.zz--flip .zz__inner {
  flex-direction: row-reverse;
  margin-left: min(0px, calc((var(--container) - 100vw) / 2 - 20px));
}
.zz__text { width: 470px; flex-shrink: 0; }
.zz__text .lead { margin-bottom: 30px; }
.zz__list { margin: 0; padding: 0; }
.zz__list li {
  position: relative; padding-left: 34px;
  font-size: 24px; font-weight: 600; line-height: 1.3;
}
.zz__list li:not(:last-child) { margin-bottom: 16px; }
.zz__list li::before {
  content: ''; position: absolute; left: 0; top: .28em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.3l3 3 6-6.6' fill='none' stroke='%235faf2d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.zz__list--pink li::before {
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.3l3 3 6-6.6' fill='none' stroke='%23ff2d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.zz__image { flex: 1 1 auto; min-width: 0; }
.zz__image img { width: 100%; max-width: none; }
.zz__tag {
  display: inline-block; margin-bottom: 18px; padding: 7px 14px;
  border-radius: 100px; background: var(--panel);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.zz__tag--pink { background: var(--pink-soft); color: var(--pink-deep); }
.zz__tag--green { background: var(--green-soft); color: var(--green-hover); }
.zz__tag--orange { background: var(--orange-soft); color: #a25b00; }
.zz__tag--blue { background: var(--blue-soft); color: var(--blue); }

/* ===== ДОВЕРИЕ / ВЕРТИКАЛЬНАЯ ЛЕНТА ЛОГОТИПОВ ===== */
.trust { margin-bottom: 130px; }
.trust__inner { display: flex; align-items: center; gap: 100px; }
.trust__scroll {
  position: relative; flex-shrink: 0;
  width: 435px; height: 600px; overflow: hidden;
}
.trust__scroll::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 72%, #fff 100%);
}
.trust__track { animation: trustScroll 24s linear infinite; }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding-bottom: 14px; }
.trust__cell {
  height: 96px; border-radius: var(--r); background: var(--panel);
  display: grid; place-items: center; padding: 0 14px;
  font-size: 15px; font-weight: 800; color: var(--grey-2); text-align: center; line-height: 1.15;
}
@keyframes trustScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.trust__text .h-sec { font-size: 58px; }
.trust__text p { margin: 0 0 40px; font-size: 32px; font-weight: 500; line-height: 1.2; }

/* ===== КАК ЭТО РАБОТАЕТ ===== */
.works { margin-bottom: 110px; }
.works__title { max-width: 720px; margin-bottom: 30px; }
.works__items { display: flex; flex-wrap: wrap; margin: 0 -19px; }
.works__unit { width: 50%; padding: 32px 19px; }
.works__step { display: block; margin-bottom: 5px; font-size: 36px; font-weight: 800; line-height: 1; color: var(--line-2); }
.works__unit h4 { margin: 0 0 16px; font-size: 36px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.works__unit p { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; color: var(--grey-3); }

/* ===== ПРЕИМУЩЕСТВА ===== */
.adv { margin-bottom: 150px; }
.adv__title { max-width: 1005px; margin-bottom: 45px; }
.adv__items { display: flex; flex-wrap: wrap; margin: 0 -19px; }
.adv__unit { width: 50%; padding: 33px 19px; }
.adv__item { display: flex; align-items: flex-start; }
.adv__icon { flex-shrink: 0; width: 104px; margin-right: 32px; }
.adv__text h4 { margin: 0 0 10px; font-size: 24px; font-weight: 800; line-height: 1.2; }
.adv__text p { margin: 0; font-size: 18px; line-height: 1.4; color: var(--grey-3); }

/* ===== РОЛИ ===== */
.roles { margin-bottom: 140px; }
.roles__head { max-width: 760px; margin-bottom: 45px; }
.roles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.role-card { padding: 44px 40px; border-radius: var(--r-lg); background: var(--panel); }
.role-card--pink { background: var(--pink-soft); }
.role-card--green { background: var(--green-soft); }
.role-card__label { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-2); }
.role-card h3 { margin: 12px 0 18px; font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.role-card p { margin: 0 0 26px; font-size: 18px; line-height: 1.45; color: var(--grey-3); }
.role-card ul { margin: 0 0 32px; }
.role-card li { position: relative; padding-left: 26px; font-size: 17px; font-weight: 600; }
.role-card li:not(:last-child) { margin-bottom: 12px; }
.role-card li::before {
  content: ''; position: absolute; left: 0; top: .45em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--ink);
}

/* ===== FAQ =====
   Заголовок с подписью по центру, список — узкой колонкой из отдельных
   карточек с «+» справа. Цвета, радиусы и шрифт — из общей системы. */
.faq { margin-bottom: 140px; }
.faq__head { margin-bottom: 44px; text-align: center; }
.faq__head .h-sec { font-size: 48px; margin-bottom: 20px; }
.faq__head p {
  margin: 0 auto; max-width: 620px;
  font-size: 20px; line-height: 1.4; color: var(--grey);
}
.faq__list { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq__item {
  background: var(--panel); border-radius: var(--r);
  overflow: hidden; transition: background-color .15s;
}
.faq__item:hover { background: var(--panel-2); }
.faq__q {
  width: 100%; padding: 22px 64px 22px 26px; position: relative;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--ink);
}
/* «+» из двух штрихов: при раскрытии поворачивается на 45° и читается как «×» */
.faq__q::after {
  content: ''; position: absolute; right: 24px; top: 50%;
  width: 20px; height: 20px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M10 3.5v13M3.5 10h13' fill='none' stroke='%23757575' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 20px no-repeat;
  transition: transform .2s;
}
.faq__item.is-open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
/* отступы ответа — падингом на абзаце: так они попадают в scrollHeight,
   по которому JS считает высоту раскрытия */
.faq__a p { margin: 0; padding: 0 26px 22px; font-size: 16px; line-height: 1.55; color: var(--grey-3); }

/* ===== НИЖНИЙ CTA =====
   Геометрия и подложка как в bottom-cta референса: радиус 24px,
   паддинг 48/64, акцентный фон и водяной знак логотипа между
   текстовой колонкой и кнопками. */
.cta { margin-bottom: 130px; }
.cta__box {
  position: relative;
  padding: 48px 64px; border-radius: 24px;
  color: var(--white);
  background: url(../img/wm-db-jib.svg) no-repeat 65% 50% var(--pink);
  background-size: 250px auto;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta__text { max-width: 440px; }
.cta__box h2 { margin: 0 0 20px; font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.cta__box p { margin: 0; font-size: 24px; line-height: 1.33; }
.cta__actions {
  flex-shrink: 0; margin-left: 20px;
  display: flex; flex-direction: column; gap: 12px;
}

/* ===== ПОДВАЛ ===== */
.footer { background: var(--panel); padding: 60px 0 40px; font-size: 14px; color: var(--grey); }
.footer__top { display: flex; gap: 60px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.footer__brand { width: 280px; }
.footer__brand p { margin: 16px 0 0; line-height: 1.5; }
.footer__cols { display: flex; gap: 60px; flex-wrap: wrap; margin-left: auto; }
.footer__col h5 { margin: 0 0 14px; font-size: 14px; font-weight: 800; color: var(--ink); }
.footer__col li:not(:last-child) { margin-bottom: 10px; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { padding-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; line-height: 1.6; }
.footer__legal { max-width: 620px; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
  .h-hero { font-size: 56px; }
  .h-sec { font-size: 44px; }
  .h-hero span, .h-sec span { font-size: 26px; }
  .faq__head .h-sec { font-size: 40px; }
  .hero__text { width: 400px; }
  .zz__text { width: 390px; }
  .digits__unit strong { font-size: 52px; }
  .digits__unit p { font-size: 22px; }
  .works__unit h4 { font-size: 28px; }
  .trust__inner { gap: 50px; }
  .trust__scroll { width: 340px; }
  .trust__text .h-sec { font-size: 40px; }
  .trust__text p { font-size: 22px; }
  .role-card h3 { font-size: 32px; }
  .cta__box { padding: 40px; background-size: 220px auto; background-position: 61% 50%; }
  .cta__box h2 { font-size: 36px; }
  .cta__box p { font-size: 19px; }
  .cta__text { max-width: 380px; }
}

/* навигация сворачивается в бургер раньше остальной вёрстки:
   пять пунктов и две кнопки не умещаются в 1100px */
@media (max-width: 1180px) {
  .nav__menu { gap: 16px; }
  .nav__link { font-size: 13px; }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .header__login { display: none; }
  .header__login.is-open,
  .nav.is-open {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 20px;
  }
  .nav.is-open { flex-direction: column; }
  .nav.is-open .nav__menu { flex-direction: column; align-items: flex-start; gap: 18px; }
  .header__login.is-open { top: calc(100% + 190px); gap: 10px; }
  .header__login.is-open .btn { flex: 1; }
}

@media (max-width: 860px) {
  .hero { margin: 40px 0 90px; }
  .hero__inner, .zz__inner, .zz--flip .zz__inner, .trust__inner { flex-direction: column-reverse; }
  .hero__text, .zz__text { width: 100%; max-width: 600px; }
  .hero__inner,
  .zz:not(.zz--flip) .zz__inner { margin-right: 0; }
  .zz--flip .zz__inner { margin-left: 0; }
  .hero__image, .zz__image { width: 100%; margin-bottom: 30px; }
  .hero__image img, .zz__image img { width: 100%; max-width: 640px; }
  .h-hero, .h-sec, .trust__text .h-sec { font-size: 34px; }
  .h-hero span, .h-sec span { font-size: 22px; margin-top: 14px; }
  .lead, .zz__list li { font-size: 17px; }
  .zz__list li { padding-left: 30px; }
  .zz, .digits, .trust, .works, .adv, .roles, .faq { margin-bottom: 80px; }
  .faq__head { margin-bottom: 28px; }
  .faq__head .h-sec { font-size: 34px; margin-bottom: 14px; }
  .faq__head p { font-size: 16px; }
  .faq__list { max-width: none; gap: 8px; }
  .faq__q { padding: 18px 52px 18px 18px; font-size: 15.5px; }
  .faq__q::after { right: 18px; width: 18px; background-size: 18px; }
  .faq__a p { padding: 0 18px 18px; font-size: 15px; }
  .digits__items { flex-direction: column; margin: 0; gap: 26px; }
  .digits__unit { padding: 0; text-align: left; }
  .digits__unit strong { font-size: 46px; }
  .digits__unit p { font-size: 18px; }
  .trust__inner { gap: 30px; }
  .trust__scroll { width: 100%; height: 300px; }
  .trust__text p { font-size: 18px; margin-bottom: 26px; }
  .works__items, .adv__items { flex-direction: column; margin: 0; }
  .works__unit, .adv__unit { width: 100%; padding: 0; }
  .works__unit:not(:last-child), .adv__unit:not(:last-child) { margin-bottom: 34px; }
  .works__step { font-size: 24px; }
  .works__unit h4 { font-size: 24px; margin-bottom: 10px; }
  .works__unit p, .adv__text p, .role-card p { font-size: 16px; }
  .adv__icon { width: 72px; margin-right: 18px; }
  .roles__grid { grid-template-columns: 1fr; }
  .role-card { padding: 32px 24px; }
  .role-card h3 { font-size: 26px; }
  .cta { margin-bottom: 90px; }
  .cta__box {
    flex-direction: column; align-items: stretch; gap: 26px;
    padding: 28px 24px;
    background-position: 108% 128%; background-size: 190px auto;
  }
  .cta__box h2 { font-size: 30px; margin-bottom: 14px; }
  .cta__box p { font-size: 19px; font-weight: 600; }
  .cta__text { max-width: none; }
  .cta__actions { margin-left: 0; }
  .btn--lg { height: 60px; font-size: 16px; width: 100%; }
  .footer__cols { gap: 34px; margin-left: 0; }
}
