/*------------------------------------------------------------------
Project:	hi.zotovsergey.ru
Version:	1.0
Last change:	11/06/2026
Assigned to:	Sergey Zotoff
Primary use:	Product Cases
-------------------------------------------------------------------*/

@import url("css/portfolio.css");
@import url("css/blog.css");
@import url("css/shortcodes.css");
@import url("css/assets.css");


/*------------------------------------------------------------------

01. General Styles
02. Preloader
03. Header
04. Secondary Menu
05. Full Screen Overlay Menu
06. Content Styles
07. Portfolio Filters
08. Portfolio Items
09. Portfolio Isotope Transitions
10. Project Page
11. Blog Page
12. Contact Page
13. Image & Div Animation
14. Shortcodes
15. Footer
16. Responsive Media Querries

-------------------------------------------------------------------*/
	
/* 1. General Styles */	

html.lenis {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}


/* Fonts */	

@font-face {
    font-family: 'Fact Expanded ExtraBold';
    src: url('fonts/fact-expanded/Fact-ExpandedExtraBold.woff2') format('woff2'),
         url('fonts/fact-expanded/Fact-ExpandedExtraBold.woff') format('woff');
    font-weight: 800;
    font-stretch: 125%;               
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fact Expanded Bold';
    src: url('fonts/fact-expanded/Fact-ExpandedBold.woff2') format('woff2'),
         url('fonts/fact-expanded/Fact-ExpandedBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fact Expanded Medium';
    src: url('fonts/fact-expanded/Fact-ExpandedMedium.woff2') format('woff2'),
         url('fonts/fact-expanded/Fact-ExpandedMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: 'Fact Expanded Light';
    src: url('fonts/fact-expanded/Fact-ExpandedLight.woff2') format('woff2'),
         url('fonts/fact-expanded/Fact-ExpandedLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}

@font-face {
    font-family: 'Fact SemiExpanded Light';
    src: url('fonts/fact-expanded/Fact-SemiExpandedLight.woff2') format('woff2'),
         url('fonts/fact-expanded/Fact-SemiExpandedLight.woff') format('woff');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}

@font-face {
  src: url("fonts/TT Wellingtons Trial Regular.woff") format("woff");
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeologicaRoman-ExtraBold';
  src: url('fonts/geologica/GeologicaRoman-ExtraBold.woff2') format('woff2'),
       url('fonts/geologica/GeologicaRoman-ExtraBold.woff') format('woff');
  font-weight: 800; 
  font-style: normal;
  font-display: swap; 
}

@font-face {
  font-family: 'GeologicaRoman-Bold';
  src: url('fonts/geologica/GeologicaRoman-Bold.woff2') format('woff2'),
       url('fonts/geologica/GeologicaRoman-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeologicaRoman-SemiBold';
  src: url('fonts/geologica/GeologicaRoman-SemiBold.woff2') format('woff2'),
       url('fonts/geologica/GeologicaRoman-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeologicaRoman-Medium';
  src: url('fonts/geologica/GeologicaRoman-Medium.woff2') format('woff2'),
       url('fonts/geologica/GeologicaRoman-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeologicaRoman-Regular';
  src: url('fonts/geologica/GeologicaRoman-Regular.woff2') format('woff2'),
       url('fonts/geologica/GeologicaRoman-Regular.woff') format('woff');
  font-weight: 400; 
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Headline Bold';
  src: url('fonts/headlines/Headline-Bold.woff2') format('woff2'),
       url('fonts/headlines/Headline-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-ExtraBold';
  src: url('fonts/onest/Onest-ExtraBold.woff2') format('woff2'),
       url('fonts/onest/Onest-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-Bold';
  src: url('fonts/onest/Onest-Bold.woff2') format('woff2'),
       url('fonts/onest/Onest-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-SemiBold';
  src: url('fonts/onest/Onest-SemiBold.woff2') format('woff2'),
       url('fonts/onest/Onest-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-Medium';
  src: url('fonts/onest/Onest-Medium.woff2') format('woff2'),
       url('fonts/onest/Onest-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Onest-Regular';
  src: url('fonts/onest/Onest-Regular.woff2') format('woff2'),
       url('fonts/onest/Onest-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
    font-family: 'Transforma Sans Bold';
    src: url('fonts/transforma-sans/TransformaSans-Bold.woff2') format('woff2'),
         url('fonts/transforma-sans/TransformaSans-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Transforma Sans SemiBold';
    src: url('fonts/transforma-sans/TransformaSans-SemiBold.woff2') format('woff2'),
         url('fonts/transforma-sans/TransformaSans-SemiBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Transforma Sans Regular';
    src: url('fonts/transforma-sans/TransformaSans-Regular.woff2') format('woff2'),
         url('fonts/transforma-sans/TransformaSans-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


html,body{
	font-family: 'Onest-Regular', sans-serif;
	font-weight: normal;
	font-size:18px;
	height: auto;
    width: 100% !important;
	margin: 0;
    padding: 0;
    overflow-x: hidden !important;
	max-width: 100vw !important;
	background-color:#000;
}

html body.cd-about p.about-tools__description {
  font-size: 15px !important;
  line-height: 1.4 !important;
}

html {
	box-sizing: border-box;
	margin-right: 0px!important;
}

body {
	overflow-x: hidden;
	min-height: 100vh;
	box-sizing: border-box;
	-webkit-transition: opacity 0.2s ease-in-out 0s;
	transition: opacity 0.2s ease-in-out 0s;	
}

body.hidden {
	opacity:0;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

article,
aside,
details,
figcaption,
footer,
header,
hgroup,
nav,
section {
	display: block;
}

audio,
canvas {
	display: inline-block;
	max-width: 100%;
}	

address {
	font-style: italic;
	margin-bottom: 24px;
}

abbr[title] {
	border-bottom: 1px dotted #2b2b2b;
	cursor: help;
}

cite,
dfn,
em,
i {
	font-style: italic;
}

mark,
ins {
	background: none repeat scroll 0 0 #000;
	text-decoration: none;
	color:#fff;
	font-family: 'Onest-Regular', sans-serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 4px;
	text-transform: uppercase;
	padding:2px 5px;
	margin-bottom:10px;
	display:inline-block;
}

code,
kbd,
tt,
var,
samp,
pre {
	font-family: monospace, serif;
	font-size: 15px;
	-webkit-hyphens: none;
	-moz-hyphens:    none;
	-ms-hyphens:     none;
	hyphens:         none;
	line-height: 1.6;
}

pre {
	border: 1px solid rgba(0, 0, 0, 0.1);
	-webkit-box-sizing: border-box;
	-moz-box-sizing:    border-box;
	box-sizing:         border-box;
	margin-bottom: 24px;
	max-width: 100%;
	overflow: auto;
	padding: 12px;
	white-space: pre;
	white-space: pre-wrap;
	word-wrap: break-word;
}

blockquote,
q {
	-webkit-hyphens: none;
	-moz-hyphens:    none;
	-ms-hyphens:     none;
	hyphens:         none;
	quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
	content: "";
	content: none;
}

blockquote {
	color: #000;
	font-size: 18px;
	font-style: italic;
	font-weight: 300;
	line-height: 30px;
	margin-bottom: 24px;
	font-family: Georgia, "Times New Roman", Times, serif;
	border-left:2px #ddd solid;
	padding:20px 20px 20px 40px;
	letter-spacing: 0.01em;
}

blockquote span {
	display:block;
	margin-top:20px;
	font-weight:400;
	font-size:12px;
	font-style:normal;
	font-family: 'Onest-Regular', sans-serif;
	color:#999;
}

blockquote cite,
blockquote small {
	color: #2b2b2b;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

blockquote em,
blockquote i,
blockquote cite {
	font-style: normal;
}

blockquote strong,
blockquote b {
	font-weight: 400;
}

small {
	font-size: smaller;
}

big {
	font-size: 125%;
}

sup,
sub {
	font-size: 75%;
	height: 0;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	bottom: 1ex;
}

sub {
	top: .5ex;
}

dl {
	margin-bottom: 24px;
}

dt {
	font-weight: bold;
}

dd {
	margin-bottom: 24px;
}

ul,
ol {
	list-style: none;
	margin: 0 0 24px 20px;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin: 0 0 0 20px;
}

li {
	line-height: 40px;
	color:#333;
	margin-bottom:10px;
}

figure {
	margin:0;
	position:relative;
	display: inline-block;
}

figure img {
	max-width:100%;
}

fieldset {
	border: 1px solid rgba(0, 0, 0, 0.1);
	margin: 0 0 24px;
	padding: 11px 12px 0;
}

legend {
	white-space: normal;
}

button,
input {
	line-height: normal;
}

input,
textarea {
	background-image: -webkit-linear-gradient(hsla(0,0%,100%,0), hsla(0,0%,100%,0));
}

button, html input[type="button"], input[type="reset"], input[type="submit"] {
	cursor: pointer;
}

button[disabled],
input[disabled] {
	cursor: default;
}

input[type="checkbox"],
input[type="radio"] {
	padding: 0;
}

input[type="search"] {
	-webkit-appearance: textfield;
}

input[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

button::-moz-focus-inner, input::-moz-focus-inner {
	border: 0;
	padding: 0;
}

textarea {
	overflow: auto;
	vertical-align: top;
}

table {
	border-collapse: separate;
	border-spacing: 0;
	border-width: 1px 0 0 1px;
	margin-bottom: 24px;	
	width: 100%;
}

caption, th, td {
	font-weight: normal;
	text-align: left;
}

th {
	border-width: 0 1px 1px 0;
	font-weight: bold;
}

td {
	border-width: 0 1px 1px 0;
}

del {
	color: #767676;
}

hr {
	border: 0;
	height: 35px;
	width:100%;
	float:none;
	margin:0;
	display:inline-block;
}

hr.small {
	height:20px;
}

hr:after {
	clear: both;
	content: " ";
	display: block;
	height: 0;
	visibility: hidden;
}

::selection {
	background: #000;
	color: #fff;
	text-shadow: none;
}

::-moz-selection {
	background: #000;
	color: #fff;
	text-shadow: none;
}

img {
	border: 0 none;
	max-width: 100%;
	vertical-align: middle;
}
	
h1, h2, h3, h4, h5, h6 {
	font-weight: 900;
	font-family: 'Nunito Sans Black', sans-serif;
	color:#000;
	margin-bottom:10px;
}

h1.big-title{
	font-size: 80px;
	font-style: normal;
	font-weight: 600;
	line-height: 110px;
	margin-left:-7px;
}	

h1{
	font-size:48px;
	line-height: 60px;
	margin-left:-3px;
}

h2{
	font-size: 36px;
	line-height: 48px;
	margin-left:-1px;
}

h3{
	font-size:30px;
	line-height: 36px;
	margin-left:-1px;
}

h4{
	font-size:24px;
	line-height: 30px;
	margin-left:-1px;	
}

h5{
	font-size:18px;
	line-height: 24px;
	margin-left:-1px;
}

h6{
	font-size:14px;
	line-height: 18px;
}

.col-content.light-content h1, .col-content.light-content h2, .col-content.light-content h3, .col-content.light-content h4, .col-content.light-content h5, .col-content.light-content h6 {
	color: #fff!important;
}

.light-content p {
	color:#bfc2c9;
}

.title-has-line {
	position:relative;
	margin-bottom:35px;
}

.title-has-line:after {
	background: none repeat scroll 0 0 #d28e3d;
	bottom: -15px;
	content: "";
	height: 1px;
	left: 0;
	position: absolute;
	width: 30px;
}

.text-align-center .title-has-line:after {
	background: none repeat scroll 0 0 #d28e3d;
	bottom: -15px;
	content: "";
	height: 1px;
	left: 50%;
	margin-left: -20px;
	position: absolute;
	width: 30px;
}

.text-align-right.title-has-line:after {
	background: none repeat scroll 0 0 #d28e3d;
	bottom: -15px;
	content: "";
	height: 1px;
	left: 50%;
	margin-left: -20px;
	position: absolute;
	width: 30px;
}

p.light-page{
	font-size:18px;
	margin-bottom:15px;
	line-height:28px;
	color:#353535;
	font-family: 'Onest-Regular', sans-serif;
	
}

p.no-margins {
	margin-bottom:0;
}

.bigger {
	font-size: 24px;
	font-weight: 400;
	line-height:36px;
	color:#222;
}

.smaller {
	font-family: 'Onest-Regular', sans-serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 3px;
	color:#777;
	text-transform:uppercase;
}

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

/* Широкий контейнер, но с тем же выравниванием */
.container-wide {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
}

/* Адаптив — просто повторяем подход .container */
@media only screen and (max-width: 1024px) {
  .container-wide {
    padding: 0 50px;
  }
}

@media only screen and (max-width: 767px) {
  .container-wide {
    padding: 0 40px;
  }
}

@media only screen and (max-width: 479px) {
  .container-wide {
    padding: 0 30px;
  }
}

.small .container {
	max-width:900px;
	width:100%;
	margin:0 auto;
	padding: 0 50px;
	box-sizing:border-box;
}

.full .container {
	width: 100%;
	max-width: 100%;
	padding: 0 125px;
}

.container::after {
	clear: both;
	content: " ";
	display: table;
}

a:hover, a:active {
  outline: 0;
  color: #000;
}

a {
    text-decoration: none;
    -webkit-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
       -moz-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
        -ms-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
         -o-transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
            transition: background-color .3s ease, border .3s ease, color .3s ease, opacity .3s ease-in-out, outline .3s ease;
}

a {
	color: #000;
	outline: 0;
}

a:hover {
	text-decoration:none;
}

.one_half {
  	width: 47%;
}	

.one_third {
	width: 30.6%;
}	

.one_fourth {
	width: 22%;
}	

.one_fifth {
	width: 16.8%;
}	

.one_sixth {
	width: 13.33%;
}	

.two_fifth {
	width: 37.6%;
}	

.two_fourth {
	width: 48%;
}		

.two_third {
	width: 65.33%;
}	

.three_fifth {
	width: 58.4%;
}	

.three_fourth {
	width: 74%;
}	

.four_fifth {
	width: 79.2%;
}	

.five_sixth {
	width: 82.67%;
}	

.one_third, .two_third, .three_fourth, .one_fourth, .two_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .five_sixth {
	float: left;
	margin-bottom: 20px;
	margin-right: 4%;
	position: relative;
	text-align: left;
}

.one_half {
	float: left;
	margin-bottom: 20px;
	margin-right: 6%;
	position: relative;
}

.last {
	margin-right:0px;
}

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

.text-align-left {
	text-align:left;
}

.outer {
	display:table;
	width:100%;
	height:100%;
}

.inner {
	display:table-cell;
	vertical-align:middle;
	-webkit-box-sizing:border-box;
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}

.vc_row {
	position:relative;
	z-index:1;
}

.row_padding_top {
	padding-top:40px;
}

.row_padding_bottom {
	padding-bottom:40px;
}

body.project04-page .footer-contact-wide {
  background-color: #ffffff;
  color: #000000;
}	

main {
  overflow: visible;
}

/* не ограничиваем принудительно высоту, иначе секция не может быть выше окна */
main .cd-main-content > div {
  height: auto;
}

main .cd-main-content.cd-index {
  background-color: #fff;
  width: 100%;
}
main .cd-main-content.cd-index > div {
  vertical-align: middle;
}
main .cd-main-content.cd-index::after {
  background-color: rgba(64, 137, 166, 0);
  background-image: -webkit-linear-gradient(bottom, #4089a6, rgba(64, 137, 166, 0));
  background-image: linear-gradient(to top,#4089a6, rgba(64, 137, 166, 0));
}
main .cd-main-content.cd-index::before {
  background-color: rgba(64, 137, 166, 0);
  background-image: -webkit-linear-gradient(top, #4089a6, rgba(64, 137, 166, 0));
  background-image: linear-gradient(to bottom,#4089a6, rgba(64, 137, 166, 0));
}

.bg-line {
	position:fixed;
	left:10%;
	height:100%;
	width:1px;
	top:0;
	background-color:#eee;
}

.cd-cover-layer {
  position: fixed;
  z-index: 5000;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  height: 101%;
  width: 101%;
  opacity: 0;
  visibility: hidden;
  background-color: transparent;
  -webkit-transition: opacity 0.4s 0.4s, visibility 0s 0.4s;
  -moz-transition: opacity 0.4s 0.4s, visibility 0s 0.4s;
  transition: opacity 0.6s 0s, visibility 0s 0.4s;
  pointer-events: none;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

.cd-cover-layer.invisible {
	background-color:transparent;
}

.page-is-changing .cd-cover-layer {
  opacity: 1;
  visibility: visible;
  -webkit-transition: opacity 0.3s 0s, visibility 0s 0s;
  -moz-transition: opacity 0.3s 0s, visibility 0s 0s;
  transition: opacity 0.3s 0.3s, visibility 0s 0s;
}

.menu-overlay #black-fade {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0;
	z-index: 0;
	-webkit-transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000);
	-moz-transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000);
	-o-transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000);
	transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000);
	-webkit-transform: translate3d(0, 0, 0);
	-webkit-perspective: 1000;
	visibility: hidden;
	cursor:pointer;
	pointer-events: initial;
}

#black-fade.fade-in {
	opacity: 0.3;
	visibility:visible;
	-webkit-transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000) 0.1s;
	-moz-transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000) 0.1s;
	-o-transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000) 0.1s;
	transition: all 400ms cubic-bezier(0.645, 0.045, 0.355, 1.000) 0.1s;
}

header {
	opacity:1;
	width:100%;
	height:120px;
	left:0;
	top:0;
	position:fixed;
	box-sizing:border-box;
	z-index:100;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

header.nav-hide {
	top:-120px;
	
}

#header-container {
	box-sizing: border-box;
	padding: 0 125px;
	height: 50px;
	margin: 35px auto;
	max-width: 100%;
	position: relative;
	width: 100%;
	z-index: 20;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

#logo {
	position:relative;
	display:inline-block;
	pointer-events: auto;
	z-index:10;
}

#logo a {
	display:block;
}

#logo a.disable {
	pointer-events: none;
}

#logo img {
	display: block;
	height: 50px;
	width: auto;
	-webkit-transition: opacity 0.2s ease-in-out;
	-moz-transition: opacity 0.2s ease-in-out;
	-o-transition: opacity 0.2s ease-in-out;
	-ms-transition: opacity 0.2s ease-in-out;
	transition: opacity 0.2s ease-in-out;
}

#logo img.black-logo {
	opacity:1;
}

.light-content #logo img.black-logo {
	opacity:0;
}

.menu-open.light-content #logo img.black-logo, .initial.light-content #logo img.black-logo {
	opacity:1;
}

.menu-open.light-content .slide-in #logo img.black-logo {
	opacity:0;
}

#logo img.white-logo {
	position:absolute;
	top:0;
	left:0;
	opacity:0;
}

.light-content #logo img.white-logo {
	opacity:1;
}

.menu-open.light-content #logo img.white-logo, .initial.light-content #logo img.white-logo {
	opacity:0;
}

.menu-open.light-content .slide-in #logo img.white-logo {
	opacity:1;
}

/* ============================================
   Интерактивный бабл у логотипа
   ============================================ */

#logo {
  position: relative;
  z-index: 100;
}

#logo .logo-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Базовое состояние бабла */
#logo .logo-bubble {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: max-content;
  max-width: 240px;
  padding: 13px 17px;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 32px;
  font-family: "Onest-Regular", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
  background-color: #141414;
  box-shadow: 0 14px 35px rgba(20, 20, 20, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.2);
  transform-origin: 20% 0;
  box-sizing: border-box;
}

/* Хвостик бабла */
#logo .logo-bubble::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 22px;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 9px solid #141414;
  border-left: 8px solid transparent;
}

/* Видимое состояние */
#logo .logo-bubble.is-visible {
  visibility: visible;
}

/* На мобильных устройствах */
@media only screen and (max-width: 767px) {
  #logo .logo-bubble {
    max-width: 200px;
    padding: 11px 14px;
    font-size: 12px;
  }
  #logo .logo-bubble::after {
    left: 18px;
  }
}

