/*
 * Лендинг PingWin. Перенос прототипа docs/landing-redesign/prototype/Grid.dc.html.
 * Без Bootstrap: сетка, токены и состояния — здесь. Состояния и движение — по States.dc.html.
 *
 * Сетка: 12 колонок, контейнер 1360, гаттер 24, поля страницы 40 (на мобильном 16).
 * Вертикальный ритм (шаг 8): 8 внутри элемента · 16 между пунктами · 24 связанные элементы · 56 группы · 80 между секциями.
 */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/InterVariable.woff2') format('woff2');
}

:root {
    --pw-text: #2B2B2B;
    --pw-accent: #3C7AFB;
    --pw-accent-press: #346BDC;
    --pw-muted: #8A8A8A;
    --pw-disabled: #D9D9D9;
    --pw-surface: #FFFFFF;
    --pw-soft: #F0F5FB;
    --pw-line: #E6EBF3;
    --pw-free: #0CA32A;
    --pw-free-soft: #E3F6E7;
    --pw-pro-track: #DCE6FD;
    --pw-orange: #FF7439;
    --pw-faq-line: #B6D4FF;

    --pw-g-btn: linear-gradient(140deg, #3C7AFB 0%, #346BDC 100%);
    --pw-g-soft: linear-gradient(-40deg, #F4F7FE 10%, #F2F5FD 96%);
    --pw-g-blue: linear-gradient(-40deg, #7C96FF 0%, #4C6EF9 100%);
    --pw-g-violet: linear-gradient(-40deg, #7E76FE 0%, #6E5DFF 100%);
    --pw-g-purple: linear-gradient(140deg, #995DFF 0%, #AE8CE7 100%);
    --pw-g-sky: linear-gradient(140deg, #8FC3FE 0%, #70ACFF 100%);
    --pw-g-fill: linear-gradient(76deg, #A2D6FE 3%, #3C7AFB 95%);

    --pw-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --pw-pad-x: clamp(16px, 2.8vw, 40px);
    --pw-h2: clamp(36px, 3.9vw, 56px);
    --pw-fs-lg: clamp(18px, 1.67vw, 24px);
    --pw-fs-md: clamp(16px, 1.39vw, 20px);

    /* Кривые: --ease-out для входа и обратной связи, --ease-in-out для перемещения по экрану */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

/* ===================== БАЗА ===================== */

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--pw-surface);
    color: var(--pw-text);
    font-family: var(--pw-font);
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
    cursor: pointer;
}

:where(.pw-root) a {
    color: var(--pw-accent);
}

:where(.pw-root a:hover) {
    color: var(--pw-accent-press);
}

.pw-root {
    position: relative;
    overflow: hidden;
}

.pw-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.pw-section {
    position: relative;
    padding: 40px var(--pw-pad-x);
}

.pw-container {
    max-width: 1360px;
    margin: 0 auto;
}

.pw-h2 {
    margin: 0;
    font-size: var(--pw-h2);
    line-height: 1;
    font-weight: 400;
}

.pw-accent {
    color: var(--pw-accent);
}

.pw-soft-card {
    box-sizing: border-box;
    border-radius: 56px;
    background: var(--pw-g-soft);
}

/* ===================== СЕТКА ===================== */

.g12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
}

.s4 { grid-column: span 4; }
.c1-5 { grid-column: 1 / span 5; }
.c1-7 { grid-column: 1 / span 7; }
.c2-11 { grid-column: 2 / span 10; }
.c6-12 { grid-column: 6 / span 7; }
.c8-12 { grid-column: 8 / span 5; }
.c1-12 { grid-column: 1 / -1; }

/* двойной промежуток между соседними колонками-блоками: гаттер 24 + 24 */
.gap2 { padding-left: 24px; }

/* ===================== КНОПКИ И ССЫЛКИ ===================== */

.pw-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    background: var(--pw-g-btn);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms var(--ease-out);
}

.pw-btn,
.pw-btn:hover {
    color: #FFFFFF;
}

/* подсветка слоем + нажатие scale(0.97) */
.pw-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: #0B2E8A;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.pw-btn:active { transform: scale(0.97); }
.pw-btn:active::before { opacity: .22; }

.pw-btn--md {
    padding: 16px 24px;
    font-size: var(--pw-fs-lg);
}

.pw-btn--lg {
    padding: 24px 40px;
    font-size: var(--pw-fs-lg);
}

.pw-btn--ghost {
    padding: 12px 24px;
    border: 1px solid var(--pw-accent);
    background: transparent;
    font-size: 20px;
}

.pw-btn--ghost,
.pw-btn--ghost:hover {
    color: var(--pw-accent);
}

.pw-btn--ghost::before { background: var(--pw-accent); }
.pw-btn--ghost:active::before { opacity: .14; }

.pw-btn:focus-visible,
.pw-link:focus-visible,
.pw-icon:focus-visible,
.pw-acc-btn:focus-visible,
.pw-tab:focus-visible,
.pw-step:focus-visible {
    outline: 2px solid var(--pw-accent);
    outline-offset: 3px;
    border-radius: 12px;
}

.pw-btn:focus-visible { border-radius: 100px; }

/* Ссылки и иконки: только цвет */
.pw-link,
.pw-icon {
    text-decoration: none;
    transition: color 150ms ease;
}

.pw-nav,
.pw-nav:hover {
    color: var(--pw-text);
}

.pw-foot,
.pw-foot:hover {
    color: var(--pw-muted);
}

.pw-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pw-text);
}

@media (hover: hover) and (pointer: fine) {
    .pw-btn:hover::before { opacity: .14; }
    .pw-btn--ghost:hover::before { opacity: .08; }
    .pw-nav:hover,
    .pw-icon:hover { color: var(--pw-accent); }
    .pw-foot:hover { color: var(--pw-text); }
}

/* ===================== HERO И ШАПКА ===================== */

.pw-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 813px;
    box-sizing: border-box;
    padding: 24px var(--pw-pad-x) 40px;
}

.pw-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.pw-hleft,
.pw-hright {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.pw-logo,
.pw-logo:hover {
    font-size: 32px;
    font-weight: 400;
    color: var(--pw-text);
}

.pw-dnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 20px;
}

.pw-signin {
    display: flex;
    align-items: center;
    height: 44px;
    font-size: 20px;
}

.pw-lang-btn {
    color: var(--pw-muted);
    font-size: 20px;
}

.pw-hero-body {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    align-content: center;
    width: 100%;
    max-width: 1360px;
    margin: 56px auto 0;
}

.pw-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pw-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--pw-g-soft);
    color: var(--pw-accent);
    font-size: 16px;
    font-weight: 500;
}

