:root {
  --graphite: #232323;
  --khaki: #606157;
  --light-khaki: hwb(60 40% 56%);
  --white: #ffffff;
  --beige: #d2b068;
  --light-beige: rgba(210, 176, 104, 0.5);
  --dark-beige: rgba(168, 146, 101, 1);
  --gray: #575658;
  --light-gray: rgba(136, 136, 137, 0.08);

  --light-gray-text: rgba(136, 136, 137, 0.8);
  --light-gray-border: rgba(136, 136, 137, 0.65);

  --light-active-gray: rgba(136, 136, 137, 0.24);
  --light-count-gray: rgba(255, 255, 255, 0.4);
  --menu-baground-color: rgba(240, 240, 240, 0.9);
  --reason-color: rgba(177, 177, 178, 1);
  --win-lose-dark-color: rgba(82, 83, 74, 1);
  --win-lose-light-color: rgba(255, 255, 255, 0.1);

  /* Святлые карточки / кнопки (отдельно от --white = текст под Ohio dark-scheme). */
  --dekodv-surface-contrast: #ffffff;
  /* Тёмные заливки UI (не путать с --graphite = «чернильный» текст/обводки). */
  --dekodv-solid-dark: #232323;
  --dekodv-band-bg: #232323;

  --dekodv-hero-overlay: rgba(0, 0, 0, 0.6);
  --dekodv-fill-glass-15: rgba(255, 255, 255, 0.15);
  --dekodv-fill-glass-10: rgba(255, 255, 255, 0.1);
  --dekodv-fill-glass-08: rgba(255, 255, 255, 0.08);
  --dekodv-border-faint: rgba(255, 255, 255, 0.1);
  --dekodv-text-muted-bright: rgba(255, 255, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Spectral";
  src: url("../fonts/Spectral-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Light.woff2") format("woff2");
  font-display: swap;
}

h1 {
  font-family: "Spectral";
  font-size: 70px;
  line-height: 1.04;
  font-weight: 300;
  color: var(--white);
  text-transform: uppercase;
}

h2,
h3,
body,
small,
.mini,
.h2_M,
.body_M,
.text {
  font-family: "Montserrat";
  color: var(--white);
  display: inline;
  font-weight: 400;
}

.dekodv-home {
  color: var(--white);
}

.wpcf7-form {
  color: var(--clb-text-color);
}

a {
  text-decoration: none;
}

h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 400;
}

.h2_block {
  display: block;
  color: var(--graphite);
}

.h2_block:first-child {
  margin-top: 20px;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

body {
  font-size: 18px;
  line-height: 1.4;
}

small {
  font-size: 14px;
  line-height: 1.4;
}

.mini {
  font-size: 12px;
  line-height: 1.4;
}

.h2_M {
  font-size: 28px;
  line-height: 1.2;
}

.body_M {
  font-size: 16px;
  line-height: 1.2;
}

.black {
  color: var(--graphite);
}

.thin {
  font-weight: 400;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 400;
}

.btn-img {
  width: 10px;
  height: auto;
}

.btn-arrow {
  border: 2px solid var(--graphite);
}

.btn-arrow::after {
  content: "";
  width: 10px;
  height: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  background-image: url("../img/arrow.webp");
}

.dark-btn {
  background-color: var(--dekodv-solid-dark);
  color: var(--white);
  border: 1px solid var(--dekodv-solid-dark);
}

.dark-btn:hover {
  background-color: var(--beige);
  border-color: var(--beige);
}

.dark-btn:active {
  background-color: var(--dark-beige);
  border-color: var(--dark-beige);
}

.light-btn {
  background-color: var(--dekodv-surface-contrast);
  color: var(--graphite);
  border-color: var(--graphite);
}

.light-btn::after {
  background-image: url("../img/dark-arrow.webp");
}

.light-btn:hover {
  color: var(--beige);
  border-color: var(--beige);
}

.light-btn:hover::after {
  background-image: url("../img/beige-arrow.webp");
}

.light-btn:active {
  color: var(--dark-beige);
  border-color: var(--dark-beige);
}

.light-btn:active::after {
  background-image: url("../img/dark-beige-arrow.webp");
}

.round-btn-container {
  display: flex;
  gap: 10px;
}

.round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 400;
  border: 1px solid var(--graphite);
}

.round-btn::after {
  content: "";
  width: 10px;
  height: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  background-image: url("../img/arrow.webp");
}

.round-btn-left {
  background-color: var(--dekodv-surface-contrast);
}

.round-btn-left:hover {
  border-color: var(--beige);
}

.round-btn-left:active {
  border-color: var(--dark-beige);
}

.round-btn-left::after {
  background-image: url("../img/dark-arrow.webp");
  transform: rotate(180deg);
}

.round-btn-left:hover::after {
  background-image: url("../img/beige-arrow.webp");
}

.round-btn-left:active::after {
  background-image: url("../img/dark-beige-arrow.webp");
}