/* Уменьшенная анимация */
@media (prefers-reduced-motion: reduce) {
  #logo .logo-bubble {
    transition: none !important;
  }
}

@media all and (min-width: 1025px) {
	nav {
		position:relative;
		float:right;
		right:0;
		width:auto;
		top:0px;
	}
	
	.flexnav {
		display: block;
		float: right;
		position: relative;
		width: auto;
	}
	
	.flexnav li ul {   
    	min-width: 150px;
	}	
	
	.flexnav .touch-button {
		background: transparent none repeat scroll 0 0;
	}	
	
	.flexnav .touch-button .navicon {
		display:none;
	}
	
	.flexnav li {    
		background: transparent none repeat scroll 0 0;
		margin-left:60px;
	}
	
	.flexnav li:after {
		width: 100%;
		height: 1px;
		position: absolute;
		content: "";
		background-color:rgba(0,0,0,0.2);
		left: 0;
		bottom: 15px;
	}
	
	.light-content .flexnav li::after {
		background: rgba(255,255,255,0.2);
	}
	
	.flexnav li a {    
		background: transparent none repeat scroll 0 0;
		padding: 15px 0 20px 0;
		position:relative;
		border-left: medium none;
		font-weight: bold;
		font-family: 'Onest-Regular', sans-serif;
		color:#000;		
		font-size:20px;
		-webkit-transition: all 0.1s ease-in-out;
		-moz-transition: all 0.1s ease-in-out;
		-o-transition: all 0.1s ease-in-out;
		-ms-transition: all 0.1s ease-in-out;
		transition: all 0.1s ease-in-out;
	}
	
	.flexnav li a.active, .flexnav li:hover a {
		color:#000;
	}
	
	.flexnav li ul li a { 
		padding:0 20px 20px;
		background-color:#fff;
		font-size:13px;
		font-family: 'Onest-Regular', sans-serif;
		font-weight:400;
		text-transform:none;
		color:#aaa!important;
		-webkit-transition: all 0.05s ease-in-out;
		-moz-transition: all 0.05s ease-in-out;
			-o-transition: all 0.05s ease-in-out;
		-ms-transition: all 0.05s ease-in-out;
		transition: all 0.05s ease-in-out;
	}
	
	.flexnav li ul li a.active, .flexnav li ul li a:hover {
		color:#000!important;
	}
	
	.flexnav li a::after {
		content: '';
        position: absolute; 
		bottom: 15px; 
		left: 0;
        width: 100%;
        height: 2px;
		z-index:0;
        background: rgba(0,0,0,1);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform .2s ease-out, opacity .2s ease-out 0.3s;
	}
	
	.light-content .flexnav li a::after {
		background: rgba(255,255,255,1);
	}
	
	.flexnav li:hover a::after, .flexnav li a.active::after {
		transform: scaleX(1);
		transform-origin: left;
	}
	
	.flexnav li > ul li {
		margin-left:0;
	}
	
	.flexnav li ul li a::after {
		content: none;
	}
	
	.flexnav li ul {
		-webkit-transition: all 0.2s ease-in-out;
		-moz-transition: all 0.2s ease-in-out;
		-o-transition: all 0.2s ease-in-out;
		-ms-transition: all 0.2s ease-in-out;
		transition: all 0.2s ease-in-out;
		-webkit-transform: translate3d(0px, 20px, 0px);
		-moz-transform: translate3d(0px, 20px, 0px);
		-o-transform: translate3d(0px, 20px, 0px);
		-ms-transform: translate3d(0px, 20px, 0px);
		transform: translate3d(0px, 20px, 0px);
		display:block!important;
		opacity:0;
		visibility:hidden;
		left:-20px;
		padding-top:20px;
		background: #fff;
	}
	
	.flexnav li ul.flexnav-show {
		-webkit-transform: translate3d(0px, 0px, 0px);
		-moz-transform: translate3d(0px, 0px, 0px);
		-o-transform: translate3d(0px, 0px, 0px);
		-ms-transform: translate3d(0px, 0px, 0px);
		transform: translate3d(0px, 0px, 0px);
		opacity:1;
		visibility:visible;
		
	}
}

