/*
Theme Name: Verstka Theme
Theme URI: http://verstkainfo.ru/
Author: SankaVankina
Author URI: http://verstkainfo.ru/
Description: Кастомная тема для сайта VerstkaInfo
Version: 1.0
*/


/*
--------------------
Подключение шрифтов
--------------------
*/
@font-face {
    font-family: "russia-light";
    src: local("russia"),
         url(../fonts/russia-light.woff2) format('woff2'),
         url(../fonts/russia-light.woff) format('woff');
}

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');



:root {
	--black: #333333;
	--white: #ffffff;
	--red: #e8716d;
}

/*
--------------------
Base styles
--------------------
*/
* {
	-moz-box-sizing: border-box;
		 box-sizing: border-box;
}

html, body {
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    position:relative; 
}

body {
    font-family: "russia-light", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; 
    font-size: 16px;
    color: var(--black);
	display: flex;
    flex-direction: column;
}

body, html {height: 100%;}
body.lock, body.modal-open-noscroll {overflow: hidden;}

input:not([type=checkbox]):not([type=radio]),
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input, textarea, a:focus, input:focus, button:active, button:focus, select:focus {outline:none !important; box-shadow: none !important;}
button::-moz-focus-inner {border: 0 !important;}

p {
    margin: 0 0 15px;
    line-height: 1.3;
}

a {text-decoration: none;}
a:hover {text-decoration: underline;}
section {padding: 35px 0;}

.btn {
    display: inline-block;
    font-weight: 400;
    color: var(--black);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid var(--black);
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	padding: 10px 25px;
}

.btn:hover {
	background: var(--black);
	color: var(--white);
}

.btn-white {
	border-color: var(--white);
	color: var(--white);
}

.btn-white:hover {
	background: var(--white);
	color: var(--black);
}

.unstyled {
    padding: 0;
    margin: 0;
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
}


.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(50, 50, 50, 0.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 94%;
    max-width: 700px;
    position: relative;
}

.user_options {
    background-color: rgba(34, 34, 34, 0.85);
    color: var(--white);
    width: 100%;
    padding: 50px 400px 50px 30px;
}

body.dark .user_options {background: #000;}

.modal-form {
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 50px 30px;
    max-width: 50%;
    position: absolute;
    left: -20px;
	top: 50%;
    -webkit-transform: translate(0, -50%);
            transform: translate(0, -50%);
	webkit-animation: bounceRight 1s forwards;
    animation: bounceRight 1s forwards;
}

.close-modal {
    background: url(assets/img/close.svg) center / 20px no-repeat;
    width: 30px;
    height: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
	cursor: pointer;
}

.modal-title {
    width: 100%;
    text-align: center;
	color: var(--red);
	margin-top: 0;
}

#modal2 .modal-form {
	right: auto;
	left:20px;
	webkit-animation: bounceLeft 1s forwards;
    animation: bounceLeft 1s forwards;
}

#modal2 .user_options {
    padding: 50px 30px 50px 400px;
}

.hidden {display: none;}

.forms {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forms input, .modal textarea {
    background: var(--white);
    padding: 10px 15px;
    font-feature-settings: 'liga' off, 'clig' off;
    line-height: normal;
    border: 1px solid var(--black);
    height: 42px;
    width: 100%;
	font-family: "russia-light", Arial, sans-serif;
}

.forms button {height: 42px;}

.forms span a {
    color: var(--black);
    text-decoration: underline;
}

.invalid-feedback {
    color: var(--red);
    font-size: 12px;
    display: none;
}

.modal textarea {
    height: 100px;
    resize: none;
}

.agree {
	font-size: 12px;
	color: var(--black);
}

.user_options-title {
    margin: 0 0 20px;
    font-size: 22px;
}

/* Animations */
@-webkit-keyframes bounceLeft {
  0% {
    -webkit-transform: translate3d(100%, -50%, 0);
            transform: translate3d(100%, -50%, 0);
  }
  50% {
    -webkit-transform: translate3d(-30px, -50%, 0);
            transform: translate3d(-30px, -50%, 0);
  }
  100% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
}
@keyframes bounceLeft {
  0% {
    -webkit-transform: translate3d(100%, -50%, 0);
            transform: translate3d(100%, -50%, 0);
  }
  50% {
    -webkit-transform: translate3d(-30px, -50%, 0);
            transform: translate3d(-30px, -50%, 0);
  }
  100% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
}
@-webkit-keyframes bounceRight {
  0% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
  50% {
    -webkit-transform: translate3d(calc(100% + 30px), -50%, 0);
            transform: translate3d(calc(100% + 30px), -50%, 0);
  }
  100% {
    -webkit-transform: translate3d(100%, -50%, 0);
            transform: translate3d(100%, -50%, 0);
  }
}
@keyframes bounceRight {
  0% {
    -webkit-transform: translate3d(0, -50%, 0);
            transform: translate3d(0, -50%, 0);
  }
  50% {
    -webkit-transform: translate3d(calc(100% + 30px), -50%, 0);
            transform: translate3d(calc(100% + 30px), -50%, 0);
  }
  100% {
    -webkit-transform: translate3d(100%, -50%, 0);
            transform: translate3d(100%, -50%, 0);
  }
}

.night {
    width: 80px;
    height: 40px;
    position: relative;
	order: 3;
}

.night svg {
    width: 170px;
    height: auto;
    visibility: hidden;
    position: absolute;
    z-index: 20;
    display: block;
    top: -45px;
    right: -46px;
}

.hit{
 cursor:pointer;
 -webkit-tap-highlight-color:transparent;
}

body.dark {
	background: #232323;
	color: #f2f2f2;
}

body.dark header {
    background: var(--black);
    color: var(--white);
}

body.dark .btn {
	border-color: var(--white);
	color: var(--white);
}

body.dark .btn:hover {
	background: var(--white);
	color: var(--black);
}


/* 
------------------
Styles for Nav
------------------
*/     
.nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 70px;
    background: #000000;
    -webkit-transition: 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: width;
    z-index: 999;
}

