* {
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-white);
    color: var(--color-text-on-primary);
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--font-body);
    margin: 0;
}

.container {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--container-width);
}

a {
    transition: var(--transition);
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    border-radius: 20px;
}

h3 {
    text-wrap: balance;
    margin: 0;
}

p {
    text-wrap: pretty;
    margin: 0;
}

.btn {
    display: inline-block;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.btn--primary {
    box-shadow: 0 4px 15px rgba(201, 8, 53, 0.4);
    background-color: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    background-color: var(--color-primary-hover);
}

.btn--outline {
    border-color: white;
    background: transparent;
    padding: 8px 20px;
    color: white;
    font-size: 14px;
}

.btn--outline:hover {
    background: white;
    color: var(--color-primary);
}

.btn--text {
    background: transparent;
    color: white;
}

.section-title {
    color: var(--color-text-on-white);
    font-weight: var(--section-title-weight);
    font-size: var(--section-title-font-size);
    text-align: center;
    margin-block-end: 10px;
    font-family: sans-serif;
}

@media (max-width: 992px) {
    :root {
        --section-title-font-size: 40px;
    }
}

.section-text {
    color: var(--color-text-muted-on-white);
    font-size: var(--section-text-font-size);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    flex-wrap: nowrap;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(18, 18, 18, 0.9);
    width: 100%;
    min-height: var(--header-height);
}

.header__container {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: var(--header-height);
    gap: 20px;
}

.header__logo-img {
    display: block;
    border-radius: 0;
    width: auto;
    height: 36px;
}

@media (max-width: 550px){
    .header__logo{
        display: none;
    }
}

.header__list {
    display: flex;
}

.header__item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.header__link {
    position: relative;
    transition: color 0.3s ease;
    border-radius: 12px;
    padding: 8px 14px;
    color: var(--color-text-primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-wrap: nowrap;
}

.header__link::before {
    -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: xor;

    mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
    mask-clip: content-box, border-box;
    mask-composite: exclude;

    position: absolute;
    opacity: 0;
    animation: gradientMove 4s linear infinite;
    transition: opacity 0.3s ease;
    inset: 0;
    border-radius: 12px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    padding: 3px;
    content: "";
}

.header__link:hover::before {
    opacity: 1;
}

.header__link:hover {
    color: var(--color-primary);
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.header__contacts {
    display: flex;
    flex-direction: column;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    color: var(--color-text-primary);
    font-weight: 500;
    text-decoration: none;
    text-wrap: nowrap;
}

.header__contact:hover {
    opacity: 0.7;
    color: var(--color-primary);
}

.header__icon {
    fill: currentColor;
}

.header__cta {
    margin-block: 5px;
}

@media (max-width: 1180px) {
    .header__nav {
        display: none;
    }

    .header__logo-img {
        height: 25px;
    }

    .header__cta {
        padding: 12px 15px;
    }
}

/* FOOTER */
.footer {
    padding: 60px 0 30px;
    color: var(--color-text-muted-on-white, #999);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer__logo img {
    width: 155px;
    height: auto;
    border-radius: 0;
}

.footer__socials {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(150, 150, 150, 0.1);
    color: inherit;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer__badges {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge-link {
    transition: opacity 0.3s ease;
}

.badge-link:hover {
    opacity: 0.7;
}

.badge-link img {
    height: 35px;
    width: auto;
    border-radius: 4px;
}

.footer__divider {
    width: 100%;
    height: 1px;
    background-color: rgba(227, 227, 227, 0.21);
    margin: 40px 0 25px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__privacy {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

.footer__privacy:hover {
    text-decoration-color: currentColor;
}

@media (max-width: 768px) {
    .footer__top {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

.b24-form-wrapper, .b24-window-popup-wrapper {
    border-radius: 30px !important;
}
