@font-face {
  font-family: 'Yekan';
  src: url(../fonts/Yekan.eot);
  src:
    url(../fonts/Yekan.eot?#iefix) format('embedded-opentype'),
    url(../fonts/Yekan.woff2) format('woff2'),
    url(../fonts/Yekan.woff) format('woff'),
    url(../fonts/Yekan.otf) format('opentype'),
    url(../fonts/Yekan.ttf) format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  src: url(../fonts/YekanNumbers-Regular.woff2) format('woff2');
  font-family: 'YekanNumber';
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

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

body,
input,
button,
select {
  font-family: YekanNumber, Yekan, serif;
}

a {
  color: unset;
  text-decoration: unset;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.flex {
  display: flex;
}

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

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

.center-y {
  display: flex;
  justify-content: center;
}

.center-xy {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-wrapper {
  background: #fff;
  position: relative;
  height: 84px;
}

.container {
  margin: 0 auto;
  max-width: 100%;
  width: 100%;
}

.bg-main {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url('../images/ketabika-back-land.jpg') center center repeat-x;
  background-size: auto;
  left: 0;
  top: 0;
  transition: all 0.3s ease;
}

.main-page {
  overflow-x: hidden;
}

.main-page .header-wrapper header nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 0 36px;
}

.main-page .header-wrapper header nav .logo-container {
  width: 100%;
  grid-column: 2 / span 1;
}

.main-page .header-wrapper header nav .utilities-square {
  width: 100%;
  justify-content: flex-end;
  margin-top: 0;
  position: relative;
}

.main-page .header-wrapper header nav .utilities-square .square {
  width: 60px;
  height: 60px;
  background: #fff;
  z-index: 10;
}

.main-page .header-wrapper header nav .utilities-square .square button {
  height: 22px;
  border: none;
  background: none;
}

.main-page .header-wrapper header nav .utilities-square .square img {
  position: absolute;
  content: '';
  left: -6px;
  bottom: 34px;
  transform: rotate(45deg);
  display: none;
}

.main-page .main {
  overflow: hidden;
}

.main-page .slider {
  transform: rotate(45deg) matrix(1, 0, 0, 1, -57, 22);
  overflow: hidden;
  scroll-behavior: smooth;
  min-width: 385px;
}

.main-page .slider a {
  min-width: 385px;
  display: block;
  position: relative;
  z-index: 10;
}

.main-page .slider a img {
  width: 85%;
  transform: rotate(0deg);
}

.main-page .control-slider {
  z-index: 11;
  position: absolute;
  top: 135px;
  left: -85px;
  align-items: flex-end;
  gap: 5px;
  transform: rotate(-90deg);
}

.main-page .control-slider .navigation {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-page .control-slider .navigation button {
  width: 30px;
  height: 30px;
  background: #5e5e5e;
  position: relative;
  outline: none;
  border: none;
  transition: all 0.2s ease;
}

.main-page .control-slider .navigation button:hover {
  background: #e43935;
}

.main-page .control-slider .navigation .next-slide img {
  position: absolute;
  transform: rotate(135deg);
  top: -3px;
  right: -3px;
}

.main-page .control-slider .navigation .prev-slide img {
  position: absolute;
  transform: rotate(-45deg);
  bottom: -3px;
  left: -3px;
}

.main-page .control-slider .pagination {
  gap: 6px;
}

.main-page .control-slider .pagination button {
  width: 18px;
  height: 18px;
  background: #fff;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

.main-page .control-slider .pagination button::after {
  position: absolute;
  content: '';
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
}

.main-page .control-slider .pagination button.active {
  background: #7f7f7f;
  position: relative;
}

.main-page .control-slider .pagination button.active::after {
  background: #e43935;
}

.main-page .tiles {
  width: 100%;
  height: 100%;
  justify-content: center;
  padding: 130px 0;
}

.main-page .tiles .tile-wrapper {
  width: 480px;
  height: 480px;
  direction: ltr;
  transform: rotate(45deg);
  flex-wrap: wrap;
  gap: 4px;
}

.main-page .tiles .tile-wrapper .tile {
  width: 49.5%;
  height: 49.5%;
  flex-wrap: wrap;
  position: relative;
  border-radius: 6px;
}

.main-page .tiles .tile-wrapper .tile:nth-child(2) {
  top: 0;
  left: 0;
  overflow: hidden;
  background: #efdad9d0;
  transform: rotate(-90deg);
  box-shadow: 0 0 20px 8px #0003;
}

.main-page .tiles .tile-wrapper .tile:nth-child(3) {
  top: 0;
  right: 0;
  background: none;
}

.main-page .tiles .tile-wrapper .tile:nth-child(4) {
  bottom: 0;
  left: 0;
  background: none;
}

.main-page .tiles .tile-wrapper .tile:nth-child(5) {
  bottom: 0;
  right: 0;
  background: none;
}

.main-page .tiles .tile-wrapper .tile .tile-child {
  position: absolute;
  width: 49%;
  height: 49%;
  z-index: 13;
  border-radius: 6px;
  box-shadow: 0 0 20px 8px #0003;
  overflow: hidden;
}

.main-page .tiles .tile-wrapper .tile .tile-child::before {
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  bottom: 0;
  left: -100%;
  background-color: #d7d2c5;
  transition: background-color 1s ease 0.4s;
  animation: beforeTileChildAnimation 1s forwards 1s;
}

.main-page .tiles .tile-wrapper .tile .tile-child:hover::before {
  background-color: #d7d2c5d9;
}

@keyframes beforeTileChildAnimation {
  0% {
    left: -100%;
  }

  100% {
    left: 0;
  }
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content::before {
  width: 200%;
  height: 101%;
  position: absolute;
  content: '';
  left: -50%;
  top: -155%;
  background: #fff;
  transition: all ease 0.4s;
  z-index: 13;
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content::after {
  width: 200%;
  height: 101%;
  position: absolute;
  content: '';
  right: -50%;
  bottom: -155%;
  background: #fff;
  transition: all ease 0.4s;
  z-index: 13;
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content.active::before {
  top: -50%;
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content.active::after {
  bottom: -50%;
}

.main-page .tiles .tile-wrapper .tile .tile-child:hover {
  transition:
    width 0.4s ease-in 0.4s,
    height 0.4s ease-in 0.4s,
    z-index 0.4s ease-in 0s;
  z-index: 14;
}

.main-page .tiles .tile-wrapper .tile .tile-child:not(:hover) {
  transition:
    width 0.3s ease-in 0.3s,
    height 0.3s ease-in 0.3s,
    z-index 0.3s ease-in 0.4s;
}

.main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(1) {
  top: 0;
  right: 0;
  width: 25%;
  height: 25%;
  transform: matrix(1, 0, 0, 1, -177, 57);
}

.main-page
  .tiles
  .tile-wrapper
  .tile
  .tile-child.bottom-to-top:nth-child(1):hover {
  width: 49.5%;
  height: 49.5%;
  background: #efdad9d0;
}

.main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(2) {
  top: 0;
  right: 0;
  transform: matrix(1, 0, 0, 1, -121, 121);
}

.main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(3) {
  top: 0;
  right: 0;
  width: 25%;
  height: 25%;
  transform: matrix(1, 0, 0, 1, -56, 178);
}

.main-page
  .tiles
  .tile-wrapper
  .tile
  .tile-child.bottom-to-top:nth-child(3):hover {
  width: 49.5%;
  height: 49.5%;
  background: #efdad9d0;
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content {
  opacity: 0;
  width: 246px;
  height: 246px;
  transition: opacity 2s ease;
  transform: rotate(-45deg);
}

.main-page .tiles .tile-wrapper .tile .tile-content.with-opacity {
  opacity: 1;
}

.main-page .tiles .tile-wrapper .tile .sm-tile .tile-content {
  width: 123px;
  height: 123px;
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content p {
  font-size: 14px;
  transition: all 0.3s ease 0.4s;
  position: absolute;
  bottom: 33%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-weight: 400;
}

.main-page .tiles .tile-wrapper .tile .tile-child:hover .tile-content p {
  font-size: 22px;
  bottom: 25%;
}

.main-page .tiles .tile-wrapper .tile .tile-child .tile-content img {
  position: absolute;
  content: '';
  width: 24px;
  height: 24px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.1s ease;
}

.main-page .tiles .tile-wrapper .tile .tile-child:hover .tile-content img {
  animation: jump 1.5s ease-in-out infinite alternate;
  animation-delay: 1s;
}

.main-page .tiles .tile-wrapper .tile .ketabileague .img {
  background: url(../images/ketabileague.png) no-repeat;
  background-position-y: -1730px;
  width: 246px;
  height: 100%;
  background-size: 100%;
}

.main-page
  .tiles
  .tile-wrapper
  .tile
  .tile-child.bottom-to-top:nth-child(2):hover {
  width: 100%;
  height: 100%;
  background: #efdad9d0;
}

.main-page .tiles .tile-wrapper .tile .ketabifal .img {
  background: url(../images/ketabifal.png) no-repeat;
  background-position-y: -3700px;
  width: 123px;
  height: 100%;
  background-size: 100%;
}

.main-page .tiles .tile-wrapper .tile .news .img {
  background: url(../images/news.png) no-repeat;
  background-position-y: -1729px;
  width: 123px;
  height: 123px;
  background-size: 123px;
}

.main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(1) {
  left: 0;
  bottom: 0;
  transform: matrix(1, 0, 0, 1, 121, -121);
}

.main-page
  .tiles
  .tile-wrapper
  .tile
  .tile-child.top-to-bottom:nth-child(1):hover {
  width: 100%;
  height: 100%;
}

.main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(2) {
  bottom: 0;
  left: 0;
  width: 25%;
  height: 25%;
  transform: matrix(1, 0, 0, 1, 178, -56);
}

.main-page
  .tiles
  .tile-wrapper
  .tile
  .tile-child.top-to-bottom:nth-child(2):hover {
  width: 49%;
  height: 49%;
  bottom: 0;
}

.main-page .tiles .tile .ketabijan .img {
  background: url(../images/ketabijan.png) no-repeat;
  background-position-y: -2568px;
  width: 256px;
  height: 100%;
  background-size: 100%;
}

.main-page .tiles .tile .support .img {
  background: url(../images/support.png) no-repeat;
  background-position-y: -5166px;
  width: 123px;
  height: 100%;
  background-size: 100%;
}

.main-page .tiles .tile-wrapper .tile .tile-child.right:nth-child(1) {
  top: 0;
  left: 0;
}

.main-page .tiles .tile-wrapper .tile .tile-child.right:nth-child(2) {
  right: 0;
  top: 0;
}

.main-page .tiles .tile-wrapper .tile .tile-child.right:nth-child(3) {
  right: 0;
  bottom: 0;
}

.main-page .tiles .tile-wrapper .tile .tile-child.right:nth-child(4) {
  left: 0;
  bottom: 0;
}

.main-page .tiles .tile-wrapper .tile .tile-child.right:hover {
  width: 100%;
  height: 100%;
}

.main-page .tiles .tile .ketabiq .img {
  background: url(../images/ketabiq.png) no-repeat;
  background-position-y: -9594px;
  width: 246px;
  height: 100%;
  background-size: 246px;
}

.main-page .tiles .tile .ketabishop .img {
  background: url(../images/ketabishop.png) no-repeat;
  background-position-y: 100%;
  width: 246px;
  height: 100%;
  background-size: 100%;
}

.main-page .tiles .tile .ketabijoo .img {
  background: url(../images/ketabijoo.png) no-repeat;
  background-position-y: -4196.5px;
  width: 246px;
  height: 100%;
  background-size: 100%;
}

.main-page .tiles .tile .ketabiyar .img {
  background: url(../images/ketabiyar.png) no-repeat;
  background-position-y: 100%;
  width: 246px;
  height: 100%;
  background-size: 100%;
}

.main-page .footer-bg {
  display: none;
  width: 100vw;
  height: 100vh;
  background: #00000093;
  z-index: 20;
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

.main-page .footer-bg.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0s linear;
}

.main-page .footer-controller {
  display: none;
  position: absolute;
  content: '';
  left: -150px;
  bottom: -380px;
  width: 600px;
  height: 600px;
  background-color: #fff;
  transform: rotate(-45deg);
  transition: background-color 0.5s ease;
  z-index: 21;
  transition-delay: 0.3s;
  animation: footer-controller 0.5s forwards 0.5s;
  animation-delay: 0.2s;
}

.main-page .footer-controller.expand {
  background-color: #d4cfc2;
  transition-delay: 0s;
  animation: footer-controller-expand 0.5s forwards;
}

.main-page .footer-controller button {
  outline: none;
  background: #616161;
  border: none;
  width: 40px;
  height: 40px;
  position: absolute;
  top: -20px;
  right: -20px;
  cursor: pointer;
}

.main-page .footer-controller.expand button img {
  transform: rotate(-45deg);
  left: -4px;
  top: 9px;
}

.main-page .footer-controller button img {
  height: 100%;
  transform: rotate(135deg);
  position: absolute;
  content: '';
  left: 12px;
  top: -9px;
  width: 32px;
  transition: all ease 0.2s;
}

.main-page footer {
  position: relative;
  background: #fff;
  padding: 30px;
}

.main-page footer .footer-content {
  width: 100%;
}

.main-page footer .footer-content .list {
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  margin-top: 70px;
}

.main-page footer .footer-content .list ul {
  gap: 24px;
}

.main-page .footer-content .list img {
  width: 100px;
}

.main-page .footer-content .image-wrapper {
  width: 100px;
}

.login-modal {
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.2s;
}

.login-modal.show {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.2s ease,
    visibility 0s linear;
}

.login-modal .backdrop {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  background: rgba(0, 0, 0, 0.6);
}

.login-modal .modal {
  z-index: 10;
  max-width: 450px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
}

.login-modal .modal .head {
  border-bottom: 1px solid #e3e3e3;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-modal .modal .head button {
  outline: none;
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.login-modal .modal .body {
  display: flex;
  align-items: center;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.login-modal .modal .body form {
  width: 100%;
  flex: 1;
  min-width: 100%;
  flex-shrink: 0;
}

.login-modal .modal .body form .form-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.login-modal .modal .body label {
  margin-bottom: 16px;
}

.login-modal .modal .body input {
  outline: none;
  border: 1px solid #e3e3e3;
  padding: 6px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
}

.login-modal .modal .body .phone-number-error {
  color: #c10c0c;
  font-size: 14px;
}

.login-modal .modal .body button {
  outline: none;
  border: none;
  border-radius: 8px;
  padding: 12px;
  background: #57af4f;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  margin-top: 8px;
}

.login-modal .modal .body button:disabled {
  opacity: 0.5;
}

.login-modal #otp .otp-sended-message {
  margin-bottom: 10px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page .body-bg {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  background: #fff url(../images/gray-bg.jpg) center center;
  background-size: cover;
  opacity: 0.5;
  z-index: -1;
}

.page header {
  height: 90px;
  width: 100%;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
}

.page header nav .login-link {
  position: absolute;
  left: 25px;
  top: 60px;
  width: 60px;
  height: 60px;
  transform: rotate(45deg);
  background: #e53935;
}

.page header nav .login-link .login {
  transform: rotate(-45deg);
  position: relative;
}

.page header nav .login-link .login p {
  color: #fff;
  margin-top: -8px;
}

.page header nav .login-link .login img {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
}

.page .page-content {
  margin: auto 0;
}

.page .about-us {
  background: #fff;
  margin-top: 100px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px 2px #00000047;
}

.page .about-us .content {
  padding: 40px;
}

.page .about-us img {
  width: 50%;
  margin-top: 60px;
  border-radius: 10px;
}

.page .about-us h2 {
  font-size: 24px;
  font-weight: 700;
}

.page .about-us p {
  margin-top: 24px;
  line-height: 1.7;
}

.page footer {
  background: #fff;
  padding: 60px;
  margin-top: 40px;
}

.page footer .content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
}

.page footer .content .logo img {
  width: 63px;
}

.page footer .content .logo h3 {
  margin-right: 12px;
}

.page footer .content ul {
  display: flex;
  align-items: center;
  gap: 24px;
  border-right: 1px solid #e3e3e3;
  border-left: 1px solid #e3e3e3;
}

.page footer .content .images {
  display: flex;
  justify-content: center;
}

.page footer .content .images img {
  width: 100px;
}

.page .faqs {
  background: #fff;
  margin-top: 100px;
  padding: 20px;
  border-radius: 10px;
}

.page .faqs h2 {
  font-size: 20px;
  margin-bottom: 30px;
}

.page .faqs .accordions {
  gap: 24px;
}

.page .faqs .accordions .accordion {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
}

.page .faqs .accordions .accordion .accordion-header {
  display: flex;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
}

.page .faqs .accordions .accordion.collapse .accordion-header {
  border-bottom: 1px solid #e3e3e3;
}

.page .faqs .accordions .accordion.collapse .accordion-header img {
  transform: rotate(90deg);
}

.page .faqs .accordions .accordion .accordion-body {
  padding: 0 24px;
  max-height: 0;
  transition:
    max-height 0.3s ease,
    padding 0.5s ease;
  overflow: hidden;
}

.page .faqs .accordions .accordion.collapse .accordion-body {
  max-height: 500px;
  padding: 24px;
}

.page .contact-us {
  background: #fff;
  margin-top: 100px;
  border-radius: 10px;
  flex-direction: column-reverse;
  justify-content: space-between;
  overflow: hidden;
}

.page .contact-us .banner {
  width: 100%;
}

.page .contact-us .content {
  padding: 24px;
}

.page .contact-us .content h2 {
  font-size: 20px;
  margin-bottom: 30px;
}

.page .contact-us .content span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

.page .page-content .profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 32px;
  background: #fff;
  max-width: 500px;
  margin: 0 auto;
  margin-top: 140px;
  border-radius: 16px;
}

.page .page-content .profile-form {
  width: 100%;
}

.page .page-content .profile-form .success, .page .page-content .profile-form .error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border: 1px solid green;
  border-radius: 6px;
  margin-bottom: 10px;
  color: green;
  background: rgba(0, 128, 0, 0.2);
  font-weight: 500;
}

.page .page-content .profile-form .error {
  border: 1px solid red;
  color: red;
  background: rgba(255, 0, 0, 0.2)
}

.page .page-content .profile-form .form-1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.page .page-content .profile-form .inputs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page .page-content .profile-form .inputs input {
  outline: none;
  border: 1px solid #cacaca;
  padding: 6px 8px;
  border-radius: 4px;
}

.page .page-content .profile-form .inputs select {
  outline: none;
  border: 1px solid #cacaca;
  padding: 5px 8px;
  border-radius: 4px;
}

.page .page-content .profile-form .form-2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-bottom: 16px;
}

.page .page-content .profile-form .form-2 .inputs .birthdate-inputs {
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 10px;
}

.page .page-content .profile-form .form-2 .inputs .birthdate-inputs input {
  text-align: center;
  width: 100%;
}

.page .page-content .profile-form .form-3 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page .page-content .profile-form .form-3-1 {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 16px;
}

.page .page-content .profile-form .form-3-2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(50px, 1fr));
  gap: 16px;
}

.page .page-content .profile-form .form-4 {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 10px;
}

.page .page-content .profile-form .form-4 .col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page .page-content .profile-form .form-4 .checkbox {
  gap: 10px;
  display: flex;
  align-items: center;
  accent-color: #e53935;
}

.page .page-content .profile-form .favorites p {
  margin-bottom: 10px;
}

.page .page-content .profile-form button {
  border: none;
  background: #e53935;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
}

@keyframes jump {
  0% {
    bottom: -30%;
    opacity: 0;
  }

  100% {
    bottom: -45%;
    opacity: 1;
  }
}

@keyframes footer-controller {
  0% {
    bottom: -380px;
  }

  50% {
    bottom: -600px;
  }

  100% {
    bottom: -580px;
  }
}

@keyframes footer-controller-expand {
  0% {
    bottom: -580px;
  }

  50% {
    bottom: -360px;
  }

  100% {
    bottom: -380px;
  }
}

@media screen and (min-width: 480px) {
  .container {
    max-width: 480px;
  }

  .main-page .tiles {
    padding: 0;
  }

  .main-page .control-slider {
    top: 154px;
    left: -85px;
  }

  .main-page .tiles .tile-wrapper {
    transform: rotate(45deg);
    gap: 4px;
  }

  .main-page .main {
    top: 2%;
  }

  .main-page .slider {
    transform: rotate(45deg) matrix(1, 0, 0, 1, -56, 22);
  }

  .main-page .tiles {
    margin-top: 120px;
    padding-bottom: 120px;
  }

  .page header nav .login-link {
    left: 75px;
  }

  .page footer .content {
    grid-template-columns: repeat(3, 1fr);
  }

  .page footer .content .images {
    justify-content: end;
  }

  .page footer .content .logo {
    display: flex;
    flex-direction: column;
    align-items: start;
  }
}

@media screen and (min-width: 640px) {
  .container {
    max-width: 640px;
  }

  .main-page .tiles .tile-wrapper {
    transform: rotate(45deg);
  }

  .page header nav .login-link {
    left: 65px;
  }
}

@media screen and (min-width: 768px) {
  .main-page {
    overflow: hidden;
  }

  .container {
    max-width: 768px;
  }

  .header-wrapper {
    background: unset;
    height: auto;
    display: block;
    z-index: 15;
  }

  .main-page .header-wrapper header nav .logo-container .square .content {
    transform: rotate(45deg);
    padding: 75px 92px;
  }

  .main-page .header-wrapper header nav .utilities-square {
    margin-top: 22px;
  }

  .main-page .header-wrapper header nav .logo-container .square {
    background: #fff;
    width: 140px;
    height: 140px;
    transform: rotate(-45deg);
    margin-top: -82px;
  }

  .main-page .header-wrapper header nav .utilities-square .square {
    transform: rotate(-45deg);
  }

  .main-page .header-wrapper header nav .utilities-square .square button, .main-page .header-wrapper header nav .utilities-square .square a {
    transform: rotate(45deg);
    outline: none;
    cursor: pointer;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(1) {
    top: unset;
    right: unset;
    left: 0;
    bottom: 51%;
    transform: unset;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(3) {
    top: unset;
    right: unset;
    bottom: 0;
    left: 51%;
    transform: unset;
  }

  .main-page .header-wrapper header nav .utilities-square .square img {
    display: block;
  }

  .main-page .main {
    position: absolute;
    left: 50%;
    top: -19%;
    transform: translateX(-50%);
    padding: 30px 0;
  }

  .main-page .slider {
    transform: rotate(135deg) matrix(1, 0, 0, 1, 29, 133);
    min-width: 385px;
  }

  .main-page .slider a img {
    width: 85%;
  }

  .main-page .tiles {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .main-page .slider a {
    min-width: 385px;
    min-height: 385px;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(2) {
    transform: matrix(1, 0, 0, 1, -121, 121);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(1) {
    transform: matrix(1, 0, 0, 1, 121, -121);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(2) {
    bottom: unset;
    left: unset;
    right: 0;
    top: 50.9%;
    transform: unset;
  }

  .main-page .tiles .tile-wrapper {
    transform: rotate(-45deg);
    width: 480px;
    height: 480px;
    gap: 4px;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child .tile-content {
    transform: rotate(45deg);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child .tile-content p {
    font-size: 12px;
    bottom: 32%;
    left: 50%;
  }

  .main-page .control-slider {
    transform: rotate(0);
    top: -33px;
    left: 0;
  }

  .main-page .tiles .tile-wrapper .tile .bottom-to-top > div,
  .main-page .tiles .tile-wrapper .tile .top-to-bottom > div,
  .main-page .tiles .tile-wrapper .tile .right > div {
    transform: rotate(45deg);
  }

  .main-page .footer-controller {
    display: flex;
    transform: rotate(-45deg) scale(0.8);
  }

  .main-page .footer-bg {
    display: block;
  }

  .main-page footer {
    position: absolute;
    content: '';
    left: -100px;
    bottom: -150%;
    width: 900px;
    height: 900px;
    transform: rotate(-45deg);
    background: #fff;
    z-index: 22;
    display: flex;
    align-items: start;
    justify-content: start;
    animation: footer 0.5s forwards;
  }

  .main-page footer.expand {
    animation: footer-expand 0.5s forwards 0.2s;
  }

  .main-page footer .footer-content .image-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    content: '';
    top: -140px;
    right: 40px;
  }

  .main-page footer .footer-content {
    transform: rotate(45deg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    width: auto;
  }

  .main-page footer .footer-content img {
    width: 63px;
    object-fit: contain;
  }

  .main-page footer .footer-content .list {
    display: block;
    position: relative;
    right: -160px;
    top: 50px;
    width: 300px;
    margin-top: 0;
    padding: 0 50px;
  }

  .main-page .footer-content .list ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    right: 0;
  }

  .main-page .footer-content .list img {
    width: 100px;
    position: absolute;
    left: 0;
  }

  .page .contact-us {
    flex-direction: row;
  }

  .page .contact-us .banner {
    width: 50%;
  }

  @keyframes footer {
    0% {
      bottom: -740px;
    }

    100% {
      bottom: -200%;
    }
  }

  @keyframes footer-expand {
    0% {
      bottom: -200%;
    }

    50% {
      bottom: -700px;
    }

    100% {
      bottom: -740px;
    }
  }

  .page header nav .login-link {
    left: 65px;
  }
}

@media screen and (min-width: 992px) {
  .container {
    max-width: 992px;
  }

  .main-page .main {
    top: -21%;
  }

  .main-page .slider a {
    min-width: 424px;
    min-height: 424px;
  }

  .main-page .slider {
    transform: rotate(135deg) matrix(1, 0, 0, 1, 21, 125);
    min-width: 424px;
  }

  .main-page .slider a img {
    width: 90%;
  }

  .main-page .tiles .tile-wrapper {
    width: 560px;
    height: 560px;
    gap: 5px;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(2) {
    transform: matrix(1, 0, 0, 1, -141, 141);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(1) {
    transform: matrix(1, 0, 0, 1, 141, -141);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child .tile-content p {
    font-size: 16px;
    bottom: 32%;
    left: 50%;
  }

  .main-page .footer-controller {
    transform: rotate(-45deg) scale(0.9);
  }

  .page header nav .login-link {
    left: 105px;
  }
}

@media screen and (min-width: 1024px) {
  .container {
    max-width: 1024px;
    padding: 0;
  }

  .main-page .main {
    top: -21%;
  }

  .main-page .tiles .tile-wrapper {
    width: 560px;
    height: 560px;
    gap: 5px;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(2) {
    transform: matrix(1, 0, 0, 1, -141, 141);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(1) {
    transform: matrix(1, 0, 0, 1, 141, -141);
  }

  .main-page .footer-controller {
    transform: rotate(-45deg) scale(0.9);
  }

  .page header nav .login-link {
    left: 127px;
  }
}

@media screen and (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }

  .main-page .main {
    top: -23%;
  }

  .main-page .slider a {
    min-width: 448px;
    min-height: 448px;
  }

  .main-page .slider {
    transform: rotate(135deg) matrix(1, 0, 0, 1, 5, 98);
    min-width: 448px;
  }

  .main-page .slider a img {
    width: 99%;
  }

  .main-page .tiles .tile-wrapper {
    width: 640px;
    height: 640px;
    gap: 6px;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(2) {
    transform: matrix(1, 0, 0, 1, -161, 161);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(1) {
    transform: matrix(1, 0, 0, 1, 161, -161);
  }

  .main-page .footer-controller {
    transform: rotate(-45deg) scale(0.9);
  }

  .page header nav .login-link {
    left: 135px;
  }
}

@media screen and (min-width: 1560px) {
  .container {
    max-width: 1560px;
  }

  .main-page .main {
    top: 13%;
  }

  .main-page .slider {
    transform: rotate(135deg) matrix(1, 0, 0, 1, 3, 107);
    min-width: 504px;
  }

  .main-page .slider a {
    min-width: 504px;
    min-height: 504px;
  }

  .main-page .tiles .tile-wrapper {
    width: 720px;
    height: 720px;
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.top-to-bottom:nth-child(1) {
    transform: matrix(1, 0, 0, 1, 182, -182);
  }

  .main-page .tiles .tile-wrapper .tile .tile-child.bottom-to-top:nth-child(2) {
    transform: matrix(1, 0, 0, 1, -182, 182);
  }

  .main-page .tiles {
    margin-top: 0;
  }

  .main-page .footer-controller {
    transform: rotate(-45deg) scale(1);
  }

  .page header nav .login-link {
    left: 185px;
  }
}
