.container { 
  max-width: 1158px;
  padding: 0 15px;  
  margin: 0 auto;  
}
h1,
h2,
h3,
p {
    margin: 0;
}
ul, ol {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
a {
    text-decoration:none;
}
.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;
    background-color: #ffffff;
}
.header-nav {
    display: flex;
    align-items: center;
}
.logo-header {
    padding: 24px 0;
}
.logo {
    font-family:"Raleway", sans-serif;
    text-transform:uppercase;
    font-weight:700;
    font-size:18px;
    line-height:1.17;
    letter-spacing:0.03em;
    color:#2e2f42;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
}
.logo-text {
    color:#4d5ae5;
}
.menu {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: 76px;
}
.menu-set {
    display: block;
    padding: 24px 0;
    font-size:16px;
    font-weight:500;
    line-height:1.5;
    letter-spacing:0.02em;
    color: #2e2f42;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-set.current {
    position: relative;
}
.menu-set.current::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background-color: #404bbf;
}
.menu-set:hover, .menu-set:focus, .menu-set.current {
    color:#404bbf;
}
.contacts {
    font-style:normal;
    margin-left: auto;
}
.contacts-list {
    display: flex;
    align-items: center;
    gap: 40px;
}
.contacts-link {
    display: block;
    padding: 24px 0;
    font-size:16px;
    line-height:1.5;
    letter-spacing:0.02em;
    color:#434455;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.contacts-link:hover, 
.contacts-link:focus {
    color:#404bbf;
}

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

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-title {
    max-width: 496px;
    text-align: center;
    color:#ffffff;

    font-size:56px;
    line-height:1.07;
    letter-spacing:0.02em;
}
.button {
    display: block;
    margin-top: 48px;
    padding: 16px 32px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);    
    color:#ffffff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color:#4d5ae5;

    font-size: 16px;
    font-weight:500;
    line-height:1.5;
    letter-spacing:0.04em;
    cursor:pointer;
}

.button:hover, .button:focus {
    background-color:#404bbf;
}
body {
    font-family:"Roboto", sans-serif;
    line-height:1.5;
    letter-spacing:0.02em;
    color:#434455;
    background-color:#ffffff;
}
.features {
    padding: 120px 0;
}
.features-block {
    display: block;
    gap: 8px;
}
.features-item {
    display: flex;
    gap: 24px;
}
.features-list {
    flex: 1 1 calc((100% - 72px) / 4);
}
.icon-border { 
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #8e8f99;
    border-radius: 4px;
    background-color: #f4f4fd;
    gap: 24px;
    width: 264px;
    height: 112px;
    margin-bottom: 8px;
}

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

.title-2 {
    margin-bottom: 72px;
    font-size:36px;
    line-height:1.11;
    letter-spacing:0.02em;
    text-align:center;
    color:#2e2f42;
}
.title-3 {
    font-size:20px;
    font-weight:500;
    line-height:1.2;
    letter-spacing:0.02em;
    color:#2e2f42;
}

p {
    font-size:16px;
    line-height:1.5;
    letter-spacing:0.02em;
    color:#434455;
}
ul, ol { 
    list-style-type:none;
}
img {
    display: block;
}
.team {
    padding: 120px 0;
    background-color:#f4f4fd;
}
.team-item {
    display: flex;
    gap: 24px;
}

.team-list {
    background-color: #ffffff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    width: calc((100% - 72px) / 4);
}
.img-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
    gap: 8px;
}
.social-icons-item { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    gap: 24px
} 
.soc-icons-list { 
    width: calc((100% - 72px) / 4);
}
.icons-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    fill: #f4f4fd; 
    background-color: #4d5ae5; 
    border-radius: 50%; 
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.icons-button:hover, .icons-button:focus {
    background-color: #404bbf; 
}
.portfolio {
    padding: 120px 0;
    background-color: #ffffff;
}
.portfolio-item {
    display: flex;
    flex-wrap: wrap;
    gap: 48px 24px;
}
.portfolio-list {
    flex: 1 1 calc((100% - 48px) / 3);
    cursor: pointer;
    box-shadow: 0 1px 6px 0 rgba(46, 47, 66, 0.08);
    transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-list:hover,
.portfolio-list:focus {
box-shadow: 0 2px 1px 0 rgba(46, 47, 66, 0.08), 0 1px 1px 0 rgba(46, 47, 66, 0.16), 0 1px 6px 0 rgba(46, 47, 66, 0.08);
}
.img-content-wrapper {
    position: relative;
    overflow: hidden;
}
.fon-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #f4f4fd;
    padding: 40px 32px;
    border: 1px solid #4d5ae5;
    background-color: #4d5ae5;
    transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%);
}
.portfolio-list:hover .fon-content,
.portfolio-list:focus .fon-content {
    transform: translateY(0);
}
.portfolio-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-bottom: 1px solid #e7e9fc;
    border-left: 1px solid #e7e9fc;
    border-right: 1px solid #e7e9fc;
    padding: 32px 16px;
    gap: 8px;
}
.footer {
    padding: 100px 0;
    font-size:16px;
    line-height:1.5;
    letter-spacing:0.02em;
    color:#f4f4fd;
    background-color: #2e2f42;
}
.footer-container {
    display: flex;
    align-items: baseline;
}
.text {
max-width: 264px;
color: #f4f4fd;
}
.logo-text-1 {
    color:#f4f4fd;
}
.logo-footer {
    display: inline-block;
    margin-bottom: 16px;
}
.text-icons {
display: block;
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #ffffff;
margin-bottom: 16px;
}
.footer-social-icons {
    display: block;
    align-items: baseline;
    margin-left: 120px;
}
.footer-icons-item {
display: flex;
gap: 16px;
align-items: center;
}
.footer-icons-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    fill: #f4f4fd; 
    background-color: #4d5ae5; 
    border-radius: 50%; 
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-icons-button:hover, .footer-icons-button:focus {
    background-color: #31D0AA; 
}
.footer-subscribe-email {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-left: auto;
    width: 453px;
    height: 80px;
}
.subscribe-title {
display: block;
flex-direction: column;
max-width: 100%;

font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
color: #ffffff;
}
.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.subscribe-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

