/* =============================================================
   pdn.mortrast.ru — кастомные стили (поверх UIkit 3)
   Цвета и шрифты: в стиле mortrast.ru
   ============================================================= */

/* -------------------------------------------------------------
   Шрифты (локальные)
   ------------------------------------------------------------- */
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/PTSansNarrow-400-cyr.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/PTSansNarrow-400-lat.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/PTSansNarrow-700-cyr.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Sans Narrow';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/PTSansNarrow-700-lat.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/OpenSans-cyr.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/assets/fonts/OpenSans-lat.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                   U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191,
                   U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------------------------------------------------
   Переменные
   ------------------------------------------------------------- */
:root {
    --pdn-blue:        #0e6ecd;
    --pdn-blue-hover:  #0f7ae5;
    --pdn-blue-dark:   #0065c4;
    --pdn-red:         #d5000b;
    --pdn-dark:        #27323a;
    --pdn-dark-2:      #1e2c33;
    --pdn-gray-light:  #f5f5f5;
    --pdn-gray-border: #e0e0e0;
    --pdn-text:        #333;
    --pdn-text-muted:  #666;
    --pdn-shadow:      0 2px 12px rgba(0,0,0,.08);
    --pdn-radius:      4px;
}

/* -------------------------------------------------------------
   Базовые
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--pdn-text);
    background: #fff;
    margin: 0;
}

.pdn-bg-light { background: var(--pdn-gray-light); }

/* UIkit gap-утилита (не во всех версиях) */
.uk-flex-gap-s { gap: 8px; }

/* -------------------------------------------------------------
   Шапка публичных страниц
   ------------------------------------------------------------- */
.pdn-header {
    background: var(--pdn-dark);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.pdn-header-inner { min-height: 48px; }

.pdn-header-logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.2;
}
.pdn-logo-text {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    letter-spacing: .3px;
}
.pdn-logo-tagline {
    font-size: 12px;
    color: rgba(255,255,255,.55);
    margin-top: 2px;
}

/* -------------------------------------------------------------
   Герой
   ------------------------------------------------------------- */
.pdn-hero {
    background: var(--pdn-dark-2);
    padding: 52px 0 48px;
}
.pdn-hero--sm { padding: 32px 0 28px; }

.pdn-hero-title {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    font-size: 34px;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.2;
}
.pdn-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,.7);
    margin: 0;
}

/* -------------------------------------------------------------
   Секция с формой / документом
   ------------------------------------------------------------- */
.pdn-form-section,
.pdn-doc-section {
    padding: 48px 0 64px;
    background: var(--pdn-gray-light);
}

.pdn-form-card,
.pdn-doc-card {
    background: #fff;
    border-radius: var(--pdn-radius);
    box-shadow: var(--pdn-shadow);
    padding: 40px 44px;
    max-width: 860px;
}

/* -------------------------------------------------------------
   Поля формы
   ------------------------------------------------------------- */
.uk-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pdn-text);
    margin-bottom: 5px;
    display: block;
}
.uk-input, .uk-select, .uk-textarea {
    border-color: var(--pdn-gray-border);
    border-radius: var(--pdn-radius);
    height: 40px;
    font-size: 14px;
    color: var(--pdn-text);
    transition: border-color .15s;
}
.uk-input:focus, .uk-select:focus, .uk-textarea:focus {
    border-color: var(--pdn-blue);
    outline: none;
}

.pdn-required { color: var(--pdn-red); }
.pdn-hint     { font-size: 12px; color: var(--pdn-text-muted); font-weight: 400; margin-left: 4px; }

/* Кнопка загрузки файла */
.pdn-file-btn {
    width: 100%;
    max-width: 100%;
    text-align: left;
    border-color: var(--pdn-gray-border);
    color: var(--pdn-text-muted);
    font-size: 14px;
    height: 40px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #fff;
    border-radius: var(--pdn-radius);
    transition: border-color .15s;
    overflow: hidden;
}
.pdn-file-btn:hover { border-color: var(--pdn-blue); color: var(--pdn-text); }
.pdn-file-btn.has-file { color: var(--pdn-text); }

#resume-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Переключатель "Есть танкерные документы" */
.pdn-toggle-wrap { margin-top: 6px; }