.pw-nowrap {
    white-space: nowrap;
}

.pw-badge-dot {
    flex: none;
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.pw-badge-dot::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pw-accent);
}

/* h1 — обёртка бейджа и заголовка: сама ничего не рисует */
.pw-hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.pw-h1 {
    display: block;
    max-width: 1244px;
    margin: 24px 0 0;
    font-size: clamp(40px, 5.6vw, 80px);
    line-height: 1;
    font-weight: 400;
    text-wrap: balance;
}

.pw-lead {
    max-width: 1244px;
    margin: 40px 0 0;
    font-size: clamp(20px, 2.22vw, 32px);
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.pw-hero-cta {
    margin-top: 56px;
}

/* Точка в бейдже — радар: два кольца расходятся из центра до 22 px и тают, сдвинуты на полпериода */
@keyframes pw-radar {
    0% { transform: translate(-50%, -50%) scale(.2); opacity: .7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.pw-radar {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    box-sizing: border-box;
    border: 1.5px solid var(--pw-accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    animation: pw-radar 2.8s var(--ease-out) infinite;
}

.pw-radar--2 { animation-delay: 1.4s; }

/* Параллакс: неподвижное «окно» по размеру блока с растворяющимися краями; внутри едет лента (только transform) */
.pw-par {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.pw-par > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.pw-par--hero {
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 80px), transparent 100%);
}

.pw-par--hero path {
    stroke-width: clamp(32px, 4.2vw, 60px);
}

.pw-par--pricing {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}

/* ===================== ВЫПАДАЮЩИЕ МЕНЮ ===================== */

/* Раскрываются от своей кнопки: scale 0.96 → 1 + opacity, вход 200 мс, выход 120 мс.
   Закрытие — клик вне меню, выбор пункта или Esc. */
.pw-menu-wrap {
    position: relative;
}

.pw-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 16px;
    background: var(--pw-surface);
    box-shadow: 0 0 0 1px var(--pw-line), 0 12px 32px rgba(43, 43, 43, .10);
    transform-origin: top right;
    opacity: 0;
    transform: scale(.96) translateY(-4px);
    visibility: hidden;
    transition: opacity 120ms ease, transform 120ms var(--ease-out), visibility 0s linear 120ms;
}

.pw-menu[data-open="true"] {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 150ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
}

.pw-menu--lang {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 360px;
}

.pw-menu-item,
.pw-menu-item:hover {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--pw-text);
    font-size: 16px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, color 150ms ease;
}

.pw-menu-item[aria-current="true"] {
    color: var(--pw-accent);
}

.pw-menu-item:focus-visible {
    outline: 2px solid var(--pw-accent);
    outline-offset: -2px;
}

.pw-menu-check {
    flex: none;
    margin-left: auto;
}

.pw-menu-chev {
    transition: transform 200ms var(--ease-out);
}

[aria-expanded="true"] > .pw-menu-chev {
    transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .pw-menu-item:hover { background: var(--pw-soft); }
}

/* ===================== АДАПТИВ ШАПКИ =====================
   ≤ 900 px: меню в шапке сворачивается в «бургер», hero без фиксированной высоты. */
.pw-burger,
.pw-mnav {
    display: none;
}

.pw-burger {
    width: 44px;
    justify-content: center;
}

.pw-mnav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 25;
    flex-direction: column;
    padding: 12px;
    border-radius: 24px;
    background: var(--pw-surface);
    box-shadow: 0 0 0 1px var(--pw-line), 0 16px 40px rgba(43, 43, 43, .10);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 120ms ease, transform 120ms var(--ease-out), visibility 0s linear 120ms;
}

