@font-face {
    font-family: 'Dela Gothic One';
    font-style: normal;
    font-weight: 400;
    src: local(''),
         url('/fonts/dela-gothic-one-v19-cyrillic_latin-regular.woff2') format('woff2');
}

:root {
    --page-bg: #f4f4f9;
    --card-bg: #fff;
    --text-color: #333;
    --header-text-color: #000033;
    --primary-accent-color: #3D099F;
    --primary-accent-hover: #2F077A;
    --shadow-color: rgba(0, 0, 0, .08);
    --border-color: #e9e9ed;
    --hr-color: #f0f0f0;
    --menu-overlay-bg: rgba(244, 244, 249, .5)
}

html[data-theme=dark] {
    --page-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --header-text-color: #fff;
    --primary-accent-color: #3D099F;
    --primary-accent-hover: #2F077A;
    --shadow-color: rgba(0, 0, 0, .4);
    --border-color: #333;
    --hr-color: #2a2a2a;
    --menu-overlay-bg: rgba(18, 18, 18, .5)
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color-scheme: light dark
}

body {
    background-color: var(--page-bg);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    transition: background-color .3s ease, color .3s ease
}

.top-panel {
    background-color: var(--card-bg);
    padding: 10px 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 200;
    transition: background-color .3s ease
}

.logo-container {
    display: flex;
    align-items: center
}

.logo {
    height: 30px;
    width: 30px; /* Добавлено для явного указания размера */
    margin-right: 10px
}

.site-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-size: 20px;
    color: var(--header-text-color);
    transition: color .3s ease
}

.menu-icon {
    width: 30px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 8px;
    box-sizing: content-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none
}

.menu-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: var(--header-text-color);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, background-color .3s ease
}

.menu-icon.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg)
}

.menu-icon.active span:nth-child(2) {
    opacity: 0
}

.menu-icon.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg)
}

main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 40px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column
}

.container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%
}

.welcome-header {
    text-align: center;
    margin-bottom: 50px
}

.welcome-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--header-text-color);
    margin: 0 0 10px 0;
    transition: color .3s ease
}

.welcome-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px
}

.info-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px var(--shadow-color);
    box-sizing: border-box;
    text-align: center;
    transition: background-color .3s ease, transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-color)
}

.info-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--header-text-color);
    transition: color .3s ease;
    margin-top: 0;
    margin-bottom: 15px
}

.info-card p {
    font-size: 15px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 25px;
    flex-grow: 1
}

.card-button {
    display: inline-block;
    background-color: var(--primary-accent-color);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: background-color .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

.card-button:hover {
    background-color: var(--primary-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15)
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--menu-overlay-bg);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: opacity .3s ease, visibility .3s ease, background-color .3s ease, backdrop-filter .3s ease
}

.menu-overlay.hidden {
    opacity: 0;
    visibility: hidden
}

.menu-item {
    background-color: var(--card-bg);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--header-text-color);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease
}

.menu-item:last-child {
    margin-bottom: 0
}

@media (max-width:600px) {
    main {
        padding: 20px 15px
    }

    .welcome-header {
        background-color: var(--card-bg);
        padding: 25px;
        border-radius: 15px;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 10px var(--shadow-color);
        margin-bottom: 30px
    }

    .welcome-header h1 {
        font-size: 26px
    }

    .welcome-header p {
        font-size: 16px
    }

    .info-grid {
        gap: 20px
    }

    .info-card {
        padding: 25px
    }

    .top-panel {
        padding: 12px 18px
    }

    .logo {
        height: 36px;
        width: 36px;
    }

    .site-title {
        font-size: 22px
    }
}