#menu-burger {
	width: 22px;
	height: 18px;
	position: relative;
	float:right;
	margin: 0;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
	cursor: pointer;
	top: 11px;
	right: 0;
	display:none;
	z-index:2;
	pointer-events: initial;
}

.menu-overlay #menu-burger {
	display:block;
}

#menu-burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #000;
  opacity: 1;
  right: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.2s ease-in-out;
  -moz-transition: 0.2s ease-in-out;
  -o-transition: 0.2s ease-in-out;
  transition: 0.2s ease-in-out;
}

.light-content #menu-burger span {
	background:#fff;
}

.menu-open.light-content #menu-burger span, .initial.light-content #menu-burger span {
	background:#000;
}

#menu-burger span:nth-child(1) {
  top: 0px;
}

#menu-burger span:nth-child(2),#menu-burger span:nth-child(3) {
  top: 7px;
}

#menu-burger span:nth-child(4) {
	top: 14px;
	width: 60%;
}

#menu-burger:hover span:nth-child(4) {
	width: 100%;
}

#menu-burger.open span:nth-child(1) {
  top: 7px;
  width: 0%;
  right: 50%;
}

#menu-burger.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

#menu-burger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#menu-burger.open span:nth-child(4) {
  top: 7px;
  width: 0%;
  right: 50%;
}




/*--------------------------------------------------
Custom mobile menu
---------------------------------------------------*/

.custom-mobile-burger,
.custom-mobile-menu,
.custom-mobile-overlay {
  display: none;
}

