@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

:root {
  --color-primary: #002169;
  --color-secondary: #E1251B;
  --font-base-desktop: calc(10 / 1920 * 100vw);
  --font-base-mobile: calc(10 / 320 * 100vw);
}


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

html {
  font-size: var(--font-base-desktop);
  overflow-x: hidden;
  font-family: "Roboto Flex", sans-serif;
  width: 100%;
  height: 100%;
}

body {
  font-size: 1rem;
  font-family: "Roboto Flex", sans-serif;
  display: flex;
  font-weight: 400;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  overflow-x: hidden;
}

main {
  flex: 1 0 0;
}

a:-webkit-any-link {
  text-decoration: none;
  color: inherit;
  text-transform: uppercase;
  font-weight: 550;
}

.container {
  padding: 0 20rem;
  z-index: 2;
  position: relative;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  background: #fff;
  width: 100%;
  color: var(--color-primary);
  font-size: 1.4rem;
  z-index: 999;
}

.header .container {
  padding: 1.9rem 20rem 1.7rem;
}

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

.header__item {
  display: flex;
  column-gap: 7rem;
  align-items: center;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  border: 1px solid #002169;
  padding: 1.7rem 3.5rem;
  font-weight: 900;
  cursor: pointer;
}

.btn__container {
  display: flex;
  column-gap: 2rem;
}

.btn__blue {
  border: none;
  background: var(--color-primary);
  color: #fff;
}


.social_btn {
  display: flex;
  align-items: center;
}

.mail__button::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1.6rem;
  background: url('/static/img/mail.svg') no-repeat;
  background-size: contain;
  margin-right: 1.5rem;
  font-weight: 550;
}

.phone__button::before {
  content: "";
  display: block;
  width: 2rem;
  height: 1.6rem;
  background: url('/static/img/call.svg') no-repeat;
  background-size: contain;
  margin-right: 1.5rem;
  font-weight: 550;
}

.instagram__button::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  background: url('/static/img/instagram.svg') no-repeat;
  background-size: contain;
  font-weight: 550;
}

.modal {
  display: none;
  opacity: 0;
  transition: 0.4s ease;
}

.bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.bg-wrapper img {
  width: 100%;
  height: 100%;
}

section {
  position: relative;
}

[bg="red"] {
  background: #C30C0E;
  color: #fff;
}

[bg="blue"] {
  background: var(--color-primary);
  color: #fff;
}

[bg="gray"] {
  background: #F5F7FA;
}

.banner {
  min-height: 50rem;
  position: relative;
  padding: 14.6rem 0 13rem;
}

main {
  margin-top: 9.1rem;
}

#showcase .container {
  width: 100%;
  height: 100%;
  display: flex;
  gap: 7.2rem;
  z-index: 2;
  position: relative;
}



.title-lg {
  font-size: 8rem;
  line-height: 0.875;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.btn__transparent {
  background: none;
  border: #fff 1px solid;
  color: #fff;
}

.btn.btn__white {
  background: #fff;
  border: none;
  color: #002169;
}

.span-square {
  background: #fff;
  color: var(--color-secondary);
  font-size: 4rem;
  padding: 0.5rem 1.3rem;
  vertical-align: middle;
  line-height: 100%;
  margin-bottom: 2rem;
  display: inline-flex;
}

main .btn {
  font-size: 2rem;
}

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

.banner .col:first-child {
  align-items: flex-start;
  gap: 4.2rem;
  width: 76rem;
}

.banner .title-lg {
  width: 74.5rem;
  font-weight: 700;

}

.title-sm {
  font-size: 6rem;
  text-transform: uppercase;
  line-height: 1;
  font-weight: 800;
}

.text {
  font-size: 2rem;
}

#about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12rem 45.7rem 10.3rem;
}

#about .text {
  margin: 3.5rem 0 5.5rem;
}

.btn__red {
  border: none;
  background: #E1251B;
  color: #fff;
}

.oil__suggest {
  color: #fff;
  height: 70rem;
  display: flex;
  flex-direction: column;
}

.oil__suggest .container {
  margin: auto 0;
}

.elements {
  position: absolute;
  top: -5.6rem;
  left: 31rem;
  z-index: 10;
  pointer-events: none;
}

#production,
#history {
  padding: 7rem 0;
}

.productSlider {
  margin-top: 4.8rem;
}

