.hide {
  display: none;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #434455;
  font-size: 16px;
  line-height: 1.5;
  background-color: #ffffff;
}

/* Загальні правила */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  text-decoration: none;
}

:root {
  --primary-brand: #4d5ae5;
  --gray-text: #8e8f99;
  --cubie-effect: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --checked-bg: #404bbf;
  --checked-fill: #f4f4fd;
  --link-color: #4d5ae5;
}

/* Mobile first */

.container {
  min-width: 320px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;

  /* max-width: 1158px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px; */
}

@media only screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media only screen and (min-width: 1158px) {
  .container {
    max-width: 1158px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

.section {
  padding-bottom: 120px;
}

/*  Кінець загальних правил */

/* мій хедер */

.header {
  border-bottom: 1px solid #e7e9fc;
  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);
}

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

@media only screen and (min-width: 768px) {
  .header-nav {
    justify-content: center;
  }
}

@media only screen and (min-width: 1158px) {
  .header-nav {
    display: flex;
    align-items: center;
  }
}

.header-container {
  align-items: center;
}

@media only screen and (min-width: 768px) {
  .header-container {
    display: flex;
    justify-content: space-between;
  }
}

@media only screen and (min-width: 1158px) {
  .header-container {
    display: flex;
    align-items: center;
  }
}

.full-logo {
  font-size: 18px;
  font-weight: 700;
  color: #4d5ae5;
  font-family: 'Raleway', sans-serif;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;

  padding: 16px 0;
  position: relative;
}

@media only screen and (min-width: 768px) {
  .full-logo {
    padding: 24px 0;
    margin-right: 120px;
  }
}

@media only screen and (min-width: 1158px) {
  .full-logo {
    margin-right: 76px;
  }
}

.studio-color-one {
  color: #2e2f42;
}

.nav {
  display: none;
}

@media only screen and (min-width: 768px) {
  .nav {
    display: flex;
    gap: 40px;
  }
}

.nav-list-one {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #2e2f42;
  padding: 24px 0;
  position: relative;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-list-one:hover,
.nav-list-one:focus {
  color: #404bbf;
  transition: var(--cubie-effect);
}

.nav-list-one.active {
  color: #404bbf;
}

.active::after {
  position: absolute;
  left: 0;
  bottom: -1px;
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #404bbf;
}

.nav :hover,
.nav :focus {
  color: #404bbf;
  transition: var(--cubie-effect);
}

.mail {
  color: #434455;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0.02em;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media only screen and (min-width: 768px) {
  .mail {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.16;
    letter-spacing: 0.04em;
  }
}

@media only screen and (min-width: 1158px) {
  .mail {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }
}

.address-list {
  display: flex;
  gap: 40px;
}

@media only screen and (min-width: 768px) {
  .address-list {
    display: block;
  }
}

@media only screen and (min-width: 1158px) {
  .address-list {
    display: flex;
    gap: 40px;
  }
}

.description {
  display: none;
  font-style: normal;
  margin-left: auto;
}

@media only screen and (min-width: 768px) {
  .description {
    display: flex;
    flex-direction: row;
  }
}

@media only screen and (min-width: 1158px) {
  .description {
    font-style: normal;
    margin-left: auto;
  }
}

.description :hover,
.description :focus {
  color: #404bbf;
  transition: var(--cubie-effect);
}

/* кінець хедера */

/* секція перша */

.logo-name-color {
  background-color: #2e2f42;
  padding-top: 188px;
  padding-bottom: 188px;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 72px;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  background-image: linear-gradient(
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/mobile/Dark-bg@mobile-1x.jpg);
}

@media only screen and (min-width: 320px) and (min-resolution: 192dpi) {
  .logo-name-color {
    padding-top: 112px;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/mobile/Dark-bg@mobile-2x.jpg);
  }
}

@media only screen and (min-width: 768px) {
  .logo-name-color {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/tablet/Dark-bg@tablet-1x.jpg);
  }
}

@media only screen and (min-width: 768px) and (min-resolution: 192dpi) {
  .logo-name-color {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/tablet/Dark-bg@tablet-2x.jpg);
  }
}

@media only screen and (min-width: 1158px) {
  .logo-name-color {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/desktop/people-office\ 1@heder-1px.jpg);
  }
}

@media only screen and (min-width: 1158px) and (min-resolution: 192dpi) {
  .logo-name-color {
    padding: 188px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/desktop/people-office\ 1@heder-2px.jpg);
  }
}

