/* ===========================================================
   PeakSite — design tokens & base styles
   Дизайн: figma.com / ПИКСАЙТА, страница «Сайт»
   =========================================================== */

:root {
    /* ----- Цвета ----- */
    --color-page-bg:        #eaf0f3;   /* фон страницы (Index frame bg) */
    --color-band-bg:        #1c1450;   /* фон full-bleed тёмных секций */
    --color-text:           #1c1450;   /* основной текст на светлом */
    --color-text-on-band:   #ffffff;   /* текст на тёмном */
    --color-text-muted:     rgba(28, 20, 80, 0.60);
    --color-text-muted-on-band: rgba(255, 255, 255, 0.80);

    --color-accent:         #c6ae6f;   /* золотой акцент */
    --color-accent-soft:    #e3ea7a;   /* светло-жёлто-зелёный */
    --color-white:          #ffffff;
    --color-border:         rgba(28, 20, 80, 0.20);
    --color-border-on-band: rgba(255, 255, 255, 0.20);

    /* Цвета из элементов карты/иконок (на будущее) */
    --color-aux-teal:       #61b9a6;
    --color-aux-navy:       #023b60;
    --color-aux-deep:       #001e2d;
    --color-aux-green:      #006349;

    /* ----- Типографика ----- */
    --font-display: "Google Sans", "Inter", system-ui, sans-serif;
    --font-accent:  "Handjet", "Google Sans", system-ui, sans-serif;
    --font-body:    "Google Sans", "Inter", system-ui, sans-serif;

    /* Размеры (точно по Figma) */
    --fs-hero:       86px;   /* «Рекламное агентство ПИКСАЙТА» */
    --fs-h2:         66px;   /* section title (Преимущества/Услуги/Кейсы) */
    --fs-quote:      64px;   /* декоративные «» */
    --fs-h3:         42px;   /* «Закажите консультацию» */
    --fs-h4:         32px;   /* подзаголовки карточек */
    --fs-card-title: 24px;
    --fs-body:       20px;   /* основной текст */
    --fs-small:      16px;   /* небольшой текст / capсhar */
    --fs-tiny:       13px;   /* инпуты, мета */

    /* Высота строк */
    --lh-hero: 1.06;
    --lh-h2:   1.06;
    --lh-h3:   1.06;
    --lh-h4:   1.06;
    --lh-body: 1.2;

    /* ----- Радиусы ----- */
    --radius-sm:  12px;
    --radius-md:  24px;
    --radius-lg:  32px;
    --radius-pill: 999px;

    /* ----- Раскладка ----- */
    --container-w: 1106px;            /* содержательная ширина контента */
    --container-pad: 24px;            /* боковой отступ на мобильных */
    --section-gap: 96px;              /* вертикальный отступ между секциями */

    /* ----- Эффекты ----- */
    --shadow-card: 0 4px 24px rgba(28, 20, 80, 0.08);
}

/* ===========================================================
   Сброс и базовые стили
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--color-page-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ===========================================================
   Раскладка: full-bleed band и центрированный контейнер
   =========================================================== */

/* Контейнер фиксированной ширины — для контентных секций */
.ps-container {
    width: 100%;
    max-width: var(--container-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* Full-bleed секция — растягивается на всю ширину окна, без скруглений */
.ps-band {
    width: 100%;
    background: var(--color-band-bg);
    color: var(--color-text-on-band);
    border-radius: 0;
}

/* Внутри band оборачиваем контент в контейнер */
.ps-band > .ps-container { padding-top: 64px; padding-bottom: 64px; }

/* Светлая контентная секция (на --color-page-bg) */
.ps-section {
    padding-top: var(--section-gap);
    padding-bottom: var(--section-gap);
}

/* ===========================================================
   Типографика — утилитарные классы
   =========================================================== */
.ps-h1, .ps-hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-hero);
    line-height: var(--lh-hero);
}
.ps-h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
}
.ps-h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
}
.ps-h4 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-h4);
    line-height: var(--lh-h4);
}
.ps-card-title {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: var(--fs-card-title);
}
.ps-body  { font-size: var(--fs-body);  line-height: var(--lh-body); }
.ps-small { font-size: var(--fs-small); line-height: 1.5; }
.ps-tiny  { font-size: var(--fs-tiny);  line-height: 1.35; }

.ps-accent { font-family: var(--font-accent); font-weight: 700; }

/* ===========================================================
   Кнопки
   =========================================================== */
.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: var(--fs-body);
    line-height: 1;
    background: var(--color-accent);
    color: var(--color-white);
    transition: opacity .2s ease, transform .1s ease;
    cursor: pointer;
    text-decoration: none;
}
.ps-btn:hover  { opacity: .9; }
.ps-btn:active { transform: translateY(1px); }
.ps-btn--ghost {
    background: transparent;
    color: var(--color-text-on-band);
    box-shadow: inset 0 0 0 1px var(--color-border-on-band);
}

/* ===========================================================
   HERO
   =========================================================== */
.ps-hero {
    position: relative;
    overflow: hidden;
    min-height: 800px;
    /* радиальная подсветка #61b9a6 (бирюза) снизу */
    background:
        radial-gradient(ellipse 80% 60% at 50% 110%, #61b9a6 0%, rgba(97,185,166,0) 60%),
        var(--color-band-bg);
    padding-top: 0;
    padding-bottom: 0;
}
.ps-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    padding-top: 117px;
    padding-bottom: 60px;
    align-items: flex-start;
}
.ps-hero__left { flex: 1 1 auto; max-width: 720px; }

.ps-hero__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 86px;
    line-height: 1.06;
    color: var(--color-white);
    margin: 0 0 64px 0;
    letter-spacing: -.01em;
}
.ps-hero__lead {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.06;
    color: var(--color-white);
    max-width: 677px;
}
.ps-hl { color: var(--color-aux-teal); }
.ps-hero__moon {
    position: absolute;
    top: 56px;
    left: 56%;
    right: auto;
    width: 44px;
    height: 44px;
    z-index: 3;
    pointer-events: none;
}