.nav:after {
    content: "";
    background: #000;
    width: 70px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
}

.nav.is-active {
    background: rgba(0,0,0,0.8);
    width: 500px;
}
.nav__trigger {
    display: block;
    right: 0;
    z-index: 99999;
    position: fixed;
    width: 70px;
    height: 70px;
    top: 50%;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}

.nav__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 1200px;
    padding: 0 100px 0 30px;
    -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
    -webkit-transition: 0s linear 0.25s;
    transition: 0s linear 0.25s;
}

.nav__list ul {
    list-style: none;
    margin: 0;
    padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.nav__list ul li {
    overflow: hidden;
}
.nav__list ul li a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 34px;
    opacity: 0;
    -webkit-transform: translateY(100%);
          transform: translateY(100%);
    -webkit-transition: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform, opacity;
}

.nnn {
    visibility: visible;
    opacity: 1;
    -webkit-transition: 0s linear;
    transition: 0s linear;
}
.nnn .nav__list ul li a {
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition-property: opacity, color, -webkit-transform;
  transition-property: opacity, color, -webkit-transform;
  transition-property: transform, opacity, color;
  transition-property: transform, opacity, color, -webkit-transform;
  -webkit-transition-duration: 0.55s, 0.55s, 0.3s;
          transition-duration: 0.55s, 0.55s, 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1), ease-in-out, ease-in-out;
          transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1), ease-in-out, ease-in-out;
}
.nnn .nav__list ul li:nth-of-type(1) a {
  -webkit-transition-delay: 1s, 1s, 0s;
          transition-delay: 1s, 1s, 0s;
}
.nnn .nav__list ul li:nth-of-type(2) a {
  -webkit-transition-delay: 1.05s, 1.05s, 0s;
          transition-delay: 1.05s, 1.05s, 0s;
}
.nnn .nav__list ul li:nth-of-type(3) a {
  -webkit-transition-delay: 1.1s, 1.1s, 0s;
          transition-delay: 1.1s, 1.1s, 0s;
}
.nnn .nav__list ul li:nth-of-type(4) a {
  -webkit-transition-delay: 1.15s, 1.15s, 0s;
          transition-delay: 1.15s, 1.15s, 0s;
}
.nnn .nav__list ul li:nth-of-type(5) a {
  -webkit-transition-delay: 1.2s, 1.2s, 0s;
          transition-delay: 1.2s, 1.2s, 0s;
}
.nnn .nav__list ul li:nth-of-type(6) a {
  -webkit-transition-delay: 0.25s, 0.25s, 0s;
          transition-delay: 0.25s, 0.25s, 0s;
}
.nnn .nav__list ul li:nth-of-type(7) a {
  -webkit-transition-delay: 0.3s, 0.3s, 0s;
          transition-delay: 0.3s, 0.3s, 0s;
}
.nnn .nav__list ul li:nth-of-type(8) a {
  -webkit-transition-delay: 0.35s, 0.35s, 0s;
          transition-delay: 0.35s, 0.35s, 0s;
}
.nnn .nav__list ul li:nth-of-type(9) a {
  -webkit-transition-delay: 0.4s, 0.4s, 0s;
          transition-delay: 0.4s, 0.4s, 0s;
}

.nav__trigger svg {
    cursor: pointer;
    height: 60px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: -5px;
}

.nav__trigger svg path{
  stroke-width: 30;
  stroke-linecap: round;
  stroke: #fff;
  fill: none;
  -webkit-transition: all .5s ease-in-out;
  transition: all .5s ease-in-out;
}

/* In menu form */