.logo-name {
  display: block;
  color: #ffffff;
  font-size: 36px;
  line-height: 1.1;
  text-align: center;
  letter-spacing: 0.02em;
  justify-self: center;
  margin-bottom: 72px;
  width: 216px;
  height: 160px;
}

@media only screen and (min-width: 768px) {
  .logo-name {
    font-weight: 700;
    font-size: 56px;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 496px;
    margin-bottom: 36px;
    width: 496px;
    height: 120px;
    line-height: 1.07;
  }
}

@media only screen and (min-width: 1158px) {
  .logo-name {
    margin-bottom: 48px;
  }
}

.button-style {
  border: none;
  background-color: #4d5ae5;
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  font-family: 'Roboto', sans-serif;
  min-width: 169px;
  min-height: 56px;
  padding: 14px 32px;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.button-style:hover,
.button-style:focus {
  background-color: #404bbf;
  transition: var(--cubie-effect);
}

/* кінець першої секції */

/* секція два */

.advantages-list {
  display: flex;
  flex-direction: column;
  row-gap: 72px;
}

@media only screen and (min-width: 768px) {
  .advantages-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 72px 24px;
  }
  .advantages-list-item {
    width: 356px;
  }
}

@media only screen and (min-width: 1168px) {
  .advantages-list {
    display: flex;
  }
}

.our-advantages {
  padding: 96px 0px;
  /* padding: 120px 0; */
}

@media only screen and (min-width: 1168px) {
  .our-advantages {
    padding: 120px 0;
  }
}

.advantages-list-item {
  /* width: calc((100% - 72px) / 4); */
  border-radius: 4px;
}

@media only screen and (min-width: 1158px) {
  .advantages-list-item {
    width: calc((100% - 72px) / 4);
  }
}

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

.our-advantages-title {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  color: #2e2f42;
}

@media only screen and (min-width: 768px) {
  .our-advantages-title {
    line-height: 1.2;
    letter-spacing: 0.02em;

    text-align: left;
    margin-bottom: 8px;
  }
}

@media only screen and (min-width: 1158px) {
  .our-advantages-title {
    font-weight: 500;
    font-size: 20px;
  }
}

.our-advantages-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
  gap: 8px;
}

@media only screen and (min-width: 1158px) {
  .our-advantages-text {
    font-weight: 400;
  }
}

.advantages-icon {
  display: none;
}

@media only screen and (min-width: 1158px) {
  .advantages-icon {
    width: 264px;
    height: 112px;
    border: 1px solid #8e8f99;
    background-color: #f4f4fd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
  }
}

/* кінець другої секції */

/* секція три */

.section-team {
  background-color: #f4f4fd;
  padding: 96px 0;
}

@media only screen and (min-width: minwidthpx) {
  .section-team {
    padding: 120px 0;
  }
}

.section-team-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

@media only screen and (min-width: 768px) {
  .section-team-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 64px 24px;
  }
}

@media only screen and (min-width: 1158px) {
  .section-team-list {
    display: flex;
    gap: 24px;
  }
}

.name-and-prof {
  padding-top: 32px;
  padding-bottom: 32px;
}

.section-team-name {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
  margin-bottom: 8px;
}

.team-img {
  width: 264px;
  height: 260px;
}

.section-team-text {
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

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

.section-color {
  background-color: #ffffff;
  text-align: center;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 1px 0 rgb(46 47 66 / 8%), 0 1px 1px 0 rgb(46 47 66 / 16%),
    0 1px 6px 0 rgb(46 47 66 / 8%);
  width: 264px;
}

.logo-item {
  fill: #4d5ae5;
}

.social-list {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 8px;
}

.logo-icon:hover,
.logo-icon:focus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #404bbf;
  transition: var(--cubie-effect);
}

.logo-icon:active {
  background-color: #404bbf;
}

.logo-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  fill: #f4f4fd;
  background-color: var(--primary-brand);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* кінець третьої секції */

/* секція четверта */

