/* ========== About Section ========== */

.about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Guarantee Banner ---------- */

.about-guarantee {
  display: flex;
  align-items: stretch;
  min-height: 220px;
}

.about-guarantee-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  position: relative;
}

.about-guarantee-content::after {
  content: "";
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 7px;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.71) 0%,
    rgba(252, 223, 170, 0.71) 100%
  );
}

.about-guarantee-title {
  display: flex;
  align-items: center;
  gap: 0.15em;
  padding: 0.5rem 2rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(252, 223, 170, 0.8) 100%
  );
}

.about-guarantee-num {
  font-size: 5rem;
}

.about-guarantee-sub {
  font-family: var(--font-secondary);
  font-size: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 175, 64, 0.54) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  padding: 1rem 3rem;
  align-self: flex-end;
}

/* ---------- Custom Furniture ---------- */

.about-custom {
  display: flex;
  align-items: stretch;
  min-height: 420px;
  position: relative;
}

.about-custom-card {
  width: 80%;
  padding: 4rem;
  border: 8px solid #d0c7b3;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-evenly;
  background: linear-gradient(
    270deg,
    rgba(233, 170, 97, 0.5) 0%,
    rgba(255, 255, 255, 0.5) 55.92%
  );
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1rem;
}

.about-custom-text {
  max-width: 600px;
}

.about-custom-product {
  z-index: 2;
}

.about-custom-image {
  position: absolute;
  width: 420px;
  flex-shrink: 0;

  border: 3px solid #fff;
}

.about-image,
.about-image2,
.about-image3 {
  border: 3px solid #fff;
  z-index: 1;
  box-shadow: -9px 17px 21.2px rgba(112, 83, 51, 0.26);
}

.about-image2 {
  position: absolute;
  bottom: -2rem;
  right: 8rem;
  z-index: 2;
}

.about-image3 {
  position: absolute;
  top: -8rem;
  right: 0;
  z-index: 0;
}

/* ========== Advantages Section ========== */

.advantages {
  position: relative;
  display: flex;
  padding-block: 80px;
}

/* ---------- Left Panel with Title ---------- */

.advantages-left {
  flex-shrink: 0;
  width: 15%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    173.03deg,
    rgba(255, 181, 96, 0.3) 7.13%,
    rgba(255, 244, 207, 0.3) 45.47%,
    rgba(255, 255, 255, 0.3) 92.87%
  );
  position: relative;
  z-index: 1;
}

.advantages-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: right;
  white-space: nowrap;
}

/* ---------- Card Grid ---------- */

.advantages-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 6rem 3rem;
  background: rgba(245, 241, 232, 0.51);
  position: relative;
  z-index: 1;
}

/* ---------- Card ---------- */

.advantages-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantages-card-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #d8bb8f;
}

.advantages-card-name {
  font-family: var(--font-secondary);
  font-size: 2rem;
}

.advantages-card-num {
  font-family: var(--font-secondary);
  font-size: 4rem;
  color: rgba(149, 124, 78, 0.1);
}

/* ---------- Bottom Decorative Lines ---------- */

.advantages-bottom-line {
  position: absolute;
  bottom: 3rem;
  left: 20%;
  right: 0;
  z-index: 2;
  height: 7px;
  max-width: 804px;
  background: linear-gradient(
    90deg,
    rgba(255, 244, 207, 0.28) 0%,
    rgba(176, 149, 100, 0.28) 100%
  );
}

.advantages-bottom-line-thick {
  position: absolute;
  bottom: 1.5rem;
  left: 30%;
  right: 0;
  z-index: 2;
  height: 11px;
  max-width: 804px;
  background: linear-gradient(
    90deg,
    rgba(255, 244, 207, 0.28) 0%,
    rgba(176, 149, 100, 0.28) 100%
  );
}

/* ========== Catalog Grid Section ========== */

.catalog {
  margin-top: 2rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(4, 280px);
  gap: 6px;
  grid-template-areas:
    "ward ward ward  dish dish dish  hall hall hall  wall wall wall"
    "ward ward ward  dres dres dres  hall hall hall  book book book"
    "livn livn livn  livn livn livn  nigh nigh nigh  kids kids kids"
    "clos clos clos  offi offi offi  bedr bedr bedr  bedr bedr bedr";
}

.catalog-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}

.catalog-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.catalog-item:hover img {
  transform: scale(1.05);
}

.catalog-item-label {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(
    180deg,
    rgba(88, 60, 6, 0) 0%,
    rgba(88, 60, 6, 0.87) 100%
  );
}

/* ---------- Grid Area Assignments ---------- */

.catalog-item--wardrobes {
  grid-area: ward;
}
.catalog-item--dishes {
  grid-area: dish;
}
.catalog-item--hallway {
  grid-area: hall;
}
.catalog-item--walls {
  grid-area: wall;
}
.catalog-item--dressers {
  grid-area: dres;
}
.catalog-item--bookshelves {
  grid-area: book;
}
.catalog-item--living {
  grid-area: livn;
}
.catalog-item--nightstands {
  grid-area: nigh;
}
.catalog-item--kids {
  grid-area: kids;
}
.catalog-item--closets {
  grid-area: clos;
}
.catalog-item--office {
  grid-area: offi;
}
.catalog-item--bedroom {
  grid-area: bedr;
}

