@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: rgba(81, 81, 81, 1);
    background-color: #ffffff;
}

.wrapper {
    width: 100%;
}

/* Header Section */
.header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/local/php_interface/include/pictures/header-bg.webp') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 88px 18px;
}

.logo {
    width: 72px;
    height: auto;
    margin-bottom: 64px;
}

.title-img {
    width: 100%;
    max-width: 1080px;
    height: auto;
    margin-bottom: 18px;
}

.hero-text {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 64px;
    max-width: 1080px;
}

.hero-subtext {
    font-size: 32px;
    margin-bottom: 34px;
}

.hero-subtext span {
    font-weight: 500;
}

.second-brand {
    font-size: 32px;
    max-width: 1500px;
    font-weight: 500;
}

.second-brand strong {
    font-weight: 700;
}

.brand-links {
    font-weight: 500;
}

/* Links Section */
.links {
    padding: 158px 20px;
    background-color: #ffffff;
}

.links-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.link-group {
    flex: 1;
    text-align: center;
}

.link-group h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 84px;
    letter-spacing: 0.8px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 408px;
    height: 80px;
    border: 2px solid #515151;
    text-decoration: none;
    color: #515151;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 1.6px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.btn:hover {
    background-color: rgba(81, 81, 81, 1);
    color: #ffffff;
}

/* Footer */
.footer {
    padding: 0 20px 220px;
    background-color: #ffffff;
    text-align: center;
}

.footer h3 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: 0.8px;
}

.footer_mobile {
    padding: 50px 20px 0px;
    background-color: #ffffff;
    text-align: center;
}

.footer_mobile h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.email {
    font-size: 36px;
    color: rgba(81, 81, 81, 1);
    text-decoration: none;
    font-weight: 700;
}

/* Адаптивность */
@media (min-width: 1024px) {
    .footer {
        display: block;
    }

    .footer_mobile {
        display: none;
    }
}

@media (max-width: 1580px) {
    .header-content {
        padding: 72px 24px;
    }

    .logo {
        width: 68px;
        margin-bottom: 48px;
    }

    .title-img {
        max-width: min(100%, 980px);
        margin-bottom: 16px;
    }

    .hero-text {
        font-size: 34px;
        margin-bottom: 48px;
        max-width: min(1172px, 92vw);
    }

    .hero-subtext {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .second-brand {
        font-size: 28px;
        max-width: min(1670px, 92vw);
    }

    .links {
        padding: 100px 24px;
    }

    .links-container {
        gap: 32px;
    }

    .link-group h2 {
        font-size: 38px;
        margin-bottom: 56px;
    }

    .buttons {
        gap: 28px;
    }

    .btn {
        max-width: 360px;
        height: 68px;
        font-size: 28px;
        letter-spacing: 1.2px;
    }

    .footer {
        padding: 0 24px 140px;
    }

    .footer h3 {
        font-size: 38px;
        margin-bottom: 36px;
    }

    .email {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .links-container {
        flex-direction: column;
        gap: 96px;
    }

    .footer {
        display: none;
    }
}

@media (max-width: 768px) {
   .header-content {
    padding: 46px 20px 82px;
   }

   .logo {
    width: 28px;
    margin-bottom: 24px;
   }

   .title-img {
    margin-bottom: 40px;
    max-width: 324px;
   }

   .hero-text {
    font-size: 12px;
    margin-bottom: 24px;
    max-width: unset;
   }

   .hero-subtext {
    font-size: 24px;
    margin-bottom: 16px;
    max-width: unset;
    font-size: 11px;
   }

   .hero-subtext span {
    font-size: 11px;
   }

   .second-brand {
    font-size: 11px;
    max-width: unset;
   }
   
   .email {
    font-size: 12px;
   }

   .links {
    padding: 40px 55px;
   }

   .links-container {
    gap: 40px;
   }

   .link-group h2 {
    font-size: 16px;
    margin-bottom: 24px;
    letter-spacing: 0.24px;
   }

   .buttons {
    gap: 12px;
   }

   .btn {
    max-width: 120px;
    height: 24px;
    font-size: 12px;
    letter-spacing: 0.48px;
    border-width: 1px;
   }
}