@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

* {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 20px;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  cursor: pointer;
  color: #ed5026;
}

p {
  margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
li {
  cursor: default;
}

ul {
  margin: 0;
}

img {
  width: 100%;
}

a:hover {
  cursor: pointer;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header.fixed {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

.header.fixed,
.intro_cases,
.header.intro_cases.fixed {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.header_item .phone a {
  color: black;
}

.header_item .burger span {
  background-color: black;
}

.header.fixed .container .header_inner .header_item .phone a {
  color: var(--color-black);
}

.header.fixed .container .header_inner .header_item .burger span {
  background-color: var(--color-black);
}

.rumfot_case {
  font-family: "Raleway", sans-serif;
  font-weight: 400;
  font-size: 20px;
  box-sizing: border-box;
  background-color: #FFFFFF;
}

.container {
  max-width: 1330px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.rumfot_case .main_block_wrapper > .container {
  padding-bottom: 70px;
  overflow: visible;
}

.rumfot_case .main_block_wrapper {
  overflow-x: clip;
}

/* Breadcrumbs: horizontal scroll on responsive widths */
@media (max-width: 1200px) {
  .breadcrumbs,
  .breadcrumbs .container {
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .breadcrumbs::-webkit-scrollbar,
  .breadcrumbs .container::-webkit-scrollbar {
    display: none;
  }

  .breadcrumbs ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
  }

  .breadcrumbs ul > li {
    flex: 0 0 auto;
  }
}

/* ============================= */
/* FIRST BLOCK */
/* ============================= */

.rumfot_first_block {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  justify-content: center;
}

.rumfot_first_left_block,
.rumfot_second_left_block,
.rumfot_third_left_block,
.rumfot_first_right_block,
.rumfot_second_right_block,
.rumfot_third_right_block {
  width: calc(50% - 20px);
}

.description_first_block {
  color: #000000;
  font-size: 14px;
  line-height: 140%;
  margin: 0 0 32px 0;
  width: 90%;
}

.title_first_block {
  font-size: 42px;
  color: #000000;
  font-weight: 700;
  width: 94%;
}

.project_href {
  border: 1px solid #ED5026;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 3px;
  color: #FFFFFF;
  transition: all 0.3s;
  background-color: #ED5026;
}

.project_href:hover {
  background-color: #ED5026;
}

.project_href_third_block {
  border: 1px solid #ED5026;
  font-size: 16px;
  padding: 10px 18px;
  border-radius: 3px;
  color: #FFFFFF;
  transition: all 0.3s;
  background-color: #ED5026;
}

.project_href_third_block:hover {
  background-color: transparent;
}

/* ============================= */
/* DECOR */
/* ============================= */

.image_under_block {
  position: absolute;
  top: -40px;
  right: -20px;
  z-index: -1;
}

.image_under_block_left {
  position: absolute;
  top: -40px;
  left: -20px;
  z-index: -1;
}

/* ============================= */
/* SECOND BLOCK */
/* ============================= */

.rumfot_second_block {
  display: flex;
  gap: 20px;
  margin-top: 90px;
  position: relative;
  justify-content: center;
  align-items: center;
}

.rumfot_second_right_block {
  display: flex;
  flex-direction: column;
}

.iframe-container iframe {
  width: 98%;
  height: 471px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.iframe-container iframe::-webkit-scrollbar {
  display: none;
}

/* ============================= */
/* THIRD BLOCK */
/* ============================= */

.rumfot_third_block {
  display: flex;
  gap: 20px;
  margin-top: 140px;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-bottom: 140px;
}

.rumfot_third_right_block {
  margin-top: 0;
}

/* ============================= */
/* MEDIA / IMAGE CONTAINER */
/* ============================= */

.video_container {
  width: 98%;
  height: 471px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.video_container video {
  width: 100%;
}

#controls {
  display: none;
}

/* ============================= */
/* RICH TEXT */
/* ============================= */

.rich_text_block p {
  color: #000000;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 120%;
}

.rich_text_block h2 {
  color: #000000;
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ============================= */
/* MEDIA 1380 */
/* ============================= */

@media (max-width: 1380px) {
  .image_under_block,
  .image_under_block_left {
    width: 38vw;
  }
}

/* ============================= */
/* MEDIA 1200 */
/* ============================= */

@media (max-width: 1200px) {
  .title_first_block {
    font-size: 4vw;
    width: 100%;
  }

  .description_first_block {
    font-size: 16px;
    width: 100%;
  }
}

/* ============================= */
/* MEDIA 750 */
/* ============================= */

@media (max-width: 750px) {
  .rumfot_first_block {
    flex-direction: column-reverse;
  }

  .rumfot_second_block,
  .rumfot_third_block {
    flex-direction: column;
  }

  .video_container {
    width: 100%;
    height: auto;
  }

  .rumfot_first_left_block,
  .rumfot_second_left_block,
  .rumfot_third_left_block {
    width: 100%;
  }

  .rumfot_first_right_block,
  .rumfot_second_right_block,
  .rumfot_third_right_block {
    width: 100%;
  }

  .image_under_block,
  .image_under_block_left {
    width: 70vw;
  }

  .image_under_block_left {
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: -1;
  }

  .rumfot_third_right_block {
    margin-top: 0;
  }
}

/* ============================= */
/* MEDIA 500 */
/* ============================= */

@media (max-width: 500px) {
  .rumfot_third_block .video_container,
  .rumfot_second_block .iframe-container {
    width: 75vw;
    margin: 0 auto;
  }

  .rumfot_second_block .iframe-container {
    height: auto;
    aspect-ratio: 270 / 208;
  }

  .rumfot_second_block .iframe-container iframe {
    display: block;
    width: 100%;
    height: 100%;
  }

  .title_first_block {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .description_first_block {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .rumfot_second_block {
    gap: 30px;
  }

  .rumfot_third_block {
    margin-top: 80px;
    margin-bottom: 80px;
  }

  .project_href_third_block,
  .project_href {
    display: flex;
    text-align: center;
    justify-content: center;
  }
}

@media (min-width: 751px) and (max-width: 920px) {
  .rumfot_second_block,
  .rumfot_third_block {
    align-items: flex-start;
    gap: 24px;
  }

  .rumfot_first_right_block {
    position: relative;
    overflow: visible;
  }

  .rumfot_second_left_block,
  .rumfot_third_left_block {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: visible;
  }

  .rumfot_second_right_block,
  .rumfot_third_right_block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .rumfot_second_block .iframe-container,
  .rumfot_third_block .video_container {
    width: 100%;
    height: 360px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .rumfot_third_block .video_container img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0;
  }

  .rumfot_second_block .iframe-container iframe {
    width: 100%;
    height: 100%;
  }

  .rumfot_first_block .image_under_block {
    width: 365px;
    height: 365px;
    top: -73px;
    right: auto;
    left: 71px;
    transform: none;
    z-index: -1;
  }

  .rumfot_second_block .image_under_block_left {
    width: 365px;
    height: 365px;
    top: -49px;
    left: -60px;
    transform: none;
    z-index: -1;
  }

  .rumfot_third_block .image_under_block_left {
    width: 365px;
    height: 365px;
    top: -38px;
    left: -60px;
    transform: none;
    z-index: -1;
  }

  .rumfot_first_block .image_under_block img,
  .rumfot_second_block .image_under_block_left img,
  .rumfot_third_block .image_under_block_left img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .rich_text_block p {
    font-size: 13px;
    line-height: 130%;
    margin-bottom: 18px;
  }

  .rich_text_block h2 {
    font-size: 17px;
    line-height: 120%;
    margin-bottom: 10px;
  }
}

/* ============================= */
/* DESKTOP DECOR — FIGMA 1920 */
/* ============================= */

@media (min-width: 921px) {
  /*
   * In the Figma desktop frame each decoration is positioned from the
   * corresponding media column, not from the whole flex row.
   */
  .rumfot_first_right_block,
  .rumfot_second_left_block,
  .rumfot_third_left_block {
    position: relative;
    overflow: visible;
  }

  .rumfot_first_block .image_under_block {
    width: 587px;
    height: 587px;
    top: -100px;
    right: auto;
    left: 125px;
  }

  .rumfot_second_block .image_under_block_left {
    width: 587px;
    height: 587px;
    top: -52px;
    left: -101px;
  }

  .rumfot_third_block .image_under_block_left {
    width: 587px;
    height: 587px;
    top: -38px;
    left: -101px;
  }

  .rumfot_first_block .image_under_block img,
  .rumfot_second_block .image_under_block_left img,
  .rumfot_third_block .image_under_block_left img {
    display: block;
    width: 100%;
    height: 100%;
  }
}

/* ============================= */
/* MOBILE DECOR — FIGMA 360 */
/* ============================= */

@media (max-width: 750px) {
  .rumfot_first_right_block,
  .rumfot_second_left_block,
  .rumfot_third_left_block {
    position: relative;
    overflow: visible;
  }

  .rumfot_first_block .image_under_block {
    width: 67.5vw;
    height: 67.5vw;
    top: -9.722vw;
    right: auto;
    left: 22.222vw;
    transform: none;
    z-index: -1;
  }

  .rumfot_second_block .image_under_block_left {
    width: 67.5vw;
    height: 67.5vw;
    top: -5vw;
    left: -14.167vw;
    transform: none;
    z-index: -1;
  }

  .rumfot_third_block .image_under_block_left {
    width: 67.5vw;
    height: 67.5vw;
    top: -2.778vw;
    left: 22.222vw;
    transform: none;
    z-index: -1;
  }

  .rumfot_first_block .image_under_block img,
  .rumfot_second_block .image_under_block_left img,
  .rumfot_third_block .image_under_block_left img {
    display: block;
    width: 100%;
    height: 100%;
  }
}

.scrollTopBlock {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.scrollTopBlock.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scrollTopBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background-color: #ED5026;
  color: #FFFFFF;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.scrollTopBtn:hover {
  background-color: #d9441f;
  transform: translateY(-3px);
}

.scrollTopBtn__icon {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