.round-btn-right {
  background-color: var(--dekodv-solid-dark);
}

.round-btn-right:hover {
  background-color: var(--beige);
  border-color: var(--beige);
}

.round-btn-right:active {
  background-color: var(--dark-beige);
  border-color: var(--dark-beige);
}

.icon {
  box-sizing: content-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 20px;
  padding: 15px;
  border-radius: 50%;
  overflow: visible;
}

.icon:hover {
  background-color: var(--light-gray);
}

.icon:active {
  background-color: var(--light-active-gray);
}

.icon-dark {
  filter: brightness(0);
}

.cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--light-gray);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
}

.cart-wrapper:hover {
  background-color: var(--light-beige);
}

.cart-wrapper:active {
  background-color: var(--dark-beige);
}

.cart-icon {
  width: 20px;
  height: auto;
  display: block;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  color: var(--white);
  background-color: var(--light-count-gray);
  font-size: 10px;
  font-width: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-count {
  background-color: var(--dekodv-solid-dark);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
  padding: 15px 12px;
  background-color: var(--menu-baground-color);
  color: var(--graphite);
  border: none;
  border-radius: 60px;
  cursor: pointer;
}

.menu-btn img {
  width: 20px;
  height: auto;
  display: block;
}

.menu-btn:hover {
  background-color: var(--light-beige);
}

.menu-btn:active {
  background-color: var(--dark-beige);
  color: var(--white);
}

.menu-btn:active img {
  filter: brightness(0) invert(1);
}

.long-btn-khaki {
  color: var(--white);
  background-color: var(--light-khaki);
  border: 1px solid var(--light-khaki);
}

.long-btn-khaki:hover {
  color: var(--white);
  background-color: var(--khaki);
  border-color: var(--khaki);
}

.long-btn-khaki:active {
  color: var(--light-khaki);
  background-color: var(--dekodv-surface-contrast);
  border-color: var(--graphite);
}

.long-btn {
  color: var(--graphite);
  background-color: var(--dekodv-surface-contrast);
  border: 1px solid var(--dekodv-surface-contrast);
}

.long-btn:hover {
  color: var(--white);
  background-color: var(--khaki);
  border-color: var(--khaki);
}

.long-btn:active {
  color: var(--light-khaki);
  background-color: var(--dekodv-surface-contrast);
  border-color: var(--graphite);
}

.container-material {
  display: flex;
  align-items: center;
  width: max-content;
  border-bottom: 1px solid transparent;
  gap: 10px;
  padding-bottom: 10px;
  cursor: pointer;

  span {
    color: var(--light-gray-text);
  }
}

.container-material:hover,
.container-material:active,
.container-material.active {
  border-color: var(--graphite);

  span {
    font-weight: 500;
    color: var(--graphite);
  }
}

.material_img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.container-material small {
  line-height: 1;
  display: block;
  color: var(--light-gray-text);
}

.square-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* gap: 30px; */
  padding: 17px 20px;
  border: none;
  background-color: var(--khaki);
  color: var(--white);
  cursor: pointer;
  width: 100%;
}

.square-btn:hover {
  background-color: var(--light-khaki);
}

.square-btn img {
  width: 10px;
  height: 10px;
  display: block;
}

.slide.active .square-btn {
  background-color: transparent;
}

.slide.active .square-btn img {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.selected_text {
  color: var(--beige);
}

.accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 500px;
  margin-top: 20px;
}

.slide {
  position: relative;
  flex-basis: 50px;
  flex-grow: 0;
  transition: all 0.5s ease;
  background-color: var(--khaki);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  flex-grow: 1;
}

.slide.active {
  flex-grow: 1;
}

.bg-1 {
  background-image: url("../img/bed-room.webp");
}

.bg-2 {
  background-image: url("../img/hallway.webp");
}

.bg-3 {
  background-image: url("../img/office-room.webp");
}

.bg-4 {
  background-image: url("../img/living-room.webp");
}

.small-btn {
  padding: 3px 10px;
  background-color: var(--light-active-gray);
  color: var(--graphite);
  border: 1px solid var(--light-active-gray);
}

.small-btn.active {
  border: 1px solid var(--graphite);
  background-color: var(--light-gray-text);
}

.small-btn:hover {
  border: 1px solid var(--graphite);
  background-color: var(--light-gray-text);
}

@media (min-width: 768px) {
  .container-material {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .material_img {
    width: 120px;
    height: 120px;
  }

  .square-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;

    border: none;
    background-color: var(--khaki);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.5s ease;
  }

  .square-btn small {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
  }

  .selected_text {
    border-bottom: 4px solid var(--light-beige);
    color: var(--white);
    width: max-content;
  }

  .accordion {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 500px;
  }
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }

  .round-btn-container {
    display: flex;
    justify-content: end;
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .desktop-hidden {
    display: none !important;
  }
}