/* ============================================================================
   pages.css — стили новых страниц (Условия работы, Промо) + фичи акций.
   adamshop 2026-11. Первые дизайн-токены сайта — задел под редизайн:
   всё новое красим только через переменные, не хардкодом.
   ========================================================================== */

:root {
    --brand-red: #d22f3c;
    --brand-red-dark: #9a271b;
    --brand-green: #27ae60;
    --brand-green-dark: #0d592d;
    --brand-blue: #1e96c8;
    --ink: #222222;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg-soft: #fafafa;
    --radius-card: 12px;
    --radius-btn: 6px;
    --shadow-card: 0 1px 2px rgba(34, 34, 34, .05), 0 6px 18px rgba(34, 34, 34, .06);
}

/* --------------------------------------------------------------------------
   Общий hero новых страниц (тёмный оверлей поверх TV image_header)
   -------------------------------------------------------------------------- */

.pages-hero {
    position: relative;
    background-size: cover;
    background-position: 50% 30%;
    background-color: var(--ink);
    color: #fff;
    padding: 56px 0;
}

.pages-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .55) 100%);
}

.pages-hero > .container {
    position: relative;
    z-index: 2;
}

.pages-hero h1 {
    color: #fff;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    margin: 0;
}

.pages-hero .pages-hero-sub {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .85);
    max-width: 640px;
}

.pages-hero .pages-hero-badge {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .pages-hero { padding: 84px 0; }
    .pages-hero h1 { font-size: 40px; }
    .pages-hero .pages-hero-sub { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   «Условия работы» (.uc-*)
   -------------------------------------------------------------------------- */

.uc-section {
    padding: 40px 0 8px;
}

@media (min-width: 992px) {
    .uc-section { padding: 64px 0 16px; }
}

/* sticky-оглавление */
.uc-toc {
    position: sticky;
    top: 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.uc-toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}

.uc-toc a {
    display: block;
    padding: 6px 0;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.uc-toc a:last-child { border-bottom: 0; }

.uc-toc a:hover { color: var(--brand-red); }

/* шаг таймлайна */
.uc-step {
    position: relative;
    margin: 0 0 40px;
}

@media (min-width: 992px) {
    .uc-step { margin: 0 0 56px; }
}

.uc-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--brand-red);
    border-radius: 50%;
    color: var(--brand-red);
    font-size: 20px;
    font-weight: 700;
    background: #fff;
    flex: 0 0 46px;
}

.uc-step-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.uc-step-title {
    margin: 0 0 0 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

@media (min-width: 992px) {
    .uc-step-num { width: 54px; height: 54px; flex-basis: 54px; font-size: 24px; }
    .uc-step-title { font-size: 26px; margin-left: 20px; }
}

/* вертикальная пунктирная линия между шагами убрана (2026-11-05) */

.uc-step-body {
    margin: 0 0 0 16px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
}

@media (min-width: 992px) {
    .uc-step-body { font-size: 16px; }
}

.uc-step-body ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.uc-step-body li { margin: 6px 0; }

.uc-step-body a { color: var(--brand-red); }

.uc-strong { font-weight: 700; }

/* плашки */
.uc-note {
    margin: 18px 0 0;
    padding: 14px 18px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: 14px;
    line-height: 1.55;
}

.uc-note--success { background: rgba(39, 174, 96, .08); border-color: rgba(39, 174, 96, .35); }
.uc-note--warning { background: rgba(230, 171, 25, .10); border-color: rgba(204, 144, 10, .40); }
.uc-note--danger  { background: rgba(210, 47, 60, .07); border-color: rgba(210, 47, 60, .35); }

.uc-note-title {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.uc-note--success .uc-note-title { color: var(--brand-green-dark); }
.uc-note--warning .uc-note-title { color: #8a6200; }
.uc-note--danger .uc-note-title { color: var(--brand-red-dark); }

/* мини-таймлайн сроков (день → событие) */
.uc-dots {
    margin: 22px 0 0 !important;
    padding: 0 !important;
    list-style: none;
}

.uc-dots li {
    position: relative;
    padding: 0 0 18px 109px;
}

.uc-dots li::before {
    content: "";
    position: absolute;
    left: 80px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-red);
}

.uc-dots li::after {
    content: "";
    position: absolute;
    left: 84px;
    top: 20px;
    bottom: -2px;
    width: 2px;
    background: var(--line);
}

.uc-dots li:last-child::after { display: none; }

.uc-dots .uc-dot-day {
    position: absolute;
    left: 0;
    top: 0;
    width: 65px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-red);
}

.uc-dots .uc-dot-text { font-size: 14px; line-height: 1.5; color: var(--ink); }

/* CTA-полоса внизу */
.uc-cta {
    margin: 8px 0 48px;
    padding: 26px;
    border-radius: var(--radius-card);
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.uc-cta-text { font-size: 17px; font-weight: 700; }

.uc-cta-text small {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    margin-top: 4px;
}

.uc-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* кнопки в новой стилистике (токенизированные) */
.btn-page {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-page--green { background: var(--brand-green); color: #fff !important; box-shadow: 0 3px 0 0 var(--brand-green-dark); }
.btn-page--green:hover { background: var(--brand-green-dark); }

.btn-page--red { background: var(--brand-red); color: #fff !important; box-shadow: 0 3px 0 0 var(--brand-red-dark); }
.btn-page--red:hover { background: var(--brand-red-dark); }

.btn-page--ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255, 255, 255, .5); }
.btn-page--ghost:hover { border-color: #fff; }

/* --------------------------------------------------------------------------
   «Акции и промокоды» (.pp-*)
   -------------------------------------------------------------------------- */

/* Баннер действующей акции: незатемнённый, полная ширина, без обрезки
   (img сохраняет пропорции — менеджер дизайнит картинку 1920px целиком) */
.pp-banner {
    display: block;
    width: 100%;
    line-height: 0;
}

.pp-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.pp-section { padding: 36px 0; }

@media (min-width: 992px) { .pp-section { padding: 56px 0; } }

.pp-section--soft { background: var(--bg-soft); }

.pp-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 6px;
}

@media (min-width: 992px) { .pp-title { font-size: 28px; } }

.pp-sub { color: var(--muted); font-size: 14px; margin: 0 0 28px; }

/* карточка купона */
.pp-coupon {
    position: relative;
    height: 100%;
    padding: 26px 22px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: center;
    overflow: hidden;
}

.pp-coupon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-red);
}

.pp-coupon-code {
    display: inline-block;
    padding: 6px 14px;
    border: 2px dashed var(--brand-red);
    border-radius: var(--radius-btn);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .06em;
    color: var(--brand-red);
    user-select: all;
}

.pp-coupon-value {
    font-size: 52px;
    line-height: 1;
    font-weight: 700;
    color: var(--ink);
    margin: 16px 0 6px;
}

.pp-coupon-threshold {
    font-size: 14px;
    color: var(--muted);
}

.pp-coupon-threshold b { color: var(--ink); }

/* плашка исключений */
.pp-exclude {
    margin-top: 32px;
    padding: 16px 20px;
    border: 1px dashed rgba(210, 47, 60, .5);
    border-radius: var(--radius-btn);
    background: rgba(210, 47, 60, .05);
    font-size: 14px;
    line-height: 1.6;
}

.pp-exclude b { color: var(--brand-red-dark); }

.pp-exclude a {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed var(--brand-red);
}

.pp-exclude a:hover { border-bottom-style: solid; }

.pp-howto {
    margin-top: 18px;
    font-size: 13px;
    color: var(--muted);
}

/* плитки канал/чат */
.pp-channel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    height: 100%;
    padding: 22px 26px;
    border-radius: var(--radius-card);
    color: #fff !important;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
}

.pp-channel:hover { transform: translateY(-2px); text-decoration: none !important; }

.pp-channel--tg {
    background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-dark) 100%);
    box-shadow: var(--shadow-card);
}

