/* ── spec-card-v1: ОФОРМЛЕНИЕ карточки специалиста ──────────────────────────
   Только внешний вид элементов: плашки, теги, типографика, цвета, тени,
   скругления. Раскладки здесь НЕТ — ни сетки, ни позиций, ни ширины, ни
   внешних полей. Их задаёт страница:

     assets/css/speczapis-v1.css     — раскладка «Специалисты — запись»
     assets/css/spec-single-v1.css   — раскладка страницы специалиста

   Принцип и признаки нарушения: docs/components/component-page-separation.md
   Замеры макета:                   docs/components/spec-card-calendar-v1.md

   Значения сняты figlive с живого макета, не подобраны:
     фон карточки #f8f9fa, панели #fff, обводка 1px #e5e9f0 INSIDE
     тень карточки и панелей  0 10px 35px rgba(152,152,152,.1)
     тень плашки времени      0 10px 50px rgba(193,193,193,.1)
     градиент плашек #a9b995 → #8da175 = готовый --gradient-sage
     акцент #feab31 = --color-golden

   Интерлиньяж в пикселях и НЕ округляется: 33.8px остаётся 33.8px.
   Округление до 34 даёт накопление ошибки по колонке.
   ─────────────────────────────────────────────────────────────────────────── */

/* Фона, рамки и тени у самой карточки НЕТ: на странице записи их даёт
   прямоугольник Rectangle 546 (1200×634) во весь фрейм, а во фрейме страницы
   специалиста (SpecCardUniFullD) такого прямоугольника нет вовсе — карточка
   там лежит прямо на белом. Поэтому обрамление задаёт страница. */
.spec-card {
    --sc-border: #e5e9f0;
    --sc-shadow: 0 10px 35px rgba(152, 152, 152, 0.1);

    box-sizing: border-box;
}

/* ── Фото ── */

.spec-card__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* ── Кнопка видеовизитки: пилюля, золотая ── */

.spec-card__video {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--color-golden);
    color: var(--color-white);
    border: 0;
    border-radius: 100px;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 14px;
    line-height: 18.9px;           /* 14 × 1.35 */
    font-weight: 700;
    letter-spacing: -0.1px;
    white-space: nowrap;
    cursor: pointer;
    transition: opacity var(--transition-speed);
    box-sizing: border-box;
}

.spec-card__video:hover { opacity: 0.85; }

.spec-card__video-icon {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    background: var(--color-white);
    -webkit-mask: url("../img/general/ic-play-circle.svg") no-repeat center / contain;
            mask: url("../img/general/ic-play-circle.svg") no-repeat center / contain;
}

/* ── Текстовые элементы ── */

.spec-card__name {
    margin: 0;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 25px;
    line-height: 33.8px;           /* 25 × 1.35 */
    letter-spacing: -0.2px;
}

.spec-card__name a {
    color: var(--text-main-color);
    text-decoration: none;
}

.spec-card__name a:hover { color: var(--main-color); }

.spec-card__specialty {
    margin: 0;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 21.6px;
    letter-spacing: -0.1px;
    color: rgba(28, 28, 28, 0.9);
}

.spec-card__subtitle {
    margin: 0;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 22.7px;           /* 18 × 1.26 */
    letter-spacing: -0.1px;
    color: var(--text-main-color);
}

/* ── Плашка стажа 208×45 и плашка регалии 190×35: градиент, радиус 15 ── */

.spec-card__experience,
.spec-card__regalia {
    margin: 0;
    background: var(--gradient-sage);
    border-radius: 15px;
    color: var(--color-white);
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -0.1px;
    box-sizing: border-box;
}

.spec-card__experience {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 45px;
    padding: 0 12px 0 10px;
    font-size: 16px;
    line-height: 21.6px;
    white-space: nowrap;
}

.spec-card__experience strong { font-weight: 700; }

.spec-card__experience-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    background: var(--color-white);
    -webkit-mask: url("../img/general/ic-user-octagon.svg") no-repeat center / contain;
            mask: url("../img/general/ic-user-octagon.svg") no-repeat center / contain;
}