.pw-mnav[data-open="true"] {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 150ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s;
}

.pw-mnav-a,
.pw-mnav-a:hover {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--pw-text);
    font-size: 18px;
}

.pw-mnav-cta {
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 18px;
}

.pw-b1,
.pw-b2,
.pw-b3 {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

.pw-burger[aria-expanded="true"] .pw-b1 { transform: translateY(5px) rotate(45deg); }
.pw-burger[aria-expanded="true"] .pw-b2 { opacity: 0; }
.pw-burger[aria-expanded="true"] .pw-b3 { transform: translateY(-5px) rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
    .pw-mnav-a:hover { background: var(--pw-soft); }
}

/* ===================== ЦИФРЫ ===================== */

.pw-stats {
    row-gap: 24px;
    padding: 24px;
}

.pw-stats-head {
    min-height: 240px;
    box-sizing: border-box;
    padding: 24px;
}

.pw-stats-title {
    margin: 0;
    font-size: var(--pw-h2);
    line-height: 1;
    font-weight: 400;
}

.pw-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 240px;
    box-sizing: border-box;
    padding: 24px;
    border-radius: 32px;
    color: #FFFFFF;
}

.pw-stat--blue { background: var(--pw-g-blue); }
.pw-stat--violet { background: var(--pw-g-violet); }
.pw-stat--purple { background: var(--pw-g-purple); }
.pw-stat--sky { background: var(--pw-g-sky); }

.pw-stat-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pw-stat-num {
    font-size: clamp(64px, 7.2vw, 104px);
    line-height: 0.85;
    font-weight: 800;
}

.pw-stat-label {
    font-size: clamp(28px, 3.33vw, 48px);
    line-height: 0.85;
    font-weight: 800;
    white-space: pre-line;
}

.pw-stat-text {
    margin: 0;
    font-size: var(--pw-fs-md);
    line-height: 1.2;
}

/* ===================== СПОСОБЫ МОНИТОРИНГА ===================== */

.pw-mon {
    row-gap: 48px;
    align-items: start;
    padding: clamp(24px, 3.33vw, 48px);
}

/* Схематичная панель управления: декорация из блоков, без картинки */
.pw-panel {
    display: flex;
    min-width: 0;
    aspect-ratio: 668 / 454;
    overflow: hidden;
    border-radius: 32px;
    background: var(--pw-surface);
    box-shadow: 0 1px 2px rgba(43, 43, 43, 0.04), 0 12px 32px rgba(60, 122, 251, 0.10);
}

.pw-ps {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 64px;
    box-sizing: border-box;
    padding: 16px 0;
    border-right: 1px solid #EDF1FA;
    background: #F7F9FE;
}

