:root {
  /* Typography */
  --primary-font: 'Roboto', sans-serif;
  --logo-font: 'Raleway', sans-serif;

  /* Colors */
  --iris: #4d5ae5;
  --ocean: #404bbf;
  --navyblue: #2e2f42;
  --green: #31d0aa;
  --slate: #434455;
  --lightslate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --white: #ffffff;
  --dairy: #fcfcfc;
  --navyblue-modal: rgba(46, 47, 66, 0.4);
  --navyblue-bg: rgba(46, 47, 66, 0.7);
}

body {
  background-color: var(--white);
  font-family: var(--primary-font);
  color: var(--slate);
  line-height: 1.5;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0;
}

ul {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  list-style-type: none;
}

img {
  display: block;
}

a {
  text-decoration: none;
}

.container {
  max-width: 428px;
  padding: 0 16px;
  margin: 0 auto;
}

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

.no-scroll {
  overflow: hidden;
}

/* ----- Header ----- */

.header {
  border-bottom: 1px solid var(--cornflower);
  box-shadow: 0px 1px 6px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 2px 1px 0px rgba(46, 47, 66, 0.08);
}

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

.logo-header,
.logo-footer {
  font-family: var(--logo-font);
  font-size: 18px;
  font-weight: 800;
  color: var(--iris);
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-header-accent {
  color: var(--navyblue);
}

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

.header-nav-list,
.header-addr-list {
  display: none;
}

.mob-menu-open-btn {
  height: 70px;
  padding: 24px 0;
  line-height: 0;
  border: none;
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.mob-menu-open-icon {
  width: 32px;
  height: 22px;
  fill: var(--navyblue);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu-open-btn:is(:hover, :focus) .mob-menu-open-icon {
  fill: var(--ocean);
}

/* ----- Mobile Menu ----- */

.mob-menu {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  padding: 80px 0 40px 40px;
  background-color: var(--white);
  box-shadow: 0px 1px 6px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 2px 1px 0px rgba(46, 47, 66, 0.08);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

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

.mob-menu.is-hidden {
  transform: translateX(100%);
}

.mob-menu-close-btn {
  position: absolute;
  padding: 0;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--cornflower);
  border: 1px solid rgba(46, 47, 66, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-menu-close-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  fill: var(--navyblue);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-menu-close-btn:is(:hover, :focus) {
  background-color: var(--ocean);
  border: none;
}
.mob-menu-close-btn:is(:hover, :focus) .mob-menu-close-icon {
  fill: var(--white);
}

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

.mob-nav-link {
  display: block;
  color: var(--navyblue);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-nav-link:is(:hover, :focus) {
  color: var(--ocean);
}

.mob-nav-link.current {
  color: var(--ocean);
}

.mob-address {
  margin-bottom: 48px;
}

.mob-addr-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mob-addr-tel {
  display: block;
  color: var(--iris);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.02em;
  font-style: normal;
}

.mob-addr-mail {
  display: block;
  color: var(--slate);
  font-family: Roboto;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.mob-addr-tel:is(:hover, :focus),
.mob-addr-mail:is(:hover, :focus) {
  color: var(--ocean);
}

.mob-socials-list {
  display: flex;
  gap: calc((100vw - 40px * 4 - 40px * 2) / 3);
}

.mob-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--iris);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-social-link:is(:hover, :focus) {
  background-color: var(--green);
}

.mob-social-icon {
  width: 24px;
  height: 24px;
  fill: var(--cloud);
}

/* ----- Index Main ----- */

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

/* ----- Hero ----- */

.hero-section {
  padding: 112px 0;
  background-image: linear-gradient(var(--navyblue-bg), var(--navyblue-bg)),
    url(../images/hero-bgimage-mob.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  max-height: 432px;
  margin: 0 auto;
}

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

.hero-title {
  max-width: 320px;
  color: var(--white);
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.02em;
}

.hero-button {
  background-color: var(--iris);
  font-family: 'Roboto', sans-serif;
  padding: 16px 32px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
  min-width: 169px;
  height: 56px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-button:is(:hover, :focus) {
  background-color: var(--ocean);
}

/* ----- Features ----- */

.features-section {
  padding: 96px 0;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 72px 24px;
}

.feature-img {
  display: none;
}

.feature-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.11;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.feature-description {
  color: var(--slate);
  letter-spacing: 0.02em;
  font-weight: 500;
}

/* ----- What are we doing ----- */

.wawdoing-section {
  display: none;
  padding-bottom: 120px;
}

.wawdoing-list {
  display: flex;
  gap: 24px;
}

.wawdoing-item {
  max-width: calc((100% - 24px * 2) / 3);
}

.wawdoing-item-img {
  width: 360px;
  width: 100%;
  margin: 0 auto;
}

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

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

.team-card {
  background-color: var(--white);
  border-radius: 0px 0px 4px 4px;
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}

.team-card-img {
  height: 260px;
  width: 100%;
  margin: 0 auto;
}

.team-card-description {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 32px 0;
}

.team-name {
  color: var(--navyblue);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.team-role {
  color: var(--slate);
  letter-spacing: 0.02em;
}

.team-socials-list {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.team-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--iris);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.team-social-link:is(:hover, :focus) {
  background-color: var(--ocean);
}

.team-social-icon {
  width: 16px;
  height: 16px;
  fill: var(--cloud);
}

/* ----- Customers ----- */

.customers-section {
  padding: 96px 0;
}

.customers-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 72px 16px;
}

.customer-link {
  width: 190px;
  height: 88px;
  border-radius: 4px;
  border: 1px solid var(--lightslate);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lightslate);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.customer-link:is(:hover, :focus, :active) {
  border-color: var(--ocean);
  color: var(--ocean);
}

.customer-icon {
  width: 110px;
  height: 56px;
  fill: currentColor;
}

/* ----- Portfolio Main ----- */

.portfolio-section {
  padding: 48px 0;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 24px;
  column-gap: 16px;
  margin-bottom: 48px;
}

.filters-button {
  font-family: 'Roboto', sans-serif;
  background-color: var(--cloud);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--iris);
  cursor: pointer;
  padding: 8px 16px;
  border: 1px solid var(--cornflower);
  border-radius: 4px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.filters-button:is(:hover, :focus, :active) {
  color: var(--white);
  background-color: var(--ocean);
  border: 1px solid transparent;
}

.portfolio-list {
  display: flex;
  flex-wrap: wrap;
  row-gap: 48px;
}

.portfolio-card {
  width: calc(100vw - 16px * 2);
  max-width: 396px;
  border: 1px solid var(--cloud);
  box-shadow: 0px 1px 6px 0px rgba(46, 47, 66, 0.08);
}

.portfolio-card-link {
  display: block;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card-link:is(:hover, :focus) {
  box-shadow: 0px 2px 1px 0px rgba(46, 47, 66, 0.08),
    0px 1px 1px 0px rgba(46, 47, 66, 0.16),
    0px 1px 6px 0px rgba(46, 47, 66, 0.08);
  border: 1px solid var(--cloud);
}
.portfolio-card-link:is(:hover, :focus) .portfolio-card-cover {
  transform: translateY(0);
}

.portfolio-card-sketch {
  position: relative;
  overflow: hidden;
}

.portfolio-card-img {
  max-width: 396px;
  height: 280px;
  margin: 0 auto;
}

.portfolio-card-cover {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--cloud);
  letter-spacing: 0.02em;
  background-color: var(--iris);
  height: 100%;
  width: 100%;
  padding: 40px 32px;
  transform: translateY(100%);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card-description {
  padding: 32px 16px;
}

.portfolio-card-title {
  color: var(--navyblue);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.portfolio-card-type {
  color: var(--slate);
  letter-spacing: 0.02em;
}

/* ----- Footer ----- */

.footer {
  padding: 96px 0;
  background-color: var(--navyblue);
  color: var(--cloud);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 72px;
}

.footer-tagline {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-footer {
  display: inline-block;
  margin-bottom: 16px;
}

.logo-footer-accent {
  color: var(--cloud);
}

.footer-tagline-paragraph {
  letter-spacing: 0.02em;
  width: 264px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-subtitle {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

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

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--iris);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social-link:is(:hover, :focus) {
  background-color: var(--green);
}

.footer-social-icon {
  width: 24px;
  height: 24px;
  fill: var(--cloud);
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.footer-subscribe-input {
  width: calc(100vw - 16px * 2);
  max-width: 398px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255, 254, 254, 0.3);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
  background-color: transparent;
  outline: transparent;
  padding-left: 16px;
  color: var(--white);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-subscribe-input:focus {
  border-color: var(--iris);
}
.footer-subscribe-input::placeholder {
  color: rgba(255, 254, 254, 0.6);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.footer-subscribe-btn {
  min-width: 165px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  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: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-subscribe-btn-icon {
  width: 24px;
  height: 24px;
  margin-left: 16px;
  fill: var(--white);
}
.footer-subscribe-btn:is(:hover, :focus) {
  background-color: var(--ocean);
}

/* ----- Modal Order ----- */

.modal-backdrop {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--navyblue-modal);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-backdrop.is-hidden .modal-order {
  transform: translate(-50%, -50%) scale(0);
}

.modal-order {
  padding: 72px 16px 24px;
  width: 392px;
  min-height: 584px;
  border-radius: 4px;
  background-color: var(--dairy);
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2),
    0px 1px 3px 0px rgba(0, 0, 0, 0.12), 0px 1px 1px 0px rgba(0, 0, 0, 0.14);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close-btn-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  fill: var(--navyblue);
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-close-btn:is(:hover, :focus) .modal-close-btn-icon {
  fill: var(--white);
}

.order-title {
  color: var(--navyblue);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.order-field {
  margin-bottom: 8px;
}

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

.order-input-wrap {
  position: relative;
}

.order-input {
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid var(--navyblue-modal);
  padding: 0 16px 0 38px;
  background-color: transparent;
  outline: transparent;
  color: var(--navyblue);
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.order-input:focus {
  border-color: var(--iris);
}

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

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

.order-field-textarea {
  margin-bottom: 16px;
}

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

.order-field-checkbox {
  margin-bottom: 24px;
}

.check {
  width: 10px;
  height: 8px;
}

.order-checkbox-label {
  color: var(--lightslate);
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  display: block;
  align-items: center;
}

.checkbox-container {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid var(--navyblue-modal);
  margin-right: 8px;
  align-items: center;
  justify-content: center;
  fill: transparent;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.order-checkbox:checked + .order-checkbox-label > .checkbox-container {
  background-color: var(--ocean);
  border: none;
  fill: var(--cloud);
}

.policy-link {
  color: var(--iris);
  text-decoration-line: underline;
}

.order-send-btn {
  display: block;
  margin: 0 auto;
  background-color: var(--iris);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.04em;
  min-width: 169px;
  height: 56px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.order-send-btn:is(:hover, :focus) {
  background-color: var(--ocean);
}