.spec-card__regalia {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    padding: 6px 12px;
    font-size: 16px;
    line-height: 21.6px;
}

/* ── Теги и методы ── */

.spec-card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;       /* высота плашки по своему тексту */
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.spec-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    background: var(--color-white);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 17.6px;           /* 13 × 1.35 */
    letter-spacing: -0.1px;
    color: rgba(28, 28, 28, 0.9);
    box-sizing: border-box;
}

/* Плашки методов многострочные: в макете 204×63 несёт текст в три строки,
   180×47 — в две. Интерлиньяж здесь 120%, а не 135% как у тегов аудитории. */
.spec-card__tags--methods .spec-card__tag {
    display: inline-block;
    max-width: 204px;
    line-height: 15.6px;           /* 13 × 1.2 */
}

/* ── Цитата ── */

.spec-card__quote {
    position: relative;
    margin: 0;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 16px;
    line-height: 21.6px;
    letter-spacing: -0.1px;
    color: rgba(28, 28, 28, 0.9);
}

/* Кавычка — текстовый узел, не вектор: 990:141 (десктоп) и 731:50 (мобильный)
   одинаковы — Lorenzo Sans Bold 150px, lh 202.5px (135%), ls -1.5px, заливка
   #1c1c1c@0.9 и opacity слоя 0.1 (дамп decor). Итог на #f8f9fa ≈ #e5e6e7,
   сверено с пикселями вырезки 01-card.png. */
.spec-card__quote::before {
    content: "“";
    position: absolute;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 150px;
    line-height: 202.5px;
    letter-spacing: -1.5px;
    color: rgba(28, 28, 28, 0.9);
    opacity: 0.1;
}

/* ── Панели: аккордеон и ценовая строка ── */

.spec-card__accordion,
.spec-card__price-row {
    background: var(--color-white);
    border: 1px solid var(--sc-border);
    border-radius: 20px;
    box-shadow: var(--sc-shadow);
    box-sizing: border-box;
}

.spec-card__accordion-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    letter-spacing: -0.1px;
    color: var(--text-main-color);
    cursor: pointer;
    list-style: none;
}

.spec-card__accordion-title::-webkit-details-marker { display: none; }

/* Кружок «+» 44×44 справа */
.spec-card__accordion-title::after {
    content: "";
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: var(--color-golden) url("../img/general/plus-icon.svg") no-repeat center / 14px 14px;
    border-radius: 50%;
    transition: transform var(--transition-speed);
}

.spec-card__accordion[open] .spec-card__accordion-title::after { transform: rotate(45deg); }

.spec-card__accordion-body {
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 16px;
    line-height: 21.6px;
    letter-spacing: -0.1px;
    color: rgba(28, 28, 28, 0.9);
}

.spec-card__price-row {
    display: flex;
    align-items: center;
}

.spec-card__price-label {
    flex: 1 1 auto;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 21.6px;
    letter-spacing: -0.1px;
    color: var(--text-main-color);
}

/* Название услуги со страницей на сайте — ссылка в цвет текста, без
   подчёркивания, как на «Ценах» и странице специалиста */
.spec-card__price-label a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.spec-card__price-label a:hover { opacity: 0.8; }

/* ── Плашка времени 132×45: белая, своя тень (c1c1c1, blur 50) ── */

/* ── Вертикаль в плашках (все четыре вида). В макете значок стоит ровно по
   центру плашки, а строка текста — на 1–2 px ВЫШЕ центра: цена 45 — текст
   на +8 (не 9.9), время 45 — на +11 (не 12.5), цена 37 — на +8, время 37 —
   на +10 (797:94/96, 797:206/208, 1067:637/640, 1021:165/167). Поэтому
   содержимое не центруется флексом: текст ставится отступом сверху, значок —
   своим отступом на центр. Поля слева/справа в переопределениях задаются
   только longhand-свойствами, иначе сокращение обнулит верхний отступ. ── */