.list-apps {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-box {
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.section-box:hover {
  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);
  transition: var(--cubie-effect);
}

.portfolio-img {
  display: block;
  width: 100%;
  height: 280px;
}

@media only screen and (min-width: 768px) {
  .portfolio-img {
    width: 100%;
    height: 300px;
  }
}

@media only screen and (min-width: 1158px) {
  .portfolio-img {
    width: 360px;
    height: 300px;
  }
}

.portfolioadds {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  row-gap: 48px;
}

@media only screen and (min-width: 768px) {
  .portfolioadds {
    display: flex;

    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 72px 24px;
  }
}

.our-advantages-block {
  padding: 32px 16px;
  border-bottom: 1px solid #e7e9fc;
  border-left: 1px solid #e7e9fc;
  border-right: 1px solid #e7e9fc;
}

.overlay {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  width: 100%;
  height: 100%;
  padding: 40px 32px;
  position: absolute;
  top: 0;
  left: 0;
  color: #f4f4fd;
  background-color: #4d5ae5;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-thumb {
  position: relative;
  overflow: hidden;
}

.section-box:hover .overlay {
  transform: translateY(0);
  max-width: 100%;
  max-height: 100%;
  transition: var(--cubie-effect);
}

.our-advantages-title-app {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #2e2f42;
}

.our-advantages-text-app {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #434455;
}

/* мій футер */

.footer {
  padding-top: 96px;
  padding-bottom: 96px;
  background-color: #2e2f42;
}

@media only screen and (min-width: 1158px) {
  .footer {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

.studio-color-two {
  color: #f4f4fd;
}

.social-list-footer {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 72px;
}

.footer-left {
  text-align: center;
  margin-bottom: 72px;
}

@media only screen and (min-width: 768px) {
  .footer-left {
    text-align: left;
    margin-bottom: 0;
  }
}

.full-logo-down {
  display: inline-block;
  margin-bottom: 17.5px;
  font-size: 18px;
  font-weight: 700;
  color: #4d5ae5;
  font-family: 'Raleway', sans-serif;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media only screen and (min-width: 1158px) {
  .full-logo-down {
    margin-right: 76px;
  }
}

@media only screen and (min-width: 1158px) {
  .full-logo-down {
    margin-bottom: 16px;
  }
}

.footer-text {
  color: #f4f4fd;
  letter-spacing: 0.02em;
  font-family: 'Roboto';
  width: 264px;
  text-align: left;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 72px;
}

@media only screen and (min-width: 768px) {
  .footer-text {
    font-weight: 500;
    font-size: 16px;
  }
}

@media only screen and (min-width: 1158px) {
  .footer-text {
    margin-bottom: 0;
  }
}

.social-media-text {
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 500;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .social-media-text {
    text-align: left;
  }
}

.footer-container {
  /* display: flex; */
  align-items: baseline;
  gap: 80px;
}

@media only screen and (min-width: 768px) {
  .footer-container {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;
    gap: 72px 24px;
  }
}

@media only screen and (min-width: 1158px) {
  .footer-container {
    display: flex;
    align-items: baseline;
    gap: 80px;
  }
}

.logo-icon-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  fill: #f4f4fd;
  gap: 16px;
  background-color: var(--primary-brand);
  border-radius: 50%;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-icon-footer:hover,
.logo-icon-footer:focus {
  background-color: #31d0aa;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: var(--cubie-effect);
}

.footer-icon:active {
  background-color: #31d0aa;
}

.sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 16px;
  border-radius: 4px;
  border: transparent;
  padding: 8px 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  min-width: 165px;
  height: 40px;
  background: #4d5ae5;
  color: #ffffff;
  text-align: center;
  margin-top: auto;
  min-width: 165px;
  cursor: pointer;
}

.sub-btn:hover,
.sub-btn:active {
  background-color: #404bbf;
  transition: var(--cubie-effect);
  cursor: pointer;
}

.container.footer-container {
  /* display: flex; */
  align-items: baseline;
}

@media only screen and (min-width: 1158px) {
  .container.footer-container {
    display: flex;
    align-items: baseline;
  }
}

.sub-btn-icon {
  fill: #ffffff;
  margin-left: 16px;
}

.subscribe-form {
  align-items: baseline;
}

.sub-input {
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  border: 1px solid #ffffff;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  border-radius: 4px;
  width: 264px;
  height: 40px;
  background-color: transparent;
  padding-left: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.sub-input::placeholder {
  color: #ffffff;
}

.subscribe-text {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-align: center;
}

@media only screen and (min-width: 768px) {
  .subscribe-text {
    text-align: left;
  }
}

.footer-right {
  margin-bottom: 72px;
}

@media only screen and (min-width: 768px) {
  .footer-right {
    margin-bottom: 0;
  }
}

.footer-sub {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media only screen and (min-width: 768px) {
  .footer-sub {
    flex-direction: row;
    gap: 24px;
  }
}

@media only screen and (min-width: 1158px) {
  .footer-sub {
    display: flex;
    gap: 24px;
    align-items: center;
  }
}

.sub-input::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #ffffff;
}

/* кінець футера */

/* Початок modal */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  background-color: rgba(46 47 66 / 40%);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* .backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: initial;
} */

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) scale(1);
  width: 288px;
  min-height: 623px;
  background-color: #fcfcfc;
  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);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 72px 16px 24px 16px;
}

