/* CSS Document */

* {margin: 0; padding: 0}
html,body,div,span,applet,object,iframe,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,
article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,
summary,time,mark,audio,video { border: 0; margin: 0; padding: 0}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section { display: block}
a {outline: none; text-decoration: none; border-bottom:0px solid #000; color:#000;}
a.ww{outline: none; text-decoration: none; border-bottom:0px solid #fff; color:#fff;}
a:hover {text-decoration: none; border-bottom:0px; cursor: pointer}
html,textarea { overflow: auto}
input {vertical-align: middle}
input, textarea, select {outline:none; resize: none}
table{ border-collapse: collapse; border-spacing: 0}
img { vertical-align: top; border: none}


/*****************************************font*****************************************/





/* TTF → WOFF2: -64% веса (298 KB → 107 KB на все 4 начертания). TTF оставлены
   вторым src для очень старых браузеров — их почти никто уже не качает. */
@font-face {
    font-family: 'TildaSans';
    src: url('../font/TildaSans-Regular.woff2') format('woff2'),
         url('../font/TildaSans-Regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TildaSansMedium';
    src: url('../font/TildaSans-Medium.woff2') format('woff2'),
         url('../font/TildaSans-Medium.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TildaSansSemibold';
    src: url('../font/TildaSans-Semibold.woff2') format('woff2'),
         url('../font/TildaSans-Semibold.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'TildaSansBold';
    src: url('../font/TildaSans-Bold.woff2') format('woff2'),
         url('../font/TildaSans-Bold.ttf') format('truetype');
    font-display: swap;
}




/*****************************************font*****************************************/


html{
	font-family: 'TildaSans';
	color:#000; 
	letter-spacing:-0.5px;   	
	}


body{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;  
    height: 100%;
    

}

.bb{
	font-family: 'TildaSansMedium';		
	border: none;
}

.gray{
	color: #595959;
}


.fixed-background-block {
         
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 120%;   
            z-index: -1;
        }

        .fixed-background-block canvas {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
        }

.wrap{	
	width: 90%;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
        z-index: 1; 
	}


.header{
	font: 14px/14px  'TildaSans';
	margin: 40px 0 0 0;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items:center;
}

.header-brand{
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
}

.header-logo{
	display: block;
	width: 27px;
	height: 17px;
}


.social{
	font: 14px/34px  'TildaSans';
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

/* «Ru | En  Наверх» + ссылка на политику: столбец, прижатый к правому краю.
   .up-group — flex-столбец, выравнивание вправо; перенос «после Наверх» делается
   самим столбцом, а не flex-wrap (flex-wrap ломал геометрию из-за padding у .contact).
   margin-left:auto прижимает группу к правому краю .social (между flex-детями есть
   text-node-пробелы, поэтому одного justify-content:space-between недостаточно). */
.up-group{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-left: auto;
}

/* «Ru | En  Наверх» — прижать к правому краю контентной области (.social уже flex,
   auto-margin работает вместо space-between и прижимает блок к правому краю) */
.up-row{
	margin-left: auto;
}

.menu{
	font: 14px/14px 'TildaSans';
	margin: 0 0 120px 0;
	width: 800px;
}



.menu a{
	display:inline-block;
	margin: 0 40px 40px 0;
 }


.wrap_right a, .wrap_left a{
	font: 20px/24px 'TildaSans';
	border: none;		
}

.header a, .social a{
	font: 20px/24px 'TildaSans';
	border: none;		
}

.lang-switch{
	font: 20px/24px 'TildaSans';
	white-space: nowrap;
	display: inline-block;
	margin-right: 40px;
}

.lang-switch .lang-sep{
	color: #595959;
	margin: 0 8px;
}

.lang-switch .lang-current{
	color: #595959;
}

.lang-switch a{
	color: inherit;
}

.title h1{
	font: 140px/112px 'TildaSansSemibold';
	margin: 80px 0 300px 0;   
	width: 100%;
	/*text-transform:uppercase;*/
	letter-spacing:-0.04em;  
}


.title2{
	font: 48px/38px 'TildaSansSemibold';
	margin: 130px 0 30px 0; 
	width:25%;
   /*text-transform:uppercase;*/
	letter-spacing:-0.04em;
}


.video_about{
	display:block;
	width:330px;
	height:auto;
	margin:130px 0 30px 0;
	border-radius:15px;
	overflow:hidden;
	/* пропорции реального ролика 854x480: резервируем высоту до загрузки видео,
	   иначе пустой <video> занимает дефолтные 300x150 и прыгает (CLS) */
	aspect-ratio:854/480;
}
/* .video_about video — оставлено как есть (селектор не матчится: класс на самом <video>) */
.video_about video{
	display:block;
	width:100%;
	height:auto;
}
.video_about + .title2{
	margin-top:0;
}


.works{
	display:flex;
	margin: 0 0 200px 0;
	flex-direction: row;
	justify-content: space-between;
	}	

.works_title{

	border-top: 1px solid #fff;	
	margin: 20px 0 0 0;
	display: flex;
	flex-direction: column;

	}	

.works_title a{
	margin: 20px 0 0 0;
	display: flex;
	flex-direction: column;
	font: 20px/24px  'TildaSans';
	}	


.txt + .works_title{
	margin-top: 60px;
}

.works_title + .txt{
	margin-top: 60px;
}

.works_title.interlink{
	margin: 100px 0 0 0;
}

.works_title.interlink + .works_title.interlink{
	margin-top: 20px;
}	









.line{
	border-top: 1px solid #000;	
	margin: 130px 0 0 0;
	display: flex;
	flex-direction: column;
}

/* На мобильном одно слово «конфиденциальности» (17 символов) не влезает в 58px
   и выталкивает страницу в горизонтальную прокрутку (проверено: scrollWidth 533 > 412).
   Для этого заголовка задаём меньший кегль и переносы по слогам. */
.title-long h1{
	overflow-wrap: break-word;
	hyphens: auto;
}

@media screen and (max-width:1000px){
	.title-long h1{
		font: 44px/38px 'TildaSansSemibold';
	}
}

/* Ссылка на политику конфиденциальности в подвале. Лежит внутри .up-group — столбца,
   прижатого к правому краю (display:flex;flex-direction:column;align-items:flex-end),
   поэтому на десктопе переносится на строку ниже «Наверх» как однострочный блок вправо.
   Отступ сверху задаёт этот margin. */
.privacy-row{
	margin: 20px 0 0 0;
}

.privacy-row a{
	color: #595959;
}


.get_in_touch{
	font: 48px/38px 'TildaSansBold';
	margin: 45px 0 40px 0;
	width: 50%;
	letter-spacing:-0.04em;
}
/* Телефон в блоке контакта: вторичный по весу к Telegram, но кликабельный (tel:).
   Размер меньше, чтобы не спорить с основным призывом и не ломать ширину 50%. */
.get_in_touch .phone{
	display: inline-block;
	margin-top: 12px;
	font: 24px/30px 'TildaSansMedium';
	letter-spacing: 0;
}


.contact{
	display: flex;
	flex-direction: row;
	padding: 0 0 150px 0;
}

.contact div{
	display: flex;
	flex-direction: row;
	padding: 0 20px 0 0;
}

.contact div a{
	border:none;
	
}




/*inner*/

.big1, .big2{
	margin-bottom: 100px; 
}

.big1 img{
	width:100%;
	height:auto;
}
.big2 img{
	width:100%;
	height:auto;
}
.big2 .logo-box{
	position: relative;
	width:100%;
	padding-bottom:50%;
	box-sizing:border-box;
	border:1px solid #fff;
}
.big2 .logo-box img{
	position: absolute;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%);
	width:auto;
	height:auto;
	max-width:40%;
	max-height:60%;
	filter:brightness(0) invert(1);
}



.txt{
	display: flex;	
	justify-content: left;
	width: 100%; 
	margin: 0 0 40px 0;
	
}

.txt p{
	display: block; 
	width: 50%;
	font: 20px/24px  'TildaSans';

	}

/* всплывающее изображение у курсора (ссылки «Избранных работ») */
.work-preview{
	display:none;
	position:fixed;
	z-index:1000;
	pointer-events:none;
	width:280px;
}
.work-preview.reveal{
	display:block;
}
.work-preview img{
	display:block;
	width:100%;
	height:auto;
}




@media screen and (max-width:1290px){

/*таблет: ×0.75 от десктопа*/

.works{
	margin: 0 0 160px 0;
	}			

.wrap_right{
	padding: 140px 0 0 0;
}

.title h1{
	font: 80px/64px 'TildaSansSemibold';
	margin: 60px 0 230px 0;
	letter-spacing:-0.04em;
}

.title2{
	font: 36px/29px 'TildaSansSemibold';
	margin: 100px 0 22px 0;
	width: 50%;
	letter-spacing:-0.04em;
}

.video_about{
	margin:100px 0 30px 0;
}

.get_in_touch{
	font: 36px/29px 'TildaSansBold';
	margin: 34px 0 30px 0;
	letter-spacing:-0.04em;
}

.line{
	margin: 100px 0 0 0;
}

.big1, .big2{
	margin-bottom: 50px; 
}

.txt + .works_title{
	margin-top: 45px;
}

.works_title + .txt{
	margin-top: 45px;
}
}

.works_title.interlink{
	margin: 75px 0 0 0;
}

.txt{
	margin: 0 0 30px 0;
}


@media screen and (max-width:1000px){
	
/*мобайл: ×0.45 от десктопа*/

.header{
	font: 13px/13px  'TildaSans';
}

.social{
	font: 13px/13px  'TildaSans';
	display: flex;
	flex-direction: column;
	margin: 0 0 80px 0;
}

.up-group{
	align-items: stretch;
	margin-left: 0;
}

.privacy-row{
	margin: 14px 0 0 0;
}

.up-row{
	margin-left: 0;
	margin-top: 20px;
}

.menu{
	font: 13px/13px 'TildaSans';
	margin: 0 0 0 0;
	width: 320px;
}

.header a, .social a, .privacy-row a{
	font: 18px/22px  'TildaSans';
}

.lang-switch{
	font: 18px/22px 'TildaSans';
	margin-right: 20px;
}

.menu a{
	display:inline-block;
	margin: 0 15px 25px 0;
 }

.title h1{
	font: 58px/46px 'TildaSansSemibold';
	margin: 36px 0 135px 0;
	width:100%;
	letter-spacing:-0.04em;
}

.video_about{
	display:block;
	width:75%;
	height:auto;
	margin:58px 0 22px 0;
}

.title2{
	font: 28px/22px 'TildaSansSemibold';
	margin: 58px 0 26px 0;
	width:75%;
	letter-spacing:-0.04em;
}

.works{
	display:flex;
	margin: 0 0 0 0;
	flex-direction: row;
	flex-wrap: wrap;
	}

.line{
	border-top: 1px solid #000;	
	margin: 58px 0 0 0;
	display: flex;
	flex-direction: column;
}

.get_in_touch{
	font: 28px/24px 'TildaSansBold';
	margin: 20px 0 18px 0;   
	letter-spacing:-0.04em;
}
.get_in_touch .phone{
	margin-top: 10px;
	font: 20px/26px 'TildaSansMedium';
}

.contact{
	display: flex;
	flex-direction: row;
	padding: 0 0 50px 0;
}

.contact div{
	display: flex;
	flex-direction: row;
	padding: 0 20px 0 0;
}

.contact div a{
	border:none;
	
}

.big1, .big2{
	margin-bottom: 50px; 
}

.txt p{
	display: block; 
	width: 75%;
	font: 18px/22px  'TildaSans';

	}

.works_title a{
	font: 18px/22px  'TildaSans';
	}

.big2 img{
	width:100%;
	height:auto;
}

.big2 .logo-box{
	padding-bottom:100%;
}

.big2 .logo-box img{
	max-width:50%;
	max-height:40%;
}

.txt + .works_title{
	margin-top: 30px;
}

.works_title + .txt{
	margin-top: 30px;
}

.works_title.interlink{
	margin: 45px 0 0 0;
}

.big2 + .works_title.interlink{
	margin-top: 60px;
}

.txt{
	margin: 0 0 18px 0;
}


}










@media only screen and (max-width: 850px) and (orientation:landscape) {

  body {
    /* -webkit-text-size-adjust: none;*/
	-webkit-text-size-adjust: 100%;
  }

}


/*menu*/

.menu-container {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    width: 360px; height: 60px; border-radius: 20px;
    background-color: transparent; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000; overflow: hidden;
    pointer-events: none;
}

.menu-container.is-open {
    height: 420px; background-color: #fff;
    pointer-events: auto;
}

.menu-header {
    width: 60px; height: 60px; margin: 0 auto; display: flex; justify-content: center; align-items: center; cursor: pointer;
    pointer-events: auto;
}

.icon-burger { width: 60px; height: 8px; position: relative; transform: translateY(-2px);}

.icon-burger span {
    display: block; width: 100%; height: 2px; background-color: #fff; 
    position: absolute; left: 0; transition: all 0.4s ease;
}

.icon-burger span:first-child { top: 0; }
.icon-burger span:last-child { bottom: 0; }

.is-open .icon-burger span { background-color: #000; }
.is-open .icon-burger span:first-child { top: 50%; transform: translateY(-50%) rotate(15deg); }
.is-open .icon-burger span:last-child { bottom: 50%; transform: translateY(50%) rotate(-15deg); }

.menu-list {
    margin: -20px 0 0 0; padding: 0 30px; list-style: none; text-align: left;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
    height: calc(100% - 60px);
    display: flex; flex-direction: column; justify-content: center;
}

.is-open .menu-list { opacity: 1; pointer-events: auto; }
.menu-list li { margin-bottom: 12px; }
.menu-list li:last-child { margin-bottom: 0; }
.menu-list a {
    font-family: 'TildaSansMedium';
    text-decoration: none; color: #000; font-size: 16px; 
    letter-spacing: -0.02em; transition: opacity 0.2s; display: block;
}
.menu-list a:hover { opacity: 0.4; }


/* Хлебные крошки — самый мелкий реально видимый текстовый стиль (как .menu-list) */
.breadcrumbs{
	font: 16px/16px 'TildaSans';
	margin: 60px 0 0 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	color: #fff;
}
.breadcrumbs a{ color: #fff; }
.breadcrumbs a:hover{ color: #595959; }
.breadcrumbs .crumb-sep{ color: #595959; margin: 0 8px; }
.breadcrumbs .crumb-current{ color: #595959; }
.breadcrumbs ~ .title h1{ margin-top: 20px; }


/* FAQ-аккордеон на главной */
.faq{
	margin: 0;
}
.faq .faq-item{
	border-top: 1px solid #fff;
}
.faq .faq-item:last-child{
	border-bottom: 1px solid #fff;
}
.faq .faq-heading{
	margin: 0;
	font: inherit;
}
.faq .faq-q{
	width: 100%;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0;
	padding: 22px 0;
	background: transparent;
	border: 0;
	color: #fff;
	text-align: left;
	cursor: pointer;
	font: 20px/24px 'TildaSans';
}
.faq .faq-icon{
	position: relative;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
}
.faq .faq-icon::before,
.faq .faq-icon::after{
	content: '';
	position: absolute;
	background: #fff;
	transition: transform .3s ease, opacity .3s ease;
}
.faq .faq-icon::before{ left: 0; top: 6px; width: 14px; height: 2px; }
.faq .faq-icon::after{ left: 6px; top: 0; width: 2px; height: 14px; }
.faq .faq-item.is-open .faq-icon::after{ transform: scaleY(0); opacity: 0; }
.faq .faq-a{
	max-height: 0;
	overflow: hidden;
	transition: max-height .45s ease;
}
.faq .faq-a-inner{ padding: 0 0 24px 0; }
.faq .faq-a-inner p{
	width: 50%;
	font: 20px/24px 'TildaSans';
	color: #595959;
	margin: 0;
}


/* Мини-квиз в статьях */
.quiz{
	margin: 0;
}
.quiz .quiz-item{
	padding: 30px 0;
}
.quiz .quiz-q{
	font: 24px/30px 'TildaSansMedium';
	margin: 0 0 20px 0;
	width: 75%;
}
.quiz .quiz-opts{
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 75%;
}
.quiz .quiz-opt{
	display: block;
	width: 100%;
	padding: 14px 18px;
	background: transparent;
	border: 1px solid rgba(255,255,255,.35);
	color: #fff;
	text-align: left;
	cursor: pointer;
	font: 20px/24px 'TildaSans';
	transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.quiz .quiz-opt:hover{ border-color: #fff; }
.quiz .quiz-opt:disabled{ cursor: default; }
.quiz .quiz-opt.is-correct{ border-color: #fff; background: #fff; color: #000; }
.quiz .quiz-opt.is-wrong{ border-color: #595959; color: #595959; text-decoration: line-through; }
.quiz .quiz-explain{
	max-height: 0;
	overflow: hidden;
	transition: max-height .4s ease;
}
.quiz .quiz-explain > span{
	display: block;
	padding: 14px 0 0 0;
	font: 18px/22px 'TildaSans';
	color: #595959;
}
.quiz .quiz-result{
	margin: 40px 0 0 0;
	text-align: center;
	opacity: 0;
}
.quiz .quiz-result.is-visible{
	animation: quizPop .55s cubic-bezier(.2,.7,.3,1) forwards;
}
.quiz .quiz-score{
	font: 90px/1 'TildaSansSemibold';
	letter-spacing: -0.04em;
}
.quiz .quiz-result-text{
	margin: 16px 0 0 0;
	font: 20px/24px 'TildaSans';
	color: #595959;
}
@keyframes quizPop{
	0%{ opacity: 0; transform: translateY(14px) scale(.96); }
	60%{ opacity: 1; transform: translateY(-4px) scale(1.02); }
	100%{ opacity: 1; transform: translateY(0) scale(1); }
}


@media screen and (max-width:1000px){
	.breadcrumbs{ font: 16px/16px 'TildaSans'; margin: 36px 0 0 0; }
	.breadcrumbs ~ .title h1{ margin-top: 14px; }
	.faq .faq-q{ font: 18px/22px 'TildaSans'; }
	.faq .faq-a-inner p{ width: 75%; font: 18px/22px 'TildaSans'; }
	.quiz .quiz-q{ font: 20px/26px 'TildaSansMedium'; width: 100%; }
	.quiz .quiz-opts{ width: 100%; }
	.quiz .quiz-opt{ font: 18px/22px 'TildaSans'; padding: 12px 14px; }
	.quiz .quiz-explain > span{ font: 16px/20px 'TildaSans'; }
	.quiz .quiz-score{ font: 64px/1 'TildaSansSemibold'; }
	.quiz .quiz-result-text{ font: 18px/22px 'TildaSans'; }
}


/* Кнопка скачивания PDF-чек-листа */
.btn-download{
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 40px 0;
	padding: 16px 28px;
	border: 1px solid #fff;
	color: #fff;
	text-decoration: none;
	font: 20px/24px 'TildaSans';
	background: transparent;
	transition: background-color .3s ease, color .3s ease;
}
.btn-download:hover{ background: #fff; color: #000; }
.btn-download-icon{ font-size: 20px; line-height: 1; }

@media screen and (max-width:1000px){
	.btn-download{ font: 18px/22px 'TildaSans'; padding: 14px 22px; margin: 0 0 18px 0; }
	.btn-download-icon{ font-size: 18px; }
}


/* Блок перелинковки «Читайте также» в статьях */
.article-more{
	margin: 0 0 40px 0;
}
.article-more h3{
	font: 24px/30px 'TildaSansMedium';
	margin: 0 0 16px 0;
}
.article-more p{
	margin: 0 0 8px 0;
	font: 20px/24px 'TildaSans';
}
.article-more a{ color: #fff; }
.article-more a:hover{ color: #595959; }


/* Блок-врезка «Факт» и нумерованный список этапов в статьях */
.title2 h3{
	margin: 0;
	font: inherit;
}
.txt a, .fact a, .steps a{
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.fact{
	width: 50%;
	margin: 0 0 40px 0;
	padding: 0 0 0 28px;
	border-left: 2px solid #fff;
}
.fact h2,.fact h3{
	font: 24px/30px 'TildaSansMedium';
	margin: 0 0 14px 0;
}
.fact p{
	margin: 0;
	font: 20px/24px 'TildaSans';
	color: #595959;
}
.steps{
	width: 50%;
	margin: 0 0 40px 0;
	padding: 0 0 0 26px;
	font: 20px/24px 'TildaSans';
}
.steps li{ margin: 0 0 12px 0; }
.steps li::marker{ color: #595959; }
ul.steps{ list-style: disc; }
.steps-t{ font-family: 'TildaSansMedium'; }

/* Карточки услуг/проектов (главная «Что я делаю», страница «Разработка дизайна сайта») */
.cards{ margin: 0; }
.card{
	border-top: 1px solid #fff;
	margin: 24px 0 0 0;
	padding: 24px 0 0 0;
}
.card h3{ margin: 0; }
.card h3 a{
	display: inline-block;
	font: 24px/30px 'TildaSansMedium';
}
.card h3 a:hover{ color: #595959; }
.card p{
	margin: 10px 0 0 0;
	width: 50%;
	font: 20px/24px 'TildaSans';
	color: #595959;
}
.subhead{
	margin: 40px 0 0 0;
	font: 24px/30px 'TildaSansMedium';
}

@media screen and (max-width:1000px){
	.article-more h3{ font: 20px/26px 'TildaSansMedium'; }
	.article-more p{ font: 18px/22px 'TildaSans'; }
	.article-more{ margin: 0 0 18px 0; }
	.fact{ width: 75%; padding: 0 0 0 20px; margin: 0 0 18px 0; }
	.fact h2,.fact h3{ font: 20px/26px 'TildaSansMedium'; }
	.fact p{ font: 18px/22px 'TildaSans'; }
	.steps{ width: 75%; margin: 0 0 18px 0; padding: 0 0 0 22px; font: 18px/22px 'TildaSans'; }
	.steps li{ margin: 0 0 10px 0; }
	.card{ margin: 18px 0 0 0; padding: 18px 0 0 0; }
	.card h3 a{ font: 20px/26px 'TildaSansMedium'; }
	.card p{ width: 75%; font: 18px/22px 'TildaSans'; }
	.subhead{ margin: 30px 0 0 0; font: 20px/26px 'TildaSansMedium'; }
}
