:root {
    /* Основные цвета (светлая тема по умолчанию) */
    --color-primary: #1768ff;
    --color-muted: #f7f7f7;
    --color-white: #ffffff;
    --color-dark: #242424;
    --color-secondary: #9caab5;
    --color-background: #ffffff;
    /* светлый фон */
    --color-dark-light: #E2E2E2;
    --color-gray: #C3C3C3;
    --color-red: #D45353;
    --color-stroke: #CFCFCF;
    --color-green: #29b52b;
    --color-brand: white;

    color: var(--color-dark) !important;
}

a {
    text-decoration: none !important;
}

/* Тёмная тема */
body.dark-theme {
    --color-background: #222;
    --color-dark: #ffffff;
    --color-muted: #1a1a1a;
    --color-brand: black;
    color: white;
}

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;

    margin: 0 0;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    background-color: var(--color-background) !important;
}

.content {
    flex: 1;
}

* {
    transition: all ease-in-out 0.3s;
}

a {
    text-decoration: none;
}

.contact-btn {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.copy-btn {
    padding: 6px 12px;
    font-size: 14px;
    border: none;
    background-color: var(--color-muted);
    color: var(--color-primary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.copy-btn:hover {
    opacity: 0.8;
}

body.dark-theme .copy-btn {
    background-color: #444;
    color: var(--color-white);
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-loaded {
    opacity: 1;
}

#notification-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-dark);
    color: var(--color-brand);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: top 0.5s ease-in-out;
    font-size: 16px;
    font-weight: 500;
}

body.dark-theme #notification-toast {
    background-color: var(--color-white);
    color: var(--color-brand);
}

#notification-toast.show {
    top: 30px;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-green));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

#themeToggleBtn {
    position: fixed;
    bottom: 16px;
    right: 16px;
    padding: 4px 4px;
    z-index: 1000;

    background-color: var(--color-dark);
    border-radius: 100%;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.search__button svg {
    width: 24px;
    height: 24px;
    fill: var(--color-dark) !important;
}

#themeToggleBtn svg {
    width: 24px;
    height: 24px;
    fill: var(--color-brand) !important;
}