:root {
    --grey: #a8aab1;
    --dark: #313543;
    --red: #ef3e2c;
    --white: #faf9f6;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background: var(--dark);
}

/* Base tags */
h1 {
  font-size: 1.7rem;
}

h2 {
  font-weight: 100;
  margin: 30px 0 20px;
}

h1, h2, h3, h4 {
  color: var(--red);
}

p {
  margin: 10px 0;
}

a {
  color: var(--red);
  text-decoration: none;
}

img {
  max-width: calc(100% - 6px);
  border-radius: 12px;
  border: solid 3px var(--red);
  margin: 10px 0;
  will-change: transform, opacity;
  transform: translateZ(0);
}

ul li:not(:last-child) {
  margin-bottom: 7px;
}

th {
  text-align: left;
}
tr:not(:last-child) {
  border-bottom: solid 2px var(--white);
}

th, td {
  padding: .7rem .3rem;
  max-width: 65vw;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.textSecond ul li {
  will-change: transform, opacity;
  transform: translateZ(0);
}
/* EOF Base tags */

.svgMorf {
  place-items: center;
  place-content: center;
  display: grid;
}
.svgMorf svg {
  width: 128px;
  height: 128px;
}
.svgMorf svg path {
  stroke: var(--white);
  stroke-width: 30px;
  fill: transparent;
  animation: svgAnime linear 3s forwards 1s;
  will-change: stroke-dashoffset;
  transform: translateZ(0);
}
@keyframes svgAnime {
  to {
      stroke-dashoffset: 0;
  }
}

div#container {
  background: transparent;
  color: var(--white);
  transition: transform 0.7s ease-in-out;
  transform-origin: 0% 50%;
  position: relative;
  z-index: 44;
}

header, section, footer {
  padding: 0 1rem;
}
section {
  margin: 20px 0;
}

body.modalVisible #container {
  transform: perspective(800px) rotateY(-90deg) scale(0.86) translateX(-100%);
  pointer-events: none;
}

.close {
  position: absolute;
  top: 0;
  right: 0;
  width: 45px;
  height: 3px;
  transform: rotate(45deg);
  background: white;
  cursor: pointer;
}

.close::after {
  content: '';
  width: 45px;
  height: 3px;
  transform: rotate(-90deg);
  background: white;
  position: absolute;
}

/* Nav */
nav {
  position: absolute;
  visibility: hidden;
  transform: scaleY(0) translateY(-50%);
  transform-origin: 50% 50%;
  transition: transform 0.7s ease-in-out;
}

nav.visible {
  visibility: visible;
  position: fixed;
  top: 50%;
  width: 100vw;
  height: 100vh;
  background: rgba(239, 62, 44, .85);
  backdrop-filter: blur(6px);
  z-index: 111;
  transform: scaleY(1) translateY(0%);
  animation: appear 0.75s forwards, expand 0.35s forwards 0.75s;
}

nav.visible.slidedOut {
  opacity: 0;
  transition: opacity .5s ease;
}

@keyframes appear {
  0% {
      height: 0;
      transform: scaleX(0);
  }
  100% {
      height: 10px;
      transform: scaleX(1);
  }
}

@keyframes expand {
  0% {
      height: 10px;
  }
  100% {
      height: 100vh;
      transform: translateY(-50%)
  }
}

nav ul {
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  height: 100%;
  margin: 0;
  justify-content: center;
  max-width: 90vw;
}

nav ul li {
  opacity: 0;
  transform: translateX(50px);
  font-size: 1.3rem;
  list-style: none;
  margin-bottom: 15px;
  display: inline;
  max-width: 60%;
}

