/* WorkTag — публичная страница продукта.
   Палитра и шрифт те же, что в админке: сайт и продукт должны выглядеть одним целым. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/golos-text-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/golos-text-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/golos-text-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/golos-text-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #1e2b3a;
  --ink-deep: #16212d;
  --ink-soft: #536b88;
  --survey: #13795b;
  --survey-bright: #31a177;
  --amber: #d98e04;
  --surface: #f4f6f8;
  --line: #dde3e9;
  --white: #fff;
  --gutter: 16px;
  --measure: 62ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.25rem);
  max-width: 20ch;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.35;
}

p {
  margin: 0;
  max-width: var(--measure);
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* ---------- Шапка ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--white);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  color: #c9d3dd;
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav a.is-here {
  color: var(--white);
  background: rgba(19, 121, 91, 0.3);
}

.top-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

@media (max-width: 859px) {
  /* На узком экране разделы уезжают под шапку одной строкой с прокруткой. */
  .top .wrap {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enter {
  color: #c9d3dd;
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 8px 12px;
  border-radius: 6px;
}

@media (max-width: 479px) {
  /* На узком экране кнопке нужно всё место: вход для клиентов остаётся в подвале. */
  .enter {
    display: none;
  }
}

.enter:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: var(--survey);
  color: var(--white);
  transition: background 0.15s ease;
}

.btn:hover {
  background: #0f6a50;
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.9375rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ---------- Первый экран ---------- */

.hero {
  background: var(--ink-deep);
  color: var(--white);
  padding-bottom: clamp(64px, 9vw, 120px);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero p {
  color: #b9c4d0;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.9375rem;
  color: #73879d;
}

/* Отметка: главный предмет страницы, единственный объект с тенью. */
.mark {
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  max-width: 380px;
}

.mark-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.mark-photo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background: #e8eef3;
  flex-shrink: 0;
}

.mark-name {
  font-weight: 600;
  font-size: 1.0625rem;
}

.mark-post {
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.mark-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--survey);
  background: #e8f6f1;
  border-radius: 20px;
  padding: 3px 10px;
}

.mark-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--survey-bright);
}

.mark-rows {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.mark-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid #edf0f3;
}

.mark-row:last-child {
  border-bottom: 0;
}

.mark-row dt {
  color: var(--ink-soft);
}

.mark-row dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}

.mark-foot {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ---------- Шаги ---------- */

.steps-section {
  background: var(--surface);
}

.steps {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.step::before {
  content: counter(step);
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--survey);
  margin-bottom: 10px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- Два столбца ---------- */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list li:first-child {
  padding-top: 0;
}

.feature-list li:last-child {
  border-bottom: 0;
}

.feature-list b {
  font-weight: 600;
}

.feature-list span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Тёмная секция ---------- */

.dark {
  background: var(--ink);
  color: var(--white);
}

.dark p,
.dark .feature-list span {
  color: #b9c4d0;
}

.dark .feature-list li {
  border-color: rgba(255, 255, 255, 0.12);
}

.flow {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  font-size: 0.9375rem;
}

.flow-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border-left: 3px solid var(--survey-bright);
}

.flow-row b {
  font-weight: 600;
  white-space: nowrap;
}

.flow-row span {
  color: #b9c4d0;
}

/* ---------- Честно о запуске ---------- */

.plain {
  background: var(--surface);
}

.plain .feature-list li {
  border-color: #e3e8ed;
}

/* ---------- Форма ---------- */

.lead {
  background: var(--ink-deep);
  color: var(--white);
}

.lead p {
  color: #b9c4d0;
}

.form {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  max-width: 560px;
}

.row-2 {
  display: grid;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 6px;
  color: #c9d3dd;
}

input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 13px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--survey-bright);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #93a3b5;
  margin: 0;
}

.consent input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.consent a {
  color: #c9d3dd;
}

.form-note {
  font-size: 0.875rem;
  min-height: 1.4em;
}

.form-note.ok {
  color: var(--survey-bright);
}

.form-note.bad {
  color: #ff8787;
}

/* ---------- Подвал ---------- */

.foot {
  background: var(--ink-deep);
  color: #73879d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  font-size: 0.875rem;
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot a {
  color: #93a3b5;
  text-decoration: none;
}

.foot a:hover {
  color: var(--white);
}

.foot nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Правовые страницы ---------- */

.doc {
  padding: clamp(40px, 6vw, 72px) 0 72px;
}

.doc h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  margin-bottom: 8px;
  max-width: 24ch;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
  max-width: none;
}

.doc p,
.doc li {
  max-width: var(--measure);
  margin-bottom: 10px;
}

.doc ul {
  padding-left: 20px;
}

.draft {
  background: #fff6e1;
  border-left: 3px solid var(--amber);
  padding: 14px 18px;
  margin: 24px 0 8px;
  max-width: var(--measure);
}

.draft p {
  margin: 0;
}

.blank {
  background: #fff6e1;
  border-bottom: 1px dashed var(--amber);
  padding: 0 4px;
}

/* ---------- Шире телефона ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
  }

  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