.top_bar,
.bottom_bar{
  stroke-dasharray: 240px 910px;
}

.middle_bar{
  stroke-dasharray: 240px 240px;
}

/* In cross form */

.open .top_bar,
.open .bottom_bar{
  stroke-dashoffset: -650px;
}

.open .middle_bar{
  stroke-dasharray: 0px 220px;
  stroke-dashoffset: -120px;
}

/* ~~~~~~~ INIT. BTN ~~~~~~~ */
.nav__list ul li a {color: #ffffff;}

.nav__list ul li {    
  position: relative; 
  color: #ffffff;
  text-transform: uppercase;
  -webkit-transition: all 600ms cubic-bezier(0.77, 0, 0.175, 1);  
  transition: all 600ms cubic-bezier(0.77, 0, 0.175, 1);  
  cursor: pointer;
  user-select: none;
}

.nav__list ul li:before, .nav__list ul li:after {
  content: '';
  position: absolute; 
  -webkit-transition: inherit !important;
  transition: inherit;
  z-index: -1;
}

.nav__list ul li:hover {
  color: #96B7C4;
  -webkit-transition-delay: 0s !important;
  transition-delay: .6s;
}

.nav__list ul li:hover a {
  color: #96B7C4;
  -webkit-transition-delay: 0s !important;
  transition-delay: .6s;
}

.nav__list ul li:hover:before {
  -webkit-transition-delay: 0s !important;
  transition-delay: 0s; 
}

.nav__list ul li:hover:after {
  background: #ffffff;
  -webkit-transition-delay: 0s !important;
  transition-delay: .4s;
}

/* 
------------------
Styles for Header
------------------
*/  
header {
    background: var(--white);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 99;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.16);
	padding: 10px 0;
}

.logo {order: 1;}

.logo img {
    width: 100px;
}

.logo, .logo a {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo span {
	display: block;
	font-weight: bold;
	max-width: 200px;
	color: var(--black);
}

body.dark .logo span {color: var(--white);}

.modal-block {
    display: flex;
    align-items: center;
    gap: 10px;
	order: 2;
}

body.dark .logo img {filter: brightness(0) invert(1);}



/* 
------------------
Styles for Footer
------------------
*/
footer {
    margin-top: auto;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.16);
    padding: 10px 0;
	font-size: 14px;
}

.footer-block a {color: var(--black);}
.footer-block img {width: 80px;}

body.dark footer {background: var(--black);}
body.dark .footer-block a {color: var(--white);}
body.dark .footer-block img {filter: brightness(0) invert(1);}

/* Кнопка наверх */
#toTop {
    bottom: 20px;
    color: #ffffff;
    cursor: pointer;
    display: none;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
    position: fixed;
    right: 12px;
    text-align: center;
    width: 50px;
    z-index: 99999;
}


/* Стили для адаптивности */
@media (max-width: 1199px) {
	.container {max-width: 960px; padding-right: 70px;}
}

@media (max-width: 991px) {
	.container {max-width: 720px;}
	.logo {gap: 10px;}
	.logo img {width: 80px;}
	.logo span {max-width: 130px; font-size: 12px;}
	.btn {padding: 10px 15px;}
	section {padding: 25px 0;}
}

@media (max-width: 767px) {
	body {font-size: 14px;}
	.container {max-width: 540px;}
	.logo span {display: none;}
	.nav {background: transparent;}
	.nav__trigger {top: -5px; transform: none;}
	.nav:after {content: none;}
	.nav__trigger svg {filter: brightness(0);}
	body.dark .nav__trigger svg {filter: none;}
	.nav.is-active {height: 100%; width: 400px;}
	span.nav__trigger.is-active svg {filter: none;}
	.container {padding-right: 15px;}
	.header-block {padding-right: 30px;}
	.nav__content {z-index: -1; padding: 0 20px;}
	.nav__content.is-active {z-index: 99;}
	.nav__list ul li a {font-size: 24px;}
	.modal textarea {height: 50px;}
	.modal-form {padding: 30px 20px;}
	.user_options {padding: 30px 365px 30px 20px;}
	#modal2 .user_options {padding: 30px 20px 30px 365px;}
	.user_options-title {font-size: 20px;}
}

@media (max-width: 576px) {
	.nav.is-active {width: 300px;}
	.nav__list ul li a {font-size: 20px;}
	.nav__content .modal-block {margin-top: 30px; display: none;}
	.nav.is-active .modal-block {display: flex;}
	.nav__content .modal-block .btn {color: var(--white); border-color: var(--white);}
	.header-block {padding-right: 50px;}
	.footer-block, .footer-block > div {flex-direction: column; gap: 10px;}
	.user_options {display: none;}
	.modal-form, #modal2 .modal-form {padding: 30px 20px; position: relative; transform: none; width: 100%; max-width: 100%; animation: none; left: 0; top: 0;}
}