@font-face {
    font-family: 'CenturyGothic';
    font-weight: 400;
    src: url('/fonts/CenturyGothic-Regular/CenturyGothic-Regular.woff') format('woff'),
         url('/fonts/CenturyGothic-Regular/CenturyGothic-Regular.ttf') format('opentype'),
         url('/fonts/CenturyGothic-Regular/CenturyGothic-Regular.eot') format('embedded-opentype');
}

@font-face {
    font-family: 'CenturyGothic';
    font-weight: 700;
    src: url('/fonts/CenturyGothic-Bold/CenturyGothic-Bold.woff') format('woff'),
         url('/fonts/CenturyGothic-Bold/CenturyGothic-Bold.ttf') format('opentype'),
         url('/fonts/CenturyGothic-Bold/CenturyGothic-Bold.eot') format('embedded-opentype');
}

@font-face {
    font-family: 'ProximaNova';
    font-weight: 400;
    src: url('/fonts/ProximaNova-Regular/ProximaNova-Regular.woff') format('woff'),
         url('/fonts/ProximaNova-Regular/ProximaNova-Regular.ttf') format('opentype'),
         url('/fonts/ProximaNova-Regular/ProximaNova-Regular.eot') format('embedded-opentype');
}

@font-face {
    font-family: 'ProximaNova';
    font-weight: 700;
    src: url('/fonts/ProximaNova-Bold/ProximaNova-Bold.eot') format('woff'),
         url('/fonts/ProximaNova-Bold/ProximaNova-Bold.ttf') format('opentype'),
         url('/fonts/ProximaNova-Bold/ProximaNova-Bold.eot') format('embedded-opentype');
}

:root {
    --main-font: 'CenturyGothic';
    --other-font: 'ProximaNova';

    --yellow: #FFC000;
    --overlay-gradient: linear-gradient(0deg, rgba(5, 2, 1, 0.35), rgba(5, 2, 1, 0.35));
}

@keyframes scale {
    100% {
      transform: scale(1);
    }
}

@keyframes fade-in {
    100% {
      opacity: 1;
      filter: blur(0);
    }
}

