:root {
  --main-font: "Roboto", sans-serif;
  --title-font: "Montserrat", sans-serif;
  --accent-color: #2196f3;
  --dark: #212121;
  --text: #757575;
}

body {
  margin: 0;
  font-family: var(--main-font);
  color: var(--dark);
}

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

.site-header {
  background-color: #fff;
  padding: 20px 0;
}

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

.nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
}


.hero {
  background-color: #000;
  padding: 60px 0;
  text-align: center;
}

.container-title {
  color: #fff;
}

.container-button {
  padding: 12px 32px;
  background: var(--accent-color);
  color: #fff;
  border: none;
  cursor: pointer;
}

.advantages {
  padding: 60px 0;
}

.advantages-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-section {
  padding: 60px 0;
}

.team-section {
  padding: 60px 0;
}

.container-team {
  display: flex;
  gap: 30px;
}

.team-card img {
  width: 100%;
  display: block;
}

.section-title {
  text-align: center;
  font-family: var(--title-font);
  margin-bottom: 40px;
}

.hero {
  background-image:
    linear-gradient(rgba(76, 76, 77, 0.4), rgba(47, 48, 58, 0.4)),
    url("/img/fon.png");
  background-repeat: no-repeat;
  background-position: center;
  min-height: 200px;
  padding: 120px 0;
  background-size: auto;
}
.advantages img {
  width: 270px;
  height: 224px;
  top: 774px;
  left: 515px;
}
.advantages-list li:nth-child(1)::before {
  content: url(../img/s4.png);
}
.advantages-list li:nth-child(2)::before {
  content: url(../img/s3.png);
}
.advantages-list li:nth-child(3)::before {
  content: url(../img/s2.png);
}
.advantages-list li:nth-child(4)::before {
  content: url(../img/s1.png);
}
.clients-list {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}
.clients-list li {
  width: 170px;
  height: 92px;
  border: 1px solid #afb1b8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}
.team-list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.team-item {
  width: 270px;
  background: white;
  text-align: center;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.team-item img {
  width: 100%;
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding-bottom: 20px;
}

.team-section {
  background: #f3f3f6;
  padding: 60px 0;
}

.container-team {
  display: flex;
  gap: 0px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  width: 195px;
  background: white;
  border: 1px solid #f8f3f3;
  border-radius: 6px;
  overflow: hidden;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.team-card:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 100%;
  display: block;
}

.team-card figcaption {
  text-align: center;
  padding: 15px;
}

.team-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.team-card p {
  color: grey;
  font-size: 14px;
  margin-bottom: 10px;
}

.social-list {
  display: flex;
  list-style: none;
  padding: 0;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
}


.social-list img {
  width: 18px;
  height: 18px;
}
.nav-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-list li a:hover {
  color: var(--accent-color);
}
.footer-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
}


.address{
  background:#2f2f2f;
  color:#fff;
  padding:40px 0;

  display:flex;         
  justify-content:center;
  align-items:flex-start;
  gap:120px;            
}

.footer-section{
  margin-top:0;       
  margin-top:-10px;
   margin-left: 10px;
}

.clients-item img {
 width: 106px;
 height: 60px;
}


.work-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-item {
  position: relative;
  width: 370px;
}

.work-item img {
  width: 100%;
  display: block;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  background: rgba(0, 0, 0, 0.8);
  color: #fff;

  text-align: center;
  padding: 20px 0;

  margin: 0; 
}
.social-list svg {
  width: 20px;
  height: 20px;
}
.social-list li {
  width: 50px;
  height: 50px;
  background: #ffffff; 
  fill: inherit;

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

  transition: all 0.3s;
}

.social-list svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  transition: fill 0.3s;
}

.social-list li:hover {
  background: #2196f3;
  border-radius: 50%;
}

.social-list li:hover svg {
  fill: #ffffff;
}
.footer-list {
  display: flex;
  gap: 10px;
}

.footer-list li {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-list li:hover {
  background-color: #2196f3;
  border-radius: 50%;
}
.footer-list svg {
  width: 20px;
  height: 20px;
  fill: black;
}

.footer-list li:hover svg {
  fill: rgb(0, 0, 0);
}
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 30px;
  width: 400px;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-form input,
.modal-form textarea {
  padding: 10px;
}

.send-btn {
  background: #2196f3;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

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

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.subscribe-form input {
  padding: 10px;
}

.subscribe-form button {
  background: #2196f3;
  color: white;
  border: none;
  padding: 10px;
}

body a[href="index.html"] {
  color: #2196f3;
}

body a[href="index.html"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: #2196f3;
}
.nav-link {
  position: relative;
  display: inline-block;
}