:root {
    --accent-text-color:#2196F3;
    --logo-text-color:#000000;
    --title-text-color:#212121;
    --main-text-color:#757575;
    --white-color:#ffffff;
    --button-bcgcolor:#F5F4FA;
    --svg-main-color: #AFB1B8;
}

/* global selectors */
body {
    font-family: Roboto, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.71;
    letter-spacing: 0.03em;
    color: var(--main-text-color);
    background-color: var(--white-color);
}

.container{
    margin-right: auto;
    margin-left: auto;
    max-width: 1200px;
}

h1,h2,h3,h4,h5,h6,p,ul{
    margin-top: 0;
}

.img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* header */
.page-header{
    border-bottom: 1px solid #ECECEC;
}
.header-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
}

.header-nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-container{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 50px;
}
             /* Logo */
.logo-studio {
  
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color:var(--logo-text-color);
    text-decoration: none;
}

.logo-web {
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    color: var(--accent-text-color);
}
             /* navigation,contacts */
.nav{
    font-weight: 500;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.02em;
    color:var(--title-text-color);
    text-decoration: none;
}        

.nav-list{
    padding: 0;

}

.nav-list li{
    margin-right: 50px;
    padding-top: 32px;
    padding-bottom: 32px;
}

.nav-li{
    position: relative;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.02em;
    color: var(--title-text-color);
    text-decoration: none;
    padding: 32px 0;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-li-footer{
    font-weight: 500;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.02em;
    color: var(--title-text-color);
    text-decoration: none;
}

.nav-list .item:nth-child(1){
    margin-left: 93px;
}

.nav-list .item:last-child{
    margin-right: 0px;
}

.auth-nav{
    padding: 0;
    margin-left: auto;
    margin-right: 0;
}

.auth-nav-item {
    display: flex;
    align-items: baseline;
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0.02em;
    text-decoration: none;

    width: 100%;
    height: 100%;

    color: var(--main-text-color);
    fill: var(--main-text-color);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-nav-item-svg{
    margin-right: 10px;
    padding: 0;
    border: none;
}

.auth-nav-item-smartphone{
    margin-right: 10px;
    padding: 0;
    border: none;
}

.none-decoration {
    text-decoration: none;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.auth-nav-item:hover,
.auth-nav-item:focus,
.nav-li:hover,
.nav-li:focus{
    color: var(--accent-text-color);
    fill: var(--accent-text-color);
}

.nav .nav-li.current{
    color: var(--accent-text-color)
}

.nav .nav-li.current::after{
    position: absolute;

    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;

    margin: 0;
    padding: 0;
    background-color: var(--accent-text-color);
    border-radius: 2px;
    content:'';
    
}

            /* hero */

.hero-section{
    
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    padding-top: 200px;
    padding-bottom: 200px;
}

.overlay{
   background-image:linear-gradient(to right,
        rgba(47, 48, 58, 0.4),
        rgba(47, 48, 58, 0.4)),
    url("../images/heroback.jpg");
    background-color: #2F303A;
    background-position: center;
    background-size: cover;
    max-width: 1600px;
    height: auto;
    margin-right: auto;
    margin-left: auto;
}

.section{
    margin-right: auto;
    margin-left: auto;
    
    width: 100%;
    padding-top: 94px;
    padding-bottom: 94px;
}
            
.hero-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 15px;
    padding-right: 15px;
}

.hero-headercontainer{
    max-width: 696px;
}

.hero-header {
    margin-top: 0;
    margin-bottom: 0;

    font-weight: 900;
    font-size: 44px;
    line-height: 1.36;
    
    color:var(--white-color);
    text-transform: uppercase;
}

.hero-button {
    display: inline-block;
    min-width: 216px;
    padding: 10px 32px;
    margin: 0;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;

    font-weight: 700;
    font-size: 16px;
    line-height: 1.88;
    letter-spacing: 0.06em;

    color:var(--title-text-color);
    background:var(--button-bcgcolor);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);

    border-radius: 4px;
    border: transparent;
    cursor: pointer;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-button:hover,
.hero-button:focus {
    color:var(--white-color);
    background-color: var(--accent-text-color);
}

/* Our benefits */

.our-benefits {

    font-size: 14px;
    line-height: 1.71;
    color:var(--main-text-color);
}

.benefits-container{
    display: flex;
    padding-left: 15px;
    padding-right: 15px;
    gap: 30px;

}

.our-benefits-logo-container{
    display: flex;
    justify-content: center;
    align-items: center;

    list-style: none;
    width: 270px;
    height: 120px;

    padding: 0;
    margin-bottom: 30px;

    background: var(--button-bcgcolor);
    border-radius: 4px;

}


.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;
}

.whatwd-header{
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 50px;
    color: var(--title-text-color);

}

.nontoppdng{
    padding-top: 0;
}

.whatwd-list{
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    gap: 30px;
        
        
}

.wwd-list-items{
    position: relative;
    display: flex;
}

.wwd-list-items-text{
    position:absolute;

    bottom: 0;
    left: 0;
    margin: 0;
    padding: 27px;
    width: 100%;
    text-align: center;


    font-family: 'Roboto';
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    color:  var(--white-color);
    background: rgba(47, 48, 58, 0.8);
}

.ourteam-mainheader {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    color:var( --title-text-color);
}


.our-benefits-header {
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    color:var(--title-text-color);
}

.our-benefits-paragraph{
    padding: 0;
    margin: 0;
}

            /* our team */

.ourteam-header {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: var(--title-text-color);
}   

.ourteam-container{
    display: flex;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}

.ourteam-section{
    border-bottom: 1px solid #ECECEC;
    background-color: var(--button-bcgcolor);
}


.ourteam-list{
    display: flex;
    gap: 30px;
}

.ourteam-items{
        background-color: var(--white-color);
        box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 
        0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
        border-radius: 0px 0px 4px 4px;

}

.ourteam-section-header{
font-size: 36px;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 50px;
    color: var(--title-text-color);
}

.ourteam-paragraph {
    font-size: 16px;
    line-height: 1.2;
    color:var(--main-text-color);
}

.ourteam-list-icons{
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;

    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    padding: 0px;

}

.ourteam-list-icons-svg{
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ourteam-list-icons-container{
    padding: 0px;

}

.ourteam-list-icons-items{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;

    fill: var(--svg-main-color);
    border: 1px solid transparent;

}

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

    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0.02em;
    color:var(--main-text-color);
    text-decoration: none;
    fill: var(--svg-main-color);

    width: 100%;
    height: 100%;
}

.ourteam-list-icons-items:hover
.ourteam-list-icons-items:focus,
.ourteam-link:hover,
.ourteam-link:focus{
    background-color: var(--accent-text-color);
    border: 1px solid #2196F3;
    border-radius: 50%;
    border-color: #2196F3;

    fill: var(--button-bcgcolor);
}

/* our clients */

.ourclients-section-header{
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    margin-bottom: 50px;

    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: 0.03em;
    
    color:var(--title-text-color);
}

.our-clients-list{
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    flex-basis: calc(100% / 6);
    padding-top: 0;
    flex-wrap: nowrap;
    
}

.our-clients-list-item{
    width: 170px;
    height: 92px;

    border: 1px solid var(--svg-main-color);
    border-radius: 4px;
}

.our-clients-list-link{
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    height: 100%;
    fill:var(--svg-main-color)
}

.our-clients-item-svg{
    padding: 0px;
    justify-content: center;
    transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1), 
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);

}


