/*
Theme Name: Опросы Онлайн Ru
Theme URI: https://oprosi.cc/
Description: Тема сайта о платформе «Опросы Онлайн» (oprosi.online). Канон категории: светлая панель опросов, один акцент.
Version: 1.0.6
Author: Опросы Онлайн Ru
Text Domain: oprosi-theme
*/

/* ── Токены ─────────────────────────────────────────────── */
:root {
  --bg: #fcfcff;
  --soft: #eef2f5;
  --ink: #2b2f46;
  --ink-2: #474b63;
  --muted: #595d74;
  --line: #dfe3ec;
  --violet: #6961cc;
  --violet-d: #5148b5;
  --indigo: #51559c;
  --tint: #e9e6fa;
  --tint-2: #f4f2fd;
  --foot: #262a40;
  --r: 12px;
  --gap: clamp(16px, 2.2vw, 28px);
  --pad: clamp(16px, 3.4vw, 48px);
  --sec: clamp(48px, 6vw, 88px);
  --ff: "Vela Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: none;
}

/* ── База ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--ff); font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
a { color: var(--violet-d); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; letter-spacing: -.015em; }
h1 { font-weight: 800; font-size: clamp(32px, 3.5vw, 54px); line-height: 1.08; margin: 0 0 18px; }
h2 { font-weight: 800; font-size: clamp(25px, 2.3vw, 36px); line-height: 1.15; margin: 0 0 16px; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.muted { color: var(--muted); font-size: 15px; max-width: 42em; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
html { scrollbar-color: #b9b4e6 var(--soft); }

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

/* ── Кнопка «Выбрать опрос» ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--violet); color: #fff; font: 700 16px/1.2 var(--ff);
  text-decoration: none; padding: 13px 20px; border-radius: var(--r); white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--violet-d); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: var(--ink); }
.btn__ico { width: 18px; height: 18px; }
.btn--lg { font-size: 18px; padding: 16px 26px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); text-decoration: none; }
.more-link .ico { color: var(--violet); transition: transform .2s ease; }
.more-link:hover { color: var(--violet-d); }
.more-link:hover .ico { transform: translateX(3px); }

/* ── Шапка ──────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(252, 252, 255, .96); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; flex: 0 1 auto; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__w { font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.brand__w small { font-size: 12px; font-weight: 700; color: var(--violet); margin-left: 5px; vertical-align: 7px; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.menu a:hover { background: var(--tint-2); color: var(--ink); }
.menu a[aria-current="page"] { color: var(--violet-d); background: var(--tint); }
.btn--head { padding: 11px 16px; font-size: 15px; flex: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; flex: none; }
.burger .ico--x { display: none; }
.top.is-menu .burger .ico--m { display: none; }
.top.is-menu .burger .ico--x { display: block; }
.drawer { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.drawer ul { list-style: none; margin: 0 auto; padding-top: 10px; padding-bottom: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.drawer a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.drawer a .ico { color: var(--violet); }
.drawer a[aria-current="page"] { background: var(--tint); }
.top.is-menu .drawer { display: block; }

/* ── Первый экран главной ───────────────────────────────── */
.hero { background: var(--soft); padding: clamp(36px, 4.5vw, 72px) 0 clamp(44px, 5vw, 80px); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: center; }
.hero__copy h1 { max-width: 15em; }
.hero__art { position: relative; display: flex; justify-content: center; min-height: 440px; }
.hero__art::before {
  content: ""; position: absolute; width: min(420px, 88%); aspect-ratio: 1; border-radius: 50%;
  background: var(--violet); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.phone {
  position: relative; width: 300px; max-width: 100%; border-radius: 40px; background: var(--ink);
  padding: 12px; box-shadow: 0 30px 60px -30px rgba(43, 47, 70, .55);
}
.phone__bar { height: 22px; display: flex; justify-content: center; align-items: center; }
.phone__bar span { width: 76px; height: 6px; border-radius: 99px; background: #3d4260; }
.phone__list { list-style: none; margin: 0; padding: 18px 14px 22px; background: #fff; border-radius: 30px; display: grid; gap: 10px; }
.phone__list li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--tint-2); font-size: 14px; line-height: 1.35; color: var(--muted); }
.phone__list b { display: block; color: var(--ink); font-size: 15px; }
.phone__list .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--violet); display: grid; place-items: center; flex: none; }
.phone__list .is-pay { background: var(--violet); color: #eceaff; }
.phone__list .is-pay b { color: #fff; }
.phone__list .is-pay .ic { background: #fff; }

/* ── Полосы и сетки ─────────────────────────────────────── */
.band { padding: var(--sec) 0; }
.band--soft { background: var(--soft); }
.band + .band:not(.band--soft):not(.band--first) { padding-top: calc(var(--sec) * .5); }
.band__h { margin-bottom: 28px; max-width: 24em; }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gap) * 2); align-items: start; }
.split--rev .split__main { order: 2; }
.split--rev .rules { order: 1; }
.prose { max-width: 39em; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 18px; }