/* Карточка «Гарантия результата»: внешнее белое кольцо + белое тело (как в Figma) */
.ps-hero__card {
    width: 318px;
    flex-shrink: 0;
    margin-left: 100px;
    margin-top: 0;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 32px;
    box-sizing: border-box;
    color: var(--color-text);
}
.ps-hero__card-body {
    background: var(--color-white);
    border: 1px solid var(--color-page-bg);
    border-radius: 24px;
    padding: 24px;
}
.ps-hero__card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.06;
    color: var(--color-band-bg);
    margin: 0 0 20px 0;
}
.ps-hero__card-text {
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 24px;
}
.ps-hero__card-btn {
    width: 100%;
    padding: 12px 18px;
}

/* Иллюстрация гор — full-bleed внизу, behind контента */
.ps-hero__mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 64%;
    background-image: url(/img/figma/hero-mountains.png);
    background-size: 1440px auto;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .ps-hero { min-height: 640px; }
    .ps-hero__inner { padding-top: 72px; flex-direction: column; gap: 32px; }
    .ps-hero__title { font-size: 56px; margin-bottom: 32px; }
    .ps-hero__lead { font-size: 22px; }
    .ps-hero__card { margin-left: 0; width: 100%; max-width: 360px; }
    .ps-hero__mountains { background-size: 1100px auto; height: 40%; }
    .ps-hero__moon { display: none; }
}
@media (max-width: 640px) {
    .ps-hero { min-height: 560px; }
    .ps-hero__title { font-size: 40px; }
    .ps-hero__lead { font-size: 18px; }
    .ps-hero__card-title { font-size: 24px; }
    .ps-hero__card-text { font-size: 16px; }
    .ps-hero__mountains { background-size: 800px auto; }
}

/* ===========================================================
   Header — белая pill-капсула с навигацией
   =========================================================== */
.ps-header {
    position: sticky;
    top: 20px;
    z-index: 30;
    margin-top: 20px;
    pointer-events: none; /* пропускаем клики мимо капсулы */
}
.ps-header__inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    max-width: 1332px;          /* шапка-пилюля шире контента (как в Figma) */
    background: var(--color-white);
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    box-shadow: var(--shadow-card);
}
.ps-header__brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    color: var(--color-band-bg);
    letter-spacing: -.01em;
}
.ps-header__nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 20px;
    color: var(--color-band-bg);
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}
.ps-header__nav a { color: inherit; white-space: nowrap; }
.ps-header__nav a:hover { opacity: .7; }

.ps-header__cta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    color: var(--color-band-bg);
}
.ps-header__soc { display: inline-flex; align-items: center; height: 22px; }
.ps-header__soc img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }

.ps-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 18px;
    white-space: nowrap;
    color: var(--color-band-bg);
}
.ps-header__phone img { flex: 0 0 auto; }

/* шапка не должна переноситься — поджимаем на узких десктопах/планшетах */
@media (max-width: 1180px) {
    .ps-header__nav { gap: 16px; font-size: 17px; }
    .ps-header__inner { gap: 16px; padding: 12px 20px; }
    .ps-header__phone { font-size: 16px; }
}

/* ===========================================================
   Footer
   =========================================================== */
.ps-footer { margin-top: 64px; }

.ps-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    padding-bottom: 32px;
}
.ps-footer__nav {
    display: flex;
    gap: 32px;
    font-size: 20px;
    color: var(--color-band-bg);
}
.ps-footer__nav a:hover { opacity: .7; }
.ps-footer__soc { display: flex; gap: 14px; }
.ps-footer__soc a { width: 28px; height: 28px; display: inline-flex; }

.ps-footer__bottom {
    background: var(--color-band-bg);
    color: var(--color-text-on-band);
}
.ps-footer__bottom-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 44px;
    gap: 24px;
}
.ps-footer__brandline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ps-footer__brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    color: var(--color-white);
    letter-spacing: -.01em;
}
.ps-footer__policy { opacity: .9; }
.ps-footer__policy:hover { opacity: 1; }

/* ===========================================================
   Утилиты
   =========================================================== */
.ps-grid { display: grid; gap: 24px; }
.ps-flex { display: flex; gap: 24px; }
.ps-center { display: flex; align-items: center; justify-content: center; }

/* Резерв для адаптива — будем уточнять при мобильной разработке */
@media (max-width: 1024px) {
    :root {
        --fs-hero: 56px;
        --fs-h2: 44px;
        --fs-h3: 32px;
        --fs-h4: 26px;
        --fs-body: 18px;
        --section-gap: 64px;
    }
}
@media (max-width: 640px) {
    :root {
        --fs-hero: 36px;
        --fs-h2: 30px;
        --fs-h3: 24px;
        --fs-h4: 22px;
        --fs-body: 16px;
        --section-gap: 48px;
    }
}

/* ===========================================================
   Section title — общий заголовок секции
   =========================================================== */
.ps-section__title {
    margin-bottom: 40px;
}
.ps-band .ps-section__title { color: var(--color-white); }

/* ===========================================================
   2. ПРЕИМУЩЕСТВА
   =========================================================== */
.ps-adv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 102px;
    row-gap: 56px;
    margin-top: 76px;
}
.ps-adv {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 24px;
    align-items: start;
}
.ps-adv__mark {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: var(--color-band-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}
.ps-adv__mark svg { width: 18px; height: 18px; }
.ps-adv__title  {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.18;
    color: var(--color-aux-teal);
    margin-bottom: 14px;
}
.ps-adv__text {
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-text);
}

/* ===========================================================
   3. КЛИЕНТЫ (band)
   =========================================================== */
