/* Публичная страница цен /ua/prices (resources/views/front/prices) */
.pp {
    --pp-orange: #fc6b40;
    --pp-orange-dark: #e4542a;
    --pp-text: #3e445b;
    --pp-muted: #6b7280;
    --pp-border: #e3e5ea;
    --pp-bg-soft: #f8f9fb;
    --pp-top: 0px;
    --pp-toolbar-h: 0px;
    color: var(--pp-text);
    font-size: 15px;
    line-height: 1.5;
    padding-bottom: 48px;
    overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
.pp *, .pp *::before, .pp *::after { box-sizing: border-box; }
.pp-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}
.pp-container--wide { max-width: 1200px; }
.pp-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.pp [hidden] { display: none !important; }
.pp h2 {
    margin: 0 0 14px;
    color: var(--pp-text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}
.pp h3 {
    margin: 0 0 8px;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.pp-text p { margin: 0 0 10px; }
.pp-text p:last-child { margin-bottom: 0; }
.pp-list { margin: 0 0 10px; padding-left: 20px; }
.pp-list li { margin-bottom: 4px; }
.pp-muted, .pp-hint { color: var(--pp-muted); font-size: 14px; }
.pp a { color: var(--pp-orange); }
.pp a:focus-visible, .pp button:focus-visible, .pp summary:focus-visible, .pp-table-wrap:focus-visible {
    outline: 2px solid var(--pp-orange);
    outline-offset: 2px;
}

/* кнопки */
.pp-btn {
    display: inline-flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid var(--pp-orange);
    border-radius: 4px;
    color: #fff !important;
    background: var(--pp-orange);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s;
}
.pp-btn:hover { background: var(--pp-orange-dark); border-color: var(--pp-orange-dark); }
.pp-btn--small { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.pp-btn--ghost { color: var(--pp-orange) !important; background: #fff; }
.pp-btn--ghost:hover { color: #fff !important; }
.pp-btn--block { width: 100%; }
.pp-btn[disabled] { opacity: .6; cursor: default; }
.pp-link-btn {
    margin-left: 8px;
    padding: 4px 0;
    border: 0;
    color: var(--pp-orange);
    background: none;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* шапка страницы */
.pp-hero { padding: 8px 0 24px; }
.pp-h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}
.pp-lead { font-size: 16px; max-width: 760px; }
.pp-updated { margin: 12px 0 18px; color: var(--pp-muted); font-size: 14px; }
.pp-updated time { color: var(--pp-text); font-weight: 700; }

.pp-expertise {
    margin-bottom: 32px;
    padding: 16px 20px;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    background: var(--pp-bg-soft);
}
.pp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.pp-stats li { display: flex; flex-direction: column; }
.pp-stat-value { color: var(--pp-orange); font-size: 22px; font-weight: 700; line-height: 1.2; }
.pp-stat-name { font-size: 13px; color: var(--pp-muted); line-height: 1.3; }
.pp-section { margin-bottom: 32px; }

/* справочник */
.pp-directory { margin: 8px 0 32px; }
.pp-toolbar {
    position: sticky;
    top: var(--pp-top);
    z-index: 20;
    margin: 16px -16px 8px;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--pp-border);
}
.pp-toolbar.is-stuck { box-shadow: 0 4px 12px rgba(62, 68, 91, .08); }
.pp-toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.pp-field { position: relative; }
.pp-field--search { flex: 1 1 320px; }
.pp-field--region { flex: 0 1 260px; }
.pp-toolbar-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    font-size: 14px;
    white-space: nowrap;
}
.pp-input {
    box-sizing: border-box !important; /* main.css: input[type=search] — content-box */
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cdd4d9;
    border-radius: 4px;
    color: var(--pp-text);
    background: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
}
.pp-input:focus { border-color: var(--pp-orange); box-shadow: 0 0 0 2px rgba(252, 107, 64, .15); }
.pp-field--search .pp-input { padding-right: 44px; }
.pp-field--search .pp-input::-webkit-search-cancel-button { display: none; }
.pp-select { appearance: auto; }
.pp-clear {
    position: absolute;
    top: 0; right: 0;
    width: 44px; height: 44px;
    border: 0;
    color: var(--pp-muted);
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.pp-clear:hover { color: var(--pp-text); }
.pp-filter-meta { margin-bottom: 12px; }
.pp-filter-meta p { margin: 0 0 4px; }
.pp-counter { font-weight: 700; font-size: 14px; }

.pp-region-list {
    scroll-margin-top: calc(var(--pp-top) + var(--pp-toolbar-h) + 12px);
    margin: 12px 0 16px;
    padding: 16px 20px;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
}
.pp-region-list h3 { margin-bottom: 4px; text-align: left; }
.pp-region-list > p { margin: 0 0 10px; font-weight: 700; }
.pp-regions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.pp-regions a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    color: var(--pp-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.pp-regions a:hover { color: var(--pp-orange); }
.pp-count {
    margin-left: 8px;
    padding: 1px 8px;
    border-radius: 999px;
    color: var(--pp-muted);
    background: var(--pp-bg-soft);
    font-size: 12px;
}
.pp-legend { margin-bottom: 12px; color: var(--pp-muted); font-size: 13px; }
.pp-legend p { margin: 0 0 2px; }
.pp-swipe-hint { display: none; }
.pp-empty, .pp-empty-data {
    margin: 16px 0;
    padding: 20px;
    border: 1px dashed var(--pp-border);
    border-radius: 8px;
    text-align: center;
}
.pp-empty h3 { text-align: center; }
.pp-empty p { margin: 0 0 8px; }

.pp-group {
    margin-top: 28px;
    scroll-margin-top: calc(var(--pp-top) + var(--pp-toolbar-h) + 12px);
}
.pp-group h2 { font-size: 22px; }
.pp-center-note { margin: -6px 0 10px; color: var(--pp-muted); font-size: 14px; }
.pp-back { margin: 8px 0 0; font-size: 14px; }
.pp-back a { text-decoration: none; }
.pp-back a:hover { text-decoration: underline; }

/* таблицы: на десктопе целиком, на узких — скролл только внутри */
.pp-table-wrap {
    position: relative; /* скрытые подписи (absolute) не должны расширять страницу */
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--pp-border);
    border-radius: 6px;
}
.pp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    line-height: 1.35;
}
.pp-table th, .pp-table td {
    padding: 0;
    border-bottom: 1px solid var(--pp-border);
    vertical-align: middle;
    text-align: left;
}
.pp-table tbody tr:last-child > * { border-bottom: 0; }
.pp-table thead th {
    padding: 10px 8px;
    color: var(--pp-muted);
    background: var(--pp-bg-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.pp-table thead th:first-child { min-width: 150px; }
.pp-table tbody th { font-weight: 700; background: #fff; }
.pp-table tbody tr:hover > * { background: #fff8f5; }
.pp-table tbody th > *, .pp-table td:not(.nd) > * {
    display: block;
    min-height: 40px;
    padding: 10px 8px;
}
.pp-table th[scope="row"] > a { color: var(--pp-text); text-decoration: underline; text-decoration-color: #c9ccd4; text-underline-offset: 3px; }
.pp-table th[scope="row"] > a:hover { color: var(--pp-orange); text-decoration-color: currentColor; }
.pp-table td > .pp-price { color: var(--pp-text); }
.pp-table td > a.pp-price {
    text-decoration: underline;
    text-decoration-color: #d5d8de;
    text-underline-offset: 3px;
}
.pp-table td > a.pp-price:hover, .pp-table td > a.pp-price:focus-visible {
    color: var(--pp-orange);
    text-decoration-color: currentColor;
    text-decoration-thickness: 2px;
}
.pp-table td.nd { position: relative; padding: 10px 8px; color: #a0a5b1; }
.pp-table td.nd::before { content: "-"; content: "-" / ""; }
.pp-table td.nd > i {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.pp-table tbody tr:target > * { background: #fff1ea; }
.pp-table tbody tr[id] { scroll-margin-top: calc(var(--pp-top) + var(--pp-toolbar-h) + 60px); }

/* после таблиц */
.pp-cta, .pp-final {
    margin: 32px 0;
    padding: 24px;
    border-radius: 8px;
    background: var(--pp-bg-soft);
    text-align: center;
}
.pp-cta .pp-text, .pp-final .pp-text { max-width: 680px; margin: 0 auto 16px; }
.pp-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
}
.pp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.pp-card {
    padding: 16px;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
}
.pp-card p { margin: 0; font-size: 14px; }

.pp-form-section {
    max-width: 640px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid var(--pp-border);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(62, 68, 91, .05);
    scroll-margin-top: 16px;
}
.pp-form { margin-top: 16px; }
.pp-form-row { margin-bottom: 14px; }
.pp-form-row label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 14px; }
.pp-req { color: var(--pp-muted); font-weight: 400; font-size: 13px; }
.pp-textarea { min-height: 96px; resize: vertical; }
.pp-input[aria-invalid="true"] { border-color: #d92d20; }
.pp-field-error { margin: 4px 0 0; color: #b42318; font-size: 13px; }
.pp-form-status { margin: 12px 0 0; font-size: 14px; }
.pp-form-status.is-ok { padding: 10px 14px; border-radius: 6px; color: #397557; background: #edf8f1; }
.pp-form-status.is-error { padding: 10px 14px; border-radius: 6px; color: #b42318; background: #fef3f2; }

.pp-faq-item { border-bottom: 1px solid var(--pp-border); }
.pp-faq-item summary {
    position: relative;
    padding: 14px 36px 14px 0;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.pp-faq-item summary::-webkit-details-marker { display: none; }
.pp-faq-item summary::after {
    position: absolute;
    top: 12px; right: 4px;
    content: '+';
    color: var(--pp-orange);
    font-size: 22px;
    line-height: 1;
}
.pp-faq-item[open] summary::after { content: '−'; }
.pp-faq-item .pp-text { padding: 0 0 14px; }

/* средний экран */
@media (max-width: 1199px) {
    .pp-regions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .pp-table { min-width: 760px; }
    .pp-table td { white-space: nowrap; }
    .pp-table th[scope="row"] {
        position: sticky;
        left: 0;
        z-index: 1;
        box-shadow: 1px 0 0 var(--pp-border);
    }
    .pp-table thead th:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
    }
    .pp-swipe-hint { display: block; }
}
/* телефон */
@media (max-width: 767px) {
    .pp { font-size: 14px; }
    .pp-h1 { font-size: 24px; }
    .pp h2 { font-size: 20px; }
    .pp-group h2 { font-size: 19px; }
    .pp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pp-stat-value { font-size: 19px; }
    .pp-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
    .pp-columns, .pp-cards { grid-template-columns: minmax(0, 1fr); }
    .pp-toolbar { padding: 8px 16px; }
    .pp-toolbar-inner { gap: 8px; }
    .pp-field--search { flex: 1 1 100%; }
    .pp-field--region { flex: 1 1 0; min-width: 0; }
    .pp-toolbar-links { margin-left: 0; gap: 10px; font-size: 13px; }
    .pp-toolbar-links .pp-btn { display: none; }
    .pp-table thead th:first-child { min-width: 120px; }
    .pp-table { min-width: 640px; }
    .pp-form-section, .pp-cta, .pp-final { padding: 18px 16px; }
    .pp-btn { width: 100%; }
    .pp-btn--small, .pp-link-btn { width: auto; }
}