@media (max-width: 1024px) {
  body.custom-mobile-menu-open {
    overflow: hidden;  
  }
	
	#custom-mobile-menu .custom-mobile-menu__nav {
    background-color: #111111 !important;
  }

  #custom-mobile-menu .custom-mobile-menu__nav a {
    background-color: #111111 !important;
  }
	
	/* Само полноэкранное меню не прокручивается по горизонтали */
  #custom-mobile-menu.custom-mobile-menu {
    overflow-x: hidden !important;
  }

  /* Вертикальная прокрутка остаётся только у контента */
  #custom-mobile-menu .custom-mobile-menu__content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto;
  }

  /* Длинные строки не растягивают ширину меню */
  #custom-mobile-menu .custom-mobile-menu__nav,
  #custom-mobile-menu .custom-mobile-menu__intro,
  #custom-mobile-menu .custom-mobile-menu__contacts {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  #custom-mobile-menu .custom-mobile-menu__nav a,
  #custom-mobile-menu .custom-mobile-menu__site,
  #custom-mobile-menu .custom-mobile-menu__contacts a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Старые элементы прежнего меню не используются */
  #menu-burger,
  #black-fade {
    display: none !important;
  }

  /* Новый бургер: чёрный на обычной странице */
  .custom-mobile-burger {
    position: fixed;
    top: 22px;
    right: 24px;
    z-index: 10005;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;

    width: 48px;
    height: 48px;
    padding: 0;

    color: #111111;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .custom-mobile-burger span {
    display: block;
    width: 30px;
    height: 3px;
    margin: 0 auto;

    background-color: currentColor;
    transform-origin: center;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  /* Открыто: бургер становится белым крестиком */
  .custom-mobile-burger.is-open {
    color: #ffffff;
  }

  .custom-mobile-burger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .custom-mobile-burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .custom-mobile-burger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Overlay не нужен: меню перекрывает весь экран */
  .custom-mobile-overlay {
    display: none !important;
  }

  /* Полноэкранный тёмный слой меню */
  #custom-mobile-menu.custom-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10002;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 0;

    color: #ffffff;
    background-color: #111111;
    box-sizing: border-box;
    overflow: hidden;

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-100%);
    transition:
      transform 0.4s ease,
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  #custom-mobile-menu.custom-mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /*
   * Скрываем только внутреннюю кнопку ×.
   * Закрытие выполняется повторным нажатием на верхний бургер-крестик.
   */
  #custom-mobile-menu .custom-mobile-menu__top,
  #custom-mobile-menu .custom-mobile-close {
    display: none !important;
  }

  /* Вся информация слева */
  #custom-mobile-menu .custom-mobile-menu__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    width: 100%;
    min-height: 0;
    padding: 32px 32px 36px;

    box-sizing: border-box;
    overflow-y: auto;
  }

  /* Верхняя информация */
  #custom-mobile-menu .custom-mobile-menu__intro {
    margin-bottom: 38px;
  }

  #custom-mobile-menu .custom-mobile-menu__name,
  #custom-mobile-menu .custom-mobile-menu__role,
  #custom-mobile-menu .custom-mobile-menu__city,
  #custom-mobile-menu .custom-mobile-menu__contacts-title {
    margin: 0;
  }

  #custom-mobile-menu .custom-mobile-menu__name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
  }

  #custom-mobile-menu .custom-mobile-menu__role {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    line-height: 1.35;
  }

  #custom-mobile-menu .custom-mobile-menu__site {
    display: inline-block;
    margin-top: 14px;

    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;

    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  }

  /* Большие ссылки навигации */
  #custom-mobile-menu .custom-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    margin-bottom: auto;
  }

  #custom-mobile-menu .custom-mobile-menu__nav a {
    display: block;
    width: auto;
    padding: 5px 0;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: 0.01em;
    text-align: left;
    text-decoration: none;

    border: 0;
    transform: none;
    transition: color 0.2s ease;
  }

  #custom-mobile-menu .custom-mobile-menu__nav a:hover,
  #custom-mobile-menu .custom-mobile-menu__nav a:focus {
    color: rgba(255, 255, 255, 0.55);
    outline: 0;
  }

  /* Контакты внизу */
  #custom-mobile-menu .custom-mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 40px;
  }

  #custom-mobile-menu .custom-mobile-menu__contacts-title {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  #custom-mobile-menu .custom-mobile-menu__contacts a {
    display: block;
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
  }

  #custom-mobile-menu .custom-mobile-menu__city {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (max-width: 1024px) {
  #custom-mobile-menu.custom-mobile-menu {
    background: #111111 !important;
    background-color: #111111 !important;
    background-image: none !important;
  }
}

@media (min-width: 1025px) {
  .custom-mobile-burger,
  .custom-mobile-menu,
  .custom-mobile-overlay {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  body.cd-about .custom-mobile-burger {
    color: #ffffff !important;
  }

  body.cd-about .custom-mobile-burger span {
    background-color: #ffffff !important;
  }
}

/*--------------------------------------------------
Размеры текста мобильного меню
---------------------------------------------------*/

/* Планшеты: 768–1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Большая навигация */
  #custom-mobile-menu .custom-mobile-menu__nav a {
    font-size: 68px;
  }

  /* Информация в верхней части */
  #custom-mobile-menu .custom-mobile-menu__name {
    font-size: 22px;
  }

  #custom-mobile-menu .custom-mobile-menu__role {
    font-size: 18px;
  }

  #custom-mobile-menu .custom-mobile-menu__site {
    font-size: 18px;
  }

  /* Контакты в нижней части */
  #custom-mobile-menu .custom-mobile-menu__contacts-title {
    font-size: 14px;
  }

  #custom-mobile-menu .custom-mobile-menu__contacts a {
    font-size: 18px;
  }

  #custom-mobile-menu .custom-mobile-menu__city {
    font-size: 17px;
  }
}

/* Большие телефоны: 480–767px */
@media (min-width: 480px) and (max-width: 767px) {
  /* Большая навигация */
  #custom-mobile-menu .custom-mobile-menu__nav a {
    font-size: 56px;
  }

  /* Информация в верхней части */
  #custom-mobile-menu .custom-mobile-menu__name {
    font-size: 18px;
  }

  #custom-mobile-menu .custom-mobile-menu__role {
    font-size: 15px;
  }

  #custom-mobile-menu .custom-mobile-menu__site {
    font-size: 15px;
  }

  /* Контакты в нижней части */
  #custom-mobile-menu .custom-mobile-menu__contacts-title {
    font-size: 12px;
  }

  #custom-mobile-menu .custom-mobile-menu__contacts a {
    font-size: 16px;
  }

  #custom-mobile-menu .custom-mobile-menu__city {
    font-size: 15px;
  }
}

/* Обычные телефоны: 375–479px */
@media (min-width: 375px) and (max-width: 479px) {
  /* Большая навигация */
  #custom-mobile-menu .custom-mobile-menu__nav a {
    font-size: 46px;
  }

  /* Информация в верхней части */
  #custom-mobile-menu .custom-mobile-menu__name {
    font-size: 16px;
  }

  #custom-mobile-menu .custom-mobile-menu__role {
    font-size: 14px;
  }

  #custom-mobile-menu .custom-mobile-menu__site {
    font-size: 14px;
  }

  /* Контакты в нижней части */
  #custom-mobile-menu .custom-mobile-menu__contacts-title {
    font-size: 12px;
  }

  #custom-mobile-menu .custom-mobile-menu__contacts a {
    font-size: 15px;
  }

  #custom-mobile-menu .custom-mobile-menu__city {
    font-size: 14px;
  }
}

/* Маленькие телефоны: до 374px */
@media (max-width: 374px) {
  /* Большая навигация */
  #custom-mobile-menu .custom-mobile-menu__nav a {
    font-size: 38px;
  }

  /* Информация в верхней части */
  #custom-mobile-menu .custom-mobile-menu__name {
    font-size: 15px;
  }

  #custom-mobile-menu .custom-mobile-menu__role {
    font-size: 13px;
  }

  #custom-mobile-menu .custom-mobile-menu__site {
    font-size: 13px;
  }

  /* Контакты в нижней части */
  #custom-mobile-menu .custom-mobile-menu__contacts-title {
    font-size: 11px;
  }

  #custom-mobile-menu .custom-mobile-menu__contacts a {
    font-size: 14px;
  }

  #custom-mobile-menu .custom-mobile-menu__city {
    font-size: 13px;
  }
}