.pw-ps-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: var(--pw-g-btn);
}

.pw-ps-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.pw-ps-item--on { background: #E4EEFE; }

.pw-ps-ico {
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border: 2px solid #C4C4C4;
    border-radius: 4px;
}

.pw-ps-item--on .pw-ps-ico { border-color: var(--pw-accent); }
.pw-ps-ico--round { border-radius: 50%; }
.pw-ps-ico--card { height: 12px; border-radius: 3px; }

.pw-ps-ico--lines {
    height: 2px;
    border: 0;
    border-radius: 0;
    background: #C4C4C4;
    box-shadow: 0 -5px 0 #C4C4C4, 0 5px 0 #C4C4C4;
}

.pw-ps-spacer { flex: 1 1 auto; }

.pw-ps-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E4EEFE;
}

.pw-pm {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
    padding: 24px;
}

.pw-pm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pw-pm-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-pm-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* «Скелетная» полоска: размеры и цвет задаются модификатором или style */
.pw-sk {
    flex: none;
    height: 8px;
    border-radius: 4px;
    background: var(--pw-disabled);
}

.pw-sk--title { width: 136px; height: 12px; border-radius: 6px; background: #9D9D9D; }
.pw-sk--sub { width: 88px; }
.pw-sk--search { width: 120px; height: 32px; border-radius: 100px; background: var(--pw-soft); }
.pw-sk--add { width: 32px; height: 32px; border-radius: 100px; background: var(--pw-g-btn); }
.pw-sk--kpi { width: 56px; }
.pw-sk--chart { width: 96px; background: #C4C4C4; }
.pw-sk--chip { width: 32px; height: 16px; border-radius: 100px; background: var(--pw-soft); }
.pw-sk--chip-on { background: #E4EEFE; }
.pw-sk--name { height: 8px; background: #9D9D9D; }
.pw-sk--meta { width: 56px; height: 6px; border-radius: 3px; }
.pw-sk--tail { width: 40px; }

.pw-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.pw-kpi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: #F7F9FE;
}

.pw-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pw-spark {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 24px;
}

.pw-spark > div {
    flex: 1 1 0;
    border-radius: 2px;
    opacity: 0.55;
}

.pw-chart {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 16px 16px 0;
    border: 1px solid #EDF1FA;
    border-radius: 16px;
}

.pw-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pw-bars {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-end;
    gap: 3px;
    min-height: 40px;
}

.pw-bars > div {
    flex: 1 1 0;
    border-radius: 2px 2px 0 0;
}

.pw-uptime {
    display: flex;
    flex-direction: column;
    border: 1px solid #EDF1FA;
    border-radius: 16px;
}

.pw-uptime-row {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 16px;
}

.pw-uptime-row + .pw-uptime-row {
    border-top: 1px solid #EDF1FA;
}

.pw-status {
    position: relative;
    flex: none;
    width: 8px;
    height: 8px;
}

.pw-status > span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.pw-uptime-name {
    display: flex;
    flex: none;
    flex-direction: column;
    gap: 4px;
    width: 112px;
}

.pw-segs {
    display: flex;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
    height: 16px;
}

.pw-segs > div {
    flex: 1 1 0;
    border-radius: 2px;
}

@keyframes pw-ping {
    0% { transform: scale(1); opacity: .55; }
    80%, 100% { transform: scale(3.2); opacity: 0; }
}

.pw-ring {
    animation: pw-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}

/* ===================== АККОРДЕОНЫ ===================== */

.pw-acc {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pw-acc--mon .pw-acc-item:not(:last-child) {
    border-bottom: 1px solid var(--pw-muted);
}

.pw-acc--faq .pw-acc-item:not(:last-child) {
    border-bottom: 1px solid var(--pw-faq-line);
}

.pw-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 64px;
    padding: 16px 0;
    border: 0;
    background: transparent;
    color: var(--pw-text);
    text-align: left;
    transition: color 150ms ease;
}

.pw-acc--mon .pw-acc-btn {
    align-items: flex-end;
    gap: 16px;
}

.pw-acc--faq .pw-acc-btn {
    font-size: var(--pw-fs-lg);
    font-weight: 500;
    line-height: 1.25;
}

.pw-acc-btn:active {
    color: var(--pw-accent-press);
}

.pw-acc-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pw-acc-title {
    display: block;
    font-size: clamp(20px, 1.67vw, 24px);
    line-height: 1.15;
    font-weight: 500;
}

.pw-acc-sub {
    font-size: 16px;
    line-height: 1.25;
    color: var(--pw-muted);
}

.pw-chev {
    flex: none;
    transition: transform 250ms var(--ease-in-out);
}

.pw-acc-btn[aria-expanded="true"] .pw-chev {
    transform: rotate(180deg);
}

/* Без скрипта все пункты раскрыты; закрываются, только когда скрипт поставил класс pw-js на <html> */
.pw-acc-body {
    display: grid;
    grid-template-rows: 1fr;
}

.pw-js .pw-acc-body {
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 250ms var(--ease-out), opacity 150ms var(--ease-out), visibility 0s linear 250ms;
}

.pw-js .pw-acc-body[data-open="true"] {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    transition: grid-template-rows 250ms var(--ease-out), opacity 250ms var(--ease-out) 60ms, visibility 0s;
}

.pw-acc-inner {
    min-height: 0;
    overflow: hidden;
}

.pw-dash-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0 0 16px;
    list-style: none;
}

.pw-dash-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
}

.pw-faq-a {
    margin: 0;
    padding: 0 48px 16px 0;
    font-size: var(--pw-fs-md);
    line-height: 1.4;
}

@media (hover: hover) and (pointer: fine) {
    .pw-acc-btn:hover { color: var(--pw-accent); }
}

/* ===================== CTA ===================== */

.pw-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 80px 24px;
    border-radius: 56px;
    background: var(--pw-g-sky);
    color: #FFFFFF;
    text-align: center;
}

