@import url('./reset.css');
@import url('./media.css');


body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #2E2F42;
}

.container {
    max-width: 1190px;
    padding: 0px 15px;
    margin: 0 auto; 
}

.hide {
    display: none !important;
}

a:hover {
    color: #404BBF;
}

.active {
    color: #404BBF !important;

}
h1 {
    font-weight: 700;
    font-size: 56px;
    line-height: 1;
    color: #FFFFFF;
    letter-spacing: 0.05em;

}

h2 {
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.05em;

}

h3 {
    font-weight: 500;
    font-size: 20px;
    letter-spacing: 0.05em;
}

p {
    font-size: 16px;
    letter-spacing: 0.05em;
    color: #434455;
    line-height: 1.5
}

.common-section-cloud {
    background-color: #F4F4FD;
}

/* ----------HEADER---------- */

.header {
    padding: 24px 0;
    width: 100%;
    z-index: 100;
    height: 74px;

    background-color: #FFFFFF;
    position: fixed;
    top: 0;
    left: 0;

    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
}

.header__container {
    display: flex;
    justify-content: space-between;
}
.header__logo_nav {
    display: flex;

}

.logo {
    width: 116px;
    height: 24px;
    margin-right: 70px;
}

.header__container ul {
    display: flex;
}

.header__container li + li {
    margin-left: 40px;
}

.header__nav ul {
    font-weight: 500;
}

.nav__link {
    position: relative; 

}

.nav__link:hover {
    color: #404BBF;
}

.nav__link.active::after {
    content: "";
    position: absolute;
    bottom: -32px; 
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #404BBF;
    border-radius: 2px;
}

.header__contacts {

    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}


.header__contacts li {
    color: #434455;
    margin-left: 40px;
}

.burger-btn {
    display: none;
}

.not-mobile {
    display: block;
    /* или flex, если нужно */
}

/* ----------HEADER MOBILE---------- */

/* Скрыто по умолчанию */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 250ms ease, visibility 250ms ease;
    z-index: 999;
    /* чтобы меню было поверх всего */
}

/* Показать меню */
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Контейнер меню */
.mobile-menu-container {
    position: relative;
    padding: 72px 16px 40px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    /* прокрутка при длинном меню */
}

/* Кнопка закрытия */
.menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 24px;
    height: 24px;
    background-color: #e7e9fc;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 250ms ease, border 250ms ease;
}

.menu-close:hover,
.menu-close:focus,
.menu-close:active {
    background-color: #404bbf;
    border: none;
}

/* Навигация и ссылки */
.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: auto;
}

.mobile-nav-list .nav-link {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.11;
    color: #2e2f42;
    text-decoration: none;
}

/* Контакты */
.mobile-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.mobile-contacts-link {
    font-size: 20px;
    color: #2e2f42;
    text-decoration: none;
}

/* Социальные иконки */
.mobile-social-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Бургер кнопка */
.burger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Показать бургер на мобильных */
@media (max-width: 768px) {
    .burger-btn {
        display: block;
    }

    .header__nav,
    .header__contacts {
        display: none;
        /* скрываем обычное меню на мобилке */
    }
}
/* -----WELCOME_SECTION------- */

.welcome__section {
    min-height: 600px;
/* 
    height: 100vh; */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    gap: 48px;
    
    background-image: linear-gradient(#2E2F42B2), 
                    url('../img/welcome_img.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    box-sizing: border-box;
}

.welcome__section h1 {
    margin-top: 260px;
}

.button {


    width: 169px;
    height: 56px; 
    background-color: #4D5AE5;
    color: #FFFFFF;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease-in-out;
    
    margin-bottom: 188px;
    
}

.button:hover{
    background-color: #404BBF;
}

/* ------strategy-section------ */

.about {
    margin: 120px 0;
    width: 100%;
}

.about .cards-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 24px;

}

.cards {
    max-width: 264px;
}

.cards h3 {
    padding: 8px 0;
}

.frame_icon {
    display: flex;
    align-items: center;
    justify-content: center;


    height: 112px;
    
    background-color: #F4F4FD;
    border: 1px solid#8E8F99;
    border-radius: 4px;
}

/* ------TEAM-SECTION------ */

.team__section {
    width: 100%;
    padding: 120px 0;

}

.team__section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 0 auto;
    padding-top: 72px;
}

.team-item {
    background: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px;
}