.page-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.page-overlay .animate-box-bottom {
  position: absolute;
  width: 100%;
  height: 101%;
  -webkit-transition: -webkit-transform .0s;
  transition: -webkit-transform .0s;
  transition: transform .0s;
  transition: transform .0s, -webkit-transform .0s;
  background-color: #000;
}
.page-overlay .animate-box-bottom {
  -webkit-transform: translateY(101%);
		  transform: translateY(101%);
}

.page-overlay.from-bottom {
  z-index: 120;
}

.page-overlay.from-bottom .animate-box-bottom {
  transition: transform .4s ease-in-out;
  -webkit-transform: translateY(0);
		  transform: translateY(0);
}

.page-overlay.from-bottom-end .animate-box-bottom {
  transition: transform .5s ease-in-out 0.3s;
  -webkit-transform: translateY(-101%);
		  transform: translateY(-101%);
}

#hero {
  overflow: hidden;
  position: fixed;
  width: 100vw;
  max-width: 100vw;
}

#hero.normal {
  position: relative;
}

#hero.normal #hero-styles,
#hero.normal #hero-bg-image {
  position: absolute;
}

#hero-styles {
  position: fixed;
  width: 100vw;
  max-width: 100vw;
  top: 0;
  left: 0;
}

#hero-caption {
  display: table;
  width: 100%;
  padding-top: 120px;
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  position: relative;
  opacity: 0;
  box-sizing: border-box;
}

#hero-caption.animate {
  opacity: 1;
}

/* hook для возможной анимации масштаба (как в шаблоне) */
#hero-bg-image.animate {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transition: all 800ms cubic-bezier(0.645, 0.045, 0.355, 1.000);
  transition: all 800ms cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

#hero-height {
  pointer-events: none;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  -webkit-transition: all 0.5s ease-in-out 0.9s;
  transition: all 0.5s ease-in-out 0.9s;
}

#hero-height.hidden {
  margin-bottom: 20vh;
}

#hero,
#hero-height,
#hero-styles {
  height: 80vh;
}


/* ============================================
   HERO SUBTITLE — по токенам, с маской
   ============================================ */

.hero-subtitle {
  font-size: clamp(13px, 0.5vw + 11px, 22px);
  line-height: 1.5;
  letter-spacing: 0.04em;    /* ← межбуквенный интервал для всего подзаголовка */
  color: #000;
  width: 100%;
  z-index: 10;
  margin-top: clamp(22px, 2.2vw + 12px, 40px);
  -webkit-transition: color 0.2s ease-in-out 0s;
  transition: color 0.2s ease-in-out 0s;
  overflow: visible;
}

.light-content .hero-subtitle {
  color: #fff;
  opacity: 0.5;
}

/* Токен (фраза) — маска, без отступов */
.hero-subtitle .hero-subtitle-word {
  display: inline-block !important;
  vertical-align: top;
  height: 1.5em;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0 !important;
}

/* Внутренний span — выезжает */
.hero-subtitle .hero-subtitle-word .hero-subtitle-inner {
  display: inline-block;
  height: 100%;
  line-height: 1.5em;
  transform: translateY(110%);
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: calc(0.7s + 0.06s * var(--i, 0));
}

.animate .hero-subtitle .hero-subtitle-word .hero-subtitle-inner {
  transform: translateY(0);
}

/*
 * Разделитель | — воздух по бокам.
 * letter-spacing: 0 — чтобы наследованный интервал
 * не раздувал сам символ палочки.
 */
.hero-subtitle .slash-dividor {
  display: inline-block;
  vertical-align: top;
  height: 1.5em;
  line-height: 1.5em;
  color: #ddd;
  margin: 0 1em;
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0;          /* ← сбрасываем наследование */
}




/* Фоновое изображение hero (один слой, без <img>) */
#hero-image {
  background-size: cover;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  opacity: 1;
  background: center center no-repeat fixed;
  overflow: hidden;
}

/* Вариант без фиксированного фона (если JS добавляет bgrelative) */
#hero-image.bgrelative {
  background: center center no-repeat scroll;
}

/* Белые рамки по краям */
#image-border-left,
#image-border-right {
  height: 100%;
  width: 14%;
  max-width: 14%;
  position: absolute;
  top: 0;
  -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
  background: #fff;
  overflow: hidden;
}

#image-border-left {
  left: 0;
}

#image-border-right {
  right: 0;
}

#main {
	position:relative;
}

#main.hidden {
	-webkit-transition: all 0s ease-in-out 0.4s;
	transition: all 0s ease-in-out 0.4s;
	opacity:0;
}

#main-content {
	opacity:1;
	position:relative;
}	

.page-action-overlay {
	position:fixed;
	z-index:1000;
	height:100vh;
	width:100vw;
	max-width:100vw;
	top:0;
	left:0;
	right:0;
	bottom:0;
	opacity:0;
	visibility:hidden;
	background-color:rgba(0,0,0,0.85);
	-webkit-transition: all 0.2s ease-in-out 0.5s;
	transition: all 0.2s ease-in-out 0.5s;
}

.page-action-overlay.active {
	opacity:1;
	visibility:visible;
	-webkit-transition: all 0.2s ease-in-out 0.1s;
	transition: all 0.2s ease-in-out 0.1s;
}

.close-page-action {
	position:fixed;
	height:100vh;
	width:100vw;
	max-width:100vw;
	top:0;
	left:0;
	right:0;
	bottom:0;
	cursor: url("images/close.png"), e-resize;
}

footer {
	position:relative;
	padding:70px 0 110px 0;
	width:100%;
	height:auto;
}

footer.ln {border-top: solid 1px #DDDDDD;}

.socials-text {
	height: auto;
	line-height: 25px;
	position: relative;
	width: 100%;
	margin: 0;
	text-align: center;
	bottom: 0;
}

.socials-text li {
	margin-right: 40px;
	margin-left: 0px;
	list-style:none;
	display:inline-block;
	color:#999;
	font-size:15px;
	margin-bottom:0;
	line-height:30px;
	position:relative;
}

.socials-text li::after {
	width: 100%;
	height: 1px;
	position: absolute;
	content: "";
	background-color:rgba(0,0,0,0.2);
	left: 0;
	bottom: 0;
}

.light-content .socials-text li::after {
	background-color:rgba(255,255,255,0.2);
}

.socials-text li:last-child {
	margin-right: 0px;
}

.socials-text li a {
	color: #000;		
	font-size:16px;
	font-weight: normal;
	font-family: 'Fact Expanded ExtraBold', sans-serif;
	display: block;
}

.light-content .socials-text li a {
	color: #fff;
}

.socials-text li a:before {
    content: '';
    position: absolute; 
	bottom: 0px; 
	left: 0;
    width: 100%;
    height: 1px;
	z-index:0;
    background: rgba(0,0,0,1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .2s ease-out, opacity .2s ease-out 0.3s;
}

.light-content .socials-text li a:before {
	background: rgba(255,255,255,1);
}

.socials-text li a:hover::before {
	transform: scaleX(1);
	transform-origin: left;
}

/* Соц. сети адаптив */
@media only screen and (max-width: 767px) {
  footer {
    text-align: left !important;
  }
  .socials-text {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    list-style: none;
  }
  .socials-text li {
    display: block !important;
    margin: 0 !important;
  }
}

#page-action-holder {
	position: fixed;
	left: 45px;
	bottom: 100px;
	height: 40px;
	width: 40px;
	border-radius:40px;		
	opacity:0;
	z-index:10;
	box-shadow: inset  0 0 0 2px rgba(0,0,0,0.2);
	-webkit-transform: scale(0.8);
	transform: scale(0.8);
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.light-content #page-action-holder {
	box-shadow: inset  0 0 0 2px rgba(255,255,255,0.2);
}

#page-action-holder.is-active.is-visible {
	opacity:1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}

#page-action-holder:hover {
	box-shadow: inset  0 0 0 2px rgba(0,0,0,1);
}

.light-content #page-action-holder:hover  {
	box-shadow: inset  0 0 0 2px rgba(255,255,255,1);
}

#open-filters {
	cursor:pointer;
	width:40px;
	height:40px;
	line-height:39px;
	text-align:center;
	color:#000;
}

.light-content #open-filters {
	color:#fff;
}

#backtoworks {
	cursor:pointer;
	width:40px;
	height:40px;
	line-height:39px;
	text-align:center;
	color:#000;
}