/* ========== Production Section ========== */

.production {
  padding-block: 3rem;
}

/* ---------- Top: Dark Block ---------- */

.production-top {
  position: relative;
}

.production-decor-line {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 523px;
  height: 14px;
  background: linear-gradient(
    90deg,
    rgba(255, 244, 207, 0.28) 0%,
    rgba(176, 149, 100, 0.28) 100%
  );
}

.production-decor-line-thin {
  position: absolute;
  top: 0;
  right: 15%;
  width: 804px;
  height: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 244, 207, 0.28) 0%,
    rgba(176, 149, 100, 0.28) 100%
  );
}

.production-decor-bottom {
  height: 18px;
  max-width: 957px;
  background: linear-gradient(
    90deg,
    rgba(252, 223, 170, 0.9) 0%,
    rgba(255, 255, 254, 0.9) 100%
  );
}

.production-info {
  display: flex;
  gap: 2rem;
  padding: 4rem 0rem;
}

.production-heading {
  flex-shrink: 0;
  padding: 2rem 3rem 2rem 5rem;
  background: linear-gradient(
    153.02deg,
    rgba(255, 181, 96, 0.5) 14.47%,
    rgba(255, 244, 207, 0.5) 48.09%,
    rgba(255, 255, 255, 0.5) 80.45%
  );
}

.production-title {
  text-align: right;
}

.production-text {
  padding-top: 1rem;
  max-width: 879px;
}

.production-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ========== Styles Section ========== */

.styles {
  padding-block: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.styles-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.styles-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 425px;
  height: 99px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 217, 163, 0.9) 100%
  );
  z-index: -1;
}

.styles-subtitle {
  font-style: italic;
  font-size: 1.5rem;
  line-height: 150%;
}

/* ---------- Cards Grid ---------- */

.styles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.styles-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.styles-card-image {
  width: 100%;
  aspect-ratio: 371 / 501;
  overflow: hidden;
}

.styles-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.styles-card:hover .styles-card-image img {
  transform: scale(1.05);
}

.styles-card-label {
  padding: 1rem;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(252, 223, 170, 0.69) 0%,
    rgba(255, 255, 255, 0.69) 100%
  );
}

.styles-card-name {
  font-family: var(--font-secondary);
  font-size: 2.5rem;
}

@media all and (max-width: 1399px) {
  .about-guarantee-content {
    max-width: 700px;
  }
}

@media all and (max-width: 1279px) {
  .about-image3 {
    width: 300px;
    top: -4rem;
  }

  .about-custom-card {
    padding: 3rem;
  }

  .about-custom {
    min-height: unset;
  }

  .about-image {
    width: 280px;
  }

  .advantages-grid {
    padding: 2rem;
  }

  .styles-grid {
    gap: 1rem;
  }

  .styles-card-name {
    font-size: 1.5rem;
  }
}

@media all and (max-width: 1129px) {
  .about-custom-card {
    flex-direction: column;
    gap: 3rem;
    width: 100%;
  }

  .about-content {
    align-items: center;
  }

  .about-image {
    position: absolute;
    right: 2rem;
    width: 240px;
    top: 290px;
  }

  .about-image3 {
    position: unset;
    width: 420px;
  }

  .about-image2 {
    left: 2rem;
    width: 300px;
    top: 330px;
  }

  .advantages-divider {
    display: none;
  }

  .advantages-left {
    width: unset;
    padding: 1rem;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(8, minmax(240px, 1fr));
    grid-template-areas:
      "ward  dish"
      "ward  dres"
      "livn  livn"
      "clos  offi"
      "hall  wall"
      "hall  book"
      "nigh  kids"
      "bedr  bedr";
  }

  .production-info {
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .production-title {
    text-align: left;
  }

  .production-text {
    padding-top: unset;
  }

  .production-heading {
    padding: 2rem;
  }

  .styles-subtitle {
    text-align: center;
  }

  .styles-header {
    gap: 1.5rem;
  }

  .styles-grid {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    gap: 2rem 1rem;
  }
}

@media all and (max-width: 639px) {
  .about-guarantee-num {
    font-size: 3rem;
  }

  .about-guarantee-sub {
    font-size: 1.25rem;
  }

  .about-image3 {
    width: 100%;
  }

  .about-custom-card {
    padding: 1rem;
  }

  .about-image {
    width: 180px;
    right: 0.75rem;
    top: 180px;
  }

  .about-image2 {
    width: 200px;
    left: 0.75rem;
    top: 250px;
  }

  .advantages {
    flex-direction: column;
  }

  .advantages-title {
    writing-mode: unset;
    transform: none;
  }

  .about-guarantee {
    min-height: unset;
  }

  .about {
    padding-top: 50px;
  }

  .advantages-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .catalog-grid {
    grid-template-rows: repeat(8, minmax(170px, 1fr));
  }

  .catalog-item-label {
    padding: 0.75rem;
    line-height: 125%;
    font-size: 0.875rem;
  }

  .styles-subtitle {
    font-size: 1rem;
  }

  .styles-decor {
    height: 70px;
  }

  .styles-grid {
    gap: 1rem 0.5rem;

    .text {
      font-size: 0.875rem;
      transform: translateY(-1rem);
    }
  }

  .styles {
    padding-block: 2rem;
  }
}
