/* =========================================================================
   teen.szd.online — кастомные стили
   Единый файл для всех самописных блоков сайта.
   Подключается вручную в index.php шаблона.

   Соглашения:
   - общий префикс всех классов и переменных — szdt (SZD Teen);
   - имя блока идёт вторым: .szdt-<блок>, .szdt-<блок>__<элемент>,
     модификатор — .szdt-<блок>--<модификатор>;
   - селекторы пишем с запасом по специфичности (родитель + класс),
     т.к. шаблон kcspm и ZOO агрессивно стилизуют h2/p/a внутри контента.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Общие переменные (фирменная палитра СЖД)
   ------------------------------------------------------------------------- */
:root {
    --szdt-red: #e52713;
    --szdt-red-dark: #c01f0f;
    --szdt-red-soft: rgba(229, 39, 19, .08);
    --szdt-blue: #005e8d;
    --szdt-blue-dark: #004d74;
    --szdt-blue-soft: rgba(0, 94, 141, .1);
    --szdt-green: #1f8a4c;
    --szdt-amber: #b7791f;
    --szdt-ink: #1d2330;
    --szdt-muted: #6b7280;
    --szdt-line: #e8ebf0;
    --szdt-bg-soft: #f6f8fb;
    --szdt-radius: 18px;
    --szdt-radius-sm: 12px;
    --szdt-shadow: 0 10px 34px rgba(16, 32, 56, .08);
}

/* =========================================================================
   Блок: ТиН-клуб в Екатеринбурге — панель документов и заявки
   Файл: tin-klub-v-ekaterinburge.php
   Страница: /tin-klub-v-ekaterinburge
   ========================================================================= */
.szdt-tin {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
}

.szdt-tin * {
    box-sizing: border-box;
}

.szdt-tin .szdt-tin__actions {
    display: flex;
    padding-top: 22px;
    border-top: 1px solid var(--szdt-line);
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* --- Текст над кнопками --- */
.szdt-tin .szdt-tin__intro {
    margin-bottom: 24px;
}

.szdt-tin .szdt-tin__text {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--szdt-ink);
}

.szdt-tin .szdt-tin__text--accent {
    margin: 0;
    padding-left: 14px;
    border-left: 3px solid var(--szdt-red);
    font-weight: 700;
}

.szdt-tin .szdt-tin__subtitle {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--szdt-muted);
}

.szdt-tin ul.szdt-tin__list {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.szdt-tin .szdt-tin__list-item {
    position: relative;
    margin: 0 0 9px;
    padding: 0 0 0 32px;
    list-style: none;
    background: none;
    font-size: 16px;
    line-height: 1.5;
    color: var(--szdt-ink);
}

.szdt-tin .szdt-tin__list-item:last-child {
    margin-bottom: 0;
}

/* кружок-маркер */
.szdt-tin .szdt-tin__list-item:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--szdt-blue-soft);
}

/* галочка внутри кружка */
.szdt-tin .szdt-tin__list-item:after {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    width: 5px;
    height: 9px;
    border: solid var(--szdt-blue);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Кнопки блока --- */
.szdt-tin a.szdt-tin__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--szdt-radius-sm);
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .15s;
}

.szdt-tin a.szdt-tin__btn:hover,
.szdt-tin a.szdt-tin__btn:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

.szdt-tin a.szdt-tin__btn:active {
    transform: translateY(0);
}

.szdt-tin .szdt-tin__btn-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.szdt-tin a.szdt-tin__btn--primary {
    color: #fff;
    background: var(--szdt-red);
    box-shadow: 0 8px 20px rgba(229, 39, 19, .28);
}

.szdt-tin a.szdt-tin__btn--primary:hover,
.szdt-tin a.szdt-tin__btn--primary:focus {
    color: #fff;
    background: var(--szdt-red-dark);
    box-shadow: 0 12px 26px rgba(229, 39, 19, .34);
}

.szdt-tin a.szdt-tin__btn--ghost {
    color: var(--szdt-blue);
    background: #fff;
    border-color: rgba(0, 94, 141, .35);
}

.szdt-tin a.szdt-tin__btn--ghost:hover,
.szdt-tin a.szdt-tin__btn--ghost:focus {
    color: #fff;
    background: var(--szdt-blue);
    border-color: var(--szdt-blue);
    box-shadow: 0 10px 22px rgba(0, 94, 141, .25);
}

/* --- Сообщение для неавторизованных --- */
.szdt-tin .szdt-tin__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 320px;
    min-height: 56px;
    padding: 14px 18px;
    background: var(--szdt-bg-soft);
    border: 1px dashed #c9d4e2;
    border-radius: var(--szdt-radius-sm);
    font-size: 15px;
    line-height: 1.45;
    color: var(--szdt-ink);
}

.szdt-tin .szdt-tin__note--success {
    background: rgba(31, 138, 76, .07);
    border: 1px solid rgba(31, 138, 76, .35);
    border-style: solid;
}

.szdt-tin .szdt-tin__note--success .szdt-tin__note-icon {
    color: var(--szdt-green);
}

.szdt-tin .szdt-tin__note--draft {
    background: rgba(183, 121, 31, .07);
    border: 1px solid rgba(183, 121, 31, .38);
    border-style: solid;
}

.szdt-tin .szdt-tin__note--draft .szdt-tin__note-icon {
    color: var(--szdt-amber);
}

.szdt-tin .szdt-tin__note-icon {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--szdt-blue);
}

.szdt-tin .szdt-tin__note-text {
    margin: 0;
}

.szdt-tin .szdt-tin__note-text b {
    display: block;
    margin-bottom: 2px;
}

.szdt-tin a.szdt-tin__link {
    color: var(--szdt-red);
    font-weight: 700;
    text-decoration: underline;
}

.szdt-tin a.szdt-tin__link:hover {
    color: var(--szdt-red-dark);
}

.szdt-tin .szdt-tin__user {
    margin: 14px 0 0;
    font-size: 14px;
    color: var(--szdt-muted);
}

@media (max-width: 640px) {
    .szdt-tin .szdt-tin__intro {
        margin-bottom: 20px;
    }

    .szdt-tin .szdt-tin__text,
    .szdt-tin .szdt-tin__list-item {
        font-size: 15px;
    }

    .szdt-tin .szdt-tin__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .szdt-tin a.szdt-tin__btn {
        width: 100%;
    }
}