.pdn-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}
.pdn-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.pdn-toggle-slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background .2s;
}
.pdn-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.pdn-toggle input:checked + .pdn-toggle-slider { background: var(--pdn-blue); }
.pdn-toggle input:checked + .pdn-toggle-slider::before { transform: translateX(20px); }

.pdn-toggle-label {
    font-size: 14px;
    color: var(--pdn-text-muted);
    transition: color .2s;
}
#tanker-label-yes { color: var(--pdn-text-muted); }
.tanker-active #tanker-label-yes { color: var(--pdn-blue); font-weight: 600; }
.tanker-active #tanker-label-no  { color: var(--pdn-text-muted); font-weight: 400; }

/* -------------------------------------------------------------
   Чекбоксы согласия
   ------------------------------------------------------------- */
.pdn-consents {
    border-top: 1px solid var(--pdn-gray-border);
    padding-top: 24px;
}
.pdn-consent-label {
    gap: 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
}
.pdn-consent-check {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--pdn-blue);
    cursor: pointer;
}
.pdn-consent-text {
    font-size: 13px;
    color: var(--pdn-text-muted);
    line-height: 1.5;
}
.pdn-link-inline {
    color: var(--pdn-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.pdn-link-inline:hover { color: var(--pdn-blue-hover); }

/* -------------------------------------------------------------
   Кнопки
   ------------------------------------------------------------- */
.pdn-btn-primary.uk-button-primary,
.pdn-btn-primary {
    background: var(--pdn-blue);
    color: #fff;
    border: none;
    border-radius: var(--pdn-radius);
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .3px;
    transition: background .15s, opacity .15s;
}
.pdn-btn-primary.uk-button-primary:hover,
.pdn-btn-primary:hover { background: var(--pdn-blue-hover); color: #fff; }
.pdn-btn-primary:disabled,
.pdn-btn-primary[disabled] {
    background: #b0c8e8;
    cursor: not-allowed;
    opacity: 1;
}

.pdn-submit-btn {
    padding: 0 36px;
    height: 46px;
    font-size: 17px;
}

.pdn-required-note {
    font-size: 12px;
    color: var(--pdn-text-muted);
    margin: 0;
}

/* Алерт результата отправки */
#form-alert { margin-bottom: 20px; }
#form-alert:not([hidden]) { display: block; }

/* -------------------------------------------------------------
   Подвал публичных страниц
   ------------------------------------------------------------- */
.pdn-footer {
    background: var(--pdn-dark);
    padding: 20px 0;
    margin-top: auto;
}
.pdn-footer-inner { gap: 16px; flex-wrap: wrap; }
.pdn-footer-copy  { font-size: 13px; color: rgba(255,255,255,.5); }
.pdn-footer-link  {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    transition: color .15s;
}
.pdn-footer-link:hover { color: #fff; }

/* -------------------------------------------------------------
   Страница входа
   ------------------------------------------------------------- */
.pdn-login-wrap {
    min-height: 100vh;
    padding: 40px 16px;
}
.pdn-login-card {
    background: #fff;
    border-radius: var(--pdn-radius);
    box-shadow: var(--pdn-shadow);
    padding: 40px 40px 36px;
    width: 100%;
    max-width: 420px;
}
.pdn-login-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}
.pdn-login-logo .pdn-logo-text  { color: var(--pdn-dark); font-size: 20px; }
.pdn-login-logo .pdn-logo-sub   { font-size: 13px; color: var(--pdn-text-muted); margin-top: 3px; }
.pdn-logo-sub { font-size: 13px; color: var(--pdn-text-muted); }

/* -------------------------------------------------------------
   Навигация / шапка админки
   ------------------------------------------------------------- */
.pdn-admin-nav {
    background: var(--pdn-dark);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.pdn-admin-nav-inner {
    min-height: 56px;
    padding: 0 0;
}
.pdn-admin-brand {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.pdn-admin-brand .pdn-logo-text { color: #fff; font-size: 20px; }
.pdn-admin-badge {
    font-size: 12px;
    color: rgba(255,255,255,.5);
    background: rgba(255,255,255,.08);
    padding: 2px 8px;
    border-radius: 10px;
}
.pdn-admin-user {
    font-size: 13px;
    color: rgba(255,255,255,.65);
}
.pdn-admin-nav .uk-button-default,
.pdn-btn-logout.uk-button-default {
    border-color: rgba(255,255,255,.25);
    color: rgba(255,255,255,.8);
    background: transparent;
    font-size: 13px;
    padding: 0 14px;
    height: 32px;
    line-height: 30px;
}
.pdn-admin-nav .uk-button-default:hover,
.pdn-btn-logout.uk-button-default:hover {
    border-color: rgba(255,255,255,.6);
    color: #fff;
    background: transparent;
}

/* -------------------------------------------------------------
   Страница /summary — таблица
   ------------------------------------------------------------- */
.pdn-page-title {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--pdn-dark);
}
.pdn-doc-links { gap: 12px; }
.pdn-link-doc {
    font-size: 13px;
    color: var(--pdn-blue);
    text-decoration: none;
    border-bottom: 1px dashed var(--pdn-blue);
}
.pdn-link-doc:hover { color: var(--pdn-blue-hover); border-bottom-style: solid; }

.pdn-toolbar { gap: 12px; }
.pdn-filter-form  { gap: 8px; }
.pdn-filter-input { width: 260px; height: 36px; font-size: 14px; }

.pdn-export-btn {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
}

.pdn-count { font-size: 13px; color: var(--pdn-text-muted); }

.pdn-table-wrap {
    border-radius: var(--pdn-radius);
    box-shadow: var(--pdn-shadow);
    background: #fff;
}
.pdn-table {
    margin: 0 !important;
    font-size: 13px;
}
.pdn-table thead th {
    background: var(--pdn-dark);
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    padding: 10px 12px;
}
.pdn-table tbody td { padding: 9px 12px; vertical-align: middle; }
.pdn-table.uk-table-striped > tr:nth-of-type(odd),
.pdn-table.uk-table-striped tbody tr:nth-of-type(odd) { background: #fafafa; }
.pdn-table.uk-table-hover > tr:hover,
.pdn-table.uk-table-hover tbody tr:hover { background: #edf4fb; }

.pdn-col-id     { width: 52px; }
.pdn-col-date   { width: 140px; white-space: nowrap; }
.pdn-col-ip     { width: 120px; font-family: monospace; font-size: 12px; }
.pdn-col-resume { width: 90px; }

.pdn-date { color: var(--pdn-text-muted); font-size: 12px; }
.pdn-ip   { color: var(--pdn-text-muted); }

.pdn-link-email { color: var(--pdn-blue); text-decoration: none; }
.pdn-link-email:hover { text-decoration: underline; }

.pdn-resume-link {
    color: var(--pdn-blue);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    text-decoration: none;
}
.pdn-resume-link:hover { color: var(--pdn-blue-hover); }
.pdn-no-file { color: #bbb; }

.pdn-empty-alert { margin: 24px; }

/* -------------------------------------------------------------
   Документы (/agreement, /policy)
   ------------------------------------------------------------- */
.pdn-doc-meta {
    font-size: 13px;
    color: var(--pdn-text-muted);
    border-left: 3px solid var(--pdn-blue);
    padding-left: 12px;
    line-height: 1.8;
}
.pdn-doc-meta p { margin: 0; }

.pdn-doc-h2 {
    font-family: 'PT Sans Narrow', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--pdn-dark);
    margin: 28px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--pdn-gray-border);
}

.pdn-doc-placeholder {
    color: var(--pdn-text-muted);
    font-style: italic;
    font-size: 14px;
    padding: 12px;
    background: #fffde7;
    border-radius: var(--pdn-radius);
    border-left: 3px solid #faa05a;
}

.pdn-doc-contact {
    font-size: 14px;
    line-height: 1.6;
    color: var(--pdn-text);
    margin-top: 12px;
}

.pdn-doc-crosslink {
    border-top: 1px solid var(--pdn-gray-border);
    padding-top: 20px;
    font-size: 14px;
    color: var(--pdn-text-muted);
}

/* -------------------------------------------------------------
   Адаптив
   ------------------------------------------------------------- */
@media (max-width: 640px) {
    .pdn-hero-title  { font-size: 26px; }
    .pdn-form-card,
    .pdn-doc-card    { padding: 24px 20px; }
    .pdn-login-card  { padding: 28px 20px; }
    .pdn-filter-input { width: 100%; }
    .pdn-toolbar     { flex-direction: column; align-items: stretch; }
    .pdn-export-btn  { width: 100%; justify-content: center; }
    .pdn-admin-badge { display: none; }
    .pdn-submit-btn  { width: 100%; }
}
