.cw-phone-hub {
  color: #111;
  margin: 0 0 48px;
}

.cw-phone-hub *,
.cw-phone-hub *::before,
.cw-phone-hub *::after {
  box-sizing: border-box;
}

.cw-phone-hub__hero {
  align-items: center;
  background: #f4efe6;
  border-radius: 28px;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  min-height: 470px;
  overflow: hidden;
  padding: 64px 7%;
  position: relative;
}

.cw-phone-hub__copy {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.cw-phone-hub__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

#products .cw-phone-hub h1 {
  color: #111;
  font-size: clamp(38px, 4.5vw, 56px);
  letter-spacing: -.045em;
  line-height: .98;
  margin: 0;
}

.cw-phone-hub__intro {
  color: #383838;
  font-size: 19px;
  line-height: 1.55;
  margin: 24px 0 30px;
  max-width: 680px;
}

.cw-phone-hub__search {
  align-items: stretch;
  background: #fff;
  border: 1px solid #d7d0c4;
  border-radius: 12px;
  display: flex;
  max-width: 720px;
  padding: 6px;
}

.cw-phone-hub__search input {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #111;
  flex: 1;
  font-size: 16px;
  min-width: 0;
  padding: 14px 16px;
}

.cw-phone-hub__search input:focus {
  outline: 2px solid #111;
  outline-offset: -2px;
}

.cw-phone-hub__search button {
  background: #111;
  border: 1px solid #111;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 24px;
}

.cw-phone-hub__models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.cw-phone-hub__models a {
  border-bottom: 1px solid #8c8376;
  color: #333;
  font-size: 13px;
  padding: 5px 0;
}

.cw-phone-hub__visual {
  height: 360px;
  position: relative;
}

.cw-phone-hub__phone {
  background: #171717;
  border: 7px solid #111;
  border-radius: 36px;
  box-shadow: 0 25px 55px rgba(35, 27, 18, .22);
  height: 315px;
  position: absolute;
  width: 158px;
}

.cw-phone-hub__phone::before {
  background: #d8d0c3;
  border-radius: 50%;
  content: "";
  height: 28px;
  left: 20px;
  position: absolute;
  top: 20px;
  width: 28px;
}

.cw-phone-hub__phone::after {
  background: #d8d0c3;
  border-radius: 50%;
  content: "";
  height: 28px;
  left: 56px;
  position: absolute;
  top: 20px;
  width: 28px;
}

.cw-phone-hub__phone--back {
  left: 5%;
  top: 38px;
  transform: rotate(-10deg);
}

.cw-phone-hub__phone--front {
  background: linear-gradient(155deg, #222 10%, #7a6c5b 47%, #f4efe6 48%, #111 76%);
  right: 7%;
  top: 6px;
  transform: rotate(9deg);
}

.cw-phone-hub__phone--front::before {
  background: #090909;
  height: 12px;
  left: 50%;
  top: 9px;
  transform: translateX(-50%);
  width: 46px;
}

.cw-phone-hub__phone--front::after {
  display: none;
}

.cw-phone-hub__brands {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 22px;
}

.cw-phone-hub__brands a {
  border-bottom: 1px solid #ddd7ce;
  border-right: 1px solid #ddd7ce;
  color: #111;
  min-height: 100px;
  padding: 24px 18px;
  transition: background-color .2s ease, color .2s ease;
}

.cw-phone-hub__brands a:nth-child(-n + 6) {
  border-top: 1px solid #ddd7ce;
}

.cw-phone-hub__brands a:nth-child(6n + 1) {
  border-left: 1px solid #ddd7ce;
}

.cw-phone-hub__brands a:hover,
.cw-phone-hub__brands a:focus {
  background: #111;
  color: #fff;
}

.cw-phone-hub__brands strong,
.cw-phone-hub__brands span {
  display: block;
}

.cw-phone-hub__brands strong {
  font-size: 16px;
}

.cw-phone-hub__brands span {
  font-size: 13px;
  margin-top: 5px;
  opacity: .68;
}

.cw-phone-hub__order {
  align-items: center;
  border-bottom: 1px solid #ddd7ce;
  display: flex;
  gap: 32px;
  justify-content: center;
  padding: 24px 0;
}

.cw-phone-hub__order span {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 9px;
}

.cw-phone-hub__order b {
  align-items: center;
  background: #111;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 26px;
  justify-content: center;
  width: 26px;
}

@media (max-width: 991px) {
  .cw-phone-hub__hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 48px 42px;
  }

  .cw-phone-hub__visual {
    display: none;
  }

  .cw-phone-hub__brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cw-phone-hub__brands a:nth-child(-n + 6) {
    border-top: 0;
  }

  .cw-phone-hub__brands a:nth-child(-n + 3) {
    border-top: 1px solid #ddd7ce;
  }

  .cw-phone-hub__brands a:nth-child(6n + 1) {
    border-left: 0;
  }

  .cw-phone-hub__brands a:nth-child(3n + 1) {
    border-left: 1px solid #ddd7ce;
  }
}

@media (max-width: 767px) {
  .cw-phone-hub {
    margin-bottom: 32px;
  }

  .cw-phone-hub__hero {
    border-radius: 18px;
    padding: 36px 22px;
  }

  #products .cw-phone-hub h1 {
    font-size: 34px;
  }

  .cw-phone-hub__intro {
    font-size: 16px;
    margin: 18px 0 24px;
  }

  .cw-phone-hub__search {
    display: block;
  }

  .cw-phone-hub__search input {
    display: block;
    width: 100%;
  }

  .cw-phone-hub__search button {
    min-height: 48px;
    width: 100%;
  }

  .cw-phone-hub__models {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .cw-phone-hub__models a {
    flex: 0 0 auto;
  }

  .cw-phone-hub__brands {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .cw-phone-hub__brands a,
  .cw-phone-hub__brands a:nth-child(-n + 3),
  .cw-phone-hub__brands a:nth-child(3n + 1) {
    border: 1px solid #ddd7ce;
    border-left: 0;
    flex: 0 0 145px;
    min-height: 90px;
    scroll-snap-align: start;
  }

  .cw-phone-hub__brands a:first-child {
    border-left: 1px solid #ddd7ce;
  }

  .cw-phone-hub__order {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 22px 4px;
  }
}