.pw-cta-title {
    margin: 0;
    font-size: clamp(32px, 3.9vw, 56px);
    line-height: 1;
    font-weight: 400;
}

.pw-cta-text {
    margin: 24px 0 0;
    font-size: var(--pw-fs-lg);
    line-height: 1.25;
}

.pw-cta .pw-btn {
    margin-top: 56px;
}

/* ===================== ТАРИФЫ ===================== */

.pw-pricing {
    position: relative;
    z-index: 1;
}

.pw-pricing-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pw-pricing-title {
    text-align: center;
}

/* Переключатель Месяц/Год: плашка переезжает */
.pw-tabs {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 56px;
    padding: 8px;
    border-radius: 40px;
    background: var(--pw-soft);
}

.pw-tab-pill {
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 8px;
    width: calc(50% - 12px);
    border-radius: 32px;
    background: var(--pw-surface);
    box-shadow: 0 1px 2px rgba(43, 43, 43, 0.06);
    transition: transform 250ms var(--ease-in-out);
}

.pw-tabs[data-yearly="true"] .pw-tab-pill {
    transform: translateX(calc(100% + 8px));
}

.pw-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border: 0;
    border-radius: 32px;
    background: transparent;
    color: var(--pw-text);
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    transition: color 150ms ease;
}

.pw-tab-badge {
    font-size: 16px;
    color: var(--pw-orange);
}

@media (hover: hover) and (pointer: fine) {
    .pw-tab[aria-pressed="false"]:hover { color: var(--pw-accent); }
}

.pw-tasks-title {
    margin: 56px 0 0;
    text-align: center;
    font-size: clamp(22px, 2.22vw, 32px);
    line-height: 1.25;
    font-weight: 400;
}

/* Слайдер: 8 равных сегментов (8px, зазор 4px). Шаг i (1–8) = конец сегмента i,
   правый край бегунка (28px) встаёт ровно в край полосы. Позиция задаётся переменной --sel. */
.pw-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
}

/* --n (число сегментов) задаёт разметка по количеству тарифов */
.pw-range,
.pw-steps,
.pw-slider {
    --pw-seg: ((100% - (var(--n, 8) - 1) * 4px) / var(--n, 8));
}

.pw-msel,
.pw-mends {
    display: none;
}

.pw-msel {
    margin: 0;
    text-align: center;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--pw-accent);
}

.pw-steps {
    position: relative;
    height: 32px;
}

.pw-step {
    position: absolute;
    top: 0;
    left: calc(var(--pw-seg) * var(--i) + (var(--i) - 1) * 4px);
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pw-muted);
    font-size: 16px;
    font-weight: 400;
    transform: translateX(-100%);
    transition: color 150ms ease;
}