.ps-clients .ps-container { padding-top: 56px; padding-bottom: 56px; }
.ps-clients__track {
    overflow: hidden;
    margin: 30px 0 28px;
}
.ps-clients__strip {
    height: 152px;
    background-image: url(/img/figma/clients-strip.png);
    background-repeat: repeat-x;
    background-position: left center;
    background-size: auto 100%;
    animation: ps-clients-scroll 80s linear infinite;
}
@keyframes ps-clients-scroll {
    from { background-position: 0 center; }
    to   { background-position: -6119px center; }
}
.ps-clients__track:hover .ps-clients__strip { animation-play-state: paused; }

/* Пагинатор (общий) */
.ps-pager__arr, .ps-clients__pager .ps-pager__arr {
    width: 32px; height: 32px; border-radius: 50%;
    border: 0;
    background: var(--color-aux-teal);
    color: var(--color-white);
    cursor: pointer;
    font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center;
}
.ps-pager__dots {
    display: inline-flex; align-items: center; gap: 12px;
    margin: 0 16px;
}
.ps-pager__dots i {
    width: 24px; height: 4px; border-radius: 12px;
    background: #D9D9D9;
    display: inline-block;
    transition: width .25s ease, height .25s ease, background .25s ease;
}
.ps-pager__dots i.is-active {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-aux-teal);
}
.ps-clients__pager, .ps-reviews__pager, .ps-cases__pager {
    display: flex; align-items: center; justify-content: center;
}

/* ===========================================================
   4. УСЛУГИ
   =========================================================== */
.ps-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 76px;
}
.ps-service {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px 24px 28px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-card);
}
.ps-service__icon {
    width: 63px; height: 63px;
    border-radius: 50%;
    background: var(--color-page-bg);
    margin-bottom: 16px;
    background-image: url(/img/figma/service-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 36px auto;
}
.ps-service__title {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: auto;
}
.ps-service__btn {
    align-self: flex-start;
    margin-top: 24px;
}

/* ===========================================================
   5/11. ФОРМА «Закажите консультацию»
   =========================================================== */
.ps-form {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 56px 64px 48px;
    box-shadow: var(--shadow-card);
}
.ps-form__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 42px;
    line-height: 1.06;
    margin-bottom: 10px;
}
.ps-form__lead {
    font-size: 20px;
    margin-bottom: 36px;
    color: var(--color-text-muted);
}
.ps-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.ps-field { display: block; }
.ps-field--wide { margin-bottom: 36px; }
.ps-field__label {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}
.ps-field__input {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    padding: 6px 0 10px;
    font-size: 24px;
    line-height: 1.06;
    color: var(--color-text);
}
.ps-field__input::placeholder { color: var(--color-text-muted); }
.ps-field__input:focus { outline: 0; border-bottom-color: var(--color-accent); }
.ps-field__textarea { resize: vertical; min-height: 60px; }

.ps-form__attach {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 24px;
}
.ps-form__file-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-pill);
    color: var(--color-band-bg);
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 20px;
    cursor: pointer;
}
.ps-form__file-hint {
    font-family: 'Golos Text', var(--font-body);
    font-size: 14px;
    color: var(--color-text-muted);
}

.ps-form__submit {
    display: flex;
    align-items: flex-start;
    gap: 26px;
}
.ps-form__btn {
    padding: 14px 32px;
    min-width: 178px;
}
.ps-form__note {
    flex: 1;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
}
.ps-form__note a { color: var(--color-text); text-decoration: underline; }

/* ===========================================================
   6. ОТЗЫВЫ (band)
   =========================================================== */
.ps-reviews__grid {
    overflow: hidden;
    margin-top: 60px;
}
.ps-reviews__track {
    display: flex;
    gap: 48px;
    will-change: transform;
}
.ps-reviews__track > .ps-review {
    flex: 0 0 calc((100% - 96px) / 3);
    box-sizing: border-box;
}
.ps-review {
    color: var(--color-white);
}
.ps-review__quote {
    display: inline-block;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 64px;
    line-height: 1.1;
    color: var(--color-aux-teal);
    margin-bottom: 14px;
}
.ps-review__quote-text {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.18;
    margin-bottom: 24px;
}
.ps-review__body {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted-on-band);
    margin-bottom: 28px;
}
.ps-review__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ps-review__name {
    font-weight: 500;
    font-size: 20px;
}
.ps-review__role {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text-muted-on-band);
}
.ps-reviews__pager { margin-top: 56px; }

/* ===========================================================
   7. КЕЙСЫ
   =========================================================== */
.ps-cases-grid {
    overflow: hidden;
    margin-top: 60px;
}
.ps-cases__track {
    display: flex;
    gap: 32px;
    align-items: stretch;
    will-change: transform;
}
.ps-cases__track > .ps-case {
    flex: 0 0 calc((100% - 64px) / 3);
    box-sizing: border-box;
}
.ps-case {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
}
.ps-case__city {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 12px;
}
.ps-case__image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #c8d1ff 0%, #b9c4f5 100%);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}
.ps-case__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.06;
    margin-bottom: 18px;
}
.ps-case__row { margin-bottom: 12px; }
.ps-case__label {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 4px;
    display: block;
}
.ps-case__text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text);
}
.ps-case__result {
    margin: 18px 0;
    background: var(--color-page-bg);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: flex;
    gap: 18px;
}
.ps-case__result-label {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 23px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: var(--color-accent);
    align-self: stretch;
}
.ps-case__result-text {
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
}
.ps-case__btn {
    align-self: flex-start;
    background: transparent;
    color: var(--color-band-bg);
    border: 1px solid var(--color-accent);
    margin-top: auto;
}
.ps-cases__pager { margin-top: 48px; }

/* ===========================================================
   8. СТАТЬИ (band)
   =========================================================== */
