/* Hero Section Styles */

/* Base variables from main stylesheet */
:root {
    --primary-color: #2d3a6d;
    --primary-light: #3d4a8d;
    --primary-dark: #1d2a5d;

    --accent-color: #e94f37;
    --secondary-color: #f9c22e;

    --text-color: #2d2a32;
    --text-light: #4a4754;
    --text-white: #fff;

    --bg-light: #f8f9fa;
    --bg-white: #fff;

    --shadow-sm: 0 2px 5px rgba(45, 58, 109, 0.1);
    --shadow-md: 0 4px 8px rgba(45, 58, 109, 0.15);
    --shadow-lg: 0 10px 20px rgba(45, 58, 109, 0.2);

    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --max-width: 1200px;

    /* New button variables for friendlier UI */
    --button-radius: 50px;
    --button-padding: 0.85rem 1.8rem;
    --button-shadow: 0 4px 10px rgba(45, 58, 109, 0.15);
    --button-hover-shadow: 0 6px 15px rgba(45, 58, 109, 0.25);
}

.hero-section {
    background: linear-gradient(135deg, #f0f4f8 0%, #e6ecf3 100%);
    padding: 4rem 2rem;
    overflow: hidden;
    position: relative;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1 1 50%;
    min-width: 280px;
}

.hero-illustration {
    flex: 1 1 40%;
    min-width: 240px;
    text-align: center;
}

.hero-illustration img {
    max-width: 100%;
    max-height: 400px; /* Ограничение по высоте */
    width: auto;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(45, 58, 109, 0.15));
    transition: transform 0.5s ease;
    object-fit: contain; /* чтобы сохранялись пропорции */
}


.hero-illustration img:hover {
    transform: translateY(-10px);
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #003366;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #333;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-buttons .btn-primary {
    padding: var(--button-padding);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--button-radius);
    background-color: var(--accent-color);
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--button-shadow);
    border: 2px solid var(--accent-color);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-buttons .btn-primary:hover {
    background-color: #d44230;
    transform: translateY(-3px);
    box-shadow: var(--button-hover-shadow);
}

.cta-buttons .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--button-shadow);
}

.cta-buttons .btn-secondary {
    padding: var(--button-padding);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--button-radius);
    background-color: transparent;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--button-hover-shadow);
}

.cta-buttons .btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: var(--button-shadow);
}

.cta-buttons .btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-buttons .btn-icon i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.cta-buttons .btn-icon:hover i {
    transform: translateX(3px);
}

.cta-buttons a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.cta-buttons a:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

.hero-bg-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.5;
}

.hero-bg-shape-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(233, 79, 55, 0.1) 0%, rgba(233, 79, 55, 0) 70%);
    border-radius: 50%;
}

.hero-bg-shape-2 {
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 58, 109, 0.1) 0%, rgba(45, 58, 109, 0) 70%);
    border-radius: 50%;
}

.fade-in-left,
.fade-in-right,
.fade-in-up {
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    animation-delay: 0.2s;
}
.delay-2 {
    animation-delay: 0.4s;
}
.delay-3 {
    animation-delay: 0.6s;
}

@media (max-width: 992px) {
    .hero-section {
        padding: 3rem 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-text {
        font-size: 1.15rem;
    }

    .hero-bg-shape-1 {
        width: 200px;
        height: 200px;
    }

    .hero-bg-shape-2 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-illustration {
        display: block;
        order: -1;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-illustration img {
        max-width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
        filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.1));
        border-radius: var(--border-radius);
        animation: scaleIn 0.6s ease-out forwards;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        margin-bottom: 0.75rem;
        padding: 0.9rem 1.5rem;
    }

    .hero-content {
        padding: 0 0.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.3;
    }

    .hero-text {
        font-size: 1.05rem;
        line-height: 1.6;
        color: var(--text-light);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