.pw-step[data-state="on"] { color: var(--pw-accent); }

.pw-step[data-state="free"] {
    left: 0;
    color: var(--pw-free);
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .pw-step[data-state="off"]:hover { color: var(--pw-text); }
}

.pw-slider {
    --sel: 1;
    --pw-end: calc(var(--pw-seg) * var(--sel) + (var(--sel) - 1) * 4px);
    position: relative;
    height: 28px;
    margin-bottom: 34px;
}

.pw-slider-seg {
    position: absolute;
    top: 10px;
    left: calc(var(--pw-seg) * var(--j) + var(--j) * 4px);
    width: calc(var(--pw-seg));
    height: 8px;
    border-radius: 100px;
    background: var(--pw-pro-track);
}

/* Голубые сегменты лежат всегда; синяя заливка открывается clip-path, бегунок едет transform'ом */
.pw-fill {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 8px;
    border-radius: 100px;
    background-image: var(--pw-g-fill);
    background-repeat: no-repeat;
    background-size: var(--pw-end) 100%;
    clip-path: inset(0 calc(100% - var(--pw-end)) 0 0 round 100px);
    transition: clip-path 250ms var(--ease-out), background-size 250ms var(--ease-out);
}

.pw-thumb-track {
    position: absolute;
    inset: 0;
    pointer-events: none;
    transform: translateX(calc(var(--pw-end) - 14px));
    transition: transform 250ms var(--ease-out);
}

.pw-slider[data-free="true"] .pw-fill {
    background-size: 1px 100%;
    clip-path: inset(0 100% 0 0 round 100px);
}

.pw-slider[data-free="true"] .pw-thumb-track {
    transform: translateX(14px);
}

/* Бегунок при нажатии не уменьшается: с наведения 1.08 он «садится» обратно в 1, захват показывает кольцо 6 px */
.pw-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin-left: -14px;
    box-sizing: border-box;
    border: 4px solid var(--pw-accent);
    border-radius: 50%;
    background: var(--pw-surface);
    transition: transform 160ms var(--ease-out), box-shadow 150ms ease, border-color 200ms ease;
}

/* На шаге Free бегунок зелёный, как подпись «3» и метка FREE */
.pw-slider[data-free="true"] .pw-thumb {
    border-color: var(--pw-free);
}

/* Метка тарифа под бегунком: едет вместе с ним, FREE ↔ PRO меняются прозрачностью.
   По центру бегунка; на крайних шагах прижата к его краю, чтобы не вылезать за полосу. */
.pw-tier {
    position: absolute;
    top: 40px;
    left: 0;
    display: grid;
    transform: translateX(-50%);
    transition: transform 250ms var(--ease-out);
}

.pw-tier > span {
    grid-area: 1 / 1;
    justify-self: center;
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: .04em;
    transition: opacity 150ms ease;
}

.pw-tier-f {
    background: var(--pw-free-soft);
    color: var(--pw-free);
}

.pw-tier-p {
    background: var(--pw-accent);
    color: var(--pw-surface);
}

.pw-slider[data-free="true"] .pw-tier { transform: translateX(-14px); }
.pw-slider[data-free="true"] .pw-tier > span { justify-self: start; }
.pw-slider[data-last="true"] .pw-tier { transform: translateX(calc(-100% + 14px)); }
.pw-slider[data-last="true"] .pw-tier > span { justify-self: end; }
.pw-slider[data-free="true"] .pw-tier-p,
.pw-slider[data-free="false"] .pw-tier-f { opacity: 0; }

.pw-slider:active .pw-thumb { box-shadow: 0 0 0 6px rgba(60, 122, 251, .18); }
.pw-slider:has(input:focus-visible) .pw-thumb { box-shadow: 0 0 0 6px rgba(60, 122, 251, .25); }
.pw-slider[data-free="true"]:active .pw-thumb { box-shadow: 0 0 0 6px rgba(12, 163, 42, .18); }
.pw-slider[data-free="true"]:has(input:focus-visible) .pw-thumb { box-shadow: 0 0 0 6px rgba(12, 163, 42, .25); }

@media (hover: hover) and (pointer: fine) {
    .pw-slider:hover .pw-thumb { transform: scale(1.08); }
    .pw-slider:active .pw-thumb { transform: scale(1); }
}