@media only screen and (min-width: 768px) {
  .modal {
    width: 408px;
    min-height: 584px;
    padding: 72px 24px 24px 24px;
  }
}

.modal-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e7e9fc;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn:hover,
.modal-btn:focus {
  background-color: #404bbf;
  border: none;
  fill: #ffffff;
}

.modal-btn-icon {
  width: 8px;
  height: 8px;
  fill: #2e2f42;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn:hover .modal-btn-icon,
.modal-btn:focus .modal-btn-icon {
  fill: #ffffff;
}

.button-position {
  width: 24px;
  margin-left: auto;
}

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

.modal-form-wrapper {
  margin-bottom: 8px;
}

.wrapper-marg {
  margin-bottom: 16px;
}

.modal-form-label {
  display: block;
  line-height: 1.17;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gray-text);
  margin-bottom: 4px;
}

.modal-form-field {
  height: 40px;
  position: relative;
}

.modal-form-input {
  display: block;
  width: 100%;
  height: 40px;

  border: 1px solid rgba(46 47 66 / 40%);
  border-radius: 4px;
  padding-left: 38px;
  background-color: transparent;
  outline: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-input:focus {
  border-color: #4d5ae5;
  color: #2e2f42;
}

.modal-form-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%) translateX(-50%);
  fill: rgb(46, 47, 66);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-field:focus-within .modal-form-icon {
  fill: #4d5ae5;
}

.modal-form-comment {
  border: 1px solid rgba(46 47 66 / 0.4);
  color: rgba(46 47 66 / 0.4);
  border-radius: 4px;
  width: 100%;
  background-color: transparent;
  height: 120px;
  resize: none;
  padding: 8px 16px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  font-size: 12px;
  font-weight: 400;
  outline: transparent;
  resize: none;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-form-comment:focus {
  border-color: #4d5ae5;
}

.modal-form-agreement {
  display: flex;

  align-items: center;
  margin-bottom: 24px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--gray-text);
}
.modal-form-checkbox {
  display: inline-flex;
  flex-basis: 16px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(46 47 66 / 40%);
  border-radius: 2px;
  cursor: pointer;
  margin-right: 8px;
  line-height: 0;
  fill: transparent;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border 250ms cubic-bezier(0.4, 0, 0.2, 1),
    fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-slogan-checkbox {
  display: flex;
}

input[type='checkbox']:checked + label .modal-form-checkbox {
  background-color: var(--checked-bg);
  border: none;
  fill: var(--checked-fill);
}

.modal-form-agreement-link {
  text-decoration: underline;
  color: var(--link-color);
}

.modal-btn-sub {
  display: block;
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
  min-width: 169px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  height: 56px;
  text-align: center;
  background-color: #4d5ae5;
  color: #ffffff;
  margin: auto;
  margin-top: 24px;
  cursor: pointer;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn-sub:hover,
.modal-btn-sub:focus {
  background-color: #404bbf;
}

.mobile-menu-btn {
  background: transparent;
  outline: none;
  border: none;
}

@media only screen and (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  transform: translateX(100%);

  display: flex;
  flex-direction: column;
  padding: 72px 24px 40px;

  background-color: #fff;
  transition: transform 400ms ease-in;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu.is-open {
  transform: translateX(0);
}
@media only screen and (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.nav-menu :hover,
.nav-menu :focus {
  color: #404bbf;
  transition: var(--cubie-effect);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11111;
  letter-spacing: 0.02em;
  color: #2e2f42;
  gap: 40px;
  margin-bottom: 168px;
  margin-bottom: auto;
}

.description-mobile {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #434455;
  margin-bottom: 40px;
}

.description-mobile :hover,
.description-mobile :focus {
  color: #4d5ae5;
}

.address-list-mobile {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.social-list-mobile {
  display: flex;
  flex-direction: row;
  gap: 40px;
}

.active-menu {
  color: #404bbf;
}