.spec-card__duration {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    height: 45px;
    /* Обводка у макета INSIDE — детей не сдвигает, у нас border сдвигает на 1.
       Квадрат на 5 от края (817:650 / 778:255), текст на 50, справа 15
       (132 − 50 − 67, узлы 817:651 / 778:256) → поля 4 и 14 плюс border 1. */
    padding: 10px 14px 0 4px;       /* текст на 11 = border 1 + 10 */
    background: var(--color-white);
    border: 1px solid var(--sc-border);
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(193, 193, 193, 0.1);
    font-family: "LorenzoSans", Arial, sans-serif;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.1px;
    color: rgba(28, 28, 28, 0.9);
    white-space: nowrap;
    box-sizing: border-box;
}

/* Градиентный квадрат 35×35 радиус 10, значок часов 23×23 белым поверх.
   Маска на ::before, а не на плашке — иначе в форму часов обрезался бы
   весь градиент. */
.spec-card__duration-icon {
    position: relative;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    margin-top: -6px;               /* квадрат на 5: 1 + 10 − 6 */
    background: var(--gradient-sage);
    border-radius: 10px;
}

.spec-card__duration-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-white);
    -webkit-mask: url("../../../../uploads/2026/05/ic-clock.svg") no-repeat center / 23px 23px;
            mask: url("../../../../uploads/2026/05/ic-clock.svg") no-repeat center / 23px 23px;
}

/* ── Плашка цены 126×45: градиент, радиус 15 ── */

.spec-card__price {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    height: 45px;
    /* Плашка в макете тянется по тексту: значок на 10, текст на 42, справа 15
       (126 = 42 + 69 + 15 в 817:643/644; 137 = 42 + 80 + 15 в 960:1956). */
    padding: 8px 15px 0 10px;       /* текст на 8 */
    background: var(--gradient-sage);
    border-radius: 15px;
    color: var(--color-white);
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 25.2px;           /* 20 × 1.26 */
    letter-spacing: -0.1px;
    white-space: nowrap;
    box-sizing: border-box;
}

.spec-card__price-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    margin-top: 2px;                /* значок на 10 = 8 + 2 */
    background: var(--color-white);
    -webkit-mask: url("../img/general/ic-wallet.svg") no-repeat center / contain;
            mask: url("../img/general/ic-wallet.svg") no-repeat center / contain;
}

/* ── Ссылка «Подробнее о специалисте» ── */

.spec-card__more {
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 20.4px;           /* 17 × 1.2 */
    letter-spacing: -0.1px;
    color: var(--color-golden);
    text-decoration: none;
}

.spec-card__more:hover { text-decoration: underline; }

/* ── Календарь: панель вокруг штатного виджета плагина ── */

.spec-card__booking {
    background: var(--color-white);
    border: 1px solid var(--sc-border);
    border-radius: 15px;
    box-shadow: var(--sc-shadow);
    box-sizing: border-box;
    overflow: hidden;
}

/* Плагин рисует свою рамку и тень — внутри панели они лишние */
.spec-card__booking .sp-booking-widget,
.spec-card__booking .specialist-booking {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
}

.spec-card__booking-label {
    display: block;
    font-family: "LorenzoSans", Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 21.6px;
    letter-spacing: -0.1px;
    color: rgba(28, 28, 28, 0.9);
}

