/* ===== Общие стили ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: transparent;
}

/* ===== Контейнер ===== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Фон ===== */
.background-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2ff, #f4f5f7);
    z-index: -1;
    overflow: hidden;
}

.background-svg::before,
.background-svg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.15);
    animation: float 15s infinite ease-in-out alternate;
}

.background-svg::before {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
}

.background-svg::after {
    width: 600px;
    height: 600px;
    bottom: -15%;
    right: -10%;
    background: rgba(59, 130, 246, 0.12);
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(45deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* ===== Шапка ===== */
.header {
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    color: #fff;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 28px;
    font-weight: 700;
}

.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.nav a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #fff;
    transition: width 0.3s;
    position: absolute;
    bottom: -4px;
    left: 0;
}

.nav a:hover::after {
    width: 100%;
}

/* ===== Основное тело ===== */
main {
    padding: 60px 0;
}

/* Приветственный блок */
.welcome {
    background: #fff;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.welcome:hover {
    transform: translateY(-5px);
}

.welcome h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.welcome p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #4b5563;
}

.button {
    display: inline-block;
    padding: 14px 32px;
    background: #3b82f6;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(59,130,246,0.3);
}

.button:hover {
    background: #2563eb;
    box-shadow: 0 8px 16px rgba(59,130,246,0.4);
    transform: translateY(-2px);
}

/* ===== Карточки / особенности ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.12);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #1f2937;
}

.feature-card p {
    color: #4b5563;
}

/* ===== Подвал ===== */
.footer {
    background: #111827;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.footer-nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3b82f6;
}

/* Логотип в шапке */
header .logo-img {
    max-height: 60px;   /* ограничиваем высоту */
    width: auto;         /* сохраняем пропорции */
    display: block;
}

/* Логотип без рамки */
#logo, 
#logo:focus, 
#logo:active, 
#logo img {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}


/* ===== Адаптив ===== */
@media (max-width: 768px) {
    .header-container, .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav a, .footer-nav a {
        margin: 10px 0 0 0;
    }
    .welcome h2 {
        font-size: 28px;
    }
}