nav ul li.animated {
  animation: li-appear .75s forwards 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes li-appear {
  0% {
      opacity: 0;
      transform: translateY(50px);
  }
  60% {
      opacity: 1;
      transform: translateY(-10px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes menuAppear {
  0% {
      opacity: 0;
  }
  10% {
      opacity: 1;
  }
  100% {
      transform: rotate(45deg);
      opacity: 1;
  }
}

nav a {
  color: var(--white);
}

.closeMenu {
  position: absolute;
  bottom: 50px;
  right: 20px;
  opacity: 0;
  transition: opacity .5s ease-in-out 2s;
}

.closeMenu.visible {
  opacity: 1;
}

.closeMenu svg {
  width: 44px;
  height: 44px;
}
/* EOF Nav */

header {
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  flex-direction: row;
  align-content: flex-start;
  position: relative;
}

.burgerBtn, .title, .phone {
  flex: 1;
}

.burgerBtn {
  cursor: pointer;
}

.burgerBtnLine {
    width: 45px;
    position: relative;
    top: 34px;
    border: none;
    border-bottom: solid 2px white;
    display: block;
    margin-left: 0;
    transform: rotate(45deg);
}
.burgerBtnLine::before {
  content: '';
  width: 25px;
  height: 2px;
  border: none;
  border-bottom: solid 2px white;
  display: block;
  top: -2px;
  position: relative;
  margin-left: 11px;
}
.burgerBtnLine::after {
  content: '';
  width: 25px;
  height: 2px;
  border: none;
  border-bottom: solid 2px white;
  display: block;
  top: 10px;
  position: relative;
  margin-left: 11px;
}

.title {
  text-align: center;
  color: var(--red);
  z-index: 4;
}

.title > div {
  font-size: 2em;
  margin: 20px 0 0;
}

span.is-bold {
  color: white;
  font-weight: 300;
}
span.is-medium {
  display: block;
  margin: -10px 0 0 116px;
  font-size: 1.3rem;
}

.mainPage h1 {
  margin: 0;
}

.phone a {
  position: relative;
  top: 26px;
  right: 0;
  width: 100%;
  display: block;
  height: 40px;
  cursor: pointer;
}
.phone a::after {
  content: '';
  background: url(/src/iconPhone.png);
  background-repeat: no-repeat;
  position: absolute;
  width: 32px;
  height: 32px;
  display: block;
  transform: rotate(270deg);
  right: 4px;
}

.headerContent {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* #modalOrder & .order form */
#modalOrder {
  display: block;
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 140;
  background: var(--dark);
  color: var(--white);
  opacity: 0;
  transform: perspective(800px) translateX(100%) rotateY(60deg) scale(.86);
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
  z-index: 140;
}

div#modalOrder.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0rem) rotateY(0deg) scale(1);   
}

.modalOrderContent {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex-wrap: nowrap;
}

.modalOrderContentTitle {
  font-size: 1.7rem;
  margin-bottom: 3rem;
  text-align: center;
}

.modalOrderContentForm, .orderContentForm {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem 0;
}

.modalOrderContentFormItem, .orderContentFormItem {
  position: relative;
}

.modalOrderContentFormItem label, .orderContentFormItem label {
  display: inline-block;
  background: transparent;
  padding: 2px 5px;
  border-radius: 3px;
  translate: 10px -37px;
  color: var(--dark);
  transition: all .5s ease;
  font-size: 1.1rem;
  color: #555;
}

#modalOrderContentFormItemName:focus ~ label, #modalOrderContentFormItemPhone:focus ~ label,
#modalOrderContentFormItemName:valid ~ label, #modalOrderContentFormItemPhone:valid ~ label,
#orderContentFormItemName:focus ~ label, #orderContentFormItemPhone:focus ~ label,
#orderContentFormItemName:valid ~ label, #orderContentFormItemPhone:valid ~ label {
  translate: 0px -70px;
  color: var(--white);
}

.modalOrderContentFormItem input, .orderContentFormItem input {
  padding: .8rem;
  font-size: 1.1rem;
  color: var(--dark);
  display: block;
  border-radius: 6px;
  border: none;
  transition: all .5s ease;
}

.modalOrderContentFormItem input:focus-visible, .orderContentFormItem input:focus-visible {
  outline: none;
  box-shadow: 0 0 10px -2px var(--dark);
}

.modalOrderContentFormItem input:focus {
  box-shadow: 0px 0px 10px -2px var(--red), -1px -1px 6px rgba(255, 255, 255, .4), inset 0px 0px 10px var(--red), inset -1px -1px 6px rgba(255, 255, 255, .4);
}

.modalOrderContentFormItemBtn, .orderContentFormItemBtn {
  color: var(--white);
  display: block;
  text-decoration: none;
  text-align: center;
  font-weight: 400;
  position: relative;
  z-index: 110;
  -webkit-text-size-adjust: 100%;
  padding: .8rem;
  width: 5.5rem;
  border: solid 3px var(--red);
  border-right: none;
  background: linear-gradient(29deg, transparent, transparent, rgba(255, 255, 255, .16), transparent, transparent);
  border-color: white;
  font-size: 1.1rem;
}

.modalOrderContentFormItemBtn::before, .orderContentFormItemBtn::before {
  content: '';
  position: absolute;
  display: block;
  right: -3px;
  top: 0;
  width: 3px;
  border-left: solid 3px var(--white);
  height: .5rem;
}
.modalOrderContentFormItemBtn::after, .orderContentFormItemBtn::after {
  content: '';
  position: absolute;
  display: block;
  right: -3px;
  bottom: 0;
  width: 3px;
  border-left: solid 3px var(--white);
  height: .5rem;
}

.modalOrderContentFormItemBtn span, .orderContentFormItemBtn span {
  width: 6.8rem;
  display: block;
  -webkit-box-reflect: below 1.5rem linear-gradient(#0004, #0001);
}

.orderContentForm-wrap {
  margin-bottom: 30px;
}

.closeBlock {
  width: 50px;
  height: 50px;
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
}

#modalOrder .close {
  top: 1.5rem;
  right: 0.2rem;
  height: 2px;
}

#modalOrder .close::after {
  height: 2px;
}
/* EOF #modalOrder */

/* Button Liquid Glass */
.glassWrap {
  position: fixed;
  width: auto;
  height: auto;
  bottom: 2em;
  left: 0;
  right: 0;
  text-align: center;
  height: 52px;
  background: transparent;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  z-index: 120;
}

.glassMain {
  --bg-color: rgba(255, 255, 255, 0.25);
  --highlight: rgba(255, 255, 255, 0.75);  
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
  height: 52px;
  width: 240px;
  margin: 0 auto;
  position: relative;
  cursor: pointer;
  transition: background-image 1s ease-in-out;
}

.glassMain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(174deg, transparent, transparent, transparent, white);
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: inherit;
}

