/* =========================================================
   DevSchool — brand layer
   ========================================================= */

/* ---------- Logo ---------- */
.site-logo{ width:auto; }.ds-logo{
	display:inline-flex;
	align-items:center;
	gap:11px;
	text-decoration:none;
}
.ds-logo:hover{ text-decoration:none; }
.ds-logo__mark{ flex:0 0 auto; display:block; }
.ds-logo__text{
	font-family:'Jost', sans-serif;
	font-weight:600;
	font-size:25px;
	line-height:1;
	letter-spacing:-0.5px;
	color:#0b104a;
}
.ds-logo__text b{ color:#525fe1; font-weight:700; }
.ds-logo--footer{ margin-bottom:20px; }
.ds-logo--footer .ds-logo__mark{
	box-shadow:0 6px 16px rgba(82,95,225,.28);
	border-radius:12px;
}

/* ---------- Contact cards: equal-height colour panels ---------- */
@media only screen and (min-width:576px){
	.address_area .row.text-center > [class*="col-"]{
		display:flex;
	}
	.address_area .row.text-center > [class*="col-"] > .single_address{
		width:100%;
	}
	.address_area .row.text-center + .row .section-title{
		margin-top:58px;
	}
}

/* ---------- Mobile menu CTA ---------- */
.sm_menu_outer .mobile_menu li.ds-mobile-cta a{
	background:#f26b65;
	color:#fff;
	margin:24px 40px 0;
	padding:16px 20px;
	border-radius:2px;
	text-align:center;
	font-weight:600;
	text-transform:none;
	font-size:15px;
}
.sm_menu_outer .mobile_menu li.ds-mobile-cta a:hover,
.sm_menu_outer .mobile_menu li.ds-mobile-cta a:focus{
	background:#525fe1;
	color:#fff;
}

/* ---------- Header CTA (fixes inline-button overlap) ---------- */
@media only screen and (min-width:992px){
	#main-menu ul li{ padding:0 10px; }
	#main-menu ul li a{ font-size:15px; }
	#navigation #main-menu .menu-item-has-children{ margin-right:6px; }
}
@media only screen and (min-width:1200px){
	#navigation .row > .col-20:first-child{ width:18%; }
	#navigation .row > .col-60{ width:62%; }
}
#navigation .row > .col-20.text-end{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:16px;
}
#navigation .header-btn{
	font-size:16px;
	padding-right:0;
	white-space:nowrap;
}
#navigation .btn_one{
	display:inline-block;
	padding:13px 22px;
	font-size:15px;
	white-space:nowrap;
}
@media only screen and (min-width:1200px){
	#navigation .row > .col-20.text-end{ display:flex !important; }
}

/* ---------- Typography tuned for Russian ---------- */
.hero-text h1{ font-size:52px; }
.section-title h2{ line-height:1.25; }
.section-title p{ max-width:760px; margin-left:auto; margin-right:auto; }
.ab_content h2{ line-height:1.3; }
.section-top-title h1{ font-size:44px; }
.cour_btn{ margin-top:56px; }

/* Russian words are longer than English ones — scale headings down on small screens */
@media only screen and (max-width:960px){
	.hero-text h1{ font-size:44px; line-height:56px; }
	.section-title h2{ font-size:34px; }
	.ab_content h2{ font-size:32px; line-height:42px; }
	.section-top-title h1{ font-size:38px; }
	.single_event_text_single h4{ font-size:30px; }
	.error_page h2{ font-size:38px; }
}
@media only screen and (max-width:768px){
	.hero-text h1{ font-size:36px; line-height:46px; }
	.section-title h2{ font-size:30px; }
	.ab_content h2{ font-size:28px; line-height:38px; }
	.section-top-title h1{ font-size:32px; }
	.single_event_text_single h4{ font-size:26px; }
	.error_page h2{ font-size:32px; }
}
@media only screen and (max-width:480px){
	.hero-text h1{ font-size:29px; line-height:38px; }
	.section-title h2{ font-size:26px; }
	.ab_content h2{ font-size:24px; line-height:34px; }
	.section-top-title h1{ font-size:25px; }
	.single_event_text_single h4{ font-size:22px; }
	.error_page h2{ font-size:28px; }
	.ds-code{ font-size:12px; }
	.ds-code pre{ padding:16px; }
	.ds-logo__text{ font-size:22px; }
}