/* Клиенты: список названий без логотипов */
.clients__h { font-weight: 700; margin-bottom: 12px; }
.clients { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.clients li { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* Шаги: номер несёт порядок */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; border-top: 2px dashed #c9c3f1; }
.steps li { position: relative; }
.steps__n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--violet); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--soft); }
.steps p { color: var(--muted); font-size: 16px; }
.steps__more { margin: 26px 0 0; font-weight: 700; }

/* Правила вывода */
.rules { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.rules div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 22px; }
.rules div + div { border-top: 1px solid var(--line); }
.rules dt { color: var(--muted); }
.rules dd { margin: 0; font-weight: 800; font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.rules dd a { font-size: 16px; font-weight: 700; word-break: break-all; }

/* Что нужно для участия */
.need { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 calc(var(--gap) * 2); }
.need li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid #d4d9e4; }
.need__ic { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--violet); display: grid; place-items: center; flex: none; }
.need p { color: var(--muted); margin: 0; }

/* Оценка */
.grade { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--shadow); }
.grade__total { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.grade__n { font-weight: 800; font-size: 44px; line-height: 1; }
.grade__of { color: var(--muted); font-size: 15px; flex-basis: 100%; }
.grade__list { list-style: none; margin: 0; padding: 0; }
.grade__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0; }
.grade__list li + li { border-top: 1px solid var(--line); }
.grade__name { font-weight: 600; }
.grade__v { display: flex; align-items: center; gap: 8px; }
.grade__v b { font-variant-numeric: tabular-nums; }
.grade__d { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; }
.stars .ico { width: 16px; height: 16px; stroke-width: 1.5; }
.stars__bg { color: #d6d3ee; }
.stars__bg .ico { fill: currentColor; }
.stars__fg { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--violet); }
.stars__fg .ico { fill: currentColor; }

