:root {
  --decoration-color: #ffffff; /* DECORATION-COLOR */
  --darc-color: #2e2f42; /* NAVY BLUE */
  --iris-color: #4d5ae5; /* IRIS */
  --light-color: #f4f4fd; /* CLOUD */
  --accent-color: #e7e9fc; /* CORNFLOWER */
  --body-text-color: #434455; /* SLATE */
  --color-green: #31d0aa; /* GREEN */
  --light-slate-color: #8e8f99; /* LIGHT SLATE */
  --click-color: #404bbf; /* CLICK COLOR */
  --modal-bgr: #fcfcfc; /* MODAL BGR */
  --aim: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: 16px;
  line-height: 1.5;
}

.web-header,
.footer-web {
  color: var(--iris-color);
}

.list {
  padding: 0;
  list-style: none;
}

.btm {
  text-decoration: none;
  cursor: pointer;
}
.link {
  font-family: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
  margin-bottom: 0;
}

.container {
  margin: 0 auto;
  padding: 0 15px;
}

/* phone screen  */
@media screen and (min-width: 428px) {
  .container {
    max-width: 428px;
  }
}
/* tablet screen  */
@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .container {
    max-width: 1158px;
  }
}

/* .header-nav,
.header-nav ul,
.contacts-list
 {
  display: flex;
  align-items: center;
} */

.work ul {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.img {
  display: block;
  max-width: 100%;
  height: auto;
}
.sub-btm:hover,
.sub-btm:focus,
.hero-btm:hover,
.hero-btm:focus,
.team-soc-link:focus,
.team-soc-link:hover,
.subscribe-btm:hover,
.subscribe-btm:focus {
  background-color: var(--click-color);
}

/* ----- HEADER ----- */
.header .container {
  display: flex;
  align-items: center;
}

/* tablet screen  */
@media screen and (max-width: 768px) {
  .header .container {
    justify-content: space-between;
  }
}

.header {
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow: 0px 2px 1px rgba(46, 47, 66, 0.08),
    0px 1px 1px rgba(46, 47, 66, 0.16), 0px 1px 6px rgba(46, 47, 66, 0.08);
}
@media screen and (min-width: 1200px) {
  .header  {
    padding-top: 24px;
  padding-bottom: 24px;
  }

}

.header-logo {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.33;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 123px;
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .header-logo {
    margin-right: 96px;
  }
}

.nav-site .nav-link:active,
.nav-site .link:hover,
.nav-site .link:focus {
  color: var(--click-color);
}

.nav-site {
  display: flex;
  column-gap: 40px;
  /* margin-right: 118px; */
}

/* tablet screen  */
@media screen and (max-width: 768px) {
  .nav-site {
    display: none;
  }
}

.studio-header {
  color: var(--darc-color);
}

.nav-link.current {
  position: relative;
  color: var(--iris-color);
}

.nav-link.current::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: 0;
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-color: var(--iris-color);
}



.nav-link {
  display: flex;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--darc-color);

  transition-property: color;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
/* tablet screen  */
@media screen and (min-width: 768px) {
  .contacts-list {
    display: flex;
    flex-direction: column;
    margin-left: auto;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .contacts-list {
    flex-direction: row;
    column-gap: 40px;
  }
}

/* tablet screen  */
@media screen and (max-width: 768px) {
  .contacts-list {
    display: none;
  }
}

.contacts-list li {
  line-height: 1.25;
}

.contacts-link {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--body-text-color);

  transition-property: color;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .contacts-link {
    font-size: 16px;
  line-height: 1.5;
}
}

.contacts-link:focus,
.contacts-link:hover {
  color: var(--iris-color);
}

/* ----- HERO ----- */

.hero {
  padding-top: 112px;
  padding-bottom: 112px;
  text-align: center;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--darc-color);
  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url("../img/mobile/bg/hero-bg-mobile.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* tablet screen  */
@media screen and (min-width: 768px) {
  .hero {
    padding-top: 118px;
    padding-bottom: 118px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .hero {
    padding-top: 188px;
    padding-bottom: 188px;
  }
}

@media (min-device-pixel-ratio: 2),
  (min-resolution: 192dpi),
  (min-resolution: 2dppx) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../img/mobile/bg/hero-bg-mobile@2x.jpg");
  }
}

/* screen >= 481px */
@media screen and (min-width: 481px) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../img/tablet/bg/hero-bg-tablet.jpg");
  }
}
@media screen and (min-width: 481px) and (min-device-pixel-ratio: 2),
  screen and (min-width: 481px) and (min-resolution: 192dpi),
  screen and (min-width: 481px) and (min-resolution: 2dppx) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../img/tablet/bg/hero-bg-tablet@2x.jpg");
  }
}

