/* Локальные шрифты Ubuntu: загрузить один раз командой python install_fonts.py. */
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

/* CraftTalk NPS. Фирменные цвета и локальный шрифт Ubuntu по предоставленным материалам. */
:root {
  /* Основная палитра CraftTalk по предоставленному образцу */
  --ct-orange: #F7931E;
  --ct-dark: #4D4E4E;
  --ct-green: #89BB65;
  --ct-cobalt: #7489FF;
  /* Цвета интерфейса */
  --bg: #f6f6f5;
  --paper: #ffffff;
  --ink: #353636;
  --text: var(--ct-dark);
  --muted: #757777;
  --line: #e5e6e4;
  --orange: var(--ct-orange);
  --orange-dark: #da7910;
  --orange-light: #fff3e5;
  --radius: 18px;
  --shadow: 0 18px 70px rgba(77, 78, 78, .065);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Ubuntu", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: #d37312; }
a:hover { color: #a95e0d; }
.container { width: min(1100px, calc(100% - 44px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.93); }
.header-inner { min-height: 145px; height: auto; padding: 12px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.brand-logo { display: block; width: 330px; max-width: 100%; height: auto; aspect-ratio: 200 / 71; object-fit: contain; }
.header-label { font-size: 13px; color: #707371; font-weight: 600; }
.header-divider { color: #b7c0cc; margin: 0 9px; }
.main-content { min-height: calc(100vh - 162px); padding-bottom: 76px; }
.hero { padding: 77px 0 56px; }
.eyebrow, .section-kicker { color: var(--orange); font-size: 12px; letter-spacing: .16em; font-weight: 780; }
.eyebrow-mark { display: inline-block; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; vertical-align: middle; margin-right: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5.2vw, 61px); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; margin: 18px 0 22px; }
.hero h1 span { color: var(--orange); }
.hero-lead { font-size: 18px; color: var(--text); max-width: 720px; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 38px; max-width: 965px; }
.goal { display: flex; align-items: center; gap: 14px; color: var(--text); font-size: 14px; font-weight: 580; }
.goal-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; background: #fff0dd; color: #cf7110; border-radius: 12px; font-size: 23px; }
.hero-signature { color: var(--muted); font-size: 13px; margin: 38px 0 0; }
.survey-shell { background: var(--paper); border: 1px solid var(--line); border-radius: 21px; padding: 36px 43px 30px; box-shadow: var(--shadow); }
.survey-top { display: flex; justify-content: space-between; gap: 14px; align-items: end; }
.survey-top h2 { margin: 3px 0 20px; font-size: 26px; letter-spacing: -.025em; }
.progress-count { white-space: nowrap; color: var(--muted); font-size: 16px; padding-bottom: 21px; }
.progress-count strong { color: var(--orange); font-size: 25px; }
.progress-count span { font-size: 12px; }
.progress-track { height: 7px; background: #f1f3f7; border-radius: 100px; overflow: hidden; }
.progress-fill { width: 16.666%; height: 100%; background: linear-gradient(90deg, #ffba60, #f18a15); transition: width .25s ease; border-radius: 100px; }
.step-tabs { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border-bottom: 1px solid var(--line); gap: 9px; padding: 26px 0; }
.step-tab { font-size: 11px; color: #a2aab8; line-height: 1.3; display: flex; flex-direction: column; gap: 10px; }
.step-tab-number { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #dfe5eb; color: #9da8b8; border-radius: 50%; font-size: 12px; font-weight: 650; }
.step-tab.active { color: var(--ink); font-weight: 700; }
.step-tab.active .step-tab-number { color: white; background: var(--orange); border-color: var(--orange); }
.step-tab.completed .step-tab-number { color: white; background: #5e8f3e; border-color: #5e8f3e; }
.form-step[hidden], [hidden] { display: none !important; }
.step-heading { padding: 31px 0 7px; }
.step-heading h3 { font-size: clamp(23px, 3.8vw, 31px); letter-spacing: -.025em; margin: 8px 0 6px; }
.step-heading p { color: var(--muted); font-size: 14px; }
.question-card { border: 1px solid #edf0f4; background: #fdfdfe; padding: 24px 25px 21px; border-radius: 15px; margin-top: 17px; }
.question-heading { display: flex; gap: 15px; margin-bottom: 18px; align-items: start; }
.question-index { color: var(--orange); background: #fff0e6; border-radius: 8px; padding: 4px 7px; min-width: 32px; text-align: center; font-size: 12px; font-weight: 800; }
.question-text { font-size: 16px; font-weight: 650; line-height: 1.42; }
.required-star { color: var(--orange); font-weight: 750; }
.score-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.score-option { cursor: pointer; min-width: 0; }
.score-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.score-option span { display: grid; place-items: center; height: 43px; background: hsl(var(--score-hue) 63% 92%); color: hsl(var(--score-hue) 78% 27%); border-radius: 9px; border: 1px solid transparent; font-size: 14px; font-weight: 740; transition: .12s ease; }
.score-option input:checked + span { background: hsl(var(--score-hue) 72% 41%); color: #fff; box-shadow: 0 5px 12px rgba(40,60,60,.13); transform: translateY(-2px); }
.score-option input:focus-visible + span, .choice-option input:focus-visible + span { outline: 3px solid var(--ct-cobalt); outline-offset: 2px; }
.scale-captions { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; color: #8c97a7; font-size: 12px; }
.scale-captions span:last-child { text-align: right; }
.text-input { display: block; width: 100%; min-height: 46px; background: #fff; border: 1px solid #dce2e9; border-radius: 10px; outline: none; padding: 11px 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.text-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(250,118,40,.1); }
.text-input::placeholder { color: #a7b0bd; }
.text-area { min-height: 91px; resize: vertical; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-option { cursor: pointer; flex: 1 1 130px; }
.choice-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-option span { display: block; text-align: center; background: #fff; border: 1px solid #dfe5ed; border-radius: 10px; padding: 10px 16px; font-weight: 650; }
.choice-option input:checked + span { color: #c96b0c; border-color: var(--orange); background: #fff5ee; }
.field-error { min-height: 0; font-size: 12px; color: #bb3043; }
.field-error:not(:empty) { margin-top: 9px; }
.question-invalid { border-color: #e8919d; background: #fffafb; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 30px; }
.required-note { font-size: 12px; color: #96a1af; margin: 0; }
.form-actions, .export-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 11px 19px; min-height: 45px; border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: .14s ease; }
.btn-primary { background: var(--orange); color: white; box-shadow: 0 5px 14px rgba(250,118,40,.17); }
.btn-primary:hover { color: white; background: var(--orange-dark); }
.btn-secondary { background: #fff; color: #4D4E4E; border-color: #dfe5ec; }
.btn-secondary:hover { color: #353636; background: #f6f8fa; }
.alert { border-radius: 11px; padding: 12px 16px; margin-top: 16px; font-size: 14px; }
.alert-error { color: #a42542; border: 1px solid #f1bec9; background: #fff3f5; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { padding: 25px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #8a97a8; }
.footer-inner a { color: #757777; }
.finish-card { max-width: 730px; margin: 85px auto; background: #fff; border-radius: 22px; padding: 65px 30px; border: 1px solid var(--line); text-align: center; }
.finish-symbol { margin: 0 auto 27px; display: grid; place-items: center; border-radius: 50%; width: 68px; height: 68px; color: #5a8d3b; background: #e4f8ef; font-size: 35px; }
.finish-card h1 { font-size: 37px; }
.finish-card p { color: var(--text); margin-bottom: 26px; }
.login-card { max-width: 465px; margin: 72px auto; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.login-card h1 { font-size: 35px; margin: 10px 0; }
.login-card p { color: var(--muted); font-size: 14px; }
.form-label { display: block; font-size: 13px; color: #4D4E4E; font-weight: 690; margin: 20px 0 8px; }
.btn-wide { width: 100%; margin-top: 25px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 50px 0 24px; }
.admin-toolbar h1, .detail-header h1 { font-size: clamp(32px, 4vw, 45px); margin: 8px 0; }
.admin-toolbar p, .detail-header p { color: var(--muted); margin: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-bottom: 18px; }
.kpi-card, .panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi-card { padding: 30px; }
.kpi-label { font-size: 11px; font-weight: 780; letter-spacing: .11em; color: #8b96a7; }
.kpi-number { font-size: 63px; font-weight: 800; letter-spacing: -.065em; line-height: 1.35; color: #5c933c; }
.kpi-number.negative { color: #d85457; }
.kpi-card p { color: var(--muted); font-size: 13px; margin: 0; }
.admin-panels { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: stretch; }
.panel { padding: 27px 29px; }
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 20px; }
.panel-heading h2 { font-size: 22px; letter-spacing: -.025em; margin: 0; }
.panel-heading > span, .panel-heading p { color: var(--muted); font-size: 12px; margin: 3px 0 0; }
.group-block { margin-bottom: 26px; }
.group-title { display: flex; justify-content: space-between; font-size: 14px; gap: 15px; margin-bottom: 9px; }
.group-title small { color: var(--muted); font-weight: 550; }
.group-track { width: 100%; height: 10px; background: #f0f2f5; border-radius: 100px; overflow: hidden; }
.group-fill { height: 100%; border-radius: 100px; }
.group-fill.critics { background: #ed777d; }
.group-fill.neutrals { background: #efbd5e; }
.group-fill.supporters { background: #89BB65; }
.group-caption { color: #95a0af; font-size: 11px; margin: 10px 0 0; }
.muted { color: var(--muted); }
.select-input { min-height: 42px; font-size: 13px; }
.chart-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8996a6; font-size: 12px; margin: 17px 0; }
.score-chart { display: grid; grid-template-columns: repeat(11, minmax(0,1fr)); align-items: end; gap: 7px; height: 205px; }
.chart-col { display: flex; flex-direction: column; text-align: center; min-width: 0; color: #8995a5; font-size: 12px; height: 100%; }
.chart-col-area { display: flex; height: 100%; align-items: end; min-height: 0; border-bottom: 1px solid #e9edf0; }
.chart-bar { width: 100%; min-height: 2px; background: linear-gradient(180deg, #ffba60, var(--orange)); border-radius: 5px 5px 0 0; }
.chart-col small { font-size: 10px; height: 16px; }
.chart-col span { margin-top: 7px; }
.response-panel { margin-top: 18px; }
.split-heading { align-items: center; }
.table-scroll { overflow-x: auto; }
.response-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; min-width: 710px; }
.response-table th { background: #f8fafc; font-weight: 720; color: #777a79; padding: 14px 12px; }
.response-table td { padding: 15px 12px; border-bottom: 1px solid #edf0f4; color: #4D4E4E; }
.response-table td:nth-child(3) { max-width: 250px; overflow-wrap: anywhere; }
.response-table a { color: #cc6f0c; text-decoration: none; font-weight: 670; }
.empty-row { text-align: center; color: var(--muted) !important; padding: 35px !important; }
.score-tag { border-radius: 7px; display: inline-block; padding: 4px 11px; font-weight: 750; font-size: 13px; }
.score-tag.bad { background: #feeaed; color: #ca495b; }
.score-tag.neutral { background: #fff3da; color: #a87b24; }
.score-tag.good { background: #e5f8ed; color: #518232; }
.pagination { margin-top: 20px; display: flex; gap: 20px; font-size: 13px; align-items: center; justify-content: center; }
.pagination a { text-decoration: none; font-weight: 650; }
.pagination span { color: var(--muted); }
.detail-header { padding: 35px 0 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.back-link { font-size: 13px; text-decoration: none; font-weight: 700; }
.detail-panel { padding: 10px 28px; }
.detail-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(130px, 1fr); gap: 25px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border-bottom: 0; }
.detail-question { color: #4D4E4E; font-size: 14px; }
.detail-question span { margin-right: 13px; color: var(--orange); font-weight: 770; }
.detail-answer { font-size: 14px; font-weight: 650; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 790px) {
  .goal-grid { grid-template-columns: 1fr; gap: 15px; }
  .step-tabs { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .step-tab { font-size: 0; }
  .step-tab-number { font-size: 12px; }
  .admin-panels { grid-template-columns: 1fr; }
  .kpi-number { font-size: 49px; }
  .panel-heading.split-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 550px) {
  .container { width: min(100% - 28px, 1100px); }
  .header-inner { min-height: 110px; height: auto; padding: 10px 0; gap: 12px; }
  .brand-logo { width: min(290px, 57vw); }
  .header-label { font-size: 11px; }
  .hero { padding: 48px 4px 35px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 16px; }
  .goal-grid { margin-top: 28px; }
  .hero-signature { margin-top: 26px; }
  .survey-shell { padding: 23px 16px 19px; border-radius: 16px; }
  .survey-top h2 { font-size: 22px; }
  .step-tabs { gap: 5px; padding: 19px 0; }
  .step-heading { padding-top: 24px; }
  .question-card { padding: 16px 12px 16px; }
  .question-heading { gap: 10px; }
  .question-text { font-size: 14px; }
  .score-grid { gap: 2px; }
  .score-option span { font-size: 11px; height: 36px; border-radius: 5px; }
  .scale-captions { font-size: 10px; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .form-actions { justify-content: flex-end; }
  .form-actions .btn { font-size: 13px; padding: 11px 14px; }
  .login-card { padding: 28px 20px; margin: 45px 0; }
  .admin-toolbar { align-items: start; }
  .admin-toolbar .btn { padding: 8px 12px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card, .panel { padding: 24px 19px; }
  .detail-header { align-items: start; }
  .detail-row { grid-template-columns: 1fr; gap: 7px; }
  .score-chart { gap: 4px; }
  .footer-inner { padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
