:root {
    --header-deep-burgundy: #450000;
    --header-burgundy-main: #8B0000;
    --header-burgundy-light: #A52A2A;
    --header-gradient-1: #FF4E50;
    --header-gradient-2: #F9D423;
    --header-gradient-3: #8B0000;

    --header-wave-color-1: rgba(255, 255, 255, 0.7);
    --header-wave-color-2: rgba(255, 255, 255, 0.6);
    --header-wave-color-3: rgba(255, 255, 255, 0.5);
    --header-secondary-wave-color: rgba(255, 255, 255, 0.4);
    --header-glass-light: rgba(255, 255, 255, 0.15);
    --header-glass-border: rgba(255, 255, 255, 0.2);
}

.header-section {
    font-family: inherit;
}

.header-gradient-border {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        45deg,
        var(--header-gradient-1),
        var(--header-gradient-2),
        var(--header-gradient-3),
        var(--header-gradient-1)
    );
    border-radius: 20px;
    z-index: 0;
    animation: header-rotate-gradient 4s linear infinite;
    filter: blur(3px);
    opacity: 1;
    background-size: 400% 400%;
}

.header-gradient-border::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    background: var(--header-deep-burgundy);
    border-radius: 18px;
    z-index: 1;
}

.header-deep-burgundy-button {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.4) 0%,
        rgba(69, 0, 0, 0.7) 50%,
        rgba(139, 0, 0, 0.4) 100%
    );
    backdrop-filter: blur(15px);
    border: 1px solid var(--header-glass-border);
    border-radius: 18px;
    padding: 1.5rem 2.5rem;
    color: white;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    cursor: pointer;
    z-index: 2;
    box-shadow:
        0 10px 40px rgba(139, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.4);
    height: auto;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-deep-burgundy-button:hover {
    transform: translateY(-4px);
    background: linear-gradient(
        135deg,
        rgba(139, 0, 0, 0.5) 0%,
        rgba(69, 0, 0, 0.8) 50%,
        rgba(139, 0, 0, 0.5) 100%
    );
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 15px 50px rgba(139, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.header-waves-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
}

.header-wave {
    position: absolute;
    background: radial-gradient(circle,
        var(--header-wave-color-1) 0%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 100%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    filter: blur(15px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}


.header-wave-1 {
    width: 200px;
    height: 200px;
    top: -40px;
    left: -40px;
    animation: header-wave-move-1 7s ease-in-out infinite;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 60%,
        transparent 100%);
}

.header-wave-2 {
    width: 170px;
    height: 170px;
    top: 60%;
    left: 80%;
    animation: header-wave-move-2 9s ease-in-out infinite 1.5s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.35) 60%,
        transparent 100%);
}

.header-wave-3 {
    width: 140px;
    height: 140px;
    top: 20%;
    left: -30px;
    animation: header-wave-move-3 8s ease-in-out infinite 2s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 100%);
}

.header-wave-4 {
    width: 160px;
    height: 160px;
    top: 80%;
    left: 60%;
    animation: header-wave-move-4 10s ease-in-out infinite 0.5s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.25) 60%,
        transparent 100%);
}

.header-wave-5 {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 90%;
    animation: header-wave-move-5 11s ease-in-out infinite 3s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 100%);
}

.header-wave-6 {
    width: 180px;
    height: 180px;
    top: -20px;
    left: 70%;
    animation: header-wave-move-6 12s ease-in-out infinite 1s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.45) 60%,
        transparent 100%);
}

.header-wave-7 {
    width: 150px;
    height: 150px;
    top: 90%;
    left: 10%;
    animation: header-wave-move-7 9s ease-in-out infinite 2.5s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(255, 255, 255, 0.35) 60%,
        transparent 100%);
}

.header-wave-8 {
    width: 130px;
    height: 130px;
    top: 30%;
    left: 40%;
    animation: header-wave-move-8 8s ease-in-out infinite 1.8s;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent 100%);
}

.header-secondary-waves {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-radius: 18px;
    pointer-events: none;
    z-index: 1;
}

.header-secondary-wave {
    position: absolute;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 60%,
        transparent 100%);
    border-radius: 50%;
    opacity: 0;
    filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.header-sec-wave-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation: header-secondary-wave-1 6s ease-in-out infinite 0.3s;
}