.ps-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}
.ps-article {
    color: var(--color-white);
    display: flex;
    flex-direction: column;
}
.ps-article__image {
    width: 100%;
    height: 220px;
    border-radius: var(--radius-md);
    background-color: rgba(255,255,255,0.08);
    background-size: cover;
    background-position: center;
    margin-bottom: 22px;
}
.ps-article__date {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-text-muted-on-band);
    margin-bottom: 10px;
}
.ps-article__title {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 18px;
}
.ps-article__lead {
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-text-muted-on-band);
    margin-bottom: 26px;
    flex: 1;
}
.ps-article__btn {
    align-self: flex-start;
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

/* ===========================================================
   9. ЭКСПЕРТИЗА
   =========================================================== */
.ps-experts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 60px;
}
.ps-expert {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ps-expert__image {
    width: 100%;
    aspect-ratio: 201/284;
    border-radius: var(--radius-md);
    background-color: #d9d9d9;
    background-size: cover;
    background-position: center;
    margin-bottom: 16px;
}
.ps-expert__btn {
    padding: 8px 20px;
    font-size: 16px;
    background: transparent;
    color: var(--color-band-bg);
    border: 1px solid var(--color-accent);
    margin-bottom: 14px;
}
.ps-expert__title {
    font-size: 16px;
    text-align: center;
}

/* ===========================================================
   10. О КОМПАНИИ
   =========================================================== */
.ps-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 60px;
    align-items: stretch;
}
.ps-about__card {
    background: var(--color-band-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--color-white);
    display: flex;
    align-items: center;
}
.ps-about__text {
    font-size: 20px;
    line-height: 1.2;
    color: var(--color-white);
}
.ps-about__person {
    position: relative;
    align-self: stretch;
    background: linear-gradient(135deg, #d8e0e8 0%, #bcc6d0 100%);
    border-radius: var(--radius-lg);
    min-height: 448px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-image: url(/img/figma/about-person.png);
    background-size: cover;
    background-position: center;
}
.ps-about__photo { display: none; }
.ps-about__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.06;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.ps-about__role {
    font-weight: 500;
    font-size: 13px;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
    margin-top: 8px;
}

/* ===========================================================
   12. КОНТАКТЫ (band)
   =========================================================== */
.ps-contacts__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 40px;
    color: var(--color-white);
}
.ps-contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ps-contacts__item {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 14px;
    font-size: 20px;
    line-height: 1.2;
}
.ps-contacts__ico {
    width: 28px; height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-band-bg);
    border-radius: var(--radius-pill);
    font-size: 14px;
}
.ps-contacts__item a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); }
.ps-contacts__item a:hover { text-decoration-color: currentColor; }
.ps-contacts__map {
    width: 100%;
    height: 304px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.08);
}
.ps-contacts__map ymaps { border-radius: var(--radius-md); }
.ps-contacts__map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}
.ps-contacts__map-fallback:hover { text-decoration: underline; }

/* ===========================================================
   Адаптив для всех новых блоков
   =========================================================== */
@media (max-width: 1024px) {
    .ps-adv-grid       { column-gap: 40px; row-gap: 40px; }
    .ps-services-grid  { grid-template-columns: repeat(2, 1fr); }
    .ps-reviews__track { gap: 32px; }
    .ps-reviews__track > .ps-review { flex-basis: calc((100% - 32px) / 2); }
    .ps-cases__track   { gap: 24px; }
    .ps-cases__track   > .ps-case   { flex-basis: calc((100% - 24px) / 2); }
    .ps-articles-grid  { grid-template-columns: 1fr; gap: 24px; }
    .ps-experts-grid   { grid-template-columns: repeat(3, 1fr); }
    .ps-about          { grid-template-columns: 1fr; gap: 40px; }
    .ps-contacts__row  { grid-template-columns: 1fr; }
    .ps-form           { padding: 36px 24px; }
    .ps-form__row      { grid-template-columns: 1fr; }
    .ps-form__submit   { flex-direction: column; gap: 16px; }
}
@media (max-width: 640px) {
    .ps-adv-grid       { grid-template-columns: 1fr; row-gap: 28px; }
    .ps-services-grid  { grid-template-columns: 1fr; }
    .ps-experts-grid   { grid-template-columns: repeat(2, 1fr); }
    .ps-reviews__track > .ps-review { flex-basis: 100%; }
    .ps-cases__track   > .ps-case   { flex-basis: 100%; }
}

/* пейджер слайдеров: интерактивные стрелки + точки (единый стиль из Figma) */
.ps-pager__arr { transition: opacity .2s ease; }
.ps-pager__arr:hover { opacity: .85; }
.ps-pager__dots i { cursor: pointer; }

/* ===========================================================
   Внутренние страницы (Услуги/Кейс/Статьи/Контакты)
   =========================================================== */
.ps-crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 16px; color: var(--color-text-muted);
    margin-bottom: 20px;
}
.ps-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.ps-crumbs a:hover { color: var(--color-text); }
.ps-crumbs__sep { opacity: .5; }
.ps-page-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: var(--fs-h2); line-height: var(--lh-h2);
    color: var(--color-text); margin: 0 0 40px; letter-spacing: -.01em;
}
.ps-page-lead { font-size: 20px; line-height: 1.4; color: var(--color-text-muted); max-width: 760px; margin: -20px 0 40px; }

/* Контакты на светлой странице */
.ps-contacts__row.ps-contacts--light { color: var(--color-text); }
.ps-contacts--light .ps-contacts__item a { color: inherit; text-decoration-color: rgba(28,20,80,.3); }
.ps-contacts__map--light { background: rgba(28,20,80,.06); }
.ps-contacts__map--light .ps-contacts__map-fallback { color: var(--color-text); }