/* Название услуги со страницей на сайте — ссылка в цвет текста */
.spec-card__booking-label a {
    color: inherit;
    /* Без подчёркивания: оно выделяло одну строку прайса среди остальных
       (владелец 2026-10-07). Ссылку выдаёт только курсор и отклик на наведение. */
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.spec-card__booking-label a:hover { opacity: 0.8; }

/* ── Mobile: меняется только кегль и размеры плашек, раскладка — у страницы ── */

@media (max-width: 768px) {

    .spec-card { border-radius: 3.75vw; }

    .spec-card__photo { border-radius: 2.5vw; }

    .spec-card__name {
        font-size: 20px;
        line-height: 21.4px;       /* 20 × 1.07 */
    }

    .spec-card__specialty {
        font-size: 14px;
        line-height: 18.9px;       /* 14 × 1.35 */
    }

    .spec-card__subtitle {
        font-size: 16px;
        line-height: 20.2px;       /* 16 × 1.26 */
    }

    .spec-card__regalia {
        font-size: 13px;
        line-height: 17.6px;
    }

    /* Методы на мобильном — не плашки, а список с маркерами «•»
       (узлы 1051:48/49: 27×16, LorenzoSans Bold 13, цвет #a9b995) */
    .spec-card__tags--methods .spec-card__tag {
        position: relative;
        display: block;
        max-width: none;
        min-height: 0;
        padding: 0 0 0 3.75vw;
        background: none;
        border: 0;
        border-radius: 0;
        color: var(--text-main-color);
    }

    .spec-card__tags--methods .spec-card__tag::before {
        content: "•";
        position: absolute;
        left: 0;
        top: 0;
        font-family: "LorenzoSans", Arial, sans-serif;
        font-weight: 700;
        font-size: 13px;
        line-height: 15.6px;
        letter-spacing: -0.1px;
        color: var(--main-color);
    }

    .spec-card__accordion,
    .spec-card__price-row { border-radius: 2.5vw; }

    .spec-card__accordion-title {
        font-size: 16px;
        line-height: 20.2px;
    }

    .spec-card__accordion-title::after {
        width: 11vw;               /* 44px */
        height: 11vw;
        flex-basis: 11vw;
    }

    .spec-card__price-label {
        font-size: 16px;
        line-height: 19.2px;       /* 16 × 1.2 */
    }

    /* Плашка времени 103×37, плашка цены 100×37 */
    .spec-card__duration {
        gap: 5px;
        width: 103px;
        height: 37px;
        padding: 9px 5px 0;         /* текст на 10 = border 1 + 9 */
        font-size: 13px;
        line-height: 16.3px;       /* 13 × 1.25 */
    }

    .spec-card__duration-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        margin-top: -5px;           /* квадрат на 5: 1 + 9 − 5 */
        border-radius: 8px;
    }

    .spec-card__duration-icon::before {
        -webkit-mask-size: 17px 17px;
                mask-size: 17px 17px;
    }

    .spec-card__price {
        gap: 5px;
        width: 100px;
        height: 37px;
        padding: 8px 5px 0;         /* текст на 8 */
        font-size: 15px;
        line-height: 18.9px;       /* 15 × 1.26 */
    }

    .spec-card__price-icon {
        width: 24px;
        height: 23px;
        flex-basis: 24px;
        margin-top: -1px;           /* значок на 7 = 8 − 1 */
    }

    .spec-card__more {
        font-size: 14px;
        line-height: 16.8px;       /* 14 × 1.2 */
    }

    .spec-card__booking { border-radius: 2.5vw; }
}

/* ── Окно видеовизитки (assets/js/spec-video-v1.js) ──
   Макета у окна нет — собрано из элементов дизайна: затемнение
   --overlay-dark, скругление 20 как у панелей, белый крестик в круге.
   z-index как у окна просмотра отзывов (otzyvinfo-v1). */

.spec-video-v1 {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
    background: var(--overlay-dark);
    box-sizing: border-box;
}

/* display:flex выше перебивает атрибут hidden */
.spec-video-v1[hidden] { display: none; }

html.spec-video-v1-open { overflow: hidden; }

/* min-width: 0 — элемент flex по умолчанию не сжимается уже своей картинки;
   так картинка гарантированно вписывается в экран с полями 20. */
.spec-video-v1__box {
    position: relative;
    min-width: 0;
    max-width: min(900px, 100%);
}

.spec-video-v1__media img,
.spec-video-v1__media video {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 100px);
    border-radius: 20px;
    background: var(--color-black);
}

.spec-video-v1__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-white);
    cursor: pointer;
}

.spec-video-v1__close::before,
.spec-video-v1__close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--text-main-color);
}

.spec-video-v1__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.spec-video-v1__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