.progress-page {
	position: fixed;
	right: 45px;
	bottom: 100px;
	height: 40px;
	width: 40px;
	border-radius:40px;
	box-shadow: inset  0 0 0 2px rgba(0,0,0,0.2);
	opacity:0;
	z-index:10;
	-webkit-transform: scale(0.8);
	transform: scale(0.8);
	-webkit-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.light-content .progress-page {
	box-shadow: inset  0 0 0 2px rgba(255, 255, 255, 0.2);
}

.progress-page.disable {
	opacity:0!important;
}

.progress-page.is-active.is-visible {
	opacity:1;
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-o-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
}

.progress-page svg path { 
	fill: none; 
}

.progress-page svg.progress-circle path {
	stroke: rgba(0, 0, 0, 1);
	stroke-width: 4;
	box-sizing:border-box;
}

.light-content .progress-page svg.progress-circle path {
	stroke: rgba(255, 255, 255, 1);
}

.scrolltotop {
	height: 40px;
	right: 0px;
	bottom: 100px;
	width: 40px;
	cursor:pointer;
	opacity:0;
	position:absolute;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.scrolltotop.is-active.is-visible {
	opacity:1;
	bottom:0;
}

.scrolltotop.is-active.is-visible:hover {
	bottom:1px;
	opacity:1;
}

.arrow-top {
	border-bottom: 2px solid #000;
	border-left: 2px solid #000;
	height: 6px;
	transform: rotate(135deg);
	width: 6px;
	position:absolute;
	left:16px;
	top:14px;
}

.arrow-top-line {
	background-color: #000;
	height: 14px;
	left: 50%;
	position: absolute;
	top: 13px;
	width: 2px;
	margin-left:-1px;
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.scrolltotop:hover .arrow-top-line {
	height:16px;
	top: 15px;
}

/*--------------------------------------------------
	16. Responsive
---------------------------------------------------*/			

@media only screen and (max-width: 1466px) {
	#header-container {
		padding: 0 80px;
	}
	.menu-overlay.slide-in nav {
		width:40vw;
    	-webkit-transform: translateX(40vw);
    	transform: translateX(40vw);
	}
	.menu-overlay nav.open {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
	#page-action-holder {
    	left: 20px;
	}
	.progress-page {
		right: 20px;
	}
	#hero-caption {
		max-width: min(1100px, calc(100% - 100px));
	}

	footer {
    	padding: 40px 0 80px 0;
	}
	.full .container {
		padding: 0 80px;
	}
}

@media only screen and (max-width: 1024px) {
	header {
		position:relative;
		top: 0!important;
	}
	#header-container {
		padding: 20px 0;
		margin: 0px auto;
	}
	#logo {
		margin-left:50px;
		margin-bottom:20px;
	}
	nav {
		background: #fff;
		padding: 0 50px;
	}
	.flexnav li a {
    	color: #222 !important;
	}
	#menu-burger {
		display: block;
		position: absolute;
		right: 50px;
		top: 35px;
	}
	#menu-burger span.touch-button {
		display:none;
	}
	#page-action-holder {
		left:50px;
		position:absolute;
		opacity:1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	.progress-page {
		right: 50px;
		position:absolute;
		opacity:1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	#hero {
		margin-top:-120px;
	}
	#hero, #hero-styles {
		position:relative;
		height: 100vh;
	}
	#hero-height {
		display:none;
	}
	#hero-caption { 
		position:fixed;
		max-width:100%;
		top:0;
		padding: 0 50px;
	}
	.hero-title, h1.big-title {
    	font-size: 50px;
		line-height:60px;
	}
	.hero-title span {
		line-height: 50px;
		height: 60px;
		margin: 0 5px;
	}
	#hero-image {
		background: center center no-repeat scroll;
		background-size:cover!important;
	}
	.full .container {
		padding: 0 50px;
	}
}

@media only screen and (max-width: 767px) {
	#logo {
		margin-left:40px;
	}
	nav {
		background: #fff;
		padding: 0 40px;
	}
	#menu-burger {
		display: block;
		position: absolute;
		right: 40px;
		top: 35px;
	}
	footer {
		padding: 50px 0 50px 0;
	}
	#page-action-holder {
		top:50px;
		left:40px;
		position:absolute;
		opacity:1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	.progress-page {
		top:50px;
		right: 40px;
		position:absolute;
		opacity:1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	#hero-caption { 
		padding: 0 40px;
	}
	.hero-title, h1.big-title {
    	font-size: 40px;
		line-height:50px;
	}
	.hero-title span {
		line-height: 40px;
		height: 50px;
		margin: 0 4px;
	}
	.container, .small .container {
    	padding: 0 40px;
	}
	.full .container {
		padding: 0 40px;
	}
	.one_half {
    	width: 100%;
	}	
	.one_third {
		width: 100%;
	}	
	.one_fourth {
		width: 100%;
	}	
	.one_fifth {
		width: 100%;
	}	
	.one_sixth {
		width: 100%;
	}	
	.two_fifth {
		width: 100%;
	}	
	.two_fourth {
		width: 100%;
	}		
	.two_third {
		width: 100%;
	}	
	.three_fifth {
		width: 100%;
	}	
	.three_fourth {
		width: 100%;
	}	
	.four_fifth {
		width: 100%;
	}	
	.five_sixth {
		width: 100%;
	}	
	.one_half, .one_third, .two_third, .three_fourth, .one_fourth, .two_fourth, .one_fifth, .two_fifth, .three_fifth, .four_fifth, .one_sixth, .five_sixth {
		margin-bottom: 20px;
		margin-right: 0%;
	}
	.socials-text li {
		display:table;
		margin:0 auto!important;
	}
  .scrolltotop,
  .progress-page {
    display: none !important;
  }
}

@media only screen and (max-width: 479px) {
	#logo {
		margin-left:30px;
	}
	nav {
		background: #fff;
		padding: 0 30px;
	}
	#menu-burger {
		display: block;
		position: absolute;
		right: 30px;
		top: 35px;
	}
	#page-action-holder {
		left:30px;
		position:absolute;
		opacity:1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	.progress-page {
		right: 30px;
		position:absolute;
		opacity:1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
	#hero-caption { 
		padding: 0 30px;
		padding-top:100px;
	}
	.hero-title, h1.big-title {
    	font-size: 30px;
		line-height:20px;
	}
	.hero-title span {
		line-height: 40px;
		height: 48px;
		margin: 0 3px;
	}
	.container, .small .container {
    	padding: 0 30px;
	}
	.full .container {
		padding: 0 30px;
	}
}


/* ============================================================
   CONTACTS
   Два независимых блока:
   1. .footer-contact-wide — главная, страница About
   2. .project-contact     — страницы проектов (внутри .container)
   ============================================================ */


/* ============================================
   1. CONTACTS — главная и About (.footer-contact-wide)
   ============================================ */

.footer-contact-wide {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  width: 100%;
  padding: 80px 75px;
  background-color: #fff;
  color: #000;
  box-sizing: border-box;
}

.footer-contact-col {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}

/* Заголовок "Мои контакты:" */
.footer-contact-heading {
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8B8B8B;
}

/* Телефон */
.footer-phone-text {
  font-family: 'Fact Expanded Bold', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: #000;
}

/* Telegram */
.footer-tg-link {
  display: inline-block;
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  position: relative;
}

/* Email */
.footer-email-link {
  display: inline-block;
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #000;
  text-decoration: none;
  position: relative;
}

/* Подчёркивание при ховере */
.footer-tg-link::before,
.footer-email-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out 0.3s;
}

.footer-tg-link:hover::before,
.footer-email-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Модификатор для страницы About: контакты внутри .container */
.footer-contact-wide--about {
  padding: 0;
}

/* На About контакты сидят внутри .container (max-width 1240px).
   Поэтому переключаем на 2×2 не на 1465px, а позже —
   когда реальной ширины блока действительно не хватает. */

@media only screen and (max-width: 1200px) and (min-width: 1025px) {
  .footer-contact-wide--about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 16px;
    padding: 0;
  }

  .footer-contact-wide--about .footer-contact-col-title { grid-column: 1; grid-row: 1; }
  .footer-contact-wide--about .footer-contact-col-phone { grid-column: 2; grid-row: 1; }
  .footer-contact-wide--about .footer-contact-col-tg    { grid-column: 1; grid-row: 2; }
  .footer-contact-wide--about .footer-contact-col-email { grid-column: 2; grid-row: 2; }
}

/* ---------- Адаптив: 768–1024px (сетка 2×2, компактнее) ---------- */

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .footer-contact-wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 16px;
    padding: 56px 40px;
  }

  .footer-contact-wide--about {
    padding: 0;
  }

  .footer-contact-col-title { grid-column: 1; grid-row: 1; }
  .footer-contact-col-phone { grid-column: 2; grid-row: 1; }
  .footer-contact-col-tg    { grid-column: 1; grid-row: 2; }
  .footer-contact-col-email { grid-column: 2; grid-row: 2; }

  .footer-phone-text { font-size: 28px; }
}

/* ---------- Адаптив: 480–767px (одна колонка) ---------- */

