:root {
    /* Apple HIG Dark Mode Color System */
    --color-primary: #0A84FF; /* Apple Blue */
    --color-primary-hover: #409CFF;
    --color-primary-light: rgba(10, 132, 255, 0.2);
    
    /* Background Colors - Apple HIG Dark Mode (Lighter) */
    --bg-primary: #0A0A0A; /* Slightly lighter black */
    --bg-secondary: #1A1A1C; /* Secondary system background */
    --bg-tertiary: #2A2A2C; /* Tertiary system background */
    --bg-elevated: #1A1A1C; /* Elevated background */
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Text Colors - Apple HIG Dark Mode */
    --text-primary: #FFFFFF; /* Primary label */
    --text-secondary: #EBEBF5; /* Secondary label (60% opacity white) */
    --text-tertiary: #8E8E93; /* Tertiary label (30% opacity white) */
    --text-inverse: #000000;
    
    /* Border Colors - Apple HIG Dark Mode */
    --border-primary: rgba(255, 255, 255, 0.18); /* Separator */
    --border-secondary: rgba(255, 255, 255, 0.25);
    --border-focus: #0A84FF;
    
    /* Status Colors - Apple HIG */
    --color-success: #34C759; /* Apple Green */
    --color-success-bg: rgba(52, 199, 89, 0.2);
    --color-error: #FF3B30; /* Apple Red */
    --color-error-bg: rgba(255, 59, 48, 0.2);
    --color-warning: #FF9500; /* Apple Orange */
    --color-warning-bg: rgba(255, 149, 0, 0.2);
    
    /* Spacing System (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Border Radius */
    --radius-s: 6px;
    --radius-m: 8px;
    --radius-l: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-pill: 9999px;
    
    /* Shadows - Dark Theme */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    --font-size-5xl: 48px;
    --font-size-6xl: 64px;
    
    /* Legacy variables for compatibility */
    --system-blue: var(--color-primary);
    --system-green: var(--color-success);
    --system-red: var(--color-error);
    --system-secondary-background: var(--bg-secondary);
    --system-tertiary-background: var(--bg-tertiary);
    --system-gray5: var(--bg-tertiary);
    --label-primary: var(--text-primary);
    --label-secondary: var(--text-secondary);
}

html {
    height: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

body {
    margin: 0;
    height: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.011em;
    min-width: 350px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section {
    display: block;
}

input,
textarea,
select,
button {
    font-family: "SF UI Text", sans-serif;
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    outline: none;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--color-primary);
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-primary-hover);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

ul,
ol,
li {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

p {
    margin: 0;
}

button {
    padding: 0;
    cursor: pointer;
}

img {
    display: block;
}

table {
    border-collapse: collapse;
}

.clean-btn {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.clean-input {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    background: rgba(41, 98, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-l);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: var(--font-size-base);
    line-height: 1;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(41, 98, 255, 0.3);
}

.btn:hover {
    background: rgba(30, 83, 229, 0.95);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    box-shadow: 0 6px 24px rgba(41, 98, 255, 0.4);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(41, 98, 255, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: 17px;
}

.pagination-item a,
.pagination-item span {
    padding: 0 5px;
    font-size: var(--font-size-sm);
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    color: var(--text-secondary);
    display: block;
    transition: color var(--transition-base);
}

.pagination-item a:hover {
    color: var(--text-primary);
}

.pagination-item_active a {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.pagination-item_next a {
    opacity: 0.3;
    transform: rotate(180deg);
}

.pagination-item_next a:hover {
    opacity: 1;
}

.pagination-item_next.disabled {
    display: none;
}

.pagination-item_prev a {
    opacity: 0.3;
}

.pagination-item_prev a:hover {
    opacity: 1;
}

.pagination-item_prev.disabled {
    display: none;
}

@media (max-width: 740px) {
    .pagination-list {
        gap: 10px;
    }
}

.__hide {
    display: none;
}

.form-loading {
    position: relative;
}

.form-loading>* {
    visibility: hidden;
}

.form-loading:after {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner-border .75s linear infinite;
    animation: spinner-border .75s linear infinite;
}

.modal-notification__body {
    padding: 24px;
    position: relative;
}

.modal-notification__close {
    position: absolute;
    right: 12px;
    top: 12px;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-notification__message {
    padding: 40px 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    font-weight: 400;
    font-size: 18px;
}

.modal-notification__message i {
    margin-right: 12px;
    font-size: 20px;
}

.modal-notification_success .modal-notification__message_success {
    display: flex;
    color: #28a745;
}

.modal-notification_error .modal-notification__message_error {
    display: flex;
    color: #dc3545;
}

.modal-notification__control {
    text-align: center;
}

.modal-notification__btn {
    width: 200px;
    max-width: 100%;
}

.main-wrapper {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
}

/* Перекрываем паралакс-картинку после hero-секции */
.main-wrapper::after {
    content: '';
    position: absolute;
    top: calc(75vh + 88px + 80px + 64px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: -1;
    pointer-events: none;
}

.main-content {
    flex-grow: 1;
    width: 100%;
}

.main-wrapper_auth {
    padding-top: 54px;
}