:root {
    /* Основные цвета - более приглушенные */
    --color-background: #181626;           /* Приглушенный тёмно-синий/фиолетовый фон */
    --color-text: #c9c7d8;                 /* Приглушенный серебристо-лавандовый текст */
    --color-heading: #9a86b3;              /* Сдержанный лавандово-серый для заголовков */
    --color-link-hover: rgba(154, 134, 179, 0.7); /* Полупрозрачный при наведении */

    /* Акцентные цвета - более приглушенные */
    --color-accent-1: #5d4c73;             /* Приглушенный лавандово-пурпурный */
    --color-accent-2: #2b2438;             /* Тёмный баклажановый */
    --color-accent-3: #3d3252;             /* Средний приглушенный фиолетовый */

    /* Фоновые цвета */
    --color-background-dark: #13111e;      /* Ещё более тёмный фон */
    --color-background-darker: #0d0b16;    /* Самый тёмный фон */
    --color-background-light: rgba(93, 76, 115, 0.12); /* Полупрозрачный светлый фон */
    --color-background-lighter: rgba(154, 134, 179, 0.15); /* Более светлый полупрозрачный фон */

    /* Цвета контролов */
    --color-control: #2b2438;              /* Тёмный баклажановый для контролов */
    --color-control-border: #9a86b3;       /* Сдержанная лавандово-серая граница */

    /* Цвета кнопок */
    --color-button: #8a7a9e;               /* Приглушенные лавандовые кнопки */
    --color-button-hover: #7a6a8e;         /* Более тёмный при наведении */
    --color-button-gradient-start: #9a86b3; /* Начало градиента кнопки */
    --color-button-gradient-end: #5d4c73;  /* Конец градиента кнопки */

    /* Модальное окно */
    --color-modal-background: #1e182f;     /* Тёмный фон модального окна */
    --color-modal-text: #c9c7d8;           /* Приглушенный серебристый текст модального окна */
    --color-modal-circle: #5d4c73;         /* Приглушенный лавандовый круг */
}

body {
    background-image: linear-gradient(to bottom, var(--color-background), var(--color-background-dark));
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Добавляем эффект свечения для заголовков - более сдержанный */
h1, h2, h3, h4 {
    text-shadow: 0 0 8px rgba(154, 134, 179, 0.3);
    letter-spacing: 1.5px;
}

/* Стилизация навигации */
.navbar {
    background-color: var(--color-background-darker);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(154, 134, 179, 0.1);
}

.menu-items li {
    position: relative;
}

.menu-items li::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--color-heading);
    transition: width 0.4s cubic-bezier(0.42, 0, 0.58, 1);
}

.menu-items li:hover::after {
    width: 100%;
}

.menu-items li a {
    position: relative;
    overflow: hidden;
}

.menu-items li a::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -10px;
    width: 0;
    height: 0;
    background: rgba(154, 134, 179, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.menu-items li a:hover::before {
    width: 300px;
    height: 300px;
}

/* Стилизация кнопок */
.button, .main-button {
    box-shadow: 0 0 10px rgba(154, 134, 179, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.button::after, .main-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.7s;
}

.button:hover::after, .main-button:hover::after {
    left: 100%;
}

.button:hover, .main-button:hover {
    box-shadow: 0 5px 15px rgba(93, 76, 115, 0.3);
    transform: translateY(-2px);
}

.main-button {
    background: linear-gradient(45deg, var(--color-button-gradient-start), var(--color-button-gradient-end));
    font-weight: bold;
    letter-spacing: 1px;
}

/* Стилизация секций */
.header {
    background: linear-gradient(135deg, var(--color-background-dark) 0%, var(--color-accent-2) 100%);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-background-dark) 90%);
    z-index: 1;
}

.header-cont {
    position: relative;
    z-index: 2;
}

/* Эффекты для контейнеров */
.col-wrapper, .contact-wrapper, .experience-wrapper {
    background-color: var(--color-background-light);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--color-background-lighter);
    position: relative;
    overflow: hidden;
}

.col-wrapper::before, .contact-wrapper::before, .experience-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(154, 134, 179, 0.03), transparent 30%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    100% {
        transform: rotate(1turn);
    }
}