.our-clients-list-link:focus,
.our-clients-list-link:hover,
.our-clients-list-item:hover,
.our-clients-list-item:focus{
    fill:var(--accent-text-color);

    border-color: var(--accent-text-color);
    border-radius: 4px;
}



/* footer */
.footer-container{
    display: flex;
    padding-bottom: 60px;
    align-items: baseline;

}

.footer-logo-container{
        padding-top: 60px;
        padding-bottom: 20px;
}

.footer{

        background-color: #2F303A;
        padding-left: 0;
        margin-left: 0;
}



.footer-realadress {
    font-size: 14px;
    line-height: 1.71;
    color:var(--white-color);
    text-decoration: none;
}

.logo-studio-footer{
    font-family: Raleway, sans-serif;
        font-weight: 700;
        font-size: 26px;
        line-height: 1.2;
        color: var(--white-color);
        text-decoration: none;
}

.footer-adress li{
    margin-bottom: 9px;
}

.footer-adress li:last-child{
    margin-bottom: 0px;
}

.footer-adress-container{
    padding: 0px;

}

.footer-list-icons-container{
    display: flex;
    flex-direction: column;
    padding: 0px;
    margin-left: 70px;
}

.footer-icons-header{
    font-weight: 700;
    font-size: 14px;
    line-height: 1.14;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    
    color:var(--button-bcgcolor);

    margin-bottom: 20px;
}