/* ---------- Small utility blocks ---------- */
.ds-kicker{
	display:inline-block;
	font-family:'Jost', sans-serif;
	font-weight:600;
	font-size:13px;
	letter-spacing:2px;
	text-transform:uppercase;
	color:#525fe1;
	background:#ECEDFF;
	border-radius:40px;
	padding:7px 16px;
	margin-bottom:18px;
}
.ds-kicker--coral{ color:#f26b65; background:#FFEFEE; }

/* Language / age chips inside course cards */
.ds-chip{
	display:inline-block;
	font-family:'Jost', sans-serif;
	font-weight:600;
	font-size:13px;
	letter-spacing:.4px;
	color:#525fe1;
	background:#ECEDFF;
	border-radius:30px;
	padding:5px 14px;
	margin:0 6px 6px 0;
}
.ds-chip--coral{ color:#f26b65; background:#FFEFEE; }
.ds-chip--dark{ color:#282a74; background:#F3F4FF; }

/* ---------- Fake code window ---------- */
.ds-code{
	background:#0b104a;
	border-radius:18px;
	box-shadow:0 18px 40px rgba(11,16,74,.18);
	overflow:hidden;
	font-family:'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
	font-size:14px;
	line-height:1.7;
	color:#e6e8ff;
}
.ds-code__bar{
	display:flex;
	align-items:center;
	gap:7px;
	padding:11px 16px;
	background:#151b5c;
	border-bottom:1px solid rgba(255,255,255,.08);
}
.ds-code__bar i{
	width:11px;height:11px;border-radius:50%;display:block;
}
.ds-code__bar i:nth-child(1){ background:#f26b65; }
.ds-code__bar i:nth-child(2){ background:#f6c453; }
.ds-code__bar i:nth-child(3){ background:#4ecb8d; }
.ds-code__bar span{
	margin-left:8px;
	font-family:'Jost', sans-serif;
	font-size:13px;
	letter-spacing:.5px;
	color:#9aa0e0;
}
.ds-code pre{
	margin:0;
	padding:20px 22px;
	overflow-x:auto;
	white-space:pre;
}
.ds-code .c-key{ color:#c39bff; }
.ds-code .c-fn{ color:#7fd6ff; }
.ds-code .c-str{ color:#9be7a7; }
.ds-code .c-num{ color:#f7b267; }
.ds-code .c-com{ color:#7b81c4; }
.ds-code .c-txt{ color:#e6e8ff; }

/* ---------- Icon + text rows ---------- */
.ds-feature{ display:flex; align-items:flex-start; gap:16px; }
.ds-feature__icon{
	flex:0 0 auto;
	width:48px;height:48px;
	border-radius:14px;
	display:flex;align-items:center;justify-content:center;
	font-size:20px;
	color:#525fe1;
	background:#ECEDFF;
}
.ds-feature__icon--coral{ color:#f26b65; background:#FFEFEE; }
.ds-feature__icon--green{ color:#2f8f6b; background:#E6F8F0; }
.ds-feature__icon--violet{ color:#57216C; background:#FDF3FA; }
.ds-feature h4{
	margin:0 0 6px;
	font-size:19px;
	font-weight:600;
	color:#0b104a;
}
.ds-feature p{ margin:0; font-size:15px; }
.ds-features{
	display:grid;
	grid-template-columns:repeat(2,1fr);
	gap:26px 30px;
	margin-top:34px;
}
@media only screen and (max-width:767px){
	.ds-features{ grid-template-columns:1fr; }
}

/* ---------- Hero search field ---------- */
.home_si{ text-transform:none; letter-spacing:0; }
.home_sb button{ white-space:nowrap; }
@media only screen and (max-width:767px){
	.home_sb button{ font-size:17px; padding:0 14px; }
	.home_sb button i{ margin-left:4px; }
}

/* ---------- Equal-height feature cards ---------- */
@media only screen and (min-width:768px){
	.top_cat__area .row > [class*="col-"]{ display:flex; }
	.top_cat__area .single_tp{ width:100%; display:flex; flex-direction:column; }
	.top_cat__area .single_tp h3{ min-height:56px; }
}

/* ---------- Course card meta ---------- */
.single_course .ds-meta{
	display:flex;
	flex-wrap:wrap;
	gap:14px 22px;
	padding:0 20px 14px;
	font-size:15px;
}
.single_course .ds-meta span{ color:#6d7193; }
.single_course .ds-meta i{ color:#525fe1; margin-right:6px; }
.single_course .ds-desc{
	display:block;
	padding:0 20px;
	margin:0 0 14px;
	font-size:15px;
	line-height:1.6;
	color:#6d7193;
}
.single_course .ds-age{
	position:absolute;
	top:14px; left:14px;
	background:rgba(11,16,74,.82);
	color:#fff;
	font-size:12px;
	font-weight:600;
	letter-spacing:.4px;
	padding:4px 12px;
	border-radius:30px;
	z-index:2;
}

/* ---------- Section helper ---------- */
.ds-note{
	background:#F5F5FD;
	border-left:4px solid #525fe1;
	border-radius:0 14px 14px 0;
	padding:20px 24px;
	margin-top:26px;
}
.ds-note p{ margin:0; }
.ds-note strong{ color:#0b104a; }

/* ---------- Stat strip inside about page ---------- */
.ds-stats{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	gap:18px;
	margin-top:38px;
}
.ds-stats__item{
	background:#fff;
	border:1px solid #eee;
	border-radius:18px;
	padding:22px 18px;
	text-align:center;
}
.ds-stats__item b{
	display:block;
	font-family:'Jost', sans-serif;
	font-size:38px;
	font-weight:600;
	color:#525fe1;
	line-height:1;
}
.ds-stats__item span{ font-size:15px; color:#6d7193; }
@media only screen and (max-width:575px){
	.ds-stats{ grid-template-columns:repeat(2,1fr); }
}

/* ---------- Steps / timeline ---------- */
.ds-steps{ counter-reset: ds-step; }
.ds-steps__item{
	position:relative;
	padding-left:72px;
	margin-bottom:34px;
}
.ds-steps__item::before{
	counter-increment: ds-step;
	content: counter(ds-step, decimal-leading-zero);
	position:absolute;
	left:0; top:0;
	width:48px;height:48px;
	border-radius:14px;
	background:#525fe1;
	color:#fff;
	font-family:'Jost', sans-serif;
	font-weight:600;
	font-size:18px;
	display:flex;
	align-items:center;
	justify-content:center;
}
.ds-steps__item h4{
	margin:4px 0 6px;
	font-size:20px;
	font-weight:600;
	color:#0b104a;
}
.ds-steps__item p{ margin:0; }

/* ---------- Blog / article body ---------- */
.ds-article p{ margin-bottom:20px; }
.ds-article h3{
	font-size:26px;
	font-weight:600;
	color:#0b104a;
	margin:32px 0 14px;
}
.ds-article ul{ margin-bottom:24px; }
.ds-article li{ margin-bottom:10px; }
.ds-article blockquote{
	border-left:4px solid #f26b65;
	background:#FFF6F5;
	padding:20px 24px;
	margin:26px 0;
	border-radius:0 14px 14px 0;
	font-size:18px;
	color:#0b104a;
}

/* ---------- FAQ ---------- */
.ds-faq__item{ margin-bottom:16px; }
.ds-faq__q{
	font-family:'Jost', sans-serif;
	font-weight:600;
	font-size:20px;
	color:#0b104a;
	margin-bottom:8px;
}
.ds-faq__a{ margin:0; }

/* ---------- Pricing ---------- */
.ds-plan{ position:relative; }
.ds-plan__badge{
	position:absolute;
	top:-14px; right:20px;
	background:#f26b65;
	color:#fff;
	font-size:12px;
	font-weight:600;
	letter-spacing:1px;
	text-transform:uppercase;
	padding:6px 14px;
	border-radius:30px;
}
.ds-plan__price{
	font-family:'Jost', sans-serif;
	font-weight:600;
	font-size:34px;
	color:#0b104a;
	line-height:1.2;
}
.ds-plan__price small{
	font-size:15px;
	font-weight:400;
	color:#6d7193;
}

/* Карточки тарифов: одинаковая высота, кнопки по нижнему краю */
.pricing-content .row.text-center > [class*="col-"]{
	display:flex;
}
.pricing-content .single-pricing{
	display:flex;
	flex-direction:column;
	width:100%;
}
.pricing-content .single-pricing ul{ flex:0 0 auto; }
.pricing-content .single-pricing .btn_one{
	margin-top:auto;
	align-self:center;
}
.pricing-content .ds-pricing__cta{ margin-top:30px; }
.pricing-content .ds-faq__item ~ .text-center{ margin-top:20px; }
@media only screen and (max-width:991px){
	.pricing-content .single-pricing .btn_one{
		width:100%;
		white-space:normal;
	}
}
@media only screen and (max-width:767px){
	.pricing-content .row.text-center > [class*="col-"]{
		display:block;
		width:100%;
	}
	.pricing-content .single-pricing .btn_one{ margin-top:0; }
	.pricing-content .ds-pricing__cta{ margin-top:22px; }
}
@media only screen and (max-width:400px){
	.pricing-content .btn_one{
		white-space:normal;
		max-width:100%;
		text-align:center;
	}
}

/* ---------- Sticky header on phones and tablets ---------- */
/* Тема задаёт html,body{height:100%} — из-за этого sticky не работает: контейнер
   шапки заканчивается на первом экране. Разрешаем body расти по содержимому. */
body{
	height:auto;
	min-height:100%;
}
@media only screen and (max-width:1199px){
	#navigation{
		position:sticky;
		top:0;
		z-index:900;
		background:#fff;
		box-shadow:0 8px 22px rgba(11,16,74,.08);
	}
	/* JS вешает .navbar-fixed при прокрутке — на узких экранах шапка остаётся на месте */
	#navigation.navbar-fixed{
		display:block;
		position:sticky;
		top:0;
		width:auto;
		opacity:1;
		animation:none;
		box-shadow:0 8px 22px rgba(11,16,74,.08);
	}
}
@media only screen and (max-width:991px){
	/* бургер всегда под рукой, даже при прокрутке страницы */
	#sm_menu_ham{
		position:fixed;
		top:30px;
		right:11%;
	}
}
@media only screen and (max-width:575px){
	#sm_menu_ham{ top:40px; }
}

/* ---------- Blog cards: equal height, button at the bottom ---------- */
.blog_area .row > [class*="col-"]{
	display:flex;
}
.blog_area .single_blog{
	display:flex;
	flex-direction:column;
	width:100%;
}
.blog_area .single_blog .content_box{
	display:flex;
	flex-direction:column;
	flex:1 0 auto;
}
.blog_area .single_blog .content_box .btn_one{
	margin-top:auto;
	align-self:flex-start;
}

/* ---------- Выровненные карточки сетки ---------- */
/* Ячейка с карточкой: карточка растягивается на всю высоту колонки,
   описание/цитата добирает свободное место — подвал карточки (цена,
   подпись автора) встаёт на одну линию у всех карточек в ряду. */
.ds-grid-cell{ display:flex; }
.ds-grid-cell > .single_course,
.ds-grid-cell > .testimonial{
	display:flex;
	flex-direction:column;
	width:100%;
}
.ds-grid-cell > .single_course .ds-desc{ flex:1 0 auto; }
.ds-grid-cell > .testimonial .testimonial_content{ flex:1 0 auto; }
.ds-grid-cell .ds-flex{ flex:1 0 auto; }

/* Карусель отзывов: карточки в одном ряду одной высоты (2 карточки в ряд) */
@media only screen and (min-width:1000px){
	#testimonial-slider2 .owl-wrapper{
		display:flex !important;
		align-items:stretch;
	}
	#testimonial-slider2 .owl-item{
		float:none;
		flex:0 0 auto;
	}
	#testimonial-slider2 .testimonial{
		display:flex;
		flex-direction:column;
		height:100%;
	}
	#testimonial-slider2 .testimonial_content{ flex:1 0 auto; }
}

/* ---------- Превью преподавателя на странице курса ---------- */
.instructor-thumb img{
	width:150px;
	height:150px;
	object-fit:cover;
	border-radius:100px;
	border:5px solid #fff;
	box-shadow:0 8px 22px rgba(11,16,74,.10);
}

/* ---------- Photo band with overlay content ---------- */
.ds-video-band.va2{ padding-top:70px; padding-bottom:70px; }
.ds-video-band .container{ position:relative; z-index:2; }
.ds-video-band__inner{
	background:rgba(11,16,74,.84);
	border-radius:20px;
	padding:44px 42px;
	max-width:840px;
	margin:0 auto;
	text-align:center;
	color:#fff;
	box-shadow:0 24px 50px rgba(11,16,74,.25);
}
.ds-video-band__inner h3{
	color:#fff;
	font-size:32px;
	font-weight:600;
	line-height:1.25;
	margin:14px 0 12px;
}
.ds-video-band__inner p{
	color:#dfe1ff;
	font-size:17px;
	margin-bottom:24px;
}
.ds-video-band .ds-kicker{ background:rgba(255,255,255,.16); color:#fff; }
@media only screen and (max-width:768px){
	.ds-video-band__inner{ padding:32px 24px; }
	.ds-video-band__inner h3{ font-size:25px; }
}

/* ---------- Buttons ---------- */
.btn_one{ display:inline-block; white-space:nowrap; }
.single_footer .btn_one{ padding:12px 18px; font-size:15px; }

/* ---------- Section heading (no per-word capitalisation in Russian) ---------- */
.section-top-title h1{ text-transform:none; }

/* ---------- Social widget (keep labels next to icons) ---------- */
.single_social .social_item a{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:10px;
}
.single_social .item-list{ float:none; }

/* ---------- Footer tweaks ---------- */
.single_footer .ds-logo + p{ margin-bottom:20px; }
.foot_copy p{ font-size:14px; }