/* Крошки/заголовок на тёмной полосе (Статьи-список) */
.ps-crumbs--on-band, .ps-crumbs--on-band a { color: var(--color-text-muted-on-band); }
.ps-crumbs--on-band a:hover { color: #fff; }
.ps-page-title--on-band { color: var(--color-white); }

/* Детальные страницы (Кейс/Услуга/Статья) */
.ps-detail__image {
    width: 100%; height: 420px; border-radius: var(--radius-lg);
    background: var(--color-page-bg) center/cover no-repeat;
    margin: 24px 0 40px;
}
.ps-detail__blocks { display: flex; flex-direction: column; gap: 28px; max-width: 900px; }
.ps-detail__text { font-size: 18px; line-height: 1.5; color: var(--color-text); margin-top: 8px; }
.ps-case__result--wide { max-width: 900px; }

/* Страница статьи */
.ps-article-page { max-width: 860px; }
.ps-article__date--page { display: block; color: var(--color-text-muted); margin-bottom: 12px; font-size: 15px; }
.ps-article-page__body { font-size: 18px; line-height: 1.6; color: var(--color-text); }
.ps-article-page__body p { margin: 0 0 18px; }

@media (max-width: 640px) {
    .ps-detail__image { height: 240px; }
}

/* ===========================================================
   Кликабельные карточки (кейсы, статьи) — «растянутая» ссылка
   =========================================================== */
.ps-article { position: relative; }
.ps-case, .ps-article { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.ps-case:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,20,80,.14); }
.ps-article:hover .ps-article__title { color: var(--color-accent); }
.ps-case__btn::after,
.ps-article__btn::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.ps-case__btn, .ps-article__btn { position: relative; }

/* Списочные страницы (Кейсы, Отзывы) — статичная сетка вместо карусели */
.ps-cases-grid--list {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.ps-reviews__grid--list { overflow: visible; }
.ps-reviews__track--list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 48px;
}
@media (max-width: 1100px) {
    .ps-cases-grid--list   { grid-template-columns: repeat(2, 1fr); }
    .ps-reviews__track--list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .ps-cases-grid--list   { grid-template-columns: 1fr; }
    .ps-reviews__track--list { grid-template-columns: 1fr; }
}

/* ===========================================================
   Кликабельная карточка услуги (overlay-ссылка на страницу услуги)
   Кнопка «Заказать» остаётся поверх и ведёт на форму.
   =========================================================== */
.ps-service { position: relative; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.ps-service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(28,20,80,.14); }
.ps-service:hover .ps-service__title { color: var(--color-accent); }
.ps-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    font-size: 0;
}
.ps-service__btn { position: relative; z-index: 2; }

.ps-case__btn { position: relative; z-index: 2; }

/* ===========================================================
   Клиенты — лента логотипов из БД (виджет ps_widget_clients).
   Статичный .ps-clients__strip (PNG) остаётся фолбэком, если логотипов нет.
   =========================================================== */
.ps-clients__row{
    display:flex; align-items:center; gap:64px;
    width:max-content;
    animation:ps-clients-marquee 40s linear infinite;
}
.ps-clients__track:hover .ps-clients__row{ animation-play-state:paused; }
@keyframes ps-clients-marquee{ from{transform:translateX(0);} to{transform:translateX(-50%);} }
.ps-clients__logo{
    flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center;
    height:90px;
}
.ps-clients__logo img{
    max-height:90px; max-width:200px; width:auto; object-fit:contain; display:block;
}

/* ===========================================================
   Figma-сверка 07.07: внутренние страницы (uslugi/statyi/statya),
   теги-фильтры, куки-баннер, согласие в формах, типографика статей.
   =========================================================== */

/* --- Хлебные крошки-«пилюля» по центру (Figma Breth) --- */
.ps-crumbs--pill {
    display: flex; justify-content: center; margin-bottom: 24px;
}
.ps-crumbs--pill .ps-crumbs__inner {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--color-white);
    border: 1px solid #1C145022;
    border-radius: 900px;
    padding: 6px 18px;
    font-family: var(--font-display);
    font-size: 13px; font-weight: 500;
    color: var(--color-band-bg);
    text-transform: uppercase; letter-spacing: .04em;
}
.ps-crumbs--pill a { color: var(--color-band-bg); text-decoration: none; }
.ps-crumbs--pill a:hover { color: var(--color-accent); }
.ps-crumbs--pill .ps-crumbs__sep { opacity: .5; }
.ps-crumbs--pill .ps-crumbs__home svg { width: 13px; height: 13px; display: block; }

/* --- Центрированная шапка страницы (H1 86 + лид 20, Figma) --- */
.ps-page-head { text-align: center; margin-bottom: 40px; }
.ps-page-head .ps-page-title { text-align: center; margin-bottom: 24px; }
.ps-page-head__meta {
    font-family: var(--font-display); font-size: 13px; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--color-band-bg); margin-bottom: 16px;
}
.ps-page-head__lead {
    font-family: var(--font-display); font-size: 20px; line-height: 1.25;
    color: var(--color-band-bg); max-width: 720px; margin: 0 auto;
}