.pp-channel--chat {
    background: linear-gradient(135deg, #1e96c8 0%, #2a5298 100%);
    box-shadow: var(--shadow-card);
}

.pp-channel-title { font-size: 18px; font-weight: 700; }

.pp-channel-desc { font-size: 13px; color: rgba(255, 255, 255, .85); margin-top: 6px; }

/* --------------------------------------------------------------------------
   Форма оформления заказа (.ord-*)
   -------------------------------------------------------------------------- */

.ord-fields .form-group { margin-bottom: 1rem; }

.ord-fields input[type="text"] {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    font-size: 15px;
    color: var(--ink);
    background: #fff;
}

.ord-fields input[type="text"]:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(210, 47, 60, .12);
}

.ord-error {
    display: block;
    min-height: 16px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--brand-red);
}

.ord-find-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

/* клик по автозаполненным полям = подсказка «сначала найдите отделение» */
.ord-auto-group { cursor: pointer; }

/* подсветка поля индекса и кнопки поиска при клике на автополя */
.ord-flash {
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 0 3px rgba(210, 47, 60, .25) !important;
}

#ord-find-btn.ord-flash {
    box-shadow: 0 3px 0 0 var(--brand-red-dark), 0 0 0 3px rgba(210, 47, 60, .25) !important;
}

#ord-find-btn { white-space: nowrap; }

#ord-find-btn:disabled { opacity: .6; cursor: wait; }

.ord-find-status {
    align-self: stretch;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.ord-find-status--ok { color: var(--brand-green-dark); font-weight: 700; }

.ord-find-status--error { color: var(--brand-red); font-weight: 700; }

/* автозаполняемые поля (Регион/Город/Адрес) */
.ord-auto {
    background: var(--bg-soft) !important;
    color: var(--muted) !important;
}

.ord-auto.is-filled {
    color: var(--ink) !important;
    border-color: rgba(39, 174, 96, .45);
    background: rgba(39, 174, 96, .06) !important;
}

.ord-auto.ord-manual {
    background: #fff !important;
    color: var(--ink) !important;
}

/* --------------------------------------------------------------------------
   Полноширинный hero страницы акции (шаблон 05, TV image — первое фото)
   -------------------------------------------------------------------------- */

.actia-hero {
    position: relative;
    height: 42vh;
    min-height: 260px;
    max-height: 560px;
    background-size: cover;
    background-position: 50% 35%;
    background-color: var(--ink);
}

.actia-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .45) 100%);
}

@media (min-width: 992px) {
    .actia-hero { height: 46vh; }
}

/* подгонка отступов контента акции под hero */
.page-with-hero .middle { padding-top: 28px; }