@media only screen and (max-width: 767px) and (min-width: 480px) {
  .footer-contact-wide {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 40px 40px;
  }

  .footer-contact-wide--about {
    padding: 0;
  }

  .footer-contact-col {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-contact-col-title { margin-bottom: 4px; }
  .footer-contact-heading { font-size: 14px; }
  .footer-phone-text { font-size: 22px; }
  .footer-tg-link { font-size: 16px; }
  .footer-email-link { font-size: 14px; }
}

/* ---------- Адаптив: ≤479px (одна колонка, компактно) ---------- */

@media only screen and (max-width: 479px) {
  .footer-contact-wide {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding: 32px 30px;
  }

  .footer-contact-wide--about {
    padding: 0;
  }

  .footer-contact-col {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .footer-contact-col-title { margin-bottom: 4px; }
  .footer-contact-heading { font-size: 12px; }
  .footer-phone-text { font-size: 20px; }
  .footer-tg-link { font-size: 15px; }
  .footer-email-link { font-size: 13px; }
}


/* ============================================
   2. CONTACTS — страницы проектов (.project-contact)
   Внутри .container, ограничены 1240px
   ============================================ */

.project-contact {
  margin-top: 64px;
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1.2fr;
  column-gap: 16px;
  row-gap: 10px;
  align-items: baseline;
}

.project-contact__col {
  min-width: 0;
  text-align: left;
}

.project-contact__heading {
  display: inline-block;
  font-family: "Fact Expanded Bold", sans-serif;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #778493;
}

.project-contact__phone {
  display: inline-block;
  font-family: "Fact Expanded Bold", sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.1;
  color: #000;
  white-space: nowrap;
}

.project-contact__tg {
  display: inline-block;
  font-family: "Fact Expanded Bold", sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  position: relative;
}

.project-contact__email {
  display: inline-block;
  font-family: "Fact Expanded Bold", sans-serif;
  font-size: 16px;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #000;
  text-decoration: none;
  position: relative;
}

.project-contact__tg::before,
.project-contact__email::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out 0.3s;
}

.project-contact__tg:hover::before,
.project-contact__email:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Адаптив: 768–1024px ---------- */

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .project-contact {
    padding: 45px 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    row-gap: 14px;
  }

  .project-contact__phone {
    font-size: 28px;
  }
}

/* ---------- Адаптив: ≤767px ---------- */

@media only screen and (max-width: 767px) {
  .project-contact {
    padding: 40px 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 14px;
    margin-top: 48px;
  }

  .project-contact__col {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .project-contact__phone {
    font-size: 24px;
    white-space: normal;
  }
}



/* Градиент для главной страницы на hero-блок */
body.home-page #hero3 {
  background: hsla(0, 0%, 100%, 1) !important;
  background: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 1) 0%,
    hsla(215, 100%, 93%, 1) 100%
  ) !important;
}

body.home-page #hero-styles {
  background: transparent !important;
}

body.home-page header {
  background: transparent !important;
}

body.home-page nav {
  background: transparent !important;
}

body.home-page #header-container {
  background: transparent !important;
}


/* Появление блока при скролле */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition:
    opacity 3s cubic-bezier(0.23, 1, 0.32, 1),
    transform 3s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Общие отступы секций на страницах проектов */
.project-page .project-section {
  margin: 48px 0px;
  text-align: left;
}

.project-page .project-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.project-page .project-one-col {
  display: grid;
  grid-template-columns: 1fr;
}

.project-page .project-col .section-title {
  margin-bottom: 12px;
}

.project-page .project-col .section-text {
  font-size: 18px;
  line-height: 1.6;
  color: #353535;
}

@media only screen and (max-width: 767px) {
  .project-page .project-two-cols {
    grid-template-columns: 1fr;
  }
}

/* Full-width Video */
.project-video-full .project-video-wrapper {
  position: relative;
  padding-top: 56.25%;
  width: 100%;
  overflow: hidden;
  margin: 64px 0px;
}

.project-video-full iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Метрики на странице проекта (3 ячейки) */
.project-page .project-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-page .project-metric {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 24px 24px 20px;
}

.project-page .project-metric__value {
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: #000;
  margin-bottom: 8px;
}

.project-page .project-metric__label {
  font-size: 16px;
  line-height: 1.6;
  color: #353535;
}

@media only screen and (max-width: 1465px) and (min-width: 1025px) {
  .project-page .project-metric__value {
    font-size: 36px;
  }
  .project-page .project-metric__label {
    font-size: 13px;
  }
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .project-page .project-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-page .project-metric__value {
    font-size: 32px;
  }
  .project-page .project-metric__label {
    font-size: 13px;
  }
}

@media only screen and (max-width: 767px) and (min-width: 480px) {
  .project-page .project-metrics {
    grid-template-columns: 1fr;
  }
  .project-page .project-metric__value {
    font-size: 28px;
  }
  .project-page .project-metric__label {
    font-size: 12px;
  }
}

@media only screen and (max-width: 479px) {
  .project-page .project-metrics {
    grid-template-columns: 1fr;
  }
  .project-page .project-metric__value {
    font-size: 24px;
  }
  .project-page .project-metric__label {
    font-size: 12px;
  }
}

/* Table */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.project-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 14px;
}

.project-table thead {
  background-color: var(--project-table-head-bg, #f5f5f5);
  color: var(--project-table-head-color, #000000);
}

.project-table th,
.project-table td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  text-align: center;
}

.project-table td:first-child,
.project-table th:first-child {
  text-align: left;
}

.project-table td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}

.project-table tbody tr:nth-child(odd) {
  background-color: #fafafa;
}

@media only screen and (max-width: 767px) {
  .project-table {
    font-size: 13px;
  }
  .project-table th,
  .project-table td {
    padding: 10px 12px;
  }
}

.footer-copyright {margin: auto 0px;}

/* Ссылка "далее" в блоке project-nav */
#project-nav .project-next {
  display: inline-block;
  font-family: 'Fact Expanded ExtraBold', sans-serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#project-nav .project-next:hover,
#project-nav .project-next:focus {
  color: rgba(0, 0, 0, 1);
}

@media only screen and (max-width: 1465px) and (min-width: 1025px) {
  .project-next {
    font-size: 32px;
    letter-spacing: 0.1em;
  }
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .project-next {
    font-size: 28px;
    letter-spacing: 0.08em;
  }
  #project-nav {padding-top: 100px; padding-bottom: 0px;}
}

@media only screen and (max-width: 767px) and (min-width: 480px) {
  .project-next {
    font-size: 24px;
    letter-spacing: 0.08em;
  }
  #project-nav {padding-top: 80px; padding-bottom: 0px;}
}

@media only screen and (max-width: 479px) {
  .project-next {
    font-size: 20px;
    letter-spacing: 0.06em;
  }
  #project-nav {padding-top: 80px; padding-bottom: 0px;}
}

.project-page {
  display: block;
  width: 100%;
}

.project-page .project-list-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 64px 0;
}

.project-page .project-list-block {
  border-radius: 8px;
  padding: 24px 24px 20px;
}

.project-page .project-list-block--pros {
  background-color: #F4FCF9;
  border: 1px solid #BEE9DC;
}

.project-page .project-list-block--cons {
  background-color: #FEF8F5;
  border: 1px solid #FFD4D0;
}

.project-page .project-list-block__title {
  font-family: 'Fact Expanded Bold', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #000;
}

.project-page .project-list-block__list {
  list-style: disc;
  margin-left: 20px;
}

.project-page .project-list-block__list li {
  font-size: 15px;
  line-height: 1.5;
  color: #353535;
  margin-bottom: 6px;
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .project-page .project-list-blocks {
    gap: 24px;
  }
  .project-page .project-list-block {
    padding: 20px 20px 18px;
  }
  .project-page .project-list-block__title {
    font-size: 18px;
  }
  .project-page .project-list-block__list li {
    font-size: 15px;
  }
}

@media only screen and (max-width: 767px) {
  .project-page .project-list-blocks {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 0;
  }
  .project-page .project-list-block {
    padding: 18px 18px 16px;
  }
  .project-page .project-list-block__title {
    font-size: 16px;
  }
  .project-page .project-list-block__list li {
    font-size: 14px;
  }
}

/* Отзыв на странице проекта */
.project-page .project-testimonial {
  border-radius: 12px;
  padding: 24px 24px 20px;
  background-color: #f5f5f5;
  margin: 32px 0;
}