.contact-wrapper {
    border: 1px solid var(--color-accent-1);
    background: var(--color-accent-2);
    box-shadow: 0 10px 30px -15px rgba(93, 76, 115, 0.4);
}

.experience-item {
    background-color: var(--color-background-light);
    border: 1px solid var(--color-background-lighter);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.experience-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(154, 134, 179, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(93, 76, 115, 0.2);
}

.experience-item:hover::after {
    transform: translateX(100%);
}

/* Стилизация игровой секции */
.slot-machine {
    background: var(--color-background-dark);
    border: 1px solid var(--color-accent-1);
    box-shadow: 0 15px 35px -15px rgba(93, 76, 115, 0.3);
    position: relative;
    overflow: hidden;
}

.slot-machine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--color-accent-1) 50%,
        transparent 100%);
}

.slot-machine::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--color-accent-1) 50%,
        transparent 100%);
}

.grid {
    background: var(--color-background-darker);
    border: 1px solid var(--color-accent-3);
    position: relative;
}

.grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(0deg, var(--color-background-darker) 50%, transparent 50%),
        linear-gradient(90deg, var(--color-background-darker) 50%, transparent 50%);
    background-size: 30px 30px;
    opacity: 0.03;
    pointer-events: none;
}

.cell {
    background: var(--color-background-light);
    border: 1px solid rgba(93, 76, 115, 0.2);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cell::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(154, 134, 179, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cell:hover::after {
    opacity: 1;
}

.info {
    background: var(--color-background-light);
    border: 1px solid rgba(93, 76, 115, 0.2);
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 0.2);
}

button.spin {
    background: linear-gradient(45deg, var(--color-button-gradient-start), var(--color-button-gradient-end));
    box-shadow: 0 5px 15px -5px rgba(93, 76, 115, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

button.spin::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s;
}

button.spin:hover {
    box-shadow: 0 8px 20px -5px rgba(93, 76, 115, 0.6);
    transform: translateY(-2px);
}

button.spin:hover::after {
    left: 100%;
}

.decrease, .increase {
    background: var(--color-accent-2);
    border: 1px solid var(--color-accent-1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.decrease::before, .increase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(154, 134, 179, 0.1), transparent);
    transition: left 0.5s;
}

.decrease:hover, .increase:hover {
    background: var(--color-accent-3);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px -3px rgba(93, 76, 115, 0.3);
}

.decrease:hover::before, .increase:hover::before {
    left: 100%;
}

/* Модальное окно */
.modal {
    background: var(--color-modal-background);
    border: 1px solid var(--color-accent-1);
    box-shadow: 0 15px 40px rgba(13, 11, 22, 0.6);
    position: relative;
    overflow: hidden;
}

.modal::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(ellipse at center, transparent 30%, var(--color-background-darker) 100%);
    z-index: -1;
    opacity: 0.8;
}

.modal .age-circle {
    background: var(--color-modal-circle);
    box-shadow: 0 0 15px rgba(93, 76, 115, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal .age-circle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.modal button {
    background: linear-gradient(45deg, var(--color-button-gradient-start), var(--color-button-gradient-end));
    position: relative;
    overflow: hidden;
}

.modal button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal button:hover::after {
    left: 100%;
}

/* Стилизация логотипа */
.logo img {
    background: var(--color-accent-1);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 0 15px rgba(183, 148, 246, 0.8);
}

/* Стилизация футера */
.footer-logo {
    background: var(--color-accent-2);
}

.age {
    background: var(--color-accent-3);
}

.age-cont {
    background: var(--color-accent-1);
    box-shadow: 0 0 20px rgba(107, 70, 193, 0.5);
}

/* Дополнительные эффекты */
.background-accent {
    background: var(--color-accent-1);
    position: relative;
    overflow: hidden;
}

.background-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(183, 148, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(183, 148, 246, 0.4) 0%, transparent 50%);
    z-index: 0;
}

/* Анимация свечения для кнопок и интерактивных элементов */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(183, 148, 246, 0.5); }
    50% { box-shadow: 0 0 20px rgba(183, 148, 246, 0.8); }
    100% { box-shadow: 0 0 5px rgba(183, 148, 246, 0.5); }
}

.button, .main-button, button.spin {
    animation: glow 3s infinite;
}