/* ===================================
   PRICELIST PAGE — ДЕКОР
   Тема: ценник-бирка / чек / прозрачность условий.
   =================================== */

:root {
    --doodle-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='38' viewBox='0 0 38 38'%3E%3Cpath d='M4 4H18L34 20L20 34L4 18Z' fill='none' stroke='%23EE7A5D' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%23EE7A5D' stroke-width='1.8'/%3E%3C/svg%3E");
    --doodle-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='38' viewBox='0 0 30 38'%3E%3Cpath d='M4 2H26V36L22 33L18 36L14 33L10 36L6 33L4 36Z' fill='none' stroke='%2325A9B8' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cline x1='9' y1='10' x2='21' y2='10' stroke='%2325A9B8' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='9' y1='16' x2='21' y2='16' stroke='%2325A9B8' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='9' y1='22' x2='16' y2='22' stroke='%2325A9B8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
    --doodle-underline-price: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='14' viewBox='0 0 90 14'%3E%3Cpath d='M2 9C12 2 18 12 28 6C38 0 44 12 54 6C64 0 72 12 82 6' fill='none' stroke='%23EE7A5D' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
    --doodle-check-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.6 4.8L18 8l-4.4 1.4L12 14l-1.6-4.6L6 8l4.4-1.2L12 2z' fill='%2352CC9A' fill-opacity='0.5'/%3E%3C/svg%3E");
}

@keyframes pricelistFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(-6deg); }
}

/* ===================================
   1. HERO — ценник-бирка + подчёркивание
   .page-hero общий класс с doctors.html/courses.html — скоуп обязателен
   =================================== */
body[data-page="pricelist"] .page-hero__title {
    position: relative;
    display: inline-block;
}

body[data-page="pricelist"] .page-hero__title::after {
    content: '';
    display: block;
    width: 90px;
    height: 12px;
    margin-top: 6px;
    background: var(--doodle-underline-price) no-repeat left center / contain;
    opacity: .8;
}

body[data-page="pricelist"] .page-hero::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
    top: 12%;
    right: 8%;
    width: 38px;
    height: 38px;
    background: var(--doodle-tag) no-repeat center / contain;
    opacity: .5;
    animation: pricelistFloat 8s ease-in-out infinite;
}

@media (max-width: 768px) {
    body[data-page="pricelist"] .page-hero::after { display: none; }
}

/* ===================================
   2. ФОН ТАБЛИЦЫ ЦЕН — едва заметная текстура + чек в углу
   .pricelist-page уникален для этой страницы, скоуп не нужен
   =================================== */
.pricelist-page {
    position: relative;
    overflow: hidden;
}

.pricelist-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(37, 169, 184, .08) 1.4px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 45% 30% at 85% 0%, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 45% 30% at 85% 0%, black 0%, transparent 70%);
    opacity: .5;
}

.pricelist-page > .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   3. ТАБЛИЦА — водяной знак-чек в шапке
   =================================== */
.pricelist-table-wrap {
    position: relative;
}

.pricelist-table-wrap::after {
    content: '';
    position: absolute;
    top: -12px;
    right: 24px;
    width: 26px;
    height: 32px;
    background: var(--doodle-receipt) no-repeat center / contain;
    opacity: .8;
    transform: rotate(6deg);
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {
    .pricelist-table-wrap::after {
        width: 20px;
        height: 26px;
        right: 12px;
    }
}

/* ===================================
   4. КАРТОЧКИ УСЛУГ НА МОБИЛЬНЫХ — цветной левый бордер по группам
   Простая ротация цвета по каждой третьей строке — визуально
   разбивает длинный список без привязки к конкретным категориям
   (категории генерируются JS, цвет по data-атрибуту недоступен статически)
   =================================== */
@media (max-width: 768px) {
    .pricelist-table tbody tr:nth-child(3n+1) { border-left-color: var(--color-primary); }
    .pricelist-table tbody tr:nth-child(3n+2) { border-left-color: var(--color-secondary); }
    .pricelist-table tbody tr:nth-child(3n+3) { border-left-color: var(--color-tertiary); }
}

/* ===================================
   5. УСЛОВИЯ ОПЛАТЫ — звёздочки вместо галочек, теплее и разнообразнее
   =================================== */
.pricelist-terms {
    position: relative;
}

.pricelist-terms__list li:nth-child(1)::before,
.pricelist-terms__list li:nth-child(2)::before,
.pricelist-terms__list li:nth-child(3)::before {
    content: '';
    width: 14px;
    height: 14px;
    background: var(--doodle-check-star) no-repeat center / contain;
    top: 2px;
}

/* ===================================
   6. EMPTY-STATE
   =================================== */
#pricelistEmpty {
    position: relative;
}

#pricelistEmpty::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 34px;
    height: 34px;
    transform: translateX(-50%);
    background: var(--doodle-tag) no-repeat center / contain;
    opacity: .3;
    pointer-events: none;
}

/* ===================================
   ACCESSIBILITY / PRINT
   =================================== */
@media (prefers-reduced-motion: reduce) {
    body[data-page="pricelist"] .page-hero::after {
        animation: none;
    }
}

@media print {
    body[data-page="pricelist"] .page-hero::after,
    body[data-page="pricelist"] .page-hero__title::after,
    .pricelist-page::before,
    .pricelist-table-wrap::after,
    #pricelistEmpty::before {
        display: none !important;
    }
}