@keyframes pulse-black {
  0% {
    transform: scale(1);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}

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

body {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

body::-webkit-scrollbar {
    width: 7px;
}

body::-webkit-scrollbar-track {
    background: rgba(5, 2, 1, 0.35);
}

body::-webkit-scrollbar-thumb {
    background: var(--yellow);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background-image: var(--overlay-gradient), url('/images/main-bg.jpg');

    font-family: var(--main-font);
    line-height: 1.25;
    color: #ffffff;
}

.page-wrapper__top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.page-wrapper__bottom {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.error-number {
    position: relative;

    display: flex;
    justify-content: center;
    padding-bottom: 2.34375vw;
}

.error-number svg {
    width: 30.5208vw;
}

.error-response-wrapper {
    display: flex;
    width: 100%;
    margin: 1.8229vw 0 0;
}

.error-response {
    width: 50%;
}

.error-response--ua {
    padding-right: 2.6042vw;

    text-align: right;
}

.error-response--en {
    padding-left: 2.6042vw;

    text-align: left;
}

.error-response__lang {
    font-family: var(--other-font);
    font-weight: 700;
    font-size: 1.0417vw;
    line-height: 1.5;

    transform: scale(0.94);
    opacity: 0.3;
    animation: scale 1.5s forwards cubic-bezier(0.5, 1, 0.89, 1);
}

.error-response__lang span {
    opacity: 0;
    filter: blur(4px);
    animation: fade-in 0.8s forwards cubic-bezier(0.11, 0, 0.5, 0); 
}

.error-response__title {
    margin: 0 0 1.0417vw;

    font-weight: 700;
    font-size: 2.5vw;
    text-transform: uppercase;
    color: var(--yellow);

    transform: scale(0.94);
    animation: scale 1.5s forwards cubic-bezier(0.5, 1, 0.89, 1);
    animation-delay: 0.5s;
}

.error-response__title span {
    opacity: 0;
    filter: blur(4px);
    animation: fade-in 0.8s forwards cubic-bezier(0.11, 0, 0.5, 0); 
}

.error-response__desc {
    font-family: var(--other-font);
    font-weight: 700;
    font-size: 1.25vw;

    transform: scale(0.94);
    animation: scale 1.5s forwards cubic-bezier(0.5, 1, 0.89, 1);
    animation-delay: 1s;
}

.error-response__desc span {
    opacity: 0;
    filter: blur(4px);
    animation: fade-in 0.8s forwards cubic-bezier(0.11, 0, 0.5, 0); 
}

.error-number::before {
    position: absolute;
    left: 50%;
    bottom: 0;

    width: 5.2083vw;
    height: 0.15625vw;
    background-color: var(--yellow);

    content: '';

    transform: translateX(-50%);
}

.error-number__svg path {
    fill: white;
    fill-opacity: 0;
    stroke: white;
    stroke-width: 5;
    stroke-linecap: round;

    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw 2s linear forwards;
}

.banner {
    display: flex;
    align-items: center;
    width: 50%;
    height: 8.8542vw;
    padding: 0 15.625vw 0 2.6041vw;
}

.banner--ua {
    background-image: url('/images/banner-bg-1.jpg');
}

.banner--en {
    background-image: url('/images/banner-bg-2.jpg');
}

.banner__logo-link {
    display: flex;
    max-width: 14.4792vw;
    margin-right: 2.0833vw;
}

.banner__logo:hover {
    animation: pulse-black 1.5s infinite;
}

.banner__desc {
    margin-bottom: 0.2604vw;

    font-weight: 700;
    font-size: 0.9375vw;
    text-transform: uppercase;
    color: #ffffff;
}

.banner__links {
    display: flex;
    align-items: center;
    margin: 0 -0.3906vw;
}

.banner__links > a {
    margin: 0 0.3906vw;

    font-size: 1.0417vw;
    text-decoration: none;
    color: var(--yellow);
}

.banner__phone {
    position: relative;
}

.banner__phone::before {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;
    background-color: var(--yellow);
    
    content: '';
    
    transform: scaleX(0);
    transition: 300ms ease;
}

.banner__phone:hover::before {
    transform: scaleX(1);
}

.banner__site-link {
    position: relative;
}

.banner__site-link::before {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 1px;
    background-color: var(--yellow);

    content: '';
    
    transition: 300ms ease;
}

.banner__site-link:hover::before {
    transform: scaleX(0);
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@-webkit-keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@-moz-keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}
@-o-keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@media screen and (max-width: 960px) {
    .page-wrapper__top {
        padding: 40px 0;
    }
    
    .error-number > svg {
        width: 310px;
    }

    
    .error-response--ua {
        padding-right: 15px;
    }

    .error-response--en {
        padding-left: 15px;

        text-align: left;
    }
    
    .error-response__lang {
        font-size: 14px;
    }

    .error-response__title {
        font-size: 20px;
    }

    .error-response__desc {
        font-size: 14px;
    }
    
    .banner {
        justify-content: center;
        width: 100%;
        height: 120px;
        padding: 0;
    }

    .banner__logo-link {
        max-width: 160px;
    }

    .banner__desc {
        max-width: 290px;

        font-size: 16px;
    }

    .banner__links > a {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .error-number {
        padding-bottom: 30px;
    }

    .error-number::before {
        width: 70px;
        height: 2px;
    }
    
    .error-response-wrapper {
        flex-wrap: wrap;
    }

    .error-response {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 25px;
    }

    .error-response__desc {
        text-align: center;
    }

    .error-response:not(:last-child) {
        margin-bottom: 25px;
    }

    .banner {
        height: unset;
        padding: 25px; 
        flex-direction: column;
    }

    .banner__logo-link {
        max-width: 220px;
        margin: 0 0 10px;
    }

    .banner__desc {
        max-width: 310px;
        text-align: center;
    }

    .banner__links {
        max-width: 310px;
        justify-content: center;
        margin: 0 -5px;
    }

    .banner__links > a {
        margin: 0 5px;
    }
}