/* screen >= 769px */
@media screen and (min-width: 769px) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../img/desktop/bg/hero-bg-desktop.jpg");
  }
}
@media screen and (min-width: 769px) and (min-device-pixel-ratio: 2),
  screen and (min-width: 769px) and (min-resolution: 192dpi),
  screen and (min-width: 769px) and (min-resolution: 2dppx) {
  .hero {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../img/desktop/bg/hero-bg-desktop@2x.jpg");
  }
}

/* phone screen  */
.hero-title {
  max-width: 318px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 72px;
  font-weight: 700;
  text-align: center;
  /* letter-spacing: 0.02em; */
  font-size: 36px;
  line-height: 1.11;
  color: var(--decoration-color);
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .hero-title {
    max-width: 494px;
    font-size: 56px;
    line-height: 1.07;
    margin-bottom: 40px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .hero-title {
    margin-bottom: 48px;
  }
}

.hero-btm {
  /* display: block;
  margin: 0 auto; */
  padding: 16px 32px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.19;
  align-items: center;
  letter-spacing: 0.04em;
  color: var(--decoration-color);
  background-color: var(--iris-color);
  border: 0px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition-property: background-color;
  transition-duration: 250ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- BENEFITS ----- */

.benefits-element {
  width: 264px;
  height: 112px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--light-color);
  border-radius: 4px;
  margin-bottom: 8px;
}

@media screen and (max-width: 1199.98px) {
  .benefits-element {
    display: none;
  }
}

.benefits {
  padding-top: 96px;
  padding-bottom: 96px;
}



/* desktop screen  */
@media screen and (min-width: 1200px) {
  .benefits {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .benefits-list {
    display: flex;
    flex-wrap: wrap;
    column-gap: 24px;
    row-gap: 72px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .benefits-list {
    /* width: 264px; */
    flex-wrap: nowrap;
  }
}

@media screen and (min-width: 767px) {
  .benefits-item {
    flex-basis: 356px;
  }
}

@media screen and (max-width: 767px) {
  .benefits-item:not(:last-child):not(:last-child) {
    margin-bottom: 72px;
  }
}

.benefits-title {
  font-weight: 700;
  text-align: center;
  font-size: 36px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--darc-color);
  /* margin-top: 8px; */
  margin-bottom: 8px;
}
/* tablet screen  */
@media screen and (min-width: 768px) {
  .benefits-title {
    text-align: left;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .benefits-title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
  }
}

.benefits-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--body-text-color);
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .benefits-text {
    font-weight: 400;
  }
}

/* ----- WORK ----- */

.work {
  padding-bottom: 120px;
}

@media screen and (max-width: 1199.98px) {
  .work {
    display: none;
  }
}

.work-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--darc-color);
  margin-bottom: 72px;
}

/* ----- TEAM ----- */

.team {
  background-color: var(--light-color);
  padding-top: 96px;
  padding-bottom: 96px;
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .team {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.team .team-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 64px;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .team .team-list {
    column-gap: 24px;
  }
}

.team-item {
  background: var(--decoration-color);
  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);
  border-radius: 0px 0px 4px 4px;
  padding-bottom: 32px;
}

.team-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--darc-color);
  margin-bottom: 72px;
}

.subject {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--darc-color);
  margin-top: 32px;
  margin-bottom: 8px;
}

.team-text {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--body-text-color);
  margin-bottom: 12px;
}

.team-soc-list {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 24px;
  margin: 0 auto;
}

.team-soc-link {
  width: 40px;
  height: 40px;
  display: flex;
  border-radius: 50%;
  background-color: var(--iris-color);
  justify-content: center;
  align-items: center;
  transition-property: background-color;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.team-soc-icon {
  width: 20px;
  height: 20px;
  fill: var(--light-color);
}

.customer {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .customer {
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.customer-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 42px;
  text-align: center;
  letter-spacing: 0.03em;
  color: var(--darc-color);
  margin-bottom: 72px;
}

.customer-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  row-gap: 72px;
  margin: 0 auto;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .customer-list {
    column-gap: 24px;
  }
}

.customer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 88px;
  border: 1px solid var(--light-slate-color);
  border-radius: 4px;
  color: var(--light-slate-color);
  transition-property: color, border;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .customer-link {
    width: 168px;
  }
}

.customer-link:focus,
.customer-link:hover {
  color: var(--click-color);
  border: 1px solid var(--click-color);
  fill: var(--click-color);
}

.customer-logo {
  width: 104px;
  height: 56px;
  fill: currentColor;
}

/* ----- PORTFOLIO ----- */

