* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f0f2f5;
    color: #1b263b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    z-index: 10;
}

header h1 a {
    text-decoration: none !important;
    color: inherit !important;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    z-index: 11;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 9;
}

.overlay.show {
    opacity: 1;
    pointer-events: all;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(27, 38, 59, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: translateY(-100%);
    transition: transform 0.5s ease-in-out;
    z-index: 10;
    padding-top: 60px;
}

nav.open {
    transform: translateY(0);
}

.menu-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
}

.menu-buttons button {
    background-color: #4e9af1;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.menu-buttons button:hover {
    background-color: #3c7fd6;
    transform: scale(1.05);
}

nav a {
    background-color: #4e9af1;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    width: 220px;
    transition: background 0.3s, transform 0.2s;
}

nav a:hover {
    background-color: #3c7fd6;
    transform: scale(1.05);
}

.slider-container {
    overflow: hidden;
    width: 100%;
    margin-bottom: 30px;
    height: 300px;
    position: relative;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    text-align: center;
    padding: 40px 20px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.slide p {
    font-size: 18px;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #4e9af1;
}

/* Стиль для обычных карточек */
.card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
    z-index: 1;
}

/* Когда карточка — это ссылка */
.card.link-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card.link-card:link,
.card.link-card:visited,
.card.link-card:active {
    color: inherit;
    text-decoration: none;
}


/* Наведение на ссылку-карточку */
.card.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Заголовки и параграфы внутри карточек */
.card h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 0; /* убрал отступ, так как нет кнопки */
}

.footer {
    margin-top: auto;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    padding: 20px 0;
    z-index: 1;
}
body::before {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/main/pics/femida.jpg') no-repeat center bottom;
    background-size: contain;
    background-attachment: fixed;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(100%);
}