.pw-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pw-mends {
    justify-content: space-between;
    font-size: 14px;
    color: var(--pw-muted);
}

.pw-mends-free {
    color: var(--pw-free);
}

/* Карточка цены и списки выровнены по внутренним колонкам: (ширина − 9 гаттеров) / 10 + гаттер */
.pw-price-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 56px;
    box-sizing: border-box;
    padding: 56px calc((100% - 216px) / 10 + 24px);
    border-radius: 32px;
    background: var(--pw-g-blue);
    color: #FFFFFF;
}

.pw-price-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.pw-price-label {
    font-size: clamp(24px, 2.22vw, 32px);
    line-height: 1;
    font-weight: 600;
}

.pw-price-value {
    position: relative;
    display: block;
}

.pw-price-old {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
}

.pw-price-now {
    display: block;
    font-size: clamp(24px, 2.22vw, 32px);
    line-height: 1;
    font-weight: 700;
}

.pw-price-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: var(--pw-fs-lg);
    line-height: 1;
}

.pw-price-row > span:first-child { font-weight: 300; }
.pw-price-row > span:last-child { font-weight: 700; }

.pw-price-note {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--pw-muted);
    text-align: center;
}

.pw-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px 24px;
    width: 100%;
    margin-top: 56px;
    box-sizing: border-box;
    padding: 0 calc((100% - 216px) / 10 + 24px);
}

.pw-feat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pw-feat-list li {
    display: flex;
    gap: 8px;
    font-size: 16px;
    line-height: 1.25;
}

.pw-feat-list--pro {
    isolation: isolate;
}

/* Опции PRO включаются при переходе бегунка с Free на платный шаг: крестик «стирается» (150 мс),
   галочка «прорисовывается» (280 мс), строки идут лесенкой по 40 мс. Только stroke-dashoffset и color. */
.pw-pro-li {
    position: relative;
    color: var(--pw-muted);
    transition: color 200ms ease calc(var(--i) * 40ms);
}

.pw-pro-li[data-on="true"] { color: var(--pw-text); }

.pw-ico {
    flex: none;
    overflow: visible;
}

.pw-x {
    stroke: var(--pw-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 15;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 180ms var(--ease-out) calc(var(--i) * 40ms + 140ms);
}

.pw-x2 { transition-delay: calc(var(--i) * 40ms + 200ms); }

.pw-ok {
    stroke: var(--pw-accent);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 21;
    stroke-dashoffset: 21;
    transition: stroke-dashoffset 160ms var(--ease-out) calc(var(--i) * 40ms);
}

[data-on="true"] .pw-x {
    stroke-dashoffset: 15;
    transition-duration: 150ms;
    transition-delay: calc(var(--i) * 40ms);
}

[data-on="true"] .pw-x2 { transition-delay: calc(var(--i) * 40ms + 50ms); }

[data-on="true"] .pw-ok {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 280ms var(--ease-out) calc(var(--i) * 40ms + 130ms);
}

/* ===================== FAQ ===================== */

.pw-faq {
    row-gap: 56px;
}

.pw-faq-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 56px;
    min-width: 0;
}

.pw-faq-help {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-radius: 32px;
    background: var(--pw-g-soft);
}

.pw-faq-help p {
    margin: 0;
    font-size: var(--pw-fs-md);
    line-height: 1.4;
}

/* ===================== ФУТЕР ===================== */

.pw-footer {
    row-gap: 56px;
}

.pw-footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 56px;
}

.pw-footer-logo {
    font-size: 32px;
    line-height: 1;
}

.pw-footer-mail,
.pw-footer-mail:hover {
    font-size: 20px;
    line-height: 1;
    text-decoration: underline;
}

.pw-footer-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    font-size: 16px;
    line-height: 1.25;
}

.pw-footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pw-footer-legal {
    color: var(--pw-muted);
}

.pw-copy {
    padding-top: 24px;
    border-top: 1px solid var(--pw-muted);
    text-align: center;
    font-size: 16px;
    line-height: 1.25;
    color: var(--pw-muted);
}

/* ===================== ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ =====================
   Один раз. Скрываем, только когда скрипт включил движение (класс pw-motion на <html>). */
.pw-motion [data-reveal],
.pw-motion [data-reveal-group] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}