.portfolio {
  padding-top: 48px;
  padding-bottom: 48px;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .portfolio {
    padding-top: 64px;
    padding-bottom: 96px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .portfolio {
    padding-top: 96px;
    padding-bottom: 120px;
  }
}

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 24px;
  row-gap: 16px;
  margin-bottom: 48px;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .portfolio-filter {
    margin-bottom: 64px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .portfolio-filter {
    margin-bottom: 72px;
  }
}

.btm-portfolio:focus,
.btm-portfolio:hover {
  background-color: var(--click-color);
  color: var(--decoration-color);
  border: 1px solid var(--click-color);
  box-shadow: 0px 3px 1px rgba(0, 0, 0, 0.1), 0px 2px 1px rgba(0, 0, 0, 0.08),
    0px 2px 2px rgba(0, 0, 0, 0.12);
}

.btm-portfolio {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  align-items: center;
  text-align: center;
  letter-spacing: 0.04em;
  color: var(--iris-color);
  background-color: var(--light-color);
  border: 1px solid #e7e9fc;
  border-radius: 4px;
  padding: 8px 16px;
  transition-property: background-color, border, color, box-shadow;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 48px;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .portfolio-content {
    row-gap: 72px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .portfolio-content {
    row-gap: 40px;
  }
}

.portfolio-content li {
  flex-basis: 396px;
  position: relative;
  box-shadow: 0px 1px 6px rgba(46, 47, 66, 0.08);
  transition-property: box-shadow;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .portfolio-content li {
    flex-basis: 356px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .portfolio-content li {
    flex-basis: 360px;
  }
}

.portfolio-content li:hover,
.portfolio-content li:focus {
  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);
}

.item-content {
  border: 0.5px solid var(--light-color);
  border-top: none;
  padding-top: 32px;
  padding-bottom: 32px;
  padding-left: 16px;
}

.portfolio-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--darc-color);
  margin-bottom: 8px;
}

.portfolio-text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--body-text-color);
}

.overlay {
  position: relative;
  overflow: hidden;
}

.overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--light-color);
  padding: 40px 32px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
 background-color: var(--click-color);
  transform: translateY(100%);
  transition: transform var(--aim);
}

.portfolio-content a:hover .overlay-text,
.portfolio-content a:focus .overlay-text {
  transform: translateY(0);
}

/* ----- FOOTER ----- */

.footer {
  padding: 96px 0;
  background-color: var(--darc-color);
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .footer {
    padding-left: 108px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .footer {
    padding-left: 0;
  }
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  row-gap: 72px;
  justify-content: center;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .footer .container {
    /* column-gap: 24px; */
    justify-content: flex-start;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .footer .container {
    flex-wrap: nowrap;
  }
}

/* phone screen */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .footer-left {
    align-items: flex-start;
  }
}

.footer-logo {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-studio {
  color: var(--light-color);
}

.footer-text {
  max-width: 264px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--accent-color);
  margin-top: 16px;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .soc-media {
    margin-left: 24px;
  }
}

/* desktop screen  */
@media screen and (min-width: 1200px) {
  .soc-media {
    margin-left: 120px;
    margin-right: 80px;
  }
}

.soc-title {
  font-family: "Roboto";
  font-style: normal;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--decoration-color);
  margin-bottom: 16px;
}

/* desktop screen  */
@media screen and (min-width: 768px) {
  .soc-title {
    text-align: start;
  }
}

.footer-soc-list {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 16px;
  margin: 0 auto;
}

.footer-soc-link {
  width: 40px;
  height: 40px;
  display: flex;
  border-radius: 50%;
  background-color: var(--body-text-color);
  justify-content: center;
  align-items: center;
  transition-property: background-color;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-soc-icon {
  fill: var(--decoration-color);
}

.footer-soc-link:focus,
.footer-soc-link:hover {
  background-color: var(--color-green);
}

/* ----- FORM ----- */

.footer-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .footer-form {
    align-items: flex-start;
  }
}

.subscribe-label {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--decoration-color);
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  column-gap: 24px;
  row-gap: 16px;
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .subscribe-form {
    flex-direction: row;
  }
}

.subscribe-input {
  /* width: 396px; */
  height: 40px;
  padding-left: 16px;
  padding-right: 16px;
  color: var(--decoration-color);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  outline: 1px solid transparent;
  outline-offset: -1px;
}
/* tablet screen  */
@media screen and (min-width: 428px) {
  .subscribe-input {
    width: 396px;
  }
}


/* tablet screen  */
@media screen and (min-width: 768px) {
  .subscribe-input {
    max-width: 264px;
  }
}

.subscribe-input:focus {
  outline: 1px solid var(--iris-color);
  outline-offset: -1px;
}

.subscribe-btm {
  position: relative;
  padding-left: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 64px;

  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;

  color: var(--decoration-color);
  background-color: var(--iris-color);
  border: none;
  border-radius: 4px;
  transition: var(--aim);
}

.subscribe-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
}

/* ----- MODAL ----- */

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background-color: rgba(46, 47, 66, 0.4);
  transition: visibility var(--aim), scale var(--aim), opacity var(--aim);
  overflow-y: scroll;
}

