.header {
    position: sticky;
    top: 0;
    background-color: rgb(32, 41, 56);
    padding: 20px 0;
    width: 100%;
    z-index: 2;
    transition: background-color 0.4s ease;
}

.header, .container, .footer {
    font-size: clamp(10.5px, 1vw, 14px);
}

.header-content {
    display: flex;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
}

.header-logo img {
    width: 11.25em;
}

.header-right {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 3.125em;
}

.header-nav {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    gap: 1.25em;
    font-size: 1.125em;
    font-weight: bold;
}

.header-nav {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    gap: 1.25em;
    font-size: 1.125em;
    font-weight: bold;
}

.header-nav a {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInUp 0.5s forwards;
}

.header-nav a:nth-child(1) { animation-delay: 0.1s; }
.header-nav a:nth-child(2) { animation-delay: 0.2s; }
.header-nav a:nth-child(3) { animation-delay: 0.3s; }
.header-nav a:nth-child(4) { animation-delay: 0.4s; }
.header-nav a:nth-child(5) { animation-delay: 0.5s; }
.header-nav a:nth-child(6) { animation-delay: 0.6s; }

.header-nav a:hover {
    color: #ff8731;
    transform: translateY(-2px);
    transition: 0.2s ease;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-controls {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 15px;
}

.header-contact {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    background-color: #FF6B01;
    padding: 0 40px;
    border-radius: 100px;
    font-size: 1.375em;
    font-weight: bold;
    color: white;
    overflow: hidden;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}
.header-contact span { z-index: 1; }

.header-contact img {
    height: 80%;
}

.header-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.3s ease;
}

.header-contact:hover::before {
    left: 0;
}

.header-bg-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    background-color: #FF6B01;
    border-radius: 100px;
    transition: 0.1s all;
    height: 100%;
    width: auto;
    aspect-ratio: 1 / 1;
}

/* БАННЕР */

.banner {
    position: relative;
    font-size: clamp(10.5px, 1vw, 16px);
    background-color: #ff8731;
    z-index: 1;
}

.banner-image {
    display: block;
    opacity: 0;
    transform: scale(1.05);
    animation: fadeInImage 1s ease forwards;
    width: 100%;
}

.banner-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInText 1s ease forwards;
    animation-delay: 0.5s;
    max-width: 1400px;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-title {
    font-family: "Unbounded", sans-serif;
    font-size: 4.063em;
    font-weight: 900;
    text-transform: uppercase;
}

.banner-description {
    font-size: 2.063em;
    font-weight: bold;
}

/* ПОРТФОЛИО */

.portfolio {
    margin-top: 120px;
    padding: 0 50px;
    position: relative;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 120px;
}

.portfolio-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.portfolio-cards {
    display: flex;
    margin: 0 auto;
    gap: 50px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    scrollbar-color: #FF6B01 transparent;
}

.portfolio-card {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 350px;
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card-about {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FF6B01;
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    width: fit-content;
    padding: 16px 35px;
    border-radius: 100px;
}

.portfolio-more {
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: bold;
    background: #202938;
    border-radius: 100px;
    padding: 16px 110px;
    width: fit-content;
}

.portfolio-about-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    color: #000;
    text-align: center;
    max-width: 1100px;
}

.portfolio-about-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3.125em;
    font-weight: 900;
    text-transform: uppercase;
}

.portfolio-about-description {
    font-size: 1.625em;
    font-weight: 200;
}

/* ИНСТРУМЕНТЫ */

.tools {
    background: #202938;
    margin-top: 120px;
    padding: 0 50px;
}

.tools-container {
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 100px 0;
}

.tools-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3.125em;
    font-weight: 900;
    text-transform: uppercase;
}

.tools-cards-container {
    display: flex;
    gap: 30px;
    margin-top: 60px;
}

.tools-area {
    font-size: 1.625em;
    width: 35%;
    font-weight: 200;
}

.tools-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.tools-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 2px solid #FFFFFF;
    padding: 20px 40px;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, background 0.3s ease, color 0.3s ease;
}

