:root {
  --iris: #4d5ae5;
  --ocean: #404bbf;
  --navy-blue: #2e2f42;
  --green: #31d0aa;
  --slate: #434455;
  --light-slate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --white: #fff;
  --dairy: #fcfcfc;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}
a {
  text-decoration: none;
  font-style: normal;
}
ul {
  list-style-type: none;
  margin: 0;
  padding-left: 0;
}
*,
::after,
::before {
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  color: var(--slate);
  background-color: var(--white);
}
button {
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.container {
  width: 320px;
  margin: 0 auto;
  padding: 0 16px;
}

h2 {
  font-weight: 700;
  font-size: 36px;
  color: var(--navy-blue);
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

h3 {
  font-weight: 500;
  font-size: 20px;
  color: var(--navy-blue);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

p {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

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

@media screen and (min-width: 1158px) {
  .container {
    width: 1158px;
    padding: 0 15px;
  }
}

/* container */
.upper-base {
  border-bottom: 1px solid var(--cornflower);
  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);
}

.upper-base .container {
  display: flex;
  justify-content: space-between;
}

.title-page,
.title-page-a {
  display: none;
}

.basis {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--iris);
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
}

.upper-base .basis {
  display: block;
  padding: 16px 0;
}

.upper-base .basis .text {
  color: var(--navy-blue);
}

.burger-btn {
  padding: 0;
  background: transparent;
  border: none;
}

.burger-icon {
  display: block;
  fill: #2f2f37;
}

@media screen and (min-width: 768px) {
  .beginning {
    display: flex;
    align-items: center;
  }

  .upper-base .basis {
    margin-right: 120px;
    padding: 24px 0;
  }

  .title-page {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .hom {
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
    display: block;
    position: relative;
    color: var(--navy-blue);
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .room {
    color: var(--ocean);
  }
  .room::after {
    content: "";
    width: 100%;
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 4px;
    background-color: var(--ocean);
    border-radius: 2px;
  }

  .hom:hover {
    color: var(--ocean);
  }

  .hom:focus {
    color: var(--ocean);
  }

  .hom:active {
    color: var(--ocean);
    text-decoration: underline;
  }

  .title-page-b {
    display: flex;
    font-style: normal;
    margin-left: auto;
    align-items: center;
  }

  .title-page-a {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hom-a {
    color: var(--slate);
    font-size: 12px;
    line-height: 1.17;
    letter-spacing: 0.04em;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
  }

  .hom-a:hover {
    color: var(--ocean);
  }

  .hom-a:focus {
    color: var(--ocean);
  }

  .burger-btn {
    display: none;
  }
}

@media screen and (min-width: 1158px) {
  .upper-base .basis {
    margin-right: 76px;
  }

  .title-page-b {
    display: flex;
    justify-content: center;
  }

  .title-page-a {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }

  .hom-a {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 24px 0;
  }
}

/* Mobile-menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-container {
  position: relative;
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.mobile-menu-nav {
  margin-bottom: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cornflower);
  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);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background-color: var(--ocean);
  border: none;
}

.mobile-menu-close:hover .mobile-menu-close-svg,
.mobile-menu-close:focus .mobile-menu-close-svg {
  fill: var(--white);
}

.mobile-menu-close-svg {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-nav {
}

.mobile-menu-nav-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav-list-item {
}

.mobile-nav-list-item-link {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: var(--navy-blue);
}

.mobile-nav-list-item .accent,
.mobile-menu-adress-list-item .accent {
  color: var(--ocean);
}

.mobile-menu-adress {
  margin-bottom: 48px;
}

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

.mobile-menu-adress-list-item {
}

.mobile-menu-adress-list-item-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--slate);
}

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

.mobile-menu-list-item-container-social-item {
  width: 40px;
  height: 40px;
}

.mobile-menu-list-item-container-social-item-link {
  width: 100%;
  height: 100%;
  background-color: var(--iris);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-list-item-container-social-item-link:hover,
.mobile-menu-list-item-container-social-item-link:focus {
  background-color: var(--ocean);
}

.mobile-menu-list-item-container-social-item-link-svg {
  fill: var(--cloud);
}

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

/* the-main */
.main-text {
  background-color: var(--navy-blue);
  background-image: linear-gradient(
      to bottom,
      rgba(46, 47, 66, 0.7),
      rgba(46, 47, 66, 0.7)
    ),
    url(../images/hero-banner.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding-top: 72px;
  padding-bottom: 72px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
@media screen and (min-resolution: 192dpi) {
  .main-text {
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../images/hero-banner@2x.jpg");
  }
}

.top {
  font-weight: 700;
  font-size: 36px;
  color: var(--white);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.11;
  max-width: 216px;
  margin: 0 auto 72px;
}
.button {
  border: none;
  background-color: var(--iris);
  font-weight: 500;
  font-size: 16px;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.5;
  cursor: pointer;
  border-radius: 4px;
  display: block;
  min-width: 169px;
  height: 56px;
  display: block;
  margin: 0 auto;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.button:hover {
  background-color: #404bbf;
}
.button:focus {
  background-color: #404bbf;
}
@media screen and (min-width: 768px) {
  .main-text {
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-banner-tablet.jpg);
    padding: 112px 0;
    max-width: 768px;
  }

  .top {
    font-size: 56px;
    line-height: 1.07;
    max-width: 496px;
    margin: 0 auto 36px;
  }
}
@media screen and (min-width: 768px) and (min-resolution: 2x) {
  .main-text {
    background-image: linear-gradient(
        to bottom,
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url("../images/hero-banner-tablet@2x.jpg");
  }
  .top {
    max-width: 496px;
    margin: 0 auto 36px;
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: 0.02em;
  }
}

@media screen and (min-width: 1158px) {
  .main-text {
    background-color: var(--navy-blue);
    padding: 72px 0;
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-banner-desktop.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin: 0 auto;
    padding: 188px 0;
    max-width: 1440px;
  }
  .top {
    margin: 0 auto 48px;
  }
}
@media (min-resolution: 2x) {
  .hero-banner {
    background-image: linear-gradient(
        rgba(46, 47, 66, 0.7),
        rgba(46, 47, 66, 0.7)
      ),
      url(../images/hero-banner-desktop@2x.jpg);
  }
}

/* description */
.first-chapter {
  padding: 96px 0;
}

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

.description {
  display: flex;
  flex-wrap: wrap;
  gap: 72px;
}

.first-description {
  width: 100%;
}

.icons svg {
  display: none;
}

.first-a {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  text-align: center;
  margin-bottom: 8px;
}

.des-a {
  font-weight: 500;
}

@media screen and (min-width: 768px) {
  .first-chapters {
    padding: 96px 0;
  }

  .description {
    display: flex;
    flex-wrap: wrap;
    row-gap: 72px;
    column-gap: 24px;
  }

  .first-description {
    width: calc((100% - 24px) / 2);
  }

  .first-a {
    text-align: start;
  }
}

@media screen and (min-width: 1158px) {
  .first-chapter {
    padding: 120px 0;
  }

  .description {
    flex-wrap: nowrap;
  }

  .first-description {
    width: calc((100% - 72px) / 4);
  }

  .icons svg {
    display: block;
  }

  .icons {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    background-color: var(--cloud);
    border-radius: 4px;
    border: 1px solid var(--light-slate);
    margin-bottom: 8px;
  }

  .first-a {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .des-a {
    font-weight: 400;
  }
}

/* team */
.development-team {
  background-color: var(--cloud);
  padding: 96px 0;
}

.beginning-top {
  margin-bottom: 72px;
  font-weight: 700;
  font-size: 36px;
  color: var(--navy-blue);
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.given-commands {
  display: flex;
  flex-direction: column;
  gap: 72px;
  align-items: center;
}

.mark {
  background-color: var(--white);
  /* max-width: 264px; */
  border-radius: 0px 0px 4px 4px;
  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);
}

.mark-a {
  padding: 32px 0;
}

.ma-b {
  text-align: center;
  margin-bottom: 8px;
}

.ma-a {
  text-align: center;
  margin-bottom: 8px;
}

.list-media-a {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.link-a {
  width: 40px;
  height: 40px;
}

.footer-link-a {
  width: 100%;
  height: 100%;
  background-color: var(--iris);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link-a:hover,
.footer-link-a:focus {
  background-color: var(--ocean);
}

.social-icon-a {
  fill: var(--cloud);
}

@media screen and (min-width: 768px) {
  .given-commands {
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 64px;
    column-gap: 24px;
    align-items: center;
    justify-content: center;
  }

  .mark {
    max-width: calc((100% - 24px) / 2);
  }
}

@media screen and (min-width: 1158px) {
  .development-team {
    padding: 120px 0;
  }

  .given-commands {
    justify-content: space-between;
  }

  .mark {
    max-width: calc((100% - 72px) / 4);
  }
}

/* portfolio */
.basic-functions {
  padding: 96px 0;
}

.beginning-top-a {
  margin-bottom: 72px;
  font-weight: 700;
  font-size: 36px;
  color: var(--navy-blue);
  line-height: 1.11;
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.site-functions {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.port-a {
  width: 100%;
  transition: box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
  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);
}

.port-a:hover .over {
  transform: translateY(0%);
}

.portfolio-blok {
  position: relative;
  overflow: hidden;
}

.over {
  position: absolute;
  top: 0;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cloud);
  padding: 40px 32px;
  background-color: var(--iris);
  height: 100%;
  width: 100%;
  transform: translateY(100%);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.list-a {
  padding: 32px 16px;
  border: 1px solid var(--cornflower);
  border-top: none;
}

.lo-a {
  margin-bottom: 8px;
}

@media screen and (min-width: 768px) {
  .site-functions {
    column-gap: 24px;
    row-gap: 72px;
  }

  .port-a {
    width: calc((100% - 24px) / 2);
  }
}

@media screen and (min-width: 1158px) {
  .basic-functions {
    padding: 120px 0;
  }

  .site-functions {
    column-gap: 24px;
    row-gap: 48px;
  }

  .port-a {
    width: calc((100% - 48px) / 3);
  }

  .port-a {
    box-shadow: none;
  }

  .port-a: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);
  }
}

/* footer */
.basement {
  background-color: var(--navy-blue);
  padding: 96px 0;
}

.basement .bass {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.basement .bass .text-a {
  color: var(--cloud);
}
.bass {
  justify-content: start;
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--iris);
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
}

.info-text {
  color: var(--cloud);
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 264px;
}

.container-footer {
  display: flex;
  max-width: 288px;
  flex-direction: column;
  gap: 72px;
}

.office-links,
.subscribe,
.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.media {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.list-media {
  display: flex;
  gap: 16px;
}

.link {
  width: 40px;
  height: 40px;
}

.footer-link {
  width: 100%;
  height: 100%;
  background-color: var(--iris);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover,
.footer-link:focus {
  background-color: var(--green);
}

.social-icon {
  fill: var(--cloud);
}

.subscribe-title {
  margin-bottom: 16px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: 0.04em;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.subscribe-input::placeholder {
  color: var(--white);
}

.submit-button {
  max-width: 165px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--white);
  background-color: var(--iris);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 0 16px;
}

.subscribe-button {
  margin-left: 16px;
  max-width: 165px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--white);
  background-color: var(--iris);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  fill: var(--white);
}

@media screen and (min-width: 768px) {
  .container-footer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    row-gap: 72px;
    column-gap: 24px;
    max-width: 584px;
  }

  .footer-logo,
  .office-links {
    flex-basis: calc((100% - 24px) / 2);
  }

  .subscribe {
    flex-basis: 100%;
  }
  .basement .bass {
    justify-content: start;
  }

  .bass {
    justify-content: start;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--iris);
    font-size: 18px;
    line-height: 1.17;
    letter-spacing: 0.03em;
  }

  .office-links,
  .subscribe,
  .subscribe-form {
    align-items: flex-start;
  }

  .subscribe-title {
    letter-spacing: 0.02em;
  }

  .subscribe-form {
    flex-direction: row;
  }

  .submit-button {
    min-width: 165px;
  }
}

@media screen and (min-width: 1158px) {
  .basement {
    padding: 100px 0;
  }

  .container-footer {
    display: flex;
    flex-direction: row;

    align-items: flex-start;
    gap: unset;
    max-width: 1158px;
    margin: 0 auto;
  }

  .footer-logo {
    flex-basis: 264px;
    margin-right: 120px;
  }

  .office-links {
    flex-basis: 208px;
    margin-right: 80px;
  }

  .subscribe {
    flex-basis: 453px;
    flex-direction: column;
    margin-left: 0;
  }

  .basement .bass {
    justify-content: start;
  }

  .subscribe-form {
    flex-direction: row;
    gap: 24px;
  }
}

/* service contract*/

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(46, 47, 66, 0.4);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pop-up-container.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

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

.backdrop-item {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--cornflower);
  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);
}

.backdrop-item:hover,
.backdrop-item:focus {
  background-color: var(--ocean);
  border: none;
}

.backdrop-item:hover .close-icon,
.backdrop-item:focus .close-icon {
  fill: var(--white);
}

.close-icon {
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.text-service {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--navy-blue);
  margin-bottom: 16px;
}

.form-fieldset {
  margin-bottom: 8px;
}

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

.input-container {
  position: relative;
}

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

.input-form:focus {
  border-color: var(--iris);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input-form:focus + .input-icon {
  fill: var(--iris);
}

.form-fieldset-a {
  margin-bottom: 16px;
}

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

.textarea-form:focus {
  border-color: var(--iris);
}

.form-fieldset-b {
  margin-bottom: 24px;
}

.privacy-label {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--light-slate);
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(46, 47, 66, 0.4);
  border-radius: 2px;
  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);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  fill: transparent;
}

.checkbox-input:checked + .privacy-label .custom-checkbox {
  background-color: var(--ocean);
  border: none;
  fill: var(--cloud);
}

.checkbox-icon {
  fill: transparent;
}

.checkbox-input:checked + .privacy-label .checkbox-icon {
  fill: var(--cloud);
}

.privacy-link {
  text-decoration: underline;
}

.privacy-label .privacy-link {
  color: var(--iris);
}

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

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