.pw-motion [data-reveal][data-in],
.pw-motion [data-reveal-group][data-in] > * {
    opacity: 1;
    transform: none;
}

.pw-motion [data-reveal-group] > *:nth-child(2) { transition-delay: 60ms; }
.pw-motion [data-reveal-group] > *:nth-child(3) { transition-delay: 120ms; }
.pw-motion [data-reveal-group] > *:nth-child(4) { transition-delay: 180ms; }
.pw-motion [data-reveal-group] > *:nth-child(5) { transition-delay: 240ms; }
.pw-motion [data-reveal-group] > *:nth-child(6) { transition-delay: 300ms; }

/* ===================== АДАПТИВ ===================== */

@media (max-width: 1100px) {
    .s4 { grid-column: span 6; }
}

/* ≤ 900 px (планшет и телефон) */
@media (max-width: 900px) {
    .gap2 { padding-left: 0; }
    .g12 > * { grid-column: 1 / -1 !important; }

    .pw-dnav { display: none !important; }
    .pw-burger { display: inline-flex; }
    .pw-mnav { display: flex; }
    .pw-logo { font-size: 28px; }
    .pw-header { flex-wrap: nowrap; gap: 8px; }
    .pw-hright { flex-wrap: nowrap; gap: 16px; margin-left: auto; }
    .pw-hero { min-height: 0; padding-bottom: 56px; }
    .pw-hero-body { margin-top: 72px; }
    .pw-stats-head { min-height: 0; padding-bottom: 0; }
}

@media (min-width: 601px) and (max-width: 900px) {
    .g12 > .pw-stat { grid-column: span 6 !important; min-height: 200px; }
    .g12 > .pw-stat:last-child { grid-column: 1 / -1 !important; }
}

/* ≤ 600 px (телефон): цифры в 1 колонку; панель без сайдбара; у слайдера — выбранное значение и концы Free / 5000 */
@media (max-width: 600px) {
    .pw-stat { min-height: 180px; }
    .pw-panel { aspect-ratio: auto; }
    .pw-ps { display: none; }
    .pw-steps { display: none; }
    .pw-msel { display: block; }
    .pw-mends { display: flex; order: 1; }
    .pw-slider { order: 2; }
    .pw-badge { gap: 8px; padding: 8px 16px; border-radius: 20px; font-size: 14px; text-align: left; }
    .pw-badge-t { text-wrap: balance; }
    /* меню языка привязано к шапке, а не к кнопке: иначе на узком экране левая колонка уходит за край */
    .pw-header .pw-menu-wrap { position: static; }
    .pw-menu--lang { left: 0; right: 0; min-width: 0; }
}

/* ≤ 360 px: в некоторых языках подписи «Месяц / Год» шире экрана при обычных полях вкладок */
@media (max-width: 360px) {
    .pw-tab { padding-left: 20px; padding-right: 20px; }
}

/* ===================== МЕНЬШЕ ДВИЖЕНИЯ =====================
   Без перемещений и масштаба — только цвет и прозрачность; без параллакса и радара; галочки без прорисовки. */
@media (prefers-reduced-motion: reduce) {
    .pw-ring { animation: none; opacity: .25; transform: scale(2); }
    .pw-radar { animation: none; opacity: 0; }
    .pw-btn,
    .pw-btn:active,
    .pw-slider .pw-thumb { transform: none !important; }
    .pw-chev,
    .pw-tab-pill,
    .pw-thumb-track,
    .pw-tier,
    .pw-fill { transition-duration: 0ms; }
    .pw-js .pw-acc-body,
    .pw-js .pw-acc-body[data-open="true"] { transition: opacity 150ms ease, visibility 0s; }
    .pw-menu { transform: none; transition: opacity 120ms ease, visibility 0s linear 120ms; }
    .pw-menu[data-open="true"] { transform: none; transition: opacity 120ms ease, visibility 0s; }
    .pw-menu-chev { transition: none; }
    .pw-mnav,
    .pw-mnav[data-open="true"] { transform: none; }
    .pw-b1,
    .pw-b2,
    .pw-b3 { transition: none; }
    .pw-x,
    .pw-ok,
    .pw-pro-li { transition: none !important; }
    .pw-motion [data-reveal],
    .pw-motion [data-reveal-group] > * { transform: none; transition: opacity 300ms ease; }
}