/* --- Теги-фильтры (Figma label: Handjet 700 20, r900, pad 16/6) --- */
.ps-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 40px; }
.ps-tag {
    display: inline-flex; align-items: center;
    font-family: var(--font-accent); font-weight: 700; font-size: 20px;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--color-band-bg);
    background: transparent;
    border: 1px solid var(--color-band-bg);
    border-radius: 900px;
    padding: 6px 16px;
    cursor: pointer; text-decoration: none;
    transition: background .15s, color .15s;
}
.ps-tag:hover { background: #1C145014; }
.ps-tag.is-active { background: var(--color-band-bg); color: var(--color-white); }

/* --- Карточки услуг v2 (Figma Usluga: белая r24 pad12, иконка 63, title Handjet 32 UPPER center, кнопка full-width) --- */
.ps-service--fig {
    display: flex; flex-direction: column; align-items: center;
    background: var(--color-white); border-radius: 24px;
    padding: 12px; gap: 16px;
    text-align: center;
}
.ps-service--fig .ps-service__body {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    padding: 24px 0 8px; flex: 1 1 auto; justify-content: flex-start;
}
.ps-service--fig .ps-service__pic { width: 63px; height: 63px; object-fit: contain; display: block; }
.ps-service--fig .ps-service__title {
    font-family: var(--font-accent); font-weight: 700; font-size: 32px;
    line-height: 1.2; text-transform: uppercase;
    color: var(--color-band-bg); margin: 0;
}
.ps-service--fig .ps-service__btn { width: 100%; border-radius: 24px; }
.ps-services-grid--fig { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .ps-services-grid--fig { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ps-services-grid--fig { grid-template-columns: 1fr; } }
.ps-service--fig[hidden] { display: none; }

/* --- Кейсы на внутренних страницах: тёмный band (Figma uslugi) --- */
.ps-cases-band { }
.ps-cases-band .ps-section__title { color: var(--color-white); }

/* --- Статьи: светлый список (Figma statyi) --- */
.ps-articles--light { background: transparent; }
.ps-articles--light .ps-article__title { color: var(--color-band-bg); }
.ps-articles--light .ps-article__lead { color: #1C1450cc; }
.ps-articles--light .ps-article__date { color: #1C145099; }
.ps-articles--light .ps-article__btn {
    width: 100%; text-align: center; justify-content: center;
    background: var(--color-accent); color: var(--color-white); border: 0;
}
.ps-article[hidden] { display: none; }

/* --- Типографика статьи (Figma statya: Heading 2..5, списки, таблицы) --- */
.ps-prose { font-family: var(--font-display); color: var(--color-band-bg); font-size: 16px; line-height: 1.5; }
.ps-prose h2 { font-size: 40px; font-weight: 400; margin: 48px 0 20px; color: var(--color-band-bg); }
.ps-prose h3 { font-size: 28px; font-weight: 400; margin: 40px 0 16px; }
.ps-prose h4 { font-size: 20px; font-weight: 500; margin: 32px 0 12px; }
.ps-prose h5 { font-size: 16px; font-weight: 500; margin: 24px 0 10px; }
.ps-prose p { margin: 0 0 14px; }
.ps-prose ol, .ps-prose ul { margin: 0 0 18px; padding-left: 22px; }
.ps-prose li { margin-bottom: 10px; }
.ps-prose a { color: var(--color-aux-teal); }
.ps-prose img { max-width: 100%; border-radius: var(--radius-md); }
.ps-prose table { width: 100%; border-collapse: collapse; margin: 24px 0; background: var(--color-white); border-radius: 8px; overflow: hidden; }
.ps-prose table th {
    text-align: left; font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
    padding: 12px 16px; border-bottom: 2px solid var(--color-band-bg); color: var(--color-band-bg);
}
.ps-prose table td { padding: 12px 16px; border-bottom: 1px solid #1C145014; vertical-align: top; }
.ps-prose table tr:first-child td { border-top: 2px solid var(--color-band-bg); }

/* Шапка статьи */
.ps-article-hero { max-width: 880px; margin: 0 auto 28px; }
.ps-article-hero__img {
    width: 100%; height: 440px; border-radius: 28px;
    background-size: cover; background-position: center;
    background-color: #c8d1ff;
}
.ps-article-body { max-width: 880px; margin: 0 auto; }

/* --- Похожие статьи (band) --- */
.ps-related { }
.ps-related .ps-section__title { color: var(--color-white); }

/* --- SEO-текст внизу списковых страниц --- */
.ps-seo-text { max-width: 880px; margin: 56px auto 0; }

/* --- Куки-баннер (Figma: navy 60%, r32, pad32, кнопка ОК gold) --- */
.ps-cookie {
    position: fixed; right: 24px; bottom: 24px; z-index: 9000;
    width: 342px; max-width: calc(100vw - 32px);
    background: rgba(28, 20, 80, .78);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 32px; padding: 28px 32px;
    color: var(--color-white);
    font-family: var(--font-display); font-size: 16px; line-height: 1.4;
    box-shadow: 0 18px 50px rgba(28,20,80,.35);
    display: none;
}
.ps-cookie.is-open { display: block; }
.ps-cookie a { color: var(--color-aux-teal); text-decoration: underline; }
.ps-cookie__btn {
    margin-top: 18px; width: 100%;
    background: var(--color-accent); color: var(--color-white);
    border: 0; border-radius: 24px; height: 36px;
    font-family: var(--font-accent); font-weight: 600; font-size: 20px;
    letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
}
.ps-cookie__btn:hover { filter: brightness(1.05); }

/* --- Согласие в форме (чекбокс у кнопки отправки) --- */
.ps-consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; max-width: 640px; }
.ps-consent input[type=checkbox] {
    appearance: none; -webkit-appearance: none;
    width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px;
    border: 1.5px solid var(--color-band-bg); border-radius: 6px;
    background: var(--color-white); cursor: pointer; position: relative;
}
.ps-consent input[type=checkbox]:checked { background: var(--color-band-bg); }
.ps-consent input[type=checkbox]:checked:after {
    content: ""; position: absolute; left: 6px; top: 2px;
    width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ps-consent__text { font-size: 13px; line-height: 1.45; color: #1C1450b3; }
.ps-consent__text a { color: var(--color-aux-teal); text-decoration: underline; }
.ps-band .ps-consent__text { color: #ffffffb3; }

/* --- Страница «Заявка принята» --- */
.ps-thanks { min-height: 46vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.ps-thanks h1 { font-family: var(--font-display); font-weight: 400; font-size: 72px; color: var(--color-band-bg); margin: 0 0 18px; }
.ps-thanks p { font-family: var(--font-display); font-size: 18px; color: #1C1450b3; }
@media (max-width: 700px) { .ps-thanks h1 { font-size: 40px; } }

/* согласие: единый блок у кнопки отправки, в стиле прежнего текста */
.ps-form__submit .ps-consent { margin: 0; max-width: none; align-items: flex-start; }
.ps-form__submit .ps-consent input[type=checkbox] { margin-top: 3px; }

/* ===========================================================
   Страница 404 (modules/404) — в стиле HERO
   =========================================================== */
.ps-404 {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 132px);
    display: flex;
    align-items: center;
    padding-top: 96px;
    padding-bottom: 168px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 118%, #61b9a6 0%, rgba(97,185,166,0) 60%),
        var(--color-band-bg);
}
.ps-404__mountains {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 40%;
    background: url(/img/figma/hero-mountains.png) center bottom / 1180px auto no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: .7;
}
.ps-404__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.ps-404__code {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(120px, 22vw, 264px);
    line-height: .86;
    letter-spacing: .01em;
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 10px 44px rgba(97,185,166,.38));
    margin-bottom: 20px;
    user-select: none;
}
.ps-404__moon {
    width: clamp(92px, 16.5vw, 204px);
    height: auto;
    margin: 0 -.03em;
    animation: ps404-float 6s ease-in-out infinite;
}
@keyframes ps404-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.ps-404__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    color: var(--color-white);
    margin: 0 0 16px;
}
.ps-404__text {
    font-family: var(--font-display);
    font-size: var(--fs-body);
    line-height: 1.35;
    color: var(--color-text-muted-on-band);
    max-width: 560px;
    margin: 0 auto 36px;
}
.ps-404__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.ps-404__links {
    display: flex;
    gap: 10px 28px;
    justify-content: center;
    flex-wrap: wrap;
}
.ps-404__links a {
    font-family: var(--font-display);
    font-size: var(--fs-small);
    color: var(--color-text-muted-on-band);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.ps-404__links a:hover {
    color: var(--color-white);
    border-color: var(--color-aux-teal);
}
@media (max-width: 640px) {
    .ps-404 { min-height: auto; padding-top: 56px; padding-bottom: 80px; }
    .ps-404__mountains { background-size: 820px auto; height: 36%; }
    .ps-404__code { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ps-404__moon { animation: none; }
}


/* ===========================================================
   Мобильная шапка (бургер) и футер — добавлено 04.08.2026
   Десктоп не затронут: .ps-header__menu = display:contents,
   т.е. nav и cta остаются прямыми flex-элементами .ps-header__inner.
   =========================================================== */
.ps-header__menu { display: contents; }
.ps-burger { display: none; }

@media (max-width: 960px) {
    .ps-header__inner {
        position: relative;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 14px 10px 20px;
    }
    .ps-header__brand { font-size: 24px; }

    /* кнопка-бургер: три полосы, превращается в крестик */
    .ps-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px; height: 44px;
        flex: 0 0 auto;
        padding: 0; margin: 0;
        background: none; border: 0; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ps-burger span {
        display: block;
        width: 24px; height: 2px;
        border-radius: 2px;
        background: var(--color-band-bg);
        transition: transform .25s ease, opacity .18s ease;
    }
    .ps-header.is-open .ps-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .ps-header.is-open .ps-burger span:nth-child(2) { opacity: 0; }
    .ps-header.is-open .ps-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* выпадающая панель меню */
    .ps-header__menu {
        display: block;
        position: absolute;
        left: 0; right: 0;
        top: calc(100% + 10px);
        background: var(--color-white);
        border-radius: 24px;
        box-shadow: var(--shadow-card);
        padding: 6px 0 0;
        overflow: hidden;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    }
    .ps-header.is-open .ps-header__menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .ps-header__nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        font-size: 18px;
    }
    .ps-header__nav a {
        padding: 14px 22px;
        border-bottom: 1px solid var(--color-border);
    }
    .ps-header__nav a:last-child { border-bottom: 0; }

    /* телефон отдельной строкой, соцсети под ним в ряд */
    .ps-header__cta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
        padding: 16px 22px 20px;
        border-top: 1px solid var(--color-border);
    }
    .ps-header__phone {
        order: -1;
        flex: 1 0 100%;
        justify-content: center;
        font-size: 19px;
        font-weight: 600;
    }
    .ps-header__soc { height: 26px; }
}

/* ----------------------- Футер на мобильных ----------------------- */
@media (max-width: 640px) {
    .ps-footer__top {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        padding-top: 28px;
        padding-bottom: 28px;
    }
    /* пункты меню в два столбца */
    .ps-footer__nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
        font-size: 17px;
    }
    /* соцсети ниже, в строку по центру */
    .ps-footer__soc {
        justify-content: center;
        gap: 22px;
    }
    .ps-footer__soc a { width: 30px; height: 30px; }

    .ps-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    /* ссылки на политики — каждая со своей строки, а не сплошным текстом */
    .ps-footer__policies {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

/* Отступ капсулы шапки от краёв экрана на мобильных: панель меню позиционируется
   от .ps-header__inner, поэтому её края автоматически совпадут с капсулой. */
@media (max-width: 960px) {
    .ps-header__inner {
        width: auto;
        margin-left: 12px;
        margin-right: 12px;
    }
}

/* На планшетах панель не растягиваем на всю ширину — прижимаем к кнопке справа */
@media (min-width: 600px) and (max-width: 960px) {
    .ps-header__menu {
        left: auto;
        width: 360px;
        max-width: calc(100% - 24px);
    }
}


/* ===========================================================
   ps-hero-top-mobile — hero от самого верха экрана на мобильных (04.08.2026)
   Шапка остаётся sticky и в потоке (важно для внутренних страниц, где hero нет),
   а сам hero подтягивается наверх на её высоту + верхний отступ 20px.
   --ps-header-h выставляет initHeaderHeight() в js/ps-site.js; 64px — запасное
   значение на случай отключённого JS.
   =========================================================== */
@media (max-width: 960px) {
    #ps-main > .pb-canvas { margin-top: 0; }
    #ps-main .ps-hero {
        margin-top: calc(-1 * (var(--ps-header-h, 64px) + 20px));
    }
    /* Содержимое не должно уехать под капсулу.
       ВАЖНО: селектор с .ps-band обязателен — иначе правило перебивается
       правилом `.ps-band > .ps-container { padding-top: 64px }` (специфичность
       0,2,0 против 0,1,0). По той же причине НЕ работают исходные
       `.ps-hero__inner { padding-top: 117px }` и `72px` в медиа 1024. */
    .ps-band > .ps-hero__inner {
        padding-top: calc(var(--ps-header-h, 64px) + 52px);
    }
}


/* ===========================================================
   Подменю в главном меню (04.08.2026). Два уровня: пункт + выпадашка.
   Дочерние страницы приходят из tmp_pages.parent_page_id (index.php -> children).
   =========================================================== */
.ps-nav-item { position: relative; display: inline-flex; align-items: center; }
.ps-nav-item__link { display: inline-flex; align-items: center; gap: 7px; color: inherit; white-space: nowrap; }
.ps-nav-item__link:hover { opacity: .7; }
.ps-nav-item__toggle { display: none; }

/* стрелка-шеврон */
.ps-nav-item__arrow {
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
    flex: 0 0 auto;
}
.ps-nav-item:hover .ps-nav-item__arrow,
.ps-nav-item:focus-within .ps-nav-item__arrow { transform: translateY(1px) rotate(-135deg); }

.ps-submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 230px;
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 40;
}
/* невидимый мостик, чтобы курсор не терял меню в зазоре */
.ps-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.ps-nav-item:hover .ps-submenu,
.ps-nav-item:focus-within .ps-submenu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px);
}
.ps-submenu a { padding: 10px 20px; font-size: 17px; color: var(--color-band-bg); white-space: nowrap; }
.ps-submenu a:hover { opacity: .7; }

/* ---------- мобильная версия: аккордеон внутри бургер-панели ---------- */
@media (max-width: 960px) {
    .ps-header__nav .ps-nav-item { display: block; position: relative; }
    .ps-header__nav .ps-nav-item__link {
        display: block;
        padding: 14px 56px 14px 22px;
        border-bottom: 1px solid var(--color-border);
    }
    .ps-nav-item__arrow { display: none; }

    .ps-nav-item__toggle {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 0; right: 0;
        width: 54px; height: 52px;
        padding: 0; margin: 0;
        background: none; border: 0; cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ps-nav-item__toggle::before {
        content: "";
        width: 9px; height: 9px;
        border-right: 2px solid var(--color-band-bg);
        border-bottom: 2px solid var(--color-band-bg);
        transform: translateY(-2px) rotate(45deg);
        transition: transform .2s ease;
    }
    .ps-nav-item.is-open .ps-nav-item__toggle::before { transform: translateY(2px) rotate(-135deg); }

    /* ВАЖНО: перебиваем десктопные :hover/:focus-within (специфичность 0,3,0) —
       после тапа по стрелке фокус остаётся внутри пункта, и без этих селекторов
       подменю продолжает висеть с position:absolute + translateX(-50%). */
    .ps-header__nav .ps-submenu,
    .ps-header__nav .ps-nav-item:hover .ps-submenu,
    .ps-header__nav .ps-nav-item:focus-within .ps-submenu {
        position: static;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: rgba(28, 20, 80, .04);
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s ease;
    }
    .ps-submenu::before { display: none; }
    .ps-header__nav .ps-nav-item.is-open .ps-submenu { max-height: 600px; }
    .ps-header__nav .ps-submenu a {
        padding: 12px 22px 12px 38px;
        font-size: 17px;
        border-bottom: 1px solid var(--color-border);
        white-space: normal;
    }
    .ps-header__nav .ps-submenu a:last-child { border-bottom: 0; }
}


/* ----------------------- Логотип разработчика (ARDA) ----------------------- */
/* Лого стоит в правой колонке над ссылками на политики: левый край совпадает
   со ссылками, верх — на одной линии с вордмарком «пиксайта» слева. */
.ps-footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}
.ps-footer__arda {
    display: inline-flex;
    align-items: center;
    opacity: .55;
    transition: opacity .2s ease;
}
.ps-footer__arda:hover,
.ps-footer__arda:focus-visible { opacity: 1; }
.ps-footer__arda img { display: block; height: 22px; width: auto; }

@media (max-width: 640px) {
    .ps-footer__right { gap: 14px; }
    .ps-footer__arda img { height: 20px; }
}

/* правка: подписи об ошибках в публичных формах (ps-site.js, отправка через fetch) */
.ps-form__error { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: #d64545; }
.ps-field__input.is-error { border-color: #d64545; }

/* правка: таблицы в статьях блога (приходят через API, оформления в самом тексте нет) */
.ps-article-body .ps-table-wrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.ps-article-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.ps-article-body th,
.ps-article-body td { border: 1px solid #e2e4ec; padding: 10px 14px; text-align: left; vertical-align: top; }
.ps-article-body thead th { background: #f3f4f8; font-weight: 600; }
.ps-article-body tbody tr:nth-child(even) { background: #fafbfd; }
.ps-article-body img { max-width: 100%; height: auto; border-radius: 12px; }
.ps-article-body blockquote { margin: 20px 0; padding: 12px 18px; border-left: 3px solid #C6AE6F; background: #faf7f0; }
.ps-article-body pre { overflow-x: auto; padding: 14px; background: #f3f4f8; border-radius: 10px; }