.footer-list-icons{
    display: flex;
    gap: 10px;
}
.footer-list-icons-items{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;


    fill: var(--white-color);
    background-color: rgba(255, 255, 255, 0.1);;

    border-radius: 50%;

}

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

    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0.02em;
    color:var(--main-text-color);
    text-decoration: none;
    fill: var(--white-color);
    border-radius: 50%;

    width: 100%;
    height: 100%;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.footer-link:focus,
.footer-link:hover{
    background-color: var(--accent-text-color);
    border: 1px solid #2196F3;
    border-radius: 50%;
    border-color: #2196F3;

    fill: var(--button-bcgcolor);
}

.footer-realadress:hover,
.footer-realadress:focus{
    color: var(--accent-text-color);
}

/* стили для portfolio */

.portfolio-button {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.88;
    letter-spacing: 0.06em;


    text-align: center;
    height: 38px;
    padding: 6px 22px;
    

    color:var(--title-text-color);
    background:var(--button-bcgcolor);

    border-radius: 4px;
    border: transparent;

    cursor: pointer;
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-radius 250ms cubic-bezier(0.4, 0, 0.2, 1),
    color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1)
}

.portfolio-workexamples-header {
    font-weight: 700;
    font-size: 18px;
    line-height: 2.0;
    letter-spacing: 0.06em;
    color:var(--title-text-color);
    margin-bottom: 4px;
}

.portfolio-workexamples-paragraph {
    font-size: 16px;
    line-height: 1.88;
    color:var(--main-text-color);
    margin-bottom: 0px;
}

.portfolio-button:hover,
.portfolio-button:focus {
    box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 
    0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.12);

    color:var(--white-color);
    background-color: var(--accent-text-color);

    border-radius: 4px;
}

.button-container{
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 94px;
    padding-bottom: 34px;
}

.wrkexamples-container{
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    flex-basis: calc((100% - 60px) / 3);
    padding-top: 0;
    padding-bottom: 94px;
}

.portfolio-items{

    background: #FFFFFF;
    border: 1px solid #EEEEEE;

}

.portfolio-items-overlay{
    overflow: hidden;
    position:relative;
}

.portfolio-items-overlay-text{
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;

    margin: 0;
    padding: 63px 24px;

    font-family: 'Roboto';
    font-weight: 400;
    font-size: 18px;
    line-height: 1.56;
    letter-spacing: 0.03em;

    color: var(--white-color);
    background: rgba(33, 150, 243, 0.9);

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

.potfolio-text-items{
    padding: 20px 24px;
}

.portfolio-items-link:focus,
.portfolio-items:hover {
    box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.12), 
    0px 4px 4px rgba(0, 0, 0, 0.06), 
    1px 4px 6px rgba(0, 0, 0, 0.16);
}

.portfolio-items:hover .portfolio-items-overlay-text{
    transform: translateY(0%);
}
/* modal */
.backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.2);

	opacity: 1;

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

.backdrop.is-hidden {
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.backdrop.is-hidden .modal {
  transform: translate(-50%, -50%) scale(1.1);
}

.modal{
	position: absolute;
	top: 50%;
	left: 50%;
	min-width: 528px;
	min-height: 581px;

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

	transform: translate(-50%, -50%) scale(1);

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

.button-modal{
	position: absolute;
	top: 8px;
	right: 8px;

	display: flex;
	justify-content: center;
	align-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: none;
	cursor: pointer;

    background: var(--white-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
	fill: #000000;
}