.social-list {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.team-item-wrapper p {
    margin: 8px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4d5ae5;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-link:hover {
    background: #40479a;

}

/* -----ourportfolio__section------ */

.ourportfolio__section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 72px 0 ;
}

.portfolio-cards {
    display: flex;
    flex-wrap: wrap;              
    justify-content: center; 
    gap: 40px 24px;
    padding-bottom: 120px;
    cursor: pointer;
}

.portfolio-item {
    width: 360px;
    transition: box-shadow 0.4s ease-in-out;
}

.portfolio-item:hover {
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.image-wrapper {
    position: relative;
    width: 360px;
    height: 300px;
    overflow: hidden;
}

.image-wrapper p {
    display: flex;
    align-items: start;

    margin: 0 auto;
    padding: 40px 32px;

    color: #F4F4FD;
}

.image-wrapper:hover .portfolio-card1 {
    opacity: 0;
}

.image-wrapper:hover .portfolio-card2 {
    opacity: 1;
}

.portfolio-card1 {
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.portfolio-card2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    display: flex;


    background-color: #4D5AE5;
    color: #F4F4FD;
    border: none;
    opacity: 0;
    
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.portfolio-item-wrapper {
    border-style: solid;
    border-color:#E7E9FC ;
    border-width: 0 1px 1px 1px; 
    
    padding: 32px 16px;
}

.portfolio-item-wrapper h3 {
    padding-bottom: 8px;
}

/* -----FOOTER----- */
.footer__desc {
    
}

.footer__desc-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;

    gap: 80px;
    padding: 100px 70px;
    
    background-color: #2E2F42;
}

.footer__about p {
    max-width: 280px;
    color: #F4F4FD;
}

.footer__about svg {
    margin-bottom: 16px;
}

.footer__social {
    margin-left: 40px;
}

.footer__social p {
    color: #F4F4FD;
    font-weight: 500;

    margin-bottom: 16px;
}

.footer__subscribe {

    

}

.footer__subscribe p {
    color: #F4F4FD;
    font-weight: 500;

    margin-bottom: 16px;
}

.email-input {
    width:264px ;
    height:40px ;

    border: 1px solid #FFFFFF;
    background-color: #2E2F42;
    color: #FFFFFF;
    border-radius: 4px;
    padding: 0 16px ;
    font-size: 12px;
}

.email-input::placeholder {
    color: #FFFFFF; 
}

    .footer_button {
    align-items: center;
    justify-content: center;
    margin-left: 24px;

    background-color: #4D5AE5;
    width: 165px;
    height: 40px ;
    border: none; 
    background-color: #4D5AE5;
    color: #FFFFFF;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.footer_button:hover {
    background-color: #404BBF;
}

.footer .social-link:hover {
    background-color: #31D0AA ;
}



/* -----MODAL---- */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 47, 66, 0.4);

    display: none;
    /* visibility: hidden; */
    pointer-events: auto;
    transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
        visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal {
    width: 408px;
    min-height: 584px;
    padding: 72px 16px 24px;

    position: absolute;
    top: 50%;
    left: 50%;

    border-radius: 4px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
        0 2px 1px 0 rgba(0, 0, 0, 0.2);
    background: #fcfcfc;

    transform: translateX(-50%) translateY(-50%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {

}

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;

    width: 24px;
    height: 24px;
    background-color: #e7e9fc;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);

    cursor: pointer;

    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-close-btn {
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

}

.modal-close {
position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 24px;
    height: 24px;
    background-color: #e7e9fc;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-close-btn {
    display: flex;

    
}

.modal-close-btn:hover {
    background-color: #404BBF;
}

.modal-title {
    margin-bottom: 16px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    font-weight: 500;
    color: #2e2f42;
}


.modal-form {

}

.madal-form-filed {
    margin-bottom: 8px;
}

.modal-form-field.message {
    margin-bottom: 16px;
}

.madal-form-label {
    display: block;
    margin-bottom: 4px;

    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
}

.modal-form-wrapper {
    position: relative;
}

.modal-form-input {
    width: 100%;
    height: 40px;
    padding: 8px 38px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    background-color: transparent;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);


}

.modal-form-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus+.modal-form-icon {
    fill: #4d5ae5;
}

.modal-form-input:focus {
    border-color: #4d5ae5;
}

.message {

}

.modal-form-message {
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;
    width: 100%;
    height: 120px;
    resize: none;
    padding: 8px 16px;
    color: rgba(46, 47, 66, 0.4);

    outline: transparent;
    background-color: transparent;

    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-message:focus {
    border-color: #4d5ae5;
}

.modal-form-message::placeholder {
    color: rgba(46, 47, 66, 0.4);
}

.modal-form-agreement {
    margin-bottom: 24px;
}

.visually-hidden {

}



.modal-form-agreement-text {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 8px;
    flex-wrap: nowrap;
    line-height: 1.17;
    letter-spacing: 0.04em;
    color: #8e8f99;
    margin-top: -17px;
}



.modal-form-agreement-link {

    
}

.low-btn {
    display: block;
    margin: 0 auto;
}

