/* ========== BASE STYLES ========== */
body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 2%;
    color: #434455;
    background-color: #FFFFFF;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* #region Block page scroll*/
    body:has(.backdrop.backdrop.is-open) {

    overflow: hidden;
}

/* #endregion */

a{
    cursor: pointer;
}

ul {
    padding-left: 0;
    margin: 0;
}

h2,
h3,
p {
    margin: 0;
}

img {
    display: block;
}

input{
    margin: 0;
    padding: 0;
}
/* ========== UTILITIES ========== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.container {
    width: 1158px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========== BUTTONS ========== */
.btn {
    display: block;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
    background: #4D5AE5;
    cursor: pointer;
    min-width: 169px;
    height: 56px;
    border: none;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);;
}

.btn:hover,
.btn:focus {
    background: #404BBF;
    color: #FFFFFF;
}

/* ========== HEADER ========== */
.header {
    border-bottom: 1px solid #e7e9fc;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08),
        0 1px 1px 0 rgba(46, 47, 66, 0.16),
        0 2px 1px 0 rgba(46, 47, 66, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    align-items: center;
}

.header-nav-a,
.header-footer-a {
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4d5ae5;
    text-decoration: none;
    display: inline-block;
    align-content: center;
}

.header-nav-a {
    margin-right: 76px;
}

.header-footer-a {
    margin-bottom: 16px;
}

.spn {
    color: #2e2f42;
}

/* Navigation */
.navigation {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding-left: 0;
    align-items: center;
}

.navigation a {
    color: #2E2F42;
    text-decoration: none;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation a:hover,
.navigation a:focus,
.navigation a:active {
    color: #404BBF;
}

.address {
    font-style: normal;
    align-items: center;
    margin-left: auto;
}

.address ul {
    list-style: none;
}

.address-link {
    color: #434455;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.address-link:hover,
.address-link:focus {
    color: #404BBF;
}

/* Header list links */


.address-list{
    display: flex;
    gap: 40px;
}

.header-li-active {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
    display: block;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-li-active:focus {
    color: #404bbf;
}

.header-li-active.current {
    position: relative;
    color: #404bbf;
}

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

/* ========== HERO ========== */
.hero {
    color: #FFFFFF;
    padding: 188px 0;
    background-image: linear-gradient(rgba(46, 47, 66, 0.7), rgba(46, 47, 66, 0.7)), url(../images/people-office.jpg);
        max-width: 1440px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        margin: 0 auto;
}

.hero-text {
    font-size: 56px;
    line-height: 1.07;
    text-align: center;
    letter-spacing: 0.02em;
    max-width: 496px;
    margin: 0 auto 48px;
}

/* ========== SECTION TEXT ========== */
.section-text {
    padding: 120px 0;
}

.section-text ul {
    list-style: none;
}

.section-text-list,
.section-text-ul {
    display: flex;
    gap: 24px;
}

.antena-svg{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    background-color: #F4F4FD;
    border: 1px solid #8E8F99;
    border-radius: 4px;
    margin-bottom: 8px;
    height: 112px;
}

.section-text-h2,
.section-text-main {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin: 0 auto 8px auto;
}

.section-text-p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.our-team-text{
    margin: 0 0 8px 0;
}


.section-text-method {
    width: calc((100% - 72px) / 4);

}

/* ========== OUR TEAM ========== */
.our-team {
    background: #F4F4FD;
    padding: 120px 0;
}

.our-team .container {
    flex-direction: column;
    align-items: center;
}

.our-team-header {
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
}

.our-team-list {
    display: flex;
    gap: 24px;
}

.our-team-li {
    background-color: #FFFFFF;
    list-style-type: none;
    width: calc((100% - 72px) / 4);
    border-radius: 0 0 4px 4px;
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 2px 1px rgba(46, 47, 66, 0.08);;
}

.our-team-des{
    display: flex;
    text-align: center;
    padding: 32px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.out-team-mark-guerrero {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    text-align: center;
    margin-bottom: 8px;
}

.social-network{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 32px;

}

.social-icon{
    display: flex;
    background-color: #4d5ae5;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);;
}

.social-icon.ocean:hover, .social-icon.ocean:focus{
    background-color: #404bbf;
}



.network-list{
    display: flex;
    justify-content: center;
    list-style-type: none;
    gap: 24px;
}

.instagram{
    fill: #f4f4fd;
}

.network-item{
width: 40px;
    height: 40px;
}

/* ========== PORTFOLIO ========== */
.portfolio {
    padding: 120px 0;
}

.portfolio .container {
    flex-direction: column;
}

.portfolio-text {
    font-size: 36px;
    line-height: 1.11;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    color: #2e2f42;
    margin-bottom: 72px;
}

.portfolio-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 48px;
}

.portfolio-li {
    list-style-type: none;
    width: calc((100% - 48px) / 3);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-li:hover{
    box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08),
        0px 1px 1px rgba(46, 47, 66, 0.16),
        0px 2px 1px rgba(46, 47, 66, 0.08);;
}

.taburet{
position: relative;
overflow: hidden;
}

.taburet-paragraf{
    position: absolute;
    top: 0;
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    height: 100%;
    background-color: #4D5AE5;
    color: #F4F4FD;
    padding: 40px 32px;
    letter-spacing: 0.02em;
    transform: translateY(100%);
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
        
}

.portfolio-li:hover .taburet-paragraf{
transform: translateY(0%);
}

.portfolio-text-h {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #2e2f42;
    margin-bottom: 8px;
}

.portfolio-text-p {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #434455;
}

.aplications {
    padding: 32px 16px;
    border: 1px solid #e7e9fc;
    border-top: none;
}

/* ========== FOOTER ========== */
.footer {
    background-color: #2e2f42;
    padding: 100px 0;
}

.spn-footer {
    color: #f4f4fd;
}

.footer-p {
    line-height: 1.5;
    color: #F4F4FD;
    letter-spacing: 0.02em;
    font-weight: 400;
    font-size: 16px;
    margin-top: 0;
    max-width: 264px;
}

.container-footer{
    display: flex;
    align-items: baseline;
}

.footer-text{
    margin-right: 120px;

}

.footer-social{
    display: flex;
    gap: 16px;
}

.footer-list{
    display: flex;
    list-style-type: none;
    gap: 16px;
}

.footer-item{
    width: 40px;
    height: 40px;
    background-color: #4D5AE5;
    border-radius: 50%;

}

.social-text{
    margin-bottom: 16px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.social-icon.green{
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon.green:hover, .social-icon.green:focus {
    background-color: #31D0AA;
}

.subscribe{
    margin-left: auto;
}

.form-subscribe{
    display: flex;
    align-items: center;
    gap: 24px;
}

.input-footer{
    width: 264px;
    height: 40px;
    box-shadow: none;
    border-radius: 4px;
    background-color: transparent;
    outline: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    transition: border 250ms ease-in;
    padding-left: 16px;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);

}

.input-footer::placeholder{
    color: #FFFFFF;
    pointer-events: none;
}

.input-footer:focus{
    border: 1px solid #4D5AE5;
}

.sub-btn{
    max-width: 165px;
    max-height: 40px;
    padding: 8px 24px 8px ;
    text-align: left;
    display: flex;
    background-color: #4D5AE5;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
}

.icon-plane{
    margin-left: 16px;
}

.sub-config{
    display: flex;
    justify-content: center;
    align-items: center;
    fill: #FFFFFF;
    min-width: 165px;
    height: 40px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.04em;
    cursor: pointer;
    background-color: #4D5AE5;
    border: none;
    border-radius: 4px;

}

.sub-config:hover, .sub-config:focus{
    background-color: #404BBF;
}
/* #region backdrop*/
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 47, 66, 0.40);

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

}

.backdrop.is-open{
    opacity: 1;
    pointer-events: initial;
    visibility: visible;
}

.model {
    background-color: #FCFCFC;
    width: 408px;
    min-height: 584px;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    padding: 72px 24px 24px 24px ;
    transition: 150ms ease-in;
    transition-property: opacity, transform;
    opacity: 0;
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.14),
        0px 1px 3px rgba(0, 0, 0, 0.12),
        0px 2px 1px rgba(0, 0, 0, 0.2);;

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

.backdrop.is-open .model{
    opacity: 1;
    transform: translate(-50%, -50%);
}

.model-btn{
    position: absolute;
    top: 24px;
    right: 24px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #E7E9FC;
    transition: background 250ms ease-in-out;
    fill: #2E2F42;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);

}   

.model-btn:focus, .model-btn:hover{
    border: none;
    color: #FFFFFF;
    background-color: #404BBF;
}



.input-container{
    position: relative;
    
}

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

.model-title{
    text-align: center;
    font-weight: 500;
    max-width: 360px;
    letter-spacing: 0.02em;
    color: #2E2F42;
    margin-bottom: 16px;
}


.form-container{
    margin-bottom: 16px;
}

.name-form{
    margin-bottom: 8px;
}
.model-label{
    display: block;
    color: #8E8F99;
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    margin-bottom: 4px
}

.model-input{
    padding: 11px 38px;
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 4px;
    border:1px solid rgba(46, 47, 66, 0.4);
    outline: none;
    transition: border 250ms ease-in;
    background-color: transparent;
    outline: transparent;
    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.model-input:focus{
    border:1px solid #4D5AE5 ;
}

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

.model-input:focus + .model-input-icon{
    fill: #4D5AE5 ;
}


.model-form-message{
    resize: none;
    padding: 8px 16px;
        display: block;
        width: 100%;
        height: 120px;
        border-radius: 4px;
        border: 1px solid rgba(46, 47, 66, 0.4);
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        outline: none;
        transition: border 250ms ease-in;
        font-size: 12px;
        line-height: 1.17;
        letter-spacing: 0.04em;
        color: rgba(46, 47, 66, 0.4);
        background-color: transparent;
        outline: transparent;
        transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.model-form-message:focus{
    border: 1px solid #4D5AE5;
}

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

.form-chekbox{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width:360px;
    max-height: 16px;
    margin-top: 16px;
    margin-bottom: 30px;
}

.link-checkbox{
    color: #4D5AE5;
}


.form-checkbox {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.svg-checkbox{

}

.model-term {
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
    max-width: 360px;
    height: 16px;
}

.model-term .check-privacy {
    width: 16px;
    height: 16px;

}

.check-privacy:checked ~ .label-privacy .span-privacy{
    fill: #F4F4FD;
    background-color: #404bbf;
    border: none;
}

.link-checkbox {
    color: #4d5ae5;
    text-decoration: underline;
}


.label-privacy{
    display: block;
    font-size: 12px;
    color: #8e8f99;
    line-height: 1.17;
    letter-spacing: 0.04em;
}

.span-privacy{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 2px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1), fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
    fill: transparent;
}

.btn-submit {
    background-color: #4d5ae5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover {
    background-color: #3b49c0;
}


