h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}
ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
}
.container {
  width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}
.features-list {
  display: flex;
  gap: 24px;
}
.fetures-item {
  flex-basis: calc((100%-72px) / 4);
}
.feature-icon {
  width: 264px;
  height: 112px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f4f4fd;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  margin-bottom: 24px;
}
body {
  font-family: "Roboto", sans-serif;
  color: #434455;
  line-height: 1.5;
  margin: 0;
}
header {
  border-bottom: 1px solid #e7e9fc;
  background: #ffffff;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 15px;
}
.logo {
  font-family: "Raleway", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.33em;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2e2f42;
}
.logo-accent {
  color: #4d5ae5;
}
.nav-list {
  display: flex;
  gap: 40px;
}
.nav-link {
  color: #2e2f42;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}
.nav-link:hover,
.nav-link:focus {
  color: #404bbf;
}
.site-contacts {
  font-style: normal;
  justify-content: flex-end;
  align-items: center;
  display: flex;
  gap: 40px;
}
.contacts-list {
  display: flex;
  gap: 40px;
  font-size: 16px;
  color: #434455;
  text-decoration: none;
}
.contacts-link {
  color: #434455;
  text-decoration: none;
}
.contacts-link:hover,
.contacts-link:focus {
  color: #404bbf;
}
.site-nav .nav-link {
  position: relative;
  display: inline-block;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #404bbf;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform - 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  background-color: #2e2f42;
  min-height: 600px;
  padding: 188px 0;
  background-image: linear-gradient(
      to bottom,
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url("../images/people-office-1.jpg");
  background-size: cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 1440px;
  margin: 0 auto;
}
.hero .container {
  text-align: center;
}
.hero-title {
  font-weight: 700;
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 48px;
}
.hero-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #4d5ae5;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 4px;
  width: 169px;
  height: 56px;
  padding: 0;
  text-align: center;
}
.hero-btn:hover,
.hero-btn:focus {
  background-color: #404bbf;
  outline: none;
}
.section {
  padding: 120px 0;
}
.container {
  width: 1158px;
  margin: 0 auto;
  padding: 0 15px;
}

.features-list {
  display: flex;
  gap: 24px;
}
.features-list > li {
  flex: 0 0 calc((100% - 72px) / 4);
}
.features-title {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 16px;
}
.feature-text {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  text-align: left;
}
.visually-hidden {
  position: absolute;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.team {
  background-color: #f4f4fd;
}
.socials {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  padding: 0;
}
.social-link {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background-color: #4d5ae5;
  color: #fff;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0, 2, 1),
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.social-link:is(:hover, :focus) {
  background-color: #404bbf;
  transform: translateY(-1px);
}
.icon {
  fill: currentColor;
}

.section-title {
  text-align: center;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.team-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.team-list > li {
  flex: 0 0 calc((100%-24px * 3) / 4);
}
.team img {
  display: block;
  max-width: 100%;
  height: auto;
}
.team-card {
  background-color: #ffffff;
  border-radius: 4px;
  padding-bottom: 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 2px 1px 2px 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);
}
.team-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}
.team-role {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  background-color: #ffffff;
}

.portfolio .section-title {
  text-align: center;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 72px;
}
.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.portfolio-list > li {
  flex: 0 0 calc((100% - 24px * 2) / 3);
}
.portfolio-list img {
  display: block;
  max-width: 100%;
  height: auto;
}
.portfolio-card {
  background: #ffffff;
  border: 1px solid #e7e9fc;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover {
  border-color: transparent;
  box-shadow: 0 2px 1px rgba(46, 47, 66, 0.08), 0 4px 4px rgba(46, 47, 66, 0.16),
    0 8px 16px rgba(46, 47, 66, 0.08);
}
.thumb {
  position: relative;
  overflow: hidden;
}
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(77, 90, 229, 1);
  color: #fff;
  padding: 40px 32px;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .overlay,
.portfolio-card:focus-within .overlay {
  transform: translateY(0);
}
.portfolio-link {
  text-decoration: none;
  color: inherit;
}
.portfolio-meta {
  padding: 32px 16px;
}
.card-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin: 0 0 8px;
}
.card-subtitle {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  margin: 0;
}

.site-footer {
  background-color: #2e2f42;
  padding: 100px 0;
}
.site-footer .container {
  display: flex;
  align-items: baseline;
  gap: 120px;
}
.footer-logo {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #f4f4fd;
}
.footer-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #f4f4fd;
}
.footer-logo .logo-accent {
  color: #4d5ae5;
}
.footer-social-title {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.footer-social .socials {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-social .social-link:is(:hover, :focus) {
  background-color: #31d0aa;
  transform: translateY(-1px);
}

.nav-list,
.contacts-list,
.features-ul,
.team-list,
.portfolio-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.section {
  padding: 120px 0;
}
.section-title {
  margin-bottom: 72px;
}
.team-name {
  margin-top: 32px;
  margin-bottom: 8px;
}
.icon {
  fill: currentColor;
}
.backdrop {
  background-color: rgba(46, 47, 66, 0.4);
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal {
  padding: 24px;
  width: 408px;
  height: 584px;
  background: #ffffff;
  position: absolute;
  border-radius: 4px;
  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);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #e7e9fc;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
}
.modal-close svg {
  width: 8px;
  height: 8px;
  fill: #2e2f42;
  pointer-events: none;
}
.modal-title {
  display: block;
  margin: 28px 0 16px;
  font: 500 16px/24px "Roboto", sans-serif;
  color: #2e2f42;
  position: relative;
  padding: 3px;
  z-index: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.form {
  line-height: 14px;
  display: flex;
  flex-direction: column;
}
.form-field {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  flex: 0 0 auto;
}
label {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.input {
  width: 360px;
  height: 336px;
  top: 112px;
  left: 540px;
  gap: 0;
  font-family: "Roboto", sans-serif;
  border-radius: 4px;
  gap: 8px;
}
.input-field {
  position: relative;
  margin-top: 4px;
}
.form-input {
  width: 360px;
  height: 40px;
  border: 1px solid #8e8f99;
  border-radius: 4px;
  background: #fff;
  color: #2e2f42;
  padding: 0 12px 0 40px;
  outline: none;
  font-size: 14px;
  line-height: 24px;
}
.form-label {
  display: flex;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 14px;
  color: #8e8f99;
}
.input-icon {
  display: flex;
  justify-content: center;
  position: absolute;
  width: 18px;
  height: 18px;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  fill: rgba(46, 47, 66, 1);
}
/* Ana satır: checkbox + metin yan yana */
.checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
}

/* Kutuyu metinle hizalamak için hafif yukarı */
.checkbox-input {
  display: flex;
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Figma değerleri: 12/14, gri metin, en fazla ~338px satır uzunluğu */
.checkbox-text {
  max-width: 338px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.04em;
  color: #8e8f99; /* Small Text rengi */
}

.send-btn {
  display: block;
  width: 169px;
  height: 56px;
  padding: 16px 32px;
  margin: 16px auto 0;
  border-radius: 4px;
  border: none;
  background-color: #4d5ae5;
  color: #fff;
  font-family: "Roboto" sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.send-btn:hover,
.send-btn:focus {
  background-color: #404bbf;
}
textarea {
  resize: none;
  border-radius: 4px;
  border: 1px solid #8e8f99;
}
textarea.form-input {
  height: 120px;
  resize: none;
  padding: 12px 16px;
  border-radius: 4px;
}
.privacy-link {
  color: #404bbf;
  text-decoration: underline;
}
.group-title {
  max-width: 338px;
  white-space: normal;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.04em;
  color: #8e8f99;
  margin: 0;
}
/* Eski fieldset/legend kurallarını kaldırabilirsiniz */

.site-footer .container {
  display: flex;
  align-items: baseline;
  gap: 120px;
}
.footer-subscribe {
  margin-left: auto;
}
.subscribe-title {
  color: #fff;
  font: 500 16px/24px "Roboto", sans-serif;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.subscribe-form {
  display: flex;
  align-items: center;
  gap: 24px;
}
.subscribe-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.subscribe-input {
  width: 264px;
  height: 40px;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff;
  padding: 8px 16px;
  outline: none;
  font: 400 12px/24px "Roboto", sans-serif;
  letter-spacing: 0.04em;
}
.subscribe-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 40px;
  padding: 8px 24px;
  border: none;
  border-radius: 4px;
  background-color: #4d5ae5;
  color: #fff;
  cursor: pointer;
  font: 500 16px/24px "Roboto", sans-serif;
  letter-spacing: 0.04em;
  transition: background-color 25ms cubic-bezier(0.4, 0, 0.2, 1);
}
.subscribe-btn:hover,
.subscribe-btn:focus {
  background-color: #404bbf;
}
.subscribe-icon {
  fill: #fff;
}
