/**
 * Базовые стили: reset, переменные, общие компоненты.
 * Подключается на всех страницах первым.
 */

/* --- Reset --- */
*, ::after, ::before { margin: 0; padding: 0; box-sizing: border-box; }
html { height: auto; }

/* --- CSS Variables --- */
:root {
    --sr-line: #e9ecef;
    --sr-line-focus: #a8a8a8;
    --sr-text: #212529;
    --sr-muted: #8e9499;
    --sr-fill: #f6f7f9;
    --sr-radius: 0.6rem;
    --sr-success: #28a745;
    --sr-warning: #ffc107;
    --sr-info: #17a2b8;
    --sr-error: #dc3545;
    --sr-files-primary: #00AFCB;
    --sr-files-secondary: #3973B9;
    --sr-files-button: #3FB498;
}

/* --- Typography (как в PAY) --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--sr-text);
    -webkit-font-smoothing: antialiased;
}

/* --- Animations --- */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Logo (base) --- */
.logo {
    text-align: center;
}
.logo a {
    display: inline-block;
    text-decoration: none;
}
.logo img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* --- Footer --- */
.footer {
    font-size: 13px;
    color: var(--sr-muted);
    line-height: 1.4;
}
.footer a {
    color: var(--sr-files-secondary);
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }
.footer .ext-icon,
.footer-site .ext-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-left: 4px;
}
.dotted-link {
    color: var(--sr-muted);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}
.dotted-link:hover {
    color: var(--sr-text);
    border-bottom-style: solid;
}
.footer-site {
    text-align: center;
    font-size: 0.9rem;
    color: var(--sr-muted);
    margin-top: 32px;
    margin-bottom: 0;
}

/* --- Toast --- */
#toastContainer {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}
.toast {
    background: var(--sr-files-secondary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(57,115,185,0.4);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast.hide {
    transform: translateY(-100%);
    opacity: 0;
}