.header-sec-wave-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 80%;
    animation: header-secondary-wave-2 7s ease-in-out infinite 1.2s;
}

.header-sec-wave-3 {
    width: 90px;
    height: 90px;
    top: 50%;
    left: 50%;
    animation: header-secondary-wave-3 5s ease-in-out infinite 2.1s;
}

.header-button-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 3;
}

.header-icon-circle {
    width: 52px;
    height: 52px;
    background: var(--header-glass-light);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--header-glass-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.header-deep-burgundy-button:hover .header-icon-circle {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) rotate(5deg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 6px 25px rgba(0, 0, 0, 0.4);
}

.header-expert-icon {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-button-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.header-cta-main-text {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header-cta-sub-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    letter-spacing: 0.3px;
}

.header-arrow-wrapper {
    position: relative;
    width: 30px;
    height: 30px;
}

.header-cta-arrow {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-cta-arrow-hover {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

.header-deep-burgundy-button:hover .header-cta-arrow {
    opacity: 0;
    transform: translateX(10px);
}

.header-deep-burgundy-button:hover .header-cta-arrow-hover {
    opacity: 1;
    transform: translateX(0);
}

.header-micro-text {
    position: absolute;
    bottom: -24px;
    left: 0;
    right: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 500;
    opacity: 1;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    z-index: 3;
}

.header-deep-burgundy-button:hover .header-micro-text {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.header-contacts-wrapper {
    background: rgba(69, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-contact-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.header-contact-item:hover .header-contact-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-contact-icon i {
    font-size: 0.95rem;
    color: white;
}

.header-contact-text {
    font-size: 0.92rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.header-contact-link {
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.header-contact-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.header-glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
}

.logo-link:hover .header-glass-card {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}


.header-glass-card h1,
.header-glass-card .h3 {
    color: #d1d1d1 !important;
    text-decoration: none !important;
    font-weight: 400;
    transition: color 0.3s ease;
    margin: 0;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1.2;
}

.logo-link:hover .header-glass-card h1,
.logo-link:hover .header-glass-card .h3 {
    color: #ffffff !important;
}

.logo-link {
    text-decoration: none !important;
    display: inline-block;
}

.logo-link:hover {
    text-decoration: none !important;
}

@keyframes header-rotate-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes header-wave-move-1 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    20% {
        opacity: 0.9;
        transform: translate(120px, -60px) scale(1);
    }
    40% {
        opacity: 0.7;
        transform: translate(240px, 30px) scale(0.8);
    }
    60% {
        opacity: 0.95;
        transform: translate(360px, -90px) scale(1.2);
    }
    80% {
        opacity: 0.5;
        transform: translate(480px, 60px) scale(0.6);
    }
}

@keyframes header-wave-move-2 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    15% {
        opacity: 0.8;
        transform: translate(-120px, 75px) scale(1);
    }
    30% {
        opacity: 0.6;
        transform: translate(-240px, -45px) scale(0.9);
    }
    45% {
        opacity: 0.9;
        transform: translate(-360px, 105px) scale(1.3);
    }
    60% {
        opacity: 0.4;
        transform: translate(-480px, -75px) scale(0.7);
    }
    75% {
        opacity: 0;
        transform: translate(-600px, 45px) scale(0.3);
    }
}

@keyframes header-wave-move-3 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    25% {
        opacity: 0.95;
        transform: translate(75px, 120px) scale(1.1);
    }
    50% {
        opacity: 0.5;
        transform: translate(150px, -60px) scale(1.4);
    }
    75% {
        opacity: 0.8;
        transform: translate(225px, 90px) scale(0.9);
    }
}

@keyframes header-wave-move-4 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    30% {
        opacity: 0.7;
        transform: translate(-90px, -75px) scale(1);
    }
    60% {
        opacity: 0.4;
        transform: translate(-180px, 45px) scale(1.5);
    }
    90% {
        opacity: 0.9;
        transform: translate(-270px, -105px) scale(0.8);
    }
}

@keyframes header-wave-move-5 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    20% {
        opacity: 0.6;
        transform: translate(60px, 90px) scale(1.3);
    }
    40% {
        opacity: 0.9;
        transform: translate(120px, -30px) scale(1);
    }
    60% {
        opacity: 0.4;
        transform: translate(180px, 75px) scale(1.6);
    }
    80% {
        opacity: 0.7;
        transform: translate(240px, -45px) scale(1.1);
    }
}

@keyframes header-wave-move-6 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    25% {
        opacity: 0.8;
        transform: translate(-150px, -45px) scale(1.2);
    }
    50% {
        opacity: 0.5;
        transform: translate(-300px, 90px) scale(0.9);
    }
    75% {
        opacity: 0.95;
        transform: translate(-450px, -135px) scale(1.5);
    }
}

@keyframes header-wave-move-7 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    30% {
        opacity: 0.9;
        transform: translate(135px, -105px) scale(1.1);
    }
    60% {
        opacity: 0.6;
        transform: translate(270px, 60px) scale(0.8);
    }
    90% {
        opacity: 0.95;
        transform: translate(405px, -150px) scale(1.4);
    }
}

@keyframes header-wave-move-8 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.3);
    }
    35% {
        opacity: 0.8;
        transform: translate(165px, 120px) scale(1.3);
    }
    70% {
        opacity: 0.5;
        transform: translate(330px, -90px) scale(0.9);
    }
}