.project-page .project-testimonial__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.project-page .project-testimonial__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.project-page .project-testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-page .project-testimonial__name {
  font-family: 'Onest-Regular', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.project-page .project-testimonial__role {
  font-size: 14px;
  line-height: 1.4;
  color: #777777;
}

.project-page .project-testimonial__quote {
  font-size: 16px;
  line-height: 1.7;
  color: #353535;
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .project-page .project-testimonial {
    padding: 20px 20px 18px;
  }
  .project-page .project-testimonial__name {
    font-size: 17px;
  }
  .project-page .project-testimonial__quote {
    font-size: 15px;
  }
}

@media only screen and (max-width: 767px) {
  .project-page .project-testimonial {
    padding: 18px 18px 16px;
    margin: 24px 0;
  }
  .project-page .project-testimonial__header {
    gap: 12px;
  }
  .project-page .project-testimonial__avatar {
    width: 56px;
    height: 56px;
  }
  .project-page .project-testimonial__name {
    font-size: 16px;
  }
  .project-page .project-testimonial__role {
    font-size: 13px;
  }
  .project-page .project-testimonial__quote {
    font-size: 14px;
  }
}

/* Блок важного инсайта */
.project-page .project-insight {
  border-radius: 8px;
  padding: 24px 24px 20px;
  background-color: #F1F8FF;
  margin: 32px 0;
}

.project-page .project-insight__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.project-page .project-insight__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.project-page .project-insight__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-page .project-insight__content {
  flex: 1;
}

.project-page .project-insight__title {
  font-family: 'Onest-Bold', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.project-page .project-insight__text {
  font-size: 16px;
  line-height: 1.7;
  color: #353535;
}

@media only screen and (max-width: 1024px) and (min-width: 768px) {
  .project-page .project-insight {
    padding: 20px 20px 18px;
  }
  .project-page .project-insight__title {
    font-size: 18px;
  }
  .project-page .project-insight__text {
    font-size: 15px;
  }
}

@media only screen and (max-width: 767px) {
  .project-page .project-insight {
    padding: 18px 18px 16px;
    margin: 24px 0;
  }
  .project-page .project-insight__inner {
    gap: 12px;
  }
  .project-page .project-insight__icon {
    width: 32px;
    height: 32px;
  }
  .project-page .project-insight__title {
    font-size: 16px;
  }
  .project-page .project-insight__text {
    font-size: 14px;
  }
}

/* Тёмная тема: переопределения для блока инсайта */
body.project-dark-page .project-page .project-insight {
  background-color: #007BF5;
}

body.project-dark-page .project-page .project-insight__title {
  color: #ffffff;
}

body.project-dark-page .project-page .project-insight__text {
  color: rgba(255, 255, 255, 0.9);
}

body.project-dark-page .project-page .project-insight__icon {
  color: #007BF5;
}

/* Слайдер ключевых экранов приложения */
.project-page .project-screens-slider {
  width: 100%;
}

.project-page .project-screen {
  width: 100%;
}

.project-page .project-screen__img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 0;
  margin: 0 auto;
}

.project-page .project-screens-slider .owl-dots {
  display: block;
  margin-top: 16px;
  text-align: center;
}

.project-page .project-screens-slider .owl-dot {
  display: inline-block;
  margin: 0 4px;
}

.project-page .project-screens-slider .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.project-page .project-screens-slider .owl-dot.active span {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.2);
}

.project-page .project-screen__caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  text-align: center;
}

.project-page .project-screens-slider .project-screen {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0px 0px 0px;
}

.project-page .project-screens-slider .project-screen img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Контейнер FAQ */
.faq {
  margin-top: 80px;
  margin-bottom: 80px;
}

.faq__title {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 600;
}

.faq__item {
  border-bottom: 1px solid #e0e0e0;
}

.faq__question {
  width: 100%;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.faq__question-text {
  font-size: 16px;
  font-weight: 500;
  font-family: 'Onest-Bold', sans-serif;
  color: #777777;
  transition: color 0.2s ease;
}

.faq__question-text:hover {
  color: #151515;
}

.faq__icon {
  font-size: 16px;
  color: #999999;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  text-align: left;
}

.faq__answer p {
  padding-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #555555;
  text-align: left;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

.faq__item.is-open .faq__icon {
  color: #000000;
}

/* Video-player */
.video-player {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 12px;
  background-color: #000;
}

.video-player__video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.video-player__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 12px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.15)
  );
  color: #fff;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.video-player__play:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.25)
  );
  transform: scale(1.01);
}

.video-player__play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  font-size: 20px;
  padding-left: 3px;
  background: rgba(0, 0, 0, 0.35);
}

.video-player__play-label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Onest-Regular', sans-serif;
}

.video-player__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  overflow: hidden;
}

.video-player__progress-fill {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: left center;
  transition: width 0.25s linear;
}

.video-player:hover .video-player__progress {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   ФИКС ВТОРОГО СКРОЛЛА (для всех страниц)
   ============================================ */

/* Все элементы с фиксированным позиционированием */
[style*="position: fixed"],
[class*="fixed"] {
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* Специально для hero-элементов */
#hero,
#hero-styles,
#hero-height,
#hero-image {
  max-width: 100vw !important;
  overflow: hidden !important;
  border-radius: 0px 0px 32px 32px;
}

/* Для border-элементов */
#image-border-left,
#image-border-right {
  max-width: 14% !important;
  overflow: hidden !important;
}


/* ============================================
   ФИКС МОБИЛЬНОГО HERO
   ============================================ */

@media only screen and (max-width: 767px) {
  #hero {
    min-height: 70vh;
  }

  #hero-caption {
    padding: 20px 0;
    min-height: auto;
  }

  #hero-caption .inner {
    padding: 0 24px;
  }

  /* Убираем <br> на мобильных, чтобы текст тёк свободно */
  .hero-title br {
    display: none;
  }
}



/* ============================================
   HERO TITLE — пословная анимация с маской
   ============================================ */

.hero-title {
  font-size: clamp(22px, 2.3vw + 8px, 52px);
  line-height: 1.3;         /* межстрочный интервал между строками */
  letter-spacing: -0.02em;
  font-family: 'Fact Expanded Bold', sans-serif;
  font-weight: 900;
  color: #151515;
  position: relative;
  z-index: 10;
  overflow: visible;
  white-space: normal;
}

.light-content .hero-title {
  color: #fff;
}

/*
 * Каждое слово — маска.
 * height: 1.5em — запас на нижние выносные элементы (у, р, д, ц, щ, запятые, точки).
 * Межстрочный интервал: 1.5em - 1.3em = 0.2em дополнительного пространства.
 */
.hero-title .hero-title-word {
  display: inline-block !important;
  vertical-align: top;
  height: 1.5em;            /* ← было 1.3em */
  overflow: hidden;
  box-sizing: border-box;
  padding: 0;
  margin: 0 0.26em 0 0 !important;
}

.hero-title .hero-title-word:last-child {
  margin-right: 0 !important;
}

/*
 * Внутренний span — выезжает.
 * line-height = height родителя, чтобы текст шёл по центру маски.
 */
.hero-title .hero-title-word .hero-title-inner {
  display: inline-block;
  height: 100%;
  line-height: 1.5em;       /* ← было 1.3em */
  transform: translateY(110%);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
  transition-delay: calc(0.05s * var(--i, 0));
}

.animate .hero-title .hero-title-word .hero-title-inner {
  transform: translateY(0);
}

/* На мобильных — отключаем жёсткие <br>, чтобы текст тёк свободно */
@media only screen and (max-width: 767px) {
  .hero-title br {
    display: none;
  }
}

/* --- Планшет --- */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .hero-title {
    font-size: clamp(24px, 2.6vw + 6px, 34px);
    line-height: 1.25;
  }
  .hero-title .hero-title-word {
    height: 1.55em;
  }
  .hero-title .hero-title-word .hero-title-inner {
    line-height: 1.55em;
  }
}

/* --- Мобильные --- */
@media only screen and (max-width: 767px) {
  .hero-title {
    font-size: clamp(18px, 4vw + 4px, 28px);
    line-height: 1.35;
    margin-bottom: 14px;
  }
  .hero-title .hero-title-word {
    height: 1.55em;             /* чуть больше запаса на выносные */
    margin-right: 0.24em !important;
  }
  .hero-title .hero-title-word .hero-title-inner {
    line-height: 1.55em;
    transition-duration: 0.45s;
    transition-delay: calc(0.04s * var(--i, 0));
  }
}

@media only screen and (max-width: 479px) {
  .hero-title {
    font-size: clamp(18px, 4.5vw + 3px, 24px);
    line-height: 1.35;
  }
}

/* --- Убираем межбуквенный интервал на страницах проектов --- */
body.project04-page .hero-subtitle,
body.project-dark-page .hero-subtitle {
  letter-spacing: 0;
}