.tools-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.tools-card img {
    transition: 0.3s all;
}

.tools-card:hover {
    background: #FFF;
    color: #000;
}

.tools-card:not(:nth-of-type(2)):hover img { filter: brightness(0.2); }
.tools-card:nth-of-type(2):hover img { filter: brightness(0.8); }

.tools-card-title {
    font-size: 1.375em;
    font-weight: 200;
    margin-top: auto;
    margin-bottom: auto;
}

/* НАША КОМАНДА */

.team {
    position: relative;
    margin-top: 120px;
    padding: 0 50px;
}

.team-container {
    color: #000;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.team-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3.125em;
    font-weight: 900;
    text-transform: uppercase;
}

.team-cards {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    justify-content: space-between;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    scrollbar-color: #FF6B01 transparent;
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 350px;
    width: 100%;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FF6B01;
    color: #FFF;
    border-radius: 100px;
    padding: 5px 30px;
    text-transform: uppercase;
    font-size: 1.063em;
}

.team-image {
    width: 100%;
    border-radius: 20px;
    max-height: 350px;
    object-fit: cover;
}

.team-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-name {
    font-family: "Unbounded", sans-serif;
    font-size: 1.563em;
    font-weight: 900;
    text-transform: uppercase;
}

.team-description {
    font-size: 1.25em;
    font-weight: 200;
}

/* ПАРТНЕРЫ */

.partners {
    position: relative;
    margin-top: 120px;
    padding: 0 50px;
}

.partners-container {
    color: #000;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.partners-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3.125em;
    font-weight: 900;
    text-transform: uppercase;
}

.partners-cards {
    margin-top: 30px;
    display: flex;
    gap: 30px;
    justify-content: space-between;

    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    scrollbar-color: #FF6B01 transparent;
}