.glassMain::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(52deg, transparent, transparent, transparent, white);
  opacity: 1;
  transition: opacity 1s ease-in-out;
  border-radius: inherit;
}

.glassFilter,
.glassOverlay,
.glassSpecular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.glassFilter {
  z-index: 1;
  backdrop-filter: blur(4px);
  filter: url(#glass-distortion) saturate(120%) brightness(1.15);
}

.glassOverlay {
  z-index: 2;
  background: var(--bg-color);
}

.glassSpecular {
  z-index: 3;
  box-shadow: inset 1px 1px 1px var(--highlight);
}

.glassMain > button {
  z-index: 1;
  position: relative;
  height: 52px;
  line-height: 2.5em;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--white);
}

.glassMain:hover::before {
  opacity: 1;
}
.glassMain:hover::after {
  opacity: 0;
}
/* EOF Liquid Glass */

.contentTitle h2 {
  text-align: center;
  font-weight: 100;
  margin: 0;
  will-change: transform;
  transform: translateZ(0);
}

/* Sticky Block */
.stickyBlockSection {
  height: 200lvh;
  /* background: rgba(239, 62, 44, 80%); */
}

.stickyBlock {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  row-gap: 1.5em;
  position: sticky;
  top: 1px;
  margin-bottom: 2em;
}

