:root {
    --primary: #6c63ff;
    --secondary: #4834d4;
    --accent: #ffd700;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(108, 99, 255, 0.1), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -6px rgba(108, 99, 255, 0.15), 0 8px 16px -4px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(108, 99, 255, 0.02);
    --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 6px 20px -6px rgba(108, 99, 255, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 8px 30px -8px rgba(108, 99, 255, 0.25), 0 20px 40px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(108, 99, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-aurora: linear-gradient(45deg, #6c63ff, #4834d4, #ffd700);
    --gradient-dark: linear-gradient(180deg, #1a1a2e 0%, #0f0f1e 100%);
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --border: #e0e0e0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);\n    --transition-shadow: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-base: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    --z-header: 1000;
    --z-modal: 2000;
    --z-toast: 3000;
    --z-floating: 900;
    --header-height: 72px;
}

[data-theme="dark"] {
    --text: #e0e0e0;
    --text-light: #b0b0b0;
    --text-muted: #808080;
    --bg: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --border: #2a2a3e;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px -3px rgba(108, 99, 255, 0.2), 0 4px 10px -2px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px -6px rgba(108, 99, 255, 0.3), 0 8px 16px -4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(108, 99, 255, 0.05);
    --shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.2), 0 6px 20px -6px rgba(108, 99, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-card-hover: 0 8px 30px -8px rgba(108, 99, 255, 0.4), 0 20px 40px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(108, 99, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-base);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-base), color var(--transition-base);
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
}

/* Класс для принудительной перерисовки на мобильных устройствах */
body.theme-transitioning {
    transform: translateZ(0);
    will-change: transform;
}

/* Safari-specific хак для форсирования перерисовки градиентов */
@supports (-webkit-touch-callout: none) {
    .gradient-text,
    .section__title,
    .logo__text,
    .hero__title,
    .feature-badge {
        -webkit-background-clip: text !important;
        background-clip: text !important;
        transform: translateZ(0);
    }
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    min-height: 48px;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px -2px rgba(108, 99, 255, 0.25), 0 2px 6px -1px rgba(0, 0, 0, 0.08);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(108, 99, 255, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.12);
}

.btn--secondary {
    background: var(--secondary);
    color: white;
}

.btn--glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn--accent {
    background: linear-gradient(135deg, var(--accent), #ffed4e);
    color: var(--dark);
    font-weight: 700;
}

.btn--block {
    width: 100%;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform var(--transition-fast);
    z-index: calc(var(--z-header) + 1);
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: var(--z-modal);
}

.skip-link:focus {
    top: 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-header);
    transition: transform var(--transition-base), background-color var(--transition-base);
}

.header.header--hidden {
    transform: translateY(-100%);
}

.nav {
    height: 100%;
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: 0.05em;
    position: relative;
}

.logo__text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav__menu {
    display: none;
    list-style: none;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .nav__menu {
        display: flex;
    }
}

.nav__link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

@media (min-width: 1024px) {
    .nav__toggle {
        display: none;
    }
}

.hamburger,
.hamburger::before,
.hamburger::after {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav__toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav__toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg) translate(5px, -6px);
}

.theme-toggle {
    position: fixed;
    bottom: calc(2rem + 56px * 2 + 1rem * 2);
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--primary);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: var(--z-floating);
}

.theme-toggle:hover {
    background: var(--secondary);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Убираем стили фокуса на мобильных устройствах */
@media (hover: none) and (pointer: coarse) {
    .theme-toggle:focus {
        outline: none;
        animation: none;
        background: var(--primary);
        border-color: var(--primary);
    }
    
    [data-theme="dark"] .theme-toggle:focus {
        background: var(--primary);
        border-color: var(--primary);
    }
}

.theme-toggle__icon {
    width: 28px;
    height: 28px;
    transition: all var(--transition-base);
}

.theme-toggle:hover .theme-toggle__icon {
    fill: var(--accent);
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-toggle {
    background: var(--primary);
    border-color: var(--primary);
}

[data-theme="dark"] .theme-toggle:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

[data-theme="dark"] .theme-toggle:hover .theme-toggle__icon {
    fill: var(--accent);
}

.sun {
    display: block;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sun circle,
.sun path {
    fill: var(--accent) !important;
    stroke: var(--accent) !important;
}

.moon {
    display: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    fill: var(--accent) !important;
}

[data-theme="dark"] .sun {
    display: none;
}

[data-theme="dark"] .moon {
    display: block;
    fill: var(--accent);
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 56px;
        height: 56px;
        bottom: calc(2rem + 56px * 2 + 1rem * 2);
        right: 2rem;
    }
    
    .theme-toggle__icon {
        width: 28px;
        height: 28px;
        fill: var(--accent);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

.theme-toggle:focus {
    outline: none;
    animation: pulse 1s;
}

/* Убираем визуальное выделение после клика на тач-устройствах */
.theme-toggle {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-top: calc(var(--header-height) + 1rem);
        padding-bottom: 2rem;
    }
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: var(--gradient-aurora);
    opacity: 0.1;
    filter: blur(100px);
    animation: aurora 20s ease-in-out infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .aurora {
        opacity: 0.05;
        filter: blur(60px);
        width: 150%;
        height: 150%;
        top: -25%;
        left: -25%;
    }
}

@keyframes aurora {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: float 20s linear infinite;
    pointer-events: none;
}

@media (max-width: 768px) {
    .particles {
        background-size: 30px 30px;
        opacity: 0.05;
    }
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

.hero__content {
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero__content {
        padding: 1rem;
        max-width: 100%;
        margin-top: 1rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

@media (max-width: 768px) {
    .hero__title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 1rem;
    }
}

.title__line {
    display: block;
    animation: slideInLeft 0.8s ease-out;
}

.title__line:nth-child(2) {
    animation-delay: 0.2s;
    animation-name: slideInRight;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease-out 0.4s both;
}

@media (max-width: 768px) {
    .hero__subtitle {
        font-size: clamp(1rem, 3.5vw, 1.25rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

@media (max-width: 768px) {
    .hero__cta {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
        margin-bottom: 2rem;
        gap: 0.75rem;
    }
    
    .hero__cta .btn {
        width: 100%;
        padding: 1rem;
    }
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.8s both;
}

@media (max-width: 768px) {
    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
        background: var(--glass);
        backdrop-filter: blur(10px);
        border-radius: var(--radius-lg);
        border: 1px solid var(--glass-border);
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero__stats {
        gap: 0.75rem;
        padding: 1rem;
    }
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
}

.stat__suffix {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    margin-left: -0.2em;
}

.stat__label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .stat__number {
        font-size: 2rem;
    }
    
    .stat__suffix {
        font-size: 1.5rem;
    }
    
    .stat__label {
        font-size: 0.75rem;
        margin-top: 0.125rem;
    }
}

@media (max-width: 480px) {
    .stat__number {
        font-size: 1.5rem;
    }
    
    .stat__suffix {
        font-size: 1.25rem;
    }
    
    .stat__label {
        font-size: 0.625rem;
        letter-spacing: 0.03em;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator__mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    display: block;
    position: relative;
}

.scroll-indicator__mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 16px; }
}

section {
    padding: 5rem 0;
    position: relative;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.philosophy__list {
    list-style: none;
    padding-left: 0;
}

.philosophy__list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.philosophy__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.approach__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-badge {
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    grid-auto-rows: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.floating-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: var(--z-floating);
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base);
    animation: fadeInScale 0.5s ease-out;
    text-decoration: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn--whatsapp {
    background: #25D366;
    color: white;
}

.floating-btn--telegram {
    background: #2AABEE;
    color: white;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 1rem;
}

.modal[hidden] {
    display: none;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal__content {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal__close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal__body {
    padding: 1rem 0;
}

.modal__body .btn {
    margin-top: 2rem;
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    animation: slideUpToast 0.3s ease-out;
}

@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast[hidden] {
    display: none;
}

.toast__content {
    background: var(--dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    text-align: center;
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 0;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.observable {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.observable.observed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform var(--transition-base);
    }
    
    .nav__menu.nav__menu--open {
        display: flex;
        transform: translateY(0);
    }
}