.productSlider .swiper-slide {
  display: flex;
  width: 100%;
  height: 70rem;
  flex-direction: column;
  padding: 6.6rem 9rem 7rem;
  color: #fff;
  font-size: 2rem;
  text-align: center;
  background: url('/static/img/bg\ \(1\).png');
  background-repeat: no-repeat;
  background-size: cover;
}

.productSlider .swiper-slide.blue {
  background: url('/static/img/bg\ \(1\).png');
  background-repeat: no-repeat;
  background-size: cover;
}

.productSlider .swiper-slide.red {
  background: url('/static/img/red.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.productSlider .swiper-slide.red .btn__kaspi .col {
  background: linear-gradient(180deg, #FFFFFF 43.21%, #C9C9C9 100%);
  color: var(--color-secondary);
}

.productSlider .swiper-slide.red .btn__kaspi .btn__square {
  background: linear-gradient(180deg, #F72C21 43.21%, #863434 100%);

  img {
    filter: invert() brightness(100);
  }
}

.productSlider .swiper-slide.white {
  background: url('/static/img/white.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: #000;
}

.productSlider .swiper-slide.lightblue {
  background: url('/static/img/lightblue.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.swiper-button-next,
.swiper-button-prev {
  background: #002169;
  border-radius: 50%;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  z-index: 12;
}

.swiper-button-prev {
  left: 7rem;
}

.swiper-button-next {
  right: 7.9rem;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #fff;
  font-size: 2rem;
}

.product-image {
  display: flex;
  justify-content: center;
}

.product-name {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 3em;
  max-height: 3em;
}

.btn__kaspi {
  border: none;
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  margin-top: auto;
}

.btn__square {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 43.21%, #C9C9C9 100%);
  flex: 1;
  min-width: 7.1rem;
}

.btn__kaspi .col {
  background: linear-gradient(180deg, #F72C21 43.21%, #d63f3f 100%);
  color: #fff;
  padding: 2.7rem 2.5rem;
  flex-grow: 1;
  font-size: 1.4rem;
}

.product-info {
  margin-top: 3.5rem;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.historySlider {
  height: 72rem;
  position: relative;
  padding-left: 20rem;
  margin-top: 4.9rem;
  padding-right: 20rem;
}

.history-year {
  font-weight: 800;
  font-size: 3rem;
  line-height: 100%;
  letter-spacing: 0%;
  text-transform: uppercase;
}

.history-content {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.28571428571;
  letter-spacing: 0%;
  margin-top: 2rem;
}




.historySlider .swiper-slide {
  display: flex;
  flex-direction: column;
  position: relative;
}



.historySlider .swiper-slide:nth-child(2n+1) {
  justify-content: flex-start;
}

.historySlider .swiper-slide:nth-child(2n) {
  transform: translateY(calc(50% + 8.9rem));
}

.historySlider .swiper-slide:nth-child(2n+1) .history-content::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: var(--color-primary);
  width: 100%;
}

.historySlider .swiper-slide:nth-child(2n) .history-content::after {
  content: "";
  position: absolute;
  top: -50%;
  transform: translateY(27rem);
  height: 1px;
  background: var(--color-primary);
  width: 100%;
}

.historySlider .swiper-slide:nth-child(2n+1)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-100%);
  height: 3.7rem;
  z-index: 10;
  width: 1px;
  margin-top: auto;
  background: var(--color-primary);
}

.historySlider .swiper-slide:nth-child(2n+1)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.5rem;
  transform: translateY(-53%);
  height: 5.2rem;
  width: calc(100% - 1rem);
  margin-top: auto;
  background: url('/static/img/lines.svg') no-repeat;
  background-size: cover;
}

.historySlider .swiper-slide:nth-child(2n)::after {
  content: "";
  position: absolute;
  top: 26%;
  left: 0.5rem;
  transform: scaleX(-1) translateY(-30.2rem);
  height: 5.2rem;
  width: calc(100% - 1rem);
  margin-top: auto;
  background: url('/static/img/lines.svg') no-repeat;
  background-size: cover;
}

.historySlider .swiper-slide:nth-child(2n)::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  transform: translateY(27rem);
  height: 3.7rem;
  width: 1px;
  margin-top: auto;
  background: var(--color-primary);
  z-index: 10;
}

#gallery {
  height: 40rem;
  min-height: 400px;
  display: flex;
}

.historySlider::after {
  content: "";
  background: url('/static/img/blur_history.png') no-repeat;
  background-size: cover;
  height: 100%;
  position: absolute;
  z-index: 11;
  bottom: 0;
  right: 0;
  width: 21rem;
  pointer-events: none;
}

#gallery img {
  height: 100%;
  flex: 1;
}

.footer {
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  color: #fff;
  position: relative;
  padding: 4.1rem 0 4.4rem;
  font-size: 1.4rem;
}

.footer .mail__button::before,
.footer .instagram__button::before {
  filter: invert() brightness(10);
}

.footer .header__items {
  padding-bottom: 3.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 4.2rem;
}

.copyright {
  text-align: center;
}

.footer::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1rem;
  min-height: 10px;
  margin-top: auto;
  background: url('/static/img/color_line.jpg') no-repeat;
  background-size: cover;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal::after {
  content: "";
  background: #002169;
  opacity: 0.95;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.noscroll {
  overflow: hidden;
}

.modal__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.modal_container {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1000;
  background: #fff;
  transform: translate(-50%, -50%);
  padding: 8.2rem 12.45rem 8.5rem;
}

.modal-close {
  position: absolute;
  right: 3rem;
  top: 3rem;
  width: 3.65rem;
  background: url('/static/img/close.svg') no-repeat;
  background-size: cover;
  height: 3.65rem;
  cursor: pointer;
}

.form__field {
  width: 100%;
  padding: 1.7rem 2.3rem;
  outline: none;
  border: 1px solid var(--color-primary);
  font-size: 2rem;
}

.form__group {
  margin-bottom: 2rem;
}

.wrapper {
  margin-top: 3.1rem;
}

.form__group:last-child {
  margin-bottom: 0;
}

.errorMessage {
  color: var(--color-secondary);
}

.modal .btn {
  width: 100%;
}

.form__select {
  width: 100%;
  padding: 1.7rem 2.3rem;
  outline: none;
  border: 1px solid var(--color-primary);
  background-color: #fff;
  color: var(--color-primary);
  font-size: 2rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('/static/img/arrow-down.svg');
  background-repeat: no-repeat;
  background-position: right 2.3rem center;
  background-size: 1.2rem;
  cursor: pointer;
}

.form__select option {
  font-size: 1.6rem;
  padding: 1rem;
}

.form__select:focus {
  border-color: var(--color-secondary);
}

.form__select option[value=""] {
  color: #999;
}

@supports not (background-image: url('/static/img/arrow-down.svg')) {
  .form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23002169' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

@supports not (background-image: url('/static/img/arrow-down.svg')) {
  .form__select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23002169' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 3.1rem;
}

.form__checkbox {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.checkbox-label {
  font-size: 1.4rem;
  font-weight: 550;
  color: var(--color-primary);
  cursor: pointer;
}

.checkbox-group .errorMessage {
  margin-top: 0.5rem;
  font-size: 1.4rem;
}

.success-message {
  font-size: 2rem;
}

.mob {
  display: none;
}

@media screen and (max-width: 1000px) {
  html {
    font-size: var(--font-base-mobile);
  }

  .container {
    padding: 0 2rem;
  }

  .header .container {
    padding: 1.2rem 2rem;
  }

  #about {
    padding: 4.3rem 2rem 5.8rem;
  }

  .social_btn {
    margin-right: 0;
    font-size: 0;
  }

  .header__item {
    gap: 1rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: .875rem 0.75rem .725rem;
    width: revert;
  }

  .pc {
    display: none;
  }

  main {
    margin-top: 4.8rem;
  }

  #showcase .container {
    flex-direction: column;
  }

  .title-lg {
    font-size: 2.8rem;
  }

  .span-square {
    font-size: 2rem;
    margin-bottom: 0;
    margin-top: 1.3rem;
  }

  .banner .col:first-child {
    width: 100%;
    text-align: center;
    gap: 2.1rem;
    align-items: center;
  }

  .banner .title-lg {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .banner {
    min-height: revert;
    padding: 3.2rem 0 2.7rem;
  }

  #showcase .container {
    gap: 1.8rem;
  }

  .title-sm {
    font-size: 1.8rem;
    text-align: center;
  }

  .text {
    font-size: 1.2rem;
  }

  #about .text {
    margin: 1.5rem 0 3rem;
  }

  .oil__suggest {
    height: revert;
    aspect-ratio: 1/1;
    width: 100%;
    padding: 3.9rem 0;
  }

  .oil__suggest .container {
    margin: auto 0 0;
  }

  main .btn {
    font-size: 1.2rem;
  }

  .productSlider {
    padding: 0;
    margin-top: 2.7rem;
  }

  .historySlider {
    padding-left: 2rem;
    margin-top: 2.7rem;
  }

  .productSlider .swiper-slide {
    padding: 3rem 1.5rem 3.1rem;
    height: revert;
    font-size: 1.2rem;
  }

  .product-name {
    font-size: 1.4rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  #production,
  #history {
    padding: 3.5rem 0;
  }

  .btn__kaspi {
    padding: 0;
    margin-top: 0.7rem;
  }

  .btn__kaspi .col {
    padding: 0.8rem 1.3rem;
    font-size: 1rem;
  }

  .btn__square {
    min-width: 4rem;
  }

  .btn__square img {
    max-width: 2rem;
  }

  #gallery img {
    max-width: 10.7rem;
  }

  #gallery {
    height: 12rem;
    min-height: 120px;
    overflow-x: scroll;
  }

  .history__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 4rem;
    margin-top: 2.7rem;
    position: relative;
    max-height: 40rem;
    transition: 0.4s ease;
    overflow-y: hidden;
  }

  .history__container.active {
    max-height: 1000rem;
  }


  .history__container::after {
    opacity: 1;
    content: "";
    background: url('/static/img/blur.png') no-repeat;
    background-size: cover;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12.1rem;
    transition: opacity 0.4s ease;
  }

  .history__container.active::after {
    opacity: 0;
  }

  .showMoreHistory {
    margin-top: 0;
    transition: 0.4s ease;
  }


  .showMoreHistory.active {
    margin-top: 3rem;
  }

  .history__container::before {
    content: "";
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    background: var(--color-primary);
    height: calc(100% - 1.8rem);
  }

  .history-content {
    font-size: 1.2rem;
    margin-top: 0.8rem;
  }

  .history-year {
    font-size: 1.8rem;
  }

  .history-year {
    position: relative;
  }

  .history-year::before {
    content: "";
    width: 0.9rem;
    height: 2px;
    left: -2rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #002169;
  }

  .modal_container {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1000;
    background: #fff;
    transform: translate(-50%, -50%);
    padding: 1rem 2rem;
    width: calc(100% - 4rem);
  }

  .form__field {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 1rem;
    height: 1rem;
  }

  .checkbox-label {
    font-size: 1rem;
  }

  .wrapper {
    margin-top: 2rem;
  }

  .form__select {
    background-position: right 1rem center;
  }

  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 2.1rem;
  }

  .success-message {
    font-size: 1.2rem;
    text-align: center;
  }

  .footer {
    padding: 3rem 0 2rem;
  }

  .footer .header__items {
    flex-direction: column;
    padding-bottom: 0;
    border: none;
    margin-bottom: 2.1rem;
  }

  .footer .header__item {
    flex-wrap: wrap;
    align-items: center;
    gap: 1.8rem;
    margin-top: 2.1rem;
    width: 100%;
  }

  .footer .mail__button {
    margin-left: auto;
  }

  .footer .instagram__button {
    margin-right: auto;
  }


  .footer .btn__container {
    width: 100%;
    flex-direction: column;
  }

  .footer .btn__container {
    gap: 1rem;
  }

  .mail__button::before,
  .phone__button::before {
    margin-right: 0;
  }

  .mobile_move {
    font-size: 0;
    padding: 0;
    border: none;
  }

  .mobile_move::after {
    content: "";
    display: block;

  }

  .mob {
    display: flex;
  }

  .header .header__logo {
    min-width: 3.561rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .header__logo img {
    width: 100%;
    object-fit: contain;
  }

  .header .header__item {
    width: 100%;
  }

  .header .btn {
    max-width: 9.6rem;
    border: 1px solid var(--color-primary);
    background: transparent;
    color: #002169;
    font-weight: 500;
  }

  .header .btn__container {
    margin-left: auto;
  }



  .instagram__button::before {
    width: 1.5rem;
    height: 1.5rem;
  }

  .oil__button::after {
    content: "";
    display: block;
    width: 1.1rem;
    height: 1.5rem;
    background: url('/static/img/oil.svg') no-repeat;
    background-size: cover;
  }

  .elements {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    height: 120%;

  }

  .elements img {
    height: 100%;
  }

}