@keyframes header-secondary-wave-1 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: translate(60px, -30px) scale(1.1);
    }
}

@keyframes header-secondary-wave-2 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    50% {
        opacity: 0.6;
        transform: translate(-45px, 25px) scale(1);
    }
}

@keyframes header-secondary-wave-3 {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    50% {
        opacity: 0.5;
        transform: translate(30px, 45px) scale(0.9);
    }
}

@media (max-width: 1200px) {
    .header-contacts-wrapper {
        gap: 1.2rem;
        padding: 0.75rem 1.2rem;
    }

    .header-contact-item {
        gap: 0.5rem;
    }

    .header-glass-card {
        min-height: 76px;
        padding: 0.9rem 1.2rem;
    }
}

@media (max-width: 992px) {
    .header-deep-burgundy-button {
        min-width: 280px;
        padding: 1.25rem 2rem;
        min-height: 76px;
    }

    .header-icon-circle {
        width: 48px;
        height: 48px;
    }

    .header-cta-main-text {
        font-size: 1.1rem;
    }

    .header-glass-card {
        min-height: 70px;
        padding: 0.8rem 1rem;
    }

    .header-glass-card h1,
    .header-glass-card .h3 {
        font-size: 1.5rem;
    }

    .header-contacts-wrapper {
        flex-direction: column;
        gap: 0.6rem;
        align-items: flex-start !important;
    }

    .header-contact-item {
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .header-section {
        height: 35vh !important;
        min-height: 220px;
    }

    .header-deep-burgundy-button {
        min-width: 260px;
        padding: 1.1rem 1.8rem;
        min-height: 68px;
    }

    .header-wave-1,
    .header-wave-2,
    .header-wave-3,
    .header-wave-4,
    .header-wave-5,
    .header-wave-6,
    .header-wave-7,
    .header-wave-8 {
        width: 140px;
        height: 140px;
        filter: blur(10px);
    }

    .header-glass-card {
        min-height: 65px;
        padding: 0.7rem 0.9rem;
    }

    .header-glass-card h1,
    .header-glass-card .h3 {
        font-size: 1.3rem;
    }

    .header-icon-circle {
        width: 44px;
        height: 44px;
    }

    .header-expert-icon {
        font-size: 1.3rem;
    }

    .header-cta-main-text {
        font-size: 1rem;
    }

    .header-cta-sub-text {
        font-size: 0.8rem;
    }

    .header-micro-text {
        font-size: 0.8rem;
        bottom: -22px;
    }

    .header-contacts-wrapper {
        margin-top: 1.5rem;
        width: 100%;
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    .header-deep-burgundy-button {
        width: 100%;
        max-width: 300px;
        min-width: auto;
        min-height: 65px;
    }

    .header-glass-card {
        min-height: 60px;
        padding: 0.6rem 0.8rem;
    }

    .header-glass-card h1,
    .header-glass-card .h3 {
        font-size: 1.2rem;
    }

    .header-button-content {
        justify-content: center;
        gap: 1rem;
    }

    .header-center-content {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-cta-arrow-hover {
        display: none;
    }

    .header-deep-burgundy-button:hover .header-cta-arrow {
        opacity: 1;
        transform: none;
    }
}