.stickyBlockItem {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.2rem;
  flex-wrap: nowrap;
  align-items: center;
  border: solid 3px var(--white);
  border-radius: 12px;
  padding: 1em;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.stickyBlockItemSvg svg {
  width: 75px;
  height: 75px;
  aspect-ratio: 1;
  fill: var(--white);
}

.stickyBlockItem:nth-of-type(1) .stickyBlockItemSvg svg:not(.visible) path {
  fill: transparent;
  stroke: transparent;
}
.stickyBlockItemSvg svg.visible path {
  stroke: var(--white);
  stroke-width: 50px;
  fill: transparent;
  animation: stickySvgAnime linear 2s forwards .5s;
}
@keyframes stickySvgAnime {
  to {
      stroke-dashoffset: 0;
  }
}
.stickyBlockItem:last-child .stickyBlockItemSvg svg.visible path {
  animation-duration: 4s;
}

.stickyBlockItemText a, .stickyBlockItemText span {
  text-decoration: underline;
  color: var(--white);
}
/* EOF Sticky Block */

/* Advantages */
section.advantages {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  row-gap: 3rem;
  text-align: center;
  background: rgb(52 189 132 / 65%);
  height: 100lvh;
  align-content: center;
}

.advantagesItem {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  row-gap: 10px;
  align-items: center;
}

.advantages svg {
  width: 92px;
  height: 92px;
  fill: var(--white);
}
/* EOF Advantages */

/* #digits section*/
.presentation {
  background: rgb(239 62 44 / 77%);
  z-index: 102;
  height: 100lvh;
  overflow: hidden;
  transform: translateZ(0);
}

#digits .forParallax, div#animateRotateY {
  height: 100%;
  padding: 0;
}

.digits {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-content: center;
  row-gap: 3rem;
  height: 100%;
}

.digits > div {
  width: 60vw;
  padding-left: 12vw;
}

.digitNumber span {
  font-size: 3.5rem;
}
/* EOF #digits section*/

/* Footer */
footer {
  margin-top: 8rem;
  padding: 1rem 0 2rem;
  background: #161A1E;
  position: relative;
}

.clearFooter {
  height: 22px;
  width: 100%;
  background: #161A1E;
  margin: 0 auto;
  margin-bottom: 1rem;
  position: absolute;
  top: -21px;
  clip-path: polygon(0% 100%, 100% 0%, 100% 100%, 0 100%);
}

.clearFooter.visible {
  visibility: visible;
  animation: footerAppear 0.75s forwards;
}

@keyframes footerAppear {
  to {
      width: 100vw;
  }
}

.footerContent {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding-left: 1.5rem;
}

.footerMenu .burgerBtnLine {
  top: 0;
}

.madeIn {
  position: relative;
  font-size: 1.2rem;
}

.madeIn span {
  display: block;
  text-align: right;
  padding-right: 2rem;
}

.madeIn > a:nth-of-type(1) span {
  background: linear-gradient(45deg, #60557f, #ff40ec);
  background-clip: text;
  color: transparent;
}

.madeIn > a:nth-of-type(2) span {
  background: linear-gradient(45deg, #49a574, #d9ff40);
  background-clip: text;
  color: transparent;
}

.madeIn > a:nth-of-type(3) span {
  background: linear-gradient(45deg, #3890ee, #f04343);
  background-clip: text;
  color: transparent;
  text-wrap: nowrap;
}
/* EOF Footer */


@media (min-width: 1024px) {
  body {
    font-size: 19px;
  }
  nav {
    display: grid;
    place-content: center;
    position: absolute;
  }
  nav ul {
    min-width: 9ch;
  }
  .closeMenu.visible {
    right: 50px;
    bottom: auto;
    top: 50px;
    cursor: pointer;
  }
  div#container {
    place-content: center;
    display: grid;
  }
  span.is-medium {
    margin: -10px 0 0 145px;
  }
  header {
    margin-bottom: 1rem;
    padding: 0 0 1rem 0;
    border-bottom: solid 2px var(--red);
  }
  main {
    max-width: 1200px;
    margin: 0 auto;
  }
  section {
    margin: 2rem 0;
  }
  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.7rem;
  }
  .stickyBlockItem {
    flex-direction: row;
  }
  section.presentation, .digits {
    grid-template-columns: repeat(3, 1fr);
    height: auto;
    min-height: unset;
    padding: 3rem 1rem;
    border-radius: 12px;
    margin: 0 1rem;
  }
  .digits > div {
    width: 100%;
    padding-left: 0;
  }
  img {
    margin: 2rem auto;
    display: block;
  }
}

@media (max-height: 560px) {
  .advantages {
    min-height: 560px;
  }
}