.partners-card {
    background: #202938;
    border: 2px solid #FFF;
    padding: 30px 40px;
    border-radius: 20px;

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.partners-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact {
    position: relative;
    margin-top: 120px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #000;
    margin: 0 auto;
    max-width: 50%;
    text-align: center;
    /* background: url('images/contact.png');
    background-repeat: no-repeat;
    background-size: contain;
    padding: 20px 60px; */
}

.contact-title {
    font-family: "Unbounded", sans-serif;
    font-size: 3.125em;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-description {
    margin-top: 30px;
    font-size: 1.625em;
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    background-color: #FF6B01;
    padding: 10px 40px;
    border-radius: 100px;
    font-size: 1.375em;
    font-weight: bold;
    color: #FFF;
    width: fit-content;
    margin-top: 30px;
}

/* ПОДВАЛ */

.footer {
    position: relative;
    background: url('images/footer.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 50px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 65px;
}

.footer-logo {
    width: 14.063em;
}

.footer-subscribe {
    display: flex;
    align-items: center;
    border: 2px solid #202938;
    background: rgb(32, 41, 56, 0.2);
    border-radius: 100px;
    gap: 40px;
    padding: 8px 15px;
    font-family: "Noto Sans", sans-serif;
    font-size: 1.063em;
}

.footer-right {
    display: flex;
    gap: 30px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-general-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.125em;
    font-weight: bold;
    text-transform: uppercase;
}

.footer-policy {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875em;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-contacts-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.563em;
    font-weight: bold;
}

.footer-contacts-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: 'Inter', sans-serif;
}

.footer-contacts-socials {
    display: flex;
    gap: 15px;
}

.contact-image-tablet { display: none; }

.portfolio-effect-1 { position: absolute; top: -70%; left: 0; }
.portfolio-effect-2 { position: absolute; top: -70%; right: -15%; }

.portfolio-effect-3 { position: absolute; top: -70%; left: -5%; }
.portfolio-effect-4 { position: absolute; top: -50%; right: -10%; }

/* БУРГЕР-МЕНЮ */

.burger-menu {
    position: fixed;
    right: 0;
    top: 0;
    width: 40%;
    height: 100vh;
    background-color: rgba(32, 41, 56, 0.95);
    z-index: 999;
    padding: 30px 20px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: clamp(10.5px, 1.15vw, 14px);
}
.burger-menu.active {
    transform: translateX(0);
    opacity: 1;
}

.bg-container {
    display: flex; 
    align-items: flex-start; 
    justify-content: space-between;
}

.bg-nav {
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
    gap: 1.25em;
    font-size: 1.45em;
    font-weight: bold;
}

.bg-socials {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.bg-contact {
    display: none;
    margin-top: 30px;
    justify-content: space-between;
    align-items: center;
    background: #FF6B01;
    text-transform: uppercase;
    font-size: 1.25em;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    padding: 10px 35px;
    border-radius: 100px;
}

.bg-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
}

/* АДАПТАЦИЯ */

@media(max-width: 1280px) { .header-controls { height: 55px; } }
@media(max-width: 1180px) { 
    .portfolio-effect-1 { position: absolute; top: -70%; left: -10%; }
    .portfolio-effect-2 { position: absolute; top: -70%; right: -30%; }
    .portfolio-effect-4 { position: absolute; top: -50%; right: -25%; }
    .header-controls { height: 45px; } .header-contact { padding: 0 30px; } 
}
@media(max-width: 1024px) {
    .portfolio-effect-1 { left: -15%; top: -80%; }
    .portfolio-effect-2 { right: -40%; top: -80%; }
    
    .portfolio-effect-3 { left: -15%; top: -100%; }
    .portfolio-effect-4 { right: -30%; top: -80%; }

    .header { font-size: clamp(6px, 1.85vw, 9px); }
    .banner { font-size: clamp(7px, 0.8vw, 9px); }
    .banner-content { max-width: 80%; }
    .header { padding: 10px 0; }
    .header-nav { display: none; }
    .header-bg-toggle { display: flex; }
    .portfolio-card-about { padding: 10px 30px; margin-bottom: 20px; }
    .portfolio-more { padding: 10px 80px; }
    .portfolio-about-title { font-size: 4.3em; }
    .portfolio-about-container { gap: 30px; max-width: 90%; }
    .tools-card { padding: 10px 20px; }
    .contact-button { padding: 5px 40px; }
    .contact-button img { max-width: 35px; }
    .footer-subscribe { padding: 4px 15px; }
    .footer-subscribe img { max-width: 40px; }
    .footer { font-size: clamp(10px, 1.4vw, 13px); }
    .container { font-size: clamp(6px, 1.15vw, 9px); }
    .team-badge { padding: 5px 20px; }
    .portfolio-cards { gap: 20px; }
    .portfolio-cards-container { gap: 15px; }

    .tools-title { font-size: 4.3em; }
    .tools-cards-container { margin-top: 30px; }
    .tools-card img { height: clamp(35px, 5vw, 50px); }

    .portfolio { margin-top: 80px; padding: 0 40px; }
    .portfolio-content { gap: 80px; }
    .tools-container { padding: 40px 0; }
    .team { margin-top: 80px; padding: 0 40px; }
    .team-cards { margin-top: 30px; }
    .team-image { border-radius: 10px; }
    .partners { margin-top: 80px; padding: 0 40px; }
    .partners-card { padding: 20px 30px; }
    .contact { margin-top: 80px; padding: 0 40px; }
    .contact-description { margin-top: 20px; }
    .contact-button { margin-top: 20px; }
    .footer { margin-top: 40px; }

    .contact { position: relative; display: flex; justify-content: center; }
    .contact-image-tablet { display: block; width: 100%; min-height: clamp(210px, 38vw, 250px); max-height: 270px; }
    .contact-container { box-sizing: border-box; position: absolute; top: 0; left: 0; bottom: 0; right: 0; display: flex; flex-direction: column; justify-content: center;  }
}
@media(max-width: 768px) {
    .burger-menu { width: 45%; }
    .portfolio-effect-3 { left: -10%; top: -70%; }
    .portfolio-effect-4 { right: -35%; top: -70%; }

    .portfolio-card-about { padding: 8px 10px; margin-bottom: 15px; }
    .portfolio-more { padding: 8px 60px; }
    .header-controls { height: 35px; }
    .tools-card { padding: 10px; border: 1px solid #FFF; border-radius: 7px; }
    .tools-cards { gap: 20px; }
    .team-badge { top: 6px; left: 6px; padding: 2px 12px; }
    .team-card { gap: 15px; }
    .team-main { gap: 5px; }
    .partners-card { padding: 20px 20px; border-radius: 10px; }
    .partners-cards { gap: 20px; }
    .contact-button img { max-width: 25px; }
    .footer-subscribe img { max-width: 35px; }
    .banner-image { height: clamp(350px, 54vw, 400px); }
}
@media(max-width: 576px) {
    .burger-menu { width: 50%; }
    .portfolio-effect-2 { right: -40%; top: -50%; }
    .portfolio-effect-3 { top: -60%; } .portfolio-effect-4 { top: -60%; }

    .portfolio-card { flex-shrink: 0; max-width: 200px; }
    .portfolio-card-about { padding: 8 0px; width: 90%; text-align: center; }

    .team-card { flex-shrink: 0; max-width: 150px; }
    .tools-cards { gap: 15px; }
    .team-cards { gap: 20px; }
    .partners-card { flex-shrink: 0; max-width: 150px; }
}
@media(max-width: 480px) {
    .burger-menu { width: 60%; }
    .portfolio-effect-1 { left: -20%; top: -60%; }
    .portfolio-effect-2 { right: -50%; top: -20%; }
    .portfolio-effect-3 { top: -40%; left: -5%; } 
    .portfolio-effect-4 { top: -50%; }

    .header { font-size: clamp(6px, 2.5vw, 9px); }
    .header-content { padding: 0 20px; }
    .banner-content { max-width: 95%; }
    .header-controls { gap: 5px; }
    .header { padding: 5px 0; }
    .banner-image { height: clamp(350px, 140vw, 480px); }

    .team { margin-top: 60px; padding: 0 20px; }
    .portfolio { margin-top: 60px; padding: 0 20px; }
    .tools { margin-top: 60px; padding: 0 20px; }
    .partners { margin-top: 60px; padding: 0 20px; }
    .contact { margin-top: 60px; padding: 0 20px; }

    .container { font-size: clamp(5px, 1.85vw, 7px); }
    .portfolio-more { width: 100%; padding: 14px 0; text-align: center; }
    
    .tools-title { text-align: center; }
    .tools-cards-container { flex-direction: column; align-items: center; margin-top: 20px; gap: 15px; }
    .tools-area { width: 100%; }
    .tools-cards { grid-template-columns: repeat(2, 1fr); }
    .tools-card-title { font-size: 1.75em; }

    .contact-container { max-width: 80%; }
    .contact-description, .contact-button { margin-top: 15px; }
    .contact-button { width: 100%; text-align: center; padding: 8px 0; display: flex; justify-content: center; }

    .footer { background-position: 10%; }
    .footer-container { flex-direction: column; gap: 20px; padding: 30px 40px; }
    .footer-left { align-items: center; gap: 10px; width: 100%; }
    .footer-subscribe { width: 100%; justify-content: space-between; }
    .footer-right { width: 100%; justify-content: space-between; }
    .footer-contacts-socials img { max-width: 35px; }
}
@media(max-width: 420px) {
    .bg-contact { display: flex; }
    .burger-menu { width: 100%; background: rgb(32, 41, 56, 1); font-size: clamp(10.5px, 2.75vw, 12.5px); }

    .header-controls { height: 30px; }
    .header-contact { padding: 0 18px; }
    .header-logo img { width: 10em; }
}
@media(max-width: 360px) {
    .portfolio-effect-1 { left: -10%; top: -20%; }
    .portfolio-effect-3 { top: -20%; } 
    .portfolio-effect-4 { top: -30%; }

    .banner { font-size: clamp(6px, 0.8vw, 9px); }
    .footer-container { padding: 30px 20px; }
}