.backdrop.is-hidden {
  visibility: hidden;
  scale: 1.5;
  opacity: 0;
  pointer-events: none;
}

.modal {
  position: absolute;
  width: 90vw;
  /* min-height: 576px; */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 72px 16px 24px;
  background-color: var(--modal-bgr);
  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);
  border-radius: 4px;
}


@media screen and (min-width: 428px) {
  .modal {
    width: 392px;    
  }
}

/* tablet screen  */
@media screen and (min-width: 768px) {
  .modal {
    width: 408px;
    padding: 72px 24px 24px;
  }
}

.modal-btm {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.modal-btm:hover,
.modal-btm:focus {
  background-color: var(--click-color);
  border: 1px solid var(--click-color);
  fill: var(--decoration-color);
}

.registration-form-appeal {
  display: block;
  text-align: center;

  margin-bottom: 16px;
}

.registration-form-field {
  position: relative;
  display: block;
  margin-bottom: 8px;
}

.registration-form-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--light-slate-color);
}

.registration-form-input {
  width: 100%;
  height: 40px;
  padding-left: 30px;
  padding-right: 30px;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  transition: outline var(--aim);
}

.registration-form-input:focus {
  outline: 1px solid var(--iris-color);
  outline-offset: -1px;
}

.registration-form-input:focus + .registration-form-icon {
  fill: var(--iris-color);
}

.registration-form-icon {
  position: absolute;
  bottom: 8px;
  left: 8px;
  transition: fill var(--aim);
}

.registration-form-massege {
  display: block;
  width: 100%;
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  resize: none;
}

.registration-form-massege:focus {
  outline: 1px solid var(--iris-color);
  outline-offset: -1px;
}

/* checkbox */
.registration-form-agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: 0.04em;
  color: #757575;
}

.registration-form-checkbox {
  appearance: none;
}
/*  */
.check {
  opacity: 0;
  fill: var(--iris-color);
  transition: var(--aim);
}

.uncheck {
  opacity: 1;
  transition: var(--aim);
}

.registration-form-checkbox:checked ~ .registration-form-check > .check {
  opacity: 1;
}
.registration-form-checkbox:checked ~ .registration-form-check > .uncheck {
  opacity: 0;
}
/*  */
.registration-form-text {
  user-select: none;
}

.registration-form-link {
  color: var(--iris-color);
}

.sub-modal-btm {
  display: block;
  margin: 0 auto;
  width: 169px;
  height: 56px;

  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;

  color: var(--decoration-color);
  background-color: var(--iris-color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  border: 0px;

  transition: background-color var(--aim);
}

/* ----- MOBILE MENU ----- */

.menu {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .menu {
    display: none;
  }
}

.menu .link {
  padding: 10px;
  color: inherit;
  text-decoration: none;
}

.menu .link:hover,
.menu .link:focus {
  text-decoration: underline;
}

.menu-toggle {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;
  background-color: transparent;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  outline: none;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle:hover,
.menu-toggle:focus {
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-btn {
  margin: 0;
  padding: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--accent-color);

  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.menu-container {
  display: flex;
  flex-direction: column;

  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 80px 40px;
  background-color: var(--decoration-color);
  z-index: 999;

  transform: translateX(100%);
  transition: var(--aim);
}

.menu-container.is-open {
  transform: translateX(0);
}

.menu-container .menu-toggle {
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--darc-color);
}

.mobile-menu {
  margin-bottom: auto;
}

.mobile-menu-item:not(:last-child) {
  margin-bottom: 40px;
}

.mobile-menu .link {
  display: block;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: var(--darc-color);
  text-decoration: none;
}

.mobile-contacts {
  margin-bottom: 48px;
}

.mobile-contacts-item:not(:last-child) {
  margin-bottom: 40px;
}

.mobile-contacts-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--body-text-color);
}


.mobile-menu-link.accent {
  font-weight: 600;
  font-size: 36px;
  line-height: 1.11;
  text-transform: capitalize;
  color: var(--iris-color);
}

.mobile-contacts-link.accent {
  color: var(--iris-color);
}

@media (min-width: 428px) {
  .mobile-contacts-link.accent {
    font-weight: 600;
  font-size: 36px;
  line-height: 1.11;
  text-transform: capitalize;
  color: var(--iris-color);
  }
}

.mobile-soc-list {
  display: flex;
  align-items: center;
  column-gap: 56px;
}

@media (max-width: 428px) {
  .mobile-soc-list {
    column-gap: 24px;
  }
}

.mobile-soc-link {
  width: 40px;
  height: 40px;
  display: flex;
  border-radius: 50%;
  background-color: var(--iris-color);
  justify-content: center;
  align-items: center;
  transition-property: background-color;
  transition-duration: 240ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-soc-icon {
  width: 24px;
  height: 24px;
  fill: var(--light-color);
}