/* FAQ */
.faq { max-width: 60em; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa__ico { color: var(--violet); transition: transform .25s ease; }
.qa[open] .qa__ico { transform: rotate(180deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa[open] .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 4px 20px; color: var(--ink-2); max-width: 40em; margin: 0; }

/* Финальный блок */
.cta-end { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; background: var(--tint); border-radius: calc(var(--r) * 1.5); padding: clamp(24px, 3.4vw, 48px); }
.cta-end h2 { margin-bottom: 10px; }
.cta-end p { margin: 0; color: var(--ink-2); max-width: 40em; }

/* Шапка внутренней страницы */
.phead { background: var(--soft); padding: clamp(28px, 3.5vw, 56px) 0 clamp(36px, 4vw, 64px); }
.phead__in { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: calc(var(--gap) * 2); align-items: end; }
.phead h1 { max-width: 18em; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs__sep { width: 14px; height: 14px; }
.facts { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.facts div { padding: 14px 20px; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 19px; overflow-wrap: anywhere; }
.facts dd a { font-weight: 800; }

/* Документ: текст и оглавление */
.doc { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: calc(var(--gap) * 2); align-items: start; }
.doc__side { position: sticky; top: 96px; }
.toc { display: grid; gap: 2px; border-left: 2px solid var(--line); padding-left: 16px; }
.toc__h { font-weight: 700; margin: 0 0 6px; }
.toc a { color: var(--muted); text-decoration: none; padding: 5px 0; font-size: 15px; }
.toc a:hover { color: var(--violet-d); }
.ticks { list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.nums { list-style: none; counter-reset: n; }
.nums li { counter-increment: n; position: relative; padding-left: 44px; margin-bottom: 14px; min-height: 30px; }
.nums li::before { content: counter(n); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%; background: var(--tint); color: var(--violet-d); font-weight: 800; display: grid; place-items: center; font-size: 15px; }

.tbl { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 16px; }
.tbl caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--tint-2); font-size: 15px; }

/* Отзывы */
.revs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.rev { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; }
.rev:nth-child(3n+2) { background: var(--tint-2); }
.rev__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.rev time { font-size: 14px; color: var(--muted); }
.rev p { color: var(--ink-2); }
.rev__who { margin: auto 0 0; padding-top: 12px; font-weight: 700; color: var(--ink) !important; }

/* Разделы */
.more__h { margin-bottom: 22px; }
.more { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.more a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .2s ease; }
.more a:hover { border-color: var(--violet); }
.more__ico { grid-row: span 2; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); color: var(--violet); display: grid; place-items: center; }
.more small { color: var(--muted); font-size: 14px; }

.note { max-width: 40em; }

/* Контакты */
.contacts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.contacts li { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.contacts .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--violet); display: grid; place-items: center; flex: none; }
.contacts h2 { font-size: 19px; margin: 4px 0 4px; letter-spacing: 0; }
.contacts p { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.contacts .muted { font-weight: 400; max-width: 34em; }
.req { margin: 0 0 18px; }
.req div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid #d4d9e4; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ── Подвал ─────────────────────────────────────────────── */
.foot { background: var(--foot); color: #c9cbe0; padding: 56px 0 44px; margin-top: 0; }
.foot__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) auto; gap: 32px; align-items: start; }
.foot p { font-size: 15px; }
.foot__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px !important; }
.foot__nav, .foot__docs { display: grid; gap: 8px; }
.foot__nav a, .foot__docs a { color: #dfe1f2; text-decoration: none; font-size: 15px; }
.foot__nav a:hover, .foot__docs a:hover { color: #fff; text-decoration: underline; }
.foot__docs p { color: #fff; font-weight: 700; margin: 0 0 4px; }
.foot .btn--foot, .foot .btn--foot:hover { color: #fff; }
.foot__act { padding-top: 4px; }

/* ── Движение ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .menu { display: none; }
  .burger { display: inline-flex; }
  .btn--head { margin-left: auto; }
  .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .revs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__side { display: none; }
}
@media (max-width: 960px) {
  .hero__in, .split, .phead__in { grid-template-columns: minmax(0, 1fr); }
  .split--rev .split__main, .split--rev .rules { order: 0; }
  .hero__art { min-height: 0; padding: 12px 0 8px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .steps::before { display: none; }
  .cta-end { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .need, .contacts, .revs { grid-template-columns: minmax(0, 1fr); }
  .drawer ul { grid-template-columns: minmax(0, 1fr); }
  .req div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .tbl thead { display: none; }
  .tbl, .tbl caption, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .tbl td { border: 0; padding: 4px 0; }
  .tbl td::before { content: attr(data-label) ": "; color: var(--muted); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top__in { gap: 10px; height: 64px; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__w { font-size: 15px; }
  .brand__w small { display: none; }
  .btn--head { padding: 10px 12px; font-size: 14px; }
  .btn--head .btn__ico { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .acts .btn--lg { width: 100%; }
  .rules div { padding: 14px 16px; }
  .phone { width: 240px; border-radius: 34px; }
  .phone__list { padding: 14px 10px 16px; border-radius: 26px; }
  .phone__list li { padding: 10px; gap: 10px; font-size: 13px; }
  .phone__list b { font-size: 14px; }
  .phone__list .ic { width: 34px; height: 34px; }
  .hero__art::before { width: 330px; }
  .rules div { flex-wrap: wrap; }
  .rules dd a { word-break: normal; }
}
@media (max-width: 440px) {
  .brand { gap: 8px; }
  .brand__w { white-space: normal; width: min-content; font-size: 15px; line-height: 1.05; overflow: visible; text-overflow: clip; }
  .burger { width: 40px; height: 40px; }
}
@media (max-width: 340px) {
  .top__in { gap: 8px; }
  .btn--head { padding: 9px 10px; font-size: 13.5px; }
}