input {
font-family: inherit;
}
.subscribe-email {
    color: #ffffff;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
}
.subscribe-email::placeholder {
    font-weight: 400;
    font-size: 12px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #ffffff;
}
.subscribe-email[type="email"] {
border: 1px solid #ffffff;
border-radius: 4px;
width: 264px;
height: 40px;
padding: 8px 16px;
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
background-color: #2E2F42;
}
.subscribe-email[type="email"]:hover,
.subscribe-email[type="email"]:focus {
    border-color: #31D0AA;
    outline: none;
}
.subscribe-button { 
font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.04em;
color: #ffffff;

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

border-radius: 4px;
padding: 8px 24px;
gap: 16px;
min-width: 165px;
height: 40px;
border: none;
background-color: #4d5ae5;
transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
cursor:pointer;
}
.subscribe-button:hover, .subscribe-button:focus {
    background-color: #31D0AA;
}
.send-icon {
    display: block;
    fill: #ffffff;
}
.modal-overlay {
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(46, 47, 66, 0.4);
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;

pointer-events: none;
opacity: 0;
visibility: hidden;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal {
    position: relative;

    width: 408px;
    min-height: 584px;

    background-color: #fcfcfc;
    border-radius: 4px;

    padding: 72px 24px 24px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.14),
                0 1px 3px rgba(0,0,0,0.12),
                0 2px 1px rgba(0,0,0,0.2);
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1)
}
.icon-close-bnt {
position: absolute;
top: 24px;
right: 24px;
}
.close-bnt {
    display: flex;
    align-items: center;
    justify-content: center;
    fill: #2E2F42;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #e7e9fc;

    transition: 
        background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
        fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.close-bnt:hover,
.close-bnt:focus {
    fill: #ffffff;
    background-color: #404BBF;
}
.form-box {
border-radius: 4px;
width: 360px;
min-height: 336px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-box label {
font-weight: 400;
font-size: 12px;

line-height: 1.17;
letter-spacing: 0.04em;
color: #8e8f99;

display: block;
margin-bottom: 0;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modal-text {
margin: 0 0 16px 0;

font-weight: 500;
font-size: 16px;
line-height: 1.5;
letter-spacing: 0.02em;
text-align: center;
color: #2e2f42;
}

.input-wrapper {
    position: relative; 
}
.input-wrapper-position {
width: 100%;
height: 40px;
padding-left: 38px;
}
.icon-box {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0px;
}
.person-icon {
    fill: #2e2f42;
    display: block;
}
.divider {
    width: 1.25px;
    height: 18px;
    background-color: #2e2f42;
    border-radius: 2px;
    margin-left: 0;
}
.input-wrapper:focus-within .person-icon {
    gap: 4px;
    fill: #4D5AE5;
}
.input-wrapper:focus-within .divider {
    background-color: #000000;
    margin-left: 4px; 
}
.input-wrapper input {
    width: 100%;
    height: 40px;

    padding-left: 38px;

    border: 1px solid rgba(46, 47, 66, 0.4);
    border-radius: 4px;

    transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.input-wrapper input:focus {
    outline: none;
}
.phone-icon, .email-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    align-items: center;
    transform: translateY(-50%);
    fill: #2e2f42;
    transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-wrapper:focus-within input {
    border-color: #4d5ae5;
}

.input-wrapper:focus-within .phone-icon,
.input-wrapper:focus-within .email-icon {
    fill: #4d5ae5;
}
.textarea-box {
display: block;
font-weight: 400;
font-size: 12px;
 
line-height: 1.17;
letter-spacing: 0.04em;
color: rgba(46, 47, 66, 0.4);

margin-bottom: 0;
width: 100%;
height: 120px;

padding: 8px 16px;
resize: none;

border: 1px solid rgba(46, 47, 66, 0.4);
border-radius: 4px;
transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.textarea-box:focus {
    border-color: #4d5ae5;
    outline: none;
}
.textarea-box:focus-within {
    outline: none;
}
.check-box {
    margin-top: 16px;
    margin-bottom: 24px;
}
.label-text-check-box {
display: flex;
align-items: center;
gap: 8px;

font-weight: 400;
font-size: 12px;

line-height: 1.17;
letter-spacing: 0.04em;
color: #8e8f99;
}
.privacy-link {
line-height: 1.33;
text-decoration: underline;
text-decoration-skip-ink: none;
color:  #4d5ae5;
}
.custom-checkbox {
    display: inline-flex;
    width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;

    border-radius: 2px;
    border: 1px solid rgba(46, 47, 66, 0.4);

    fill: transparent;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.check-box-form:checked + .label-text-check-box > .custom-checkbox {
background-color: #404bbf;
fill: #f4f4fd;
border: none;
}
.button-send {
display: flex;
align-items: center;
justify-content: center;
}
.bnt-send {
    display: block;

    width: 169px;
    height: 56px;
    padding: 16px 32px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);    
    color:#ffffff;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    background-color:#4d5ae5;

    font-size: 16px;
    font-weight:500;
    line-height:1.5;
    letter-spacing:0.04em;
    cursor:pointer;
}
.bnt-send:hover, .bnt-send:focus {
    background-color: #404bbf;
}