/* WordPress/Astra integration layer */
html { background: var(--bg); }
body.devnew-theme { margin:0; min-width:320px; }
body.devnew-theme #page, body.devnew-theme .site { background:transparent; }
#wpadminbar { background:#1d2327; }
.admin-bar .header-menu { top:32px; height:calc(100vh - 32px); }
@media(max-width:782px){.admin-bar .header-menu{top:46px;height:calc(100dvh - 46px)}}
.devnew-header button { padding:0; border:0; }
.header-search-close { background:transparent; color:inherit; }
.header-user { position:relative; }
.header-user img { width:40px; height:40px; object-fit:cover; border-radius:50%; }
.devnew-fast-result { display:grid; grid-template-columns:52px 1fr; gap:12px; align-items:center; padding:7px 0; }
.devnew-fast-result img { width:52px; height:40px; object-fit:cover; border-radius:8px; }
.devnew-text-logo { display:inline-flex; color:#fff; font-size:22px; font-weight:800; letter-spacing:.5px; }
.devnew-page, .mor-fullblog, .devnew-woocommerce { color:var(--text); }
.devnew-page img, .dle-text img { max-width:100%; height:auto; border-radius:12px; }
.navigation.pagination, .woocommerce-pagination { margin:35px 0; }
.nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.nav-links a,.nav-links span { display:inline-flex; min-width:38px; height:38px; align-items:center; justify-content:center; background:var(--bg2); border-radius:10px; padding:0 12px; }
.nav-links .current { background:var(--color1); color:#fff; }
.more-temp_bg img { width:100%; height:100%; object-fit:cover; }
.more-temp_short { color:var(--text2); line-height:1.5; font-size:14px; }
.more-temp_price .woocommerce-Price-amount { color:#fff; }
.more-list_item .woocommerce-Price-amount { color:inherit; }
.more-blog_item { height:100%; }
.e-grid3 > article { min-width:0; height:100%; }
.mor-gallery_main .swiper-slide img { width:100%; height:100%; object-fit:contain; background:var(--bg2); }
.mor-gallery_thumbs .swiper-slide { width:95px; cursor:pointer; }
.mor-gallery_thumbs img { width:95px; height:62px; object-fit:cover; border-radius:10px; }
.devnew-product-side { position:static; width:auto; height:auto; padding:0; border:0; overflow:visible; align-items:stretch; }
.devnew-product-side .quantity { display:inline-flex; margin-right:10px; }
.devnew-product-side .quantity input.qty { width:80px !important; }
.devnew-product-side form.cart { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.devnew-product-side button.single_add_to_cart_button { display:inline-flex; align-items:center; justify-content:center; background:var(--color1)!important; color:#fff!important; border-radius:12px!important; padding:14px 22px!important; font-weight:700!important; }
.devnew-product-side button.single_add_to_cart_button:hover { background:var(--color2)!important; }
.mor-full_price .price { font-size:inherit; }
.mor-full_price del { opacity:.5; margin-right:8px; }
.mor-full_price ins { text-decoration:none; }
.woocommerce-notices-wrapper { grid-column:1/-1; margin-bottom:20px; }
.woocommerce-message,.woocommerce-info,.woocommerce-error { background:var(--bg2)!important; color:var(--text)!important; border-radius:14px; border:0!important; }
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button { border-radius:12px!important; }
.woocommerce-result-count { color:var(--text2); }
.woocommerce-ordering select { min-width:220px; }
.comments-area { max-width:760px; }
.comment-list { margin:0 0 25px; }
.comment-list li { background:var(--bg2); padding:18px; border-radius:16px; margin-bottom:12px; }
.comment-meta { margin-bottom:10px; }
.comment-form p { margin-bottom:14px; }
.comment-form input,.comment-form textarea { border:0!important; }
.devnew-404 { text-align:center; padding:80px 20px; }
.devnew-404 .e-h1 { font-size:100px; color:var(--color1); margin-bottom:0; }
.devnew-menu-group > span { display:flex; align-items:center; cursor:pointer; color:var(--text2); font-weight:500; margin:5px 0; }
.devnew-menu-group > span:after { content:"\f054"; font-family:"Font Awesome 6 Pro"; margin-left:auto; transition:.3s; }
.devnew-menu-group.active > span:after { transform:rotate(90deg); }
.devnew-menu-group .devnew-submenu { display:none; background:var(--bg2); border-radius:var(--radius); padding:8px; margin:10px 0; }
.devnew-menu-group.active .devnew-submenu { display:block; }
.devnew-submenu a { padding:6px 12px; border-radius:10px; }
.devnew-submenu a:hover { background:var(--color1); color:#fff; }
.e-mobile { display:none; }
@media(max-width:860px){
  .e-mobile{display:inline-block}
  .content{padding-top:70px}
  .devnew-header .container{flex-wrap:nowrap}
  .header-search{z-index:1000}
  .header-lang__list{left:auto;right:0;transform:none}
  .mor-full{grid-template-columns:1fr!important}
  .devnew-product-side{width:100%;}
}
@media(max-width:480px){
  .container{width:calc(100% - 24px)}
  .mor-telegram{padding:20px!important}
  h1,.e-h1{font-size:30px}
}

/* =========================================================
   DEVNEW v1.2 — Astra isolation and screenshot fixes
   ========================================================= */

/* Astra must not repaint the DLE shell. */
html,
body.devnew-theme,
body.devnew-theme.dark {
  background: var(--bg) !important;
  color: var(--text) !important;
}
body.devnew-theme {
  font-family: "Gilroy", Inter, "Segoe UI", Arial, sans-serif !important;
  line-height: normal !important;
}
body.devnew-theme .wrapper,
body.devnew-theme .devnew-main,
body.devnew-theme .content,
body.devnew-theme article,
body.devnew-theme .site-content,
body.devnew-theme .ast-container,
body.devnew-theme .ast-row,
body.devnew-theme .ast-separate-container,
body.devnew-theme .ast-article-single,
body.devnew-theme .ast-article-post {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
body.devnew-theme h1,
body.devnew-theme h2,
body.devnew-theme h3,
body.devnew-theme h4,
body.devnew-theme h5,
body.devnew-theme h6,
body.devnew-theme .entry-title,
body.devnew-theme .page-title {
  color: var(--text) !important;
  font-family: "Gilroy", Inter, "Segoe UI", Arial, sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body.devnew-theme p,
body.devnew-theme li,
body.devnew-theme input,
body.devnew-theme textarea,
body.devnew-theme select,
body.devnew-theme button {
  font-family: "Gilroy", Inter, "Segoe UI", Arial, sans-serif;
}
body.devnew-theme .fa,
body.devnew-theme .fa-classic,
body.devnew-theme .fa-sharp,
body.devnew-theme .fas,
body.devnew-theme .far,
body.devnew-theme .fal,
body.devnew-theme .fat,
body.devnew-theme .fad,
body.devnew-theme .fab,
body.devnew-theme [class^="fa-"],
body.devnew-theme [class*=" fa-"] {
  font-family: var(--fa-style-family, "Font Awesome 6 Pro") !important;
}
body.devnew-theme .fa-brands,
body.devnew-theme .fab { font-family: "Font Awesome 6 Brands" !important; }

/* Shell geometry. */
.devnew-main { min-width:0; min-height:100vh; }
.devnew-header { margin:0 !important; padding:15px 0 !important; background:transparent !important; }
.devnew-header .container { min-height:40px; }
.content { margin-top:30px !important; }
.container { box-sizing:border-box; }

/* Header language switcher: do not show a useless RU -> RU dropdown. */
.header-lang_btn {
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.header-lang_static { cursor:default; }
.header-lang.is-single .header-lang__list { display:none !important; }
.header-lang__list { min-width:150px; width:max-content; max-width:220px; }
.header-lang__list a { white-space:nowrap; }

/* Search: keep the DLE Top-3 only when a real result exists. */
.header-search { margin:0; }
.header-search_top { max-height:360px; overflow:auto; }
.devnew-fast-result { color:#fff !important; border-radius:10px; }
.devnew-fast-result:hover { background:rgb(255 255 255 / 6%); padding-left:7px; padding-right:7px; }
.devnew-fast-result span { line-height:1.25; }

/* Sidebar: preserve the parent label/icon when a submenu is open. */
.aside-menu > div { width:100%; }
.aside-menu > div > span,
.aside-menu > div.active > span {
  display:flex !important;
  width:100%;
  min-height:30px;
  visibility:visible !important;
  opacity:1 !important;
  overflow:visible !important;
  white-space:nowrap;
}
.aside-menu > div.active > span { color:var(--text) !important; }
.aside-menu > div.active > div,
.devnew-menu-group.active .devnew-submenu {
  margin:10px 0 14px !important;
  padding:7px !important;
  height:auto !important;
}
.aside-menu > div > div > a,
.devnew-submenu a {
  min-height:32px;
  padding:7px 12px !important;
  margin:0 !important;
  line-height:1.25;
}
.aside-menu > div > div:before { display:none; }
.aside-menu > div > span:after,
.devnew-menu-group > span:after {
  flex:0 0 25px;
}

/* Home sections: no giant blank hole when a product section has not been imported yet. */
.mor-sect.section { margin-bottom:48px; }
.mor-sect_title { margin-bottom:24px; }
.mor-sect_title h1 { font-size:38px; line-height:1.1; }
.mor-sect_info { margin-bottom:24px; }
.devnew-section-empty { margin-bottom:34px !important; }
.devnew-section-empty .mor-sect_info { margin-bottom:0; }
.devnew-section-grid { align-items:stretch; }
.expand-btn { margin-bottom:24px !important; }

/* Blog cards — isolate from Astra and keep equal heights. */
.more-blog_items { align-items:stretch; }
.more-blog_item {
  min-width:0;
  height:100% !important;
  border:0 !important;
  box-shadow:none !important;
}
.more-blog_bg { border-width:3px; }
.more-blog_bg img { width:100%; height:100%; object-fit:cover; }
.more-blog_content { min-height:190px; height:auto; }
.more-blog_title { color:var(--text) !important; }
.more-blog_meta { margin-top:auto; }

/* Category/archive page. */
.devnew-archive-head { margin-bottom:26px; }
.devnew-archive-head h1 { margin-bottom:20px; font-size:38px; line-height:1.1; }
.devnew-archive-head .mor-sect_info { margin:0; }
.devnew-archive-grid {
  align-items:stretch;
  grid-auto-rows:1fr;
}
.devnew-archive-grid > article { height:100% !important; }
.devnew-empty-state {
  background:var(--bg2);
  color:var(--text2);
  border-radius:var(--radius);
  padding:24px;
}
.more-list_item {
  min-height:205px;
  height:100%;
  border:0 !important;
  box-shadow:none !important;
}
.more-list_title {
  grid-template-columns:120px minmax(0,1fr);
  gap:18px;
}
.more-list_title img { width:120px; height:68px; aspect-ratio:auto; }
.more-list_title a { color:var(--text) !important; line-height:1.2; }
.more-list_short { min-height:62px; }
.more-list_item > ul:empty { display:none; }

/* Single blog post. */
.devnew-single-wrap { padding-top:0; }
.devnew-single-post,
body.devnew-theme .devnew-single-post.post {
  width:100%;
  max-width:860px;
  margin:0;
  padding:0 !important;
  background:transparent !important;
}
.devnew-single-post .mor-fullblog_bg { margin-bottom:20px; }
.devnew-single-post .mor-fullblog_bg img { width:100%; height:100%; object-fit:cover; }
.devnew-single-post .mor-fullblog_meta { margin:18px 0; }
.devnew-single-post > h1 {
  font-size:40px;
  line-height:1.18;
  margin:0 0 24px;
}
.devnew-single-post .mor-fullblog_text {
  color:var(--text);
  font-size:16px;
  line-height:1.75;
  min-height:0 !important;
}
.devnew-single-post .mor-fullblog_text:empty { display:none; }
.devnew-single-post .mor-fullblog_text p { margin:0 0 18px; }
.devnew-related { margin-top:44px; }
.devnew-related .mor-sect_title { margin-bottom:22px; }
.devnew-related .mor-sect_title h1 { font-size:36px; }
.devnew-related-grid { align-items:stretch; }

/* Generic WordPress pages. */
.devnew-page-wrap { min-height:420px; }
.devnew-page {
  width:100%;
  margin:0;
  padding:0 !important;
  background:transparent !important;
}
.devnew-page > h1 { font-size:38px; line-height:1.15; }

/* WooCommerce system pages: cart, checkout and account are rendered by our page.php,
   so stale sample-page content can never replace the actual WooCommerce interface. */
.devnew-commerce-page { width:100%; max-width:1100px; }
.devnew-commerce-page > h1 { font-size:38px; line-height:1.1; margin-bottom:28px; }
.devnew-commerce-page .woocommerce { color:var(--text); }
.devnew-commerce-page .woocommerce p { color:var(--text2); }
.devnew-commerce-page table.shop_table {
  width:100%;
  background:var(--bg2);
  color:var(--text);
  border:0 !important;
  border-radius:var(--radius);
  border-collapse:separate !important;
  border-spacing:0;
  overflow:hidden;
}
.devnew-commerce-page table.shop_table th,
.devnew-commerce-page table.shop_table td {
  border:0 !important;
  border-bottom:1px solid var(--light) !important;
  padding:16px !important;
  color:var(--text);
}
.devnew-commerce-page table.shop_table tr:last-child td { border-bottom:0 !important; }
.devnew-commerce-page .product-thumbnail img { width:72px; border-radius:12px; }
.devnew-commerce-page .quantity .qty { min-width:78px; }
.devnew-commerce-page .coupon { display:flex; gap:8px; flex-wrap:wrap; }
.devnew-commerce-page .coupon input.input-text { min-width:190px; }
.devnew-commerce-page .cart_totals,
.devnew-commerce-page .woocommerce-checkout-review-order,
.devnew-commerce-page .woocommerce-billing-fields,
.devnew-commerce-page .woocommerce-shipping-fields,
.devnew-commerce-page .woocommerce-additional-fields,
.devnew-commerce-page .woocommerce-MyAccount-navigation,
.devnew-commerce-page .woocommerce-MyAccount-content,
.devnew-commerce-page form.login,
.devnew-commerce-page form.register {
  background:var(--bg2);
  border:0 !important;
  border-radius:var(--radius);
  padding:24px;
}
.devnew-commerce-page .cart_totals { margin-top:24px; }
.devnew-commerce-page .cart_totals h2,
.devnew-commerce-page .woocommerce-billing-fields h3,
.devnew-commerce-page #order_review_heading { font-size:26px; margin-bottom:18px; }
.devnew-commerce-page .checkout-button,
.devnew-commerce-page #place_order,
.devnew-commerce-page .button,
.devnew-commerce-page button.button,
.devnew-commerce-page input.button {
  background:var(--color1) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  min-height:44px;
  line-height:1.2 !important;
  padding:13px 20px !important;
  font-weight:700 !important;
}
.devnew-commerce-page .button:hover,
.devnew-commerce-page button.button:hover,
.devnew-commerce-page input.button:hover { background:var(--color2) !important; }
.devnew-commerce-page input.input-text,
.devnew-commerce-page textarea,
.devnew-commerce-page select,
.devnew-commerce-page .select2-selection {
  background:var(--engine) !important;
  color:var(--text) !important;
  border:1px solid var(--light) !important;
  border-radius:12px !important;
}
.devnew-commerce-page .woocommerce-info,
.devnew-commerce-page .woocommerce-message,
.devnew-commerce-page .woocommerce-error {
  margin-bottom:20px !important;
}
.devnew-commerce-page .wc-empty-cart-message,
.devnew-commerce-page .cart-empty {
  background:var(--bg2);
  color:var(--text);
  border-radius:var(--radius);
  padding:22px !important;
}
.devnew-commerce-page .return-to-shop { margin-top:18px; }

/* Make the cookie notice less obstructive on desktop. */
.cookie {
  width:calc(100% - 40px);
  max-width:440px;
  left:auto;
  right:20px;
  margin:0;
  padding:13px 16px;
  font-size:13px;
}
.cookie > button { margin-top:8px; padding:5px 24px; }

/* 404 page. */
.devnew-404 { min-height:480px; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.devnew-404 h1 { margin-bottom:14px; }
.devnew-404 p { color:var(--text2); margin-bottom:24px; }

@media (max-width:1200px) {
  .mor-sect_title h1,
  .devnew-archive-head h1,
  .devnew-page > h1,
  .devnew-commerce-page > h1 { font-size:34px; }
  .devnew-single-post > h1 { font-size:36px; }
}

@media (max-width:860px) {
  .devnew-header { padding:10px 0 !important; }
  .content { margin-top:20px !important; }
  .mor-sect.section { margin-bottom:38px; }
  .mor-sect_title { margin-bottom:18px; }
  .mor-sect_title h1,
  .devnew-archive-head h1,
  .devnew-page > h1,
  .devnew-commerce-page > h1 { font-size:28px; }
  .mor-sect_title > a { margin-top:10px; }
  .devnew-single-post > h1 { font-size:29px; }
  .devnew-related .mor-sect_title h1 { font-size:28px; }
  .more-list_title { grid-template-columns:105px minmax(0,1fr); gap:14px; }
  .more-list_title img { width:105px; height:60px; }
  .devnew-commerce-page table.shop_table_responsive tr td { text-align:left !important; }
  .cookie { left:12px; right:12px; bottom:12px; width:auto; max-width:none; margin:0; }
}

@media (max-width:480px) {
  .mor-sect_title { display:block; }
  .mor-sect_title > a { display:inline-flex; align-items:center; }
  .more-list_title { grid-template-columns:92px minmax(0,1fr); }
  .more-list_title img { width:92px; height:54px; }
  .devnew-commerce-page .coupon { display:grid; grid-template-columns:1fr; }
  .devnew-commerce-page .coupon input.input-text { min-width:0; width:100%; }
}

/* =========================================================
   DEVNEW v1.3 — refinement pass from visual QA
   ========================================================= */

/* Branding: keep the DLE identity even on a fresh WordPress install. */
.devnew-text-logo {
  color:var(--text) !important;
  font-size:20px;
  line-height:1;
  font-weight:800;
  letter-spacing:.2px;
  white-space:nowrap;
}
.aside-logo { margin-bottom:24px !important; }

/* Header controls are one compact group, not four islands across the page. */
.devnew-header .container {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  gap:12px !important;
}
.devnew-header .header-search {
  flex:0 1 400px;
  width:min(400px, 42vw);
  margin:0 !important;
}
.devnew-header .header-search input { width:100% !important; min-width:0; }
.header-actions {
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  flex:0 0 auto;
}
.header-actions .header-lang,
.header-actions .header-store,
.header-actions .header-user { margin:0 !important; }
.header-actions .header-user { display:flex; align-items:center; }

/* Sidebar dropdowns: compact and closer to the original DLE menu. */
.aside-menu > div.active > div,
.devnew-menu-group.active .devnew-submenu {
  margin:7px 0 9px !important;
  padding:5px !important;
  border-radius:14px !important;
  box-shadow:0 8px 24px rgb(0 0 0 / 16%) !important;
}
.aside-menu > div > div > a,
.devnew-submenu a {
  min-height:28px !important;
  padding:5px 10px !important;
  border-radius:9px !important;
  font-size:14px;
}
.aside-menu > div > div > a.current-menu-item,
.devnew-submenu a.current-menu-item,
.aside-menu > div > div > a:hover,
.devnew-submenu a:hover {
  background:rgb(84 178 245 / 18%) !important;
  color:var(--color1) !important;
}

/* Home: tighter rhythm and smaller titles. */
.mor-sect.section { margin-bottom:38px !important; }
.mor-sect_title { margin-bottom:18px !important; }
.mor-sect_title h1,
.devnew-faq-section .mor-sect_title h1 {
  font-size:32px !important;
  line-height:1.12 !important;
  margin:0 !important;
}
.mor-sect_title > a {
  display:inline-flex;
  align-items:center;
  gap:0;
  font-size:14px;
}
.mor-sect_title > a i { margin-right:8px !important; }
.mor-sect_info {
  max-width:650px !important;
  margin-top:0 !important;
  margin-bottom:18px !important;
  line-height:1.55 !important;
}
.expand-btn {
  margin:0 0 22px !important;
  padding:7px 16px !important;
  font-size:12px !important;
}
.devnew-section-empty { margin-bottom:34px !important; }

/* FAQ stays substantial but no longer dominates the entire viewport. */
.devnew-faq-section .mor-fag {
  max-width:1120px;
  border-radius:16px;
}
.devnew-faq-section .accord { padding:15px 16px !important; }
.devnew-faq-section .accord-text { padding:0 16px 16px !important; line-height:1.55; }

/* Single article: original DLE proportions, cleaner line length. */
.devnew-single-wrap { padding-bottom:10px; }
.devnew-single-post,
body.devnew-theme .devnew-single-post.post {
  max-width:900px !important;
}
.devnew-single-post .mor-fullblog_meta {
  margin:12px 0 16px !important;
  font-size:13px;
}
.devnew-single-post > h1 {
  max-width:820px;
  font-size:34px !important;
  line-height:1.18 !important;
  margin:0 0 18px !important;
}
.devnew-single-post .mor-fullblog_text {
  max-width:820px;
  font-size:15px !important;
  line-height:1.65 !important;
  margin-bottom:0 !important;
}
.devnew-single-post .mor-fullblog_text p { margin:0 0 16px !important; }
.devnew-single-post .entry-footer,
.devnew-single-post .tags-links,
.devnew-single-post .cat-links,
.devnew-single-post .post-tags,
.devnew-single-post .post-navigation,
.devnew-single-post .ast-single-post-order { display:none !important; }

/* Related posts are a single real slider, exactly like the DLE fullstory template. */
.devnew-related {
  margin-top:38px !important;
  max-width:1120px;
}
.devnew-related .mor-sect_title { margin-bottom:16px !important; }
.devnew-related .mor-sect_title h1 { font-size:30px !important; }
.devnew-related-slider { padding:0 18px !important; }
.devnew-related-slider .swiper-wrapper { align-items:stretch; }
.devnew-related-slide { height:auto !important; display:flex; }
.devnew-related-slide > .more-list_item {
  width:100%;
  height:100%;
  min-height:230px !important;
}
.devnew-related .more-list_title {
  grid-template-columns:112px minmax(0,1fr) !important;
  gap:14px !important;
  padding:10px 10px 0 !important;
  margin-bottom:4px !important;
}
.devnew-related .more-list_title img {
  width:112px !important;
  height:64px !important;
}
.devnew-related .more-list_title a {
  font-size:15px;
  line-height:1.25 !important;
}
.devnew-related .more-list_short {
  min-height:72px !important;
  padding:8px 16px 12px !important;
}
.devnew-related .more-list_item > ul {
  padding:9px 16px !important;
  margin-top:auto !important;
}
.devnew-related .mor-sect_items > .fa-regular {
  width:38px !important;
  height:38px !important;
  line-height:38px !important;
  font-size:15px !important;
  top:44% !important;
}

/* Archive/category cards: consistent height even with short/demo content. */
.devnew-archive-grid { gap:18px !important; }
.devnew-archive-grid .more-list_item { min-height:225px !important; }
.devnew-archive-grid .more-list_title {
  grid-template-columns:118px minmax(0,1fr) !important;
  gap:14px !important;
}
.devnew-archive-grid .more-list_title img { width:118px !important; height:68px !important; }
.devnew-archive-grid .more-list_short { min-height:76px !important; }
.devnew-archive-grid .more-list_item > ul { margin-top:auto !important; }

/* Comments: custom dark DLE-like form instead of the white WordPress default. */
.comments-area.devnew-comments {
  width:100%;
  max-width:720px !important;
  margin:34px 0 10px;
  color:var(--text);
}
.devnew-comments-title {
  margin:0 0 16px !important;
  font-size:28px !important;
  line-height:1.2;
}
.devnew-comments-title span { color:var(--text2); font-size:.65em; font-weight:600; }
.devnew-comment-form {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  background:var(--bg2);
  border-radius:18px;
  padding:18px;
}
.devnew-comment-form > p { margin:0 !important; }
.devnew-comment-form .comment-form-comment,
.devnew-comment-form .comment-form-cookies-consent,
.devnew-comment-form .form-submit,
.devnew-comment-form .logged-in-as { grid-column:1 / -1; }
.devnew-comment-form textarea,
.devnew-comment-form input[type="text"],
.devnew-comment-form input[type="email"],
.devnew-comment-form input[type="url"] {
  width:100% !important;
  background:var(--engine) !important;
  color:var(--text) !important;
  border:1px solid var(--light) !important;
  border-radius:12px !important;
  box-shadow:none !important;
}
.devnew-comment-form textarea {
  display:block;
  min-height:130px;
  max-height:320px;
  resize:vertical;
  padding:14px 16px !important;
}
.devnew-comment-form input[type="text"],
.devnew-comment-form input[type="email"] { height:46px; padding:0 14px !important; }
.devnew-comment-form textarea::placeholder,
.devnew-comment-form input::placeholder { color:var(--text2); opacity:.85; }
.devnew-comment-form .comment-form-cookies-consent {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text2);
  font-size:12px;
  line-height:1.45;
}
.devnew-comment-form .comment-form-cookies-consent input[type="checkbox"] {
  flex:0 0 auto;
  width:38px !important;
  height:21px !important;
  margin:0 !important;
  border-radius:20px !important;
}
.devnew-comment-form .comment-form-cookies-consent input[type="checkbox"]:before {
  width:20px !important;
  height:20px !important;
}
.devnew-comment-form .comment-form-cookies-consent input[type="checkbox"]:checked:before { left:17px !important; }
.devnew-comment-submit {
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:auto !important;
  min-width:150px;
  min-height:44px;
  padding:0 20px !important;
  background:var(--color1) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  font-weight:700;
  cursor:pointer;
}
.devnew-comment-submit:hover { background:var(--color2) !important; }
.devnew-comments .comment-list li {
  background:var(--bg2) !important;
  border-radius:16px !important;
  padding:16px !important;
}
.devnew-comments .comment-reply-title,
.devnew-comments .comment-notes,
.devnew-comments .required-field-message { display:none !important; }

/* Footer: compact, aligned and branded. */
footer { margin-top:38px !important; padding:22px 0 !important; }
footer .container { display:flex; align-items:center; gap:18px; }
footer .footer-soc { margin-left:0 !important; margin-right:auto !important; }
footer .footer-menu { gap:8px 18px !important; }

/* Cookie notice should not cover the content being visually checked. */
.cookie {
  max-width:380px !important;
  right:18px !important;
  bottom:18px !important;
  padding:11px 14px !important;
  font-size:12px !important;
  border-radius:16px !important;
}
.cookie > button { margin-top:7px !important; padding:4px 20px !important; font-size:12px; }

@media (max-width:860px) {
  .devnew-header .container { gap:7px !important; }
  .devnew-header .header-search { width:auto; flex:0 0 auto; }
  .header-actions { gap:7px; margin-left:0; }
  .header-actions .header-lang_btn,
  .header-actions .header-store,
  .header-actions .header-user > a .fa-user,
  .header-actions .header-user img { width:38px !important; min-width:38px !important; height:38px !important; }
  .header-actions .header-store { padding:0 !important; justify-content:center; }
  .header-actions .header-store > span:last-child { display:none !important; }
  .mor-sect_title h1,
  .devnew-faq-section .mor-sect_title h1 { font-size:27px !important; }
  .devnew-single-post > h1 { font-size:28px !important; }
  .devnew-related .mor-sect_title h1 { font-size:26px !important; }
  .devnew-related-slider { padding:0 !important; overflow:visible !important; }
  .devnew-comment-form { grid-template-columns:1fr; padding:14px; }
  .devnew-comment-form > p { grid-column:1 / -1; }
  footer .container { align-items:flex-start; flex-direction:column; gap:10px; }
  footer .footer-soc { border-left:0 !important; padding-left:0 !important; }
}

/* v1.3.1 — single post related slider + comments rebuilt from the DLE source. */
.devnew-related {
  max-width:1120px !important;
  margin-top:34px !important;
}
.devnew-related .mor-sect_title {
  margin-bottom:14px !important;
}
.devnew-related .mor-sect_title h1 {
  font-size:30px !important;
  line-height:1.15 !important;
}
.devnew-related-slider {
  position:relative;
  padding:0 16px !important;
  overflow:hidden !important;
}
.devnew-related-slider .swiper-wrapper {
  align-items:stretch !important;
}
.devnew-related-slider .more-list_item.swiper-slide {
  display:flex !important;
  flex-direction:column !important;
  height:auto !important;
  min-height:210px !important;
  background:var(--bg2) !important;
  border-radius:var(--radius) !important;
  overflow:hidden !important;
  box-shadow:none !important;
}
.devnew-related .more-list_title {
  display:grid !important;
  grid-template-columns:104px minmax(0,1fr) !important;
  align-items:center !important;
  gap:13px !important;
  padding:9px 9px 0 !important;
  margin:0 0 6px !important;
  background:transparent !important;
  border-radius:0 !important;
}
.devnew-related .more-list_title img {
  width:104px !important;
  height:59px !important;
  aspect-ratio:16/9 !important;
  object-fit:cover !important;
  border-radius:12px !important;
}
.devnew-related .more-list_title a {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
  color:var(--text) !important;
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}
.devnew-related .more-list_short {
  display:block !important;
  min-height:70px !important;
  padding:6px 14px 10px !important;
  color:var(--text2) !important;
  font-size:12px !important;
  line-height:1.45 !important;
  background:transparent !important;
}
.devnew-related .more-list_short > div {
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
}
.devnew-related .more-list_item > ul {
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  min-height:35px !important;
  padding:8px 14px !important;
  margin-top:auto !important;
  border-top:1px dashed rgb(255 255 255 / 10%) !important;
}
.devnew-related .more-list_item > ul:empty {
  display:none !important;
}
.devnew-related .more-list_item > ul li {
  font-size:11px !important;
}
.devnew-related .mor-sect_items > .fa-regular {
  top:50% !important;
  transform:translateY(-50%) !important;
  width:38px !important;
  height:38px !important;
  line-height:36px !important;
  border-radius:10px !important;
  background:rgba(44,51,64,.92) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}
.devnew-related .mor-sect_items > .fa-chevron-left { left:0 !important; }
.devnew-related .mor-sect_items > .fa-chevron-right { right:0 !important; }
.devnew-related .mor-sect_items > .swiper-button-disabled { display:none !important; }

/* Astra adds a white comments panel. Neutralise every wrapper and keep only the DLE dark form. */
body.devnew-theme #comments.comments-area.devnew-comments,
body.devnew-theme .comments-area.devnew-comments,
body.devnew-theme .devnew-comments .comment-respond,
body.devnew-theme .devnew-comments #respond,
body.devnew-theme .devnew-comments .comment-form,
body.devnew-theme .devnew-comments .ast-comment-formwrap,
body.devnew-theme .devnew-comments .comments-form-wrapper {
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.devnew-theme #comments.comments-area.devnew-comments {
  width:100% !important;
  max-width:600px !important;
  margin:34px 0 18px !important;
  padding:0 !important;
}
body.devnew-theme .devnew-comments-title {
  display:block !important;
  margin:0 0 12px !important;
  padding:0 !important;
  color:var(--text) !important;
  font-size:30px !important;
  font-weight:700 !important;
  line-height:1.2 !important;
}
body.devnew-theme .devnew-comments-title span {
  color:var(--text2) !important;
  font-size:.6em !important;
}
body.devnew-theme .devnew-comments .comment-respond,
body.devnew-theme .devnew-comments #respond {
  width:100% !important;
  max-width:485px !important;
  margin:0 !important;
  padding:0 !important;
}
body.devnew-theme .devnew-comment-form {
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
  width:100% !important;
  max-width:485px !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border-radius:0 !important;
}
body.devnew-theme .devnew-comment-form > p {
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
}
body.devnew-theme .devnew-comment-form .comment-form-comment,
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent,
body.devnew-theme .devnew-comment-form .form-submit,
body.devnew-theme .devnew-comment-form .logged-in-as {
  grid-column:1 / -1 !important;
}
body.devnew-theme .devnew-comment-form textarea,
body.devnew-theme .devnew-comment-form input[type="text"],
body.devnew-theme .devnew-comment-form input[type="email"],
body.devnew-theme .devnew-comment-form input[type="url"] {
  width:100% !important;
  margin:0 !important;
  color:var(--text) !important;
  background:var(--bg2) !important;
  border:1px solid var(--light) !important;
  border-radius:12px !important;
  outline:0 !important;
  box-shadow:none !important;
}
body.devnew-theme .devnew-comment-form textarea {
  min-height:130px !important;
  max-height:300px !important;
  padding:14px 16px !important;
  resize:vertical !important;
}
body.devnew-theme .devnew-comment-form input[type="text"],
body.devnew-theme .devnew-comment-form input[type="email"] {
  height:44px !important;
  padding:0 14px !important;
}
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent {
  display:flex !important;
  align-items:center !important;
  gap:9px !important;
  min-height:24px !important;
  color:var(--text2) !important;
  font-size:11px !important;
  line-height:1.35 !important;
}
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent label {
  margin:0 !important;
  color:var(--text2) !important;
  opacity:1 !important;
}
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent input[type="checkbox"] {
  appearance:none !important;
  -webkit-appearance:none !important;
  position:relative !important;
  flex:0 0 34px !important;
  width:34px !important;
  height:20px !important;
  margin:0 !important;
  background:var(--light) !important;
  border:0 !important;
  border-radius:20px !important;
  cursor:pointer !important;
}
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent input[type="checkbox"]:before {
  content:"" !important;
  position:absolute !important;
  top:2px !important;
  left:2px !important;
  width:16px !important;
  height:16px !important;
  margin:0 !important;
  background:#fff !important;
  border-radius:50% !important;
  transform:none !important;
  transition:.2s !important;
}
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent input[type="checkbox"]:checked {
  background:var(--color1) !important;
}
body.devnew-theme .devnew-comment-form .comment-form-cookies-consent input[type="checkbox"]:checked:before {
  left:16px !important;
}
body.devnew-theme .devnew-comment-form .form-submit {
  margin-top:0 !important;
}
body.devnew-theme .devnew-comment-submit {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  min-width:132px !important;
  min-height:42px !important;
  width:auto !important;
  margin:0 !important;
  padding:0 18px !important;
  background:var(--color1) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:10px !important;
  box-shadow:none !important;
  font-size:14px !important;
  font-weight:700 !important;
}
body.devnew-theme .devnew-comment-submit:hover {
  background:var(--color2) !important;
}

@media (max-width:860px) {
  .devnew-related-slider { padding:0 !important; overflow:visible !important; }
  body.devnew-theme #comments.comments-area.devnew-comments,
  body.devnew-theme .devnew-comments .comment-respond,
  body.devnew-theme .devnew-comments #respond,
  body.devnew-theme .devnew-comment-form { max-width:100% !important; }
  body.devnew-theme .devnew-comment-form { grid-template-columns:1fr !important; }
  body.devnew-theme .devnew-comment-form > p { grid-column:1 / -1 !important; }
}

/* =========================================================
   DEVNEW v1.4 — homepage rebuild from visual QA
   ========================================================= */

/* Keep the left navigation calm: child-menu chevrons stay with the row instead of
   reading like floating buttons beside the main content. */
.aside-menu > div > span:after,
.devnew-menu-group > span:after {
  width:20px !important;
  height:20px !important;
  line-height:20px !important;
  font-size:9px !important;
  background:transparent !important;
  color:var(--text2) !important;
  margin-left:auto !important;
}
.aside-menu > div.active > span:after,
.devnew-menu-group.active > span:after { color:var(--color1) !important; }

/* Homepage spacing and hierarchy. */
body.home .content { margin-top:18px !important; }
body.home .mor-telegram {
  margin-bottom:52px !important;
  padding:28px 40px !important;
}
body.home .mor-sect.section {
  margin-bottom:46px !important;
}
body.home .mor-sect_title {
  justify-content:flex-start !important;
  gap:22px !important;
  margin-bottom:10px !important;
}
body.home .mor-sect_title h1,
body.home .mor-sect_title h2 {
  margin:0 !important;
  font-size:31px !important;
  line-height:1.12 !important;
  font-weight:800 !important;
}
body.home .mor-sect_title > a {
  margin:0 !important;
  font-size:13px !important;
  white-space:nowrap;
}
body.home .mor-sect_title > a i {
  width:21px !important;
  height:21px !important;
  line-height:21px !important;
  margin-right:7px !important;
  font-size:9px !important;
}
body.home .mor-sect_info {
  max-width:720px !important;
  margin:0 0 20px !important;
  color:var(--text2) !important;
  font-size:15px !important;
  line-height:1.5 !important;
}
/* No JS-generated "expand" control on the front page; the descriptions are short
   and should simply wrap naturally, like the source DLE page. */
body.home .mor-sect_info + .expand-btn { display:none !important; }
body.home .mor-sect_info[data-rows] {
  display:block !important;
  overflow:visible !important;
  -webkit-line-clamp:unset !important;
}
body.home .devnew-section-empty {
  margin-bottom:38px !important;
  padding-bottom:0 !important;
}
body.home .devnew-section-empty .mor-sect_info { margin-bottom:0 !important; }
body.home .devnew-section-grid,
body.home .more-blog_items { margin-top:4px; }

/* The banner's right CTA should not feel detached on wide screens. */
body.home .mor-telegram > div:last-child {
  width:min(310px, 30vw);
  flex:0 0 auto;
}
body.home .mor-telegram > div > a { width:100%; box-sizing:border-box; }

/* Blog page is a real post archive even when the page itself has no editor content. */
.devnew-blog-page { width:100%; }
.devnew-blog-page .devnew-archive-head { margin-bottom:22px; }
.devnew-blog-page .devnew-archive-head h1 {
  margin:0 !important;
  font-size:34px !important;
  line-height:1.15 !important;
}
.devnew-blog-page-grid {
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:20px !important;
  align-items:stretch;
}
.devnew-blog-page-grid .more-blog_item { min-width:0; height:100% !important; }

/* Keep header controls visually grouped without stretching the search. */
.devnew-header .header-search { flex-basis:390px !important; max-width:390px !important; }
.header-actions { gap:8px !important; }

/* Slightly smaller cookie box so it stays peripheral. */
.cookie { max-width:350px !important; padding:10px 13px !important; }

@media (max-width:1100px) {
  .devnew-blog-page-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:860px) {
  body.home .mor-telegram { margin-bottom:34px !important; padding:20px !important; }
  body.home .mor-telegram > div:last-child { width:100%; }
  body.home .mor-sect.section { margin-bottom:34px !important; }
  body.home .mor-sect_title { gap:10px 16px !important; align-items:center !important; }
  body.home .mor-sect_title h1,
  body.home .mor-sect_title h2 { font-size:26px !important; }
  body.home .mor-sect_info { font-size:14px !important; }
  .devnew-blog-page-grid { grid-template-columns:1fr !important; }
}

/* =========================================================
   DEVNEW v1.4.1 — restore original DLE sidebar geometry
   ========================================================= */

/* Astra must not reset the desktop shell. The DLE layout reserves 265px for
   the fixed navigation; centering .container then starts at ~342px on 1920px,
   exactly like the original site. */
@media (min-width:861px) {
  body.devnew-theme .devnew-main,
  body.devnew-theme main#primary.devnew-main {
    margin-left:265px !important;
    margin-right:0 !important;
    width:auto !important;
    max-width:none !important;
    float:none !important;
  }

  body.devnew-theme .header-menu {
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    width:265px !important;
    height:100vh !important;
    margin:0 !important;
    padding:20px 25px !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    z-index:6 !important;
    box-sizing:border-box !important;
  }
}

/* Restore the original DLE circular submenu arrows. */
body.devnew-theme .aside-menu > div > span,
body.devnew-theme .devnew-menu-group > span {
  position:relative;
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  min-width:0 !important;
}

body.devnew-theme .aside-menu > div > span:after,
body.devnew-theme .devnew-menu-group > span:after {
  content:"\f054" !important;
  display:inline-block !important;
  flex:0 0 25px !important;
  width:25px !important;
  height:25px !important;
  line-height:25px !important;
  margin-left:auto !important;
  border-radius:50% !important;
  background:var(--light) !important;
  color:var(--text2) !important;
  font-family:"Font Awesome 6 Pro" !important;
  font-size:12px !important;
  font-weight:400 !important;
  text-align:center !important;
  opacity:1 !important;
  visibility:visible !important;
  transform:none;
  transition:.3s !important;
}

body.devnew-theme .aside-menu > div.active > span:after,
body.devnew-theme .devnew-menu-group.active > span:after {
  transform:rotate(90deg) !important;
  color:var(--text2) !important;
  background:var(--light) !important;
}

/* Keep every row inside the sidebar instead of allowing labels/arrows to drift
   into the content area. */
body.devnew-theme .aside-menu,
body.devnew-theme .aside-menu > div,
body.devnew-theme .devnew-menu-group {
  width:100% !important;
  max-width:100% !important;
  box-sizing:border-box !important;
}
body.devnew-theme .aside-menu > a,
body.devnew-theme .aside-menu > div > span,
body.devnew-theme .devnew-menu-group > span {
  box-sizing:border-box !important;
  max-width:100% !important;
}

@media (max-width:860px) {
  body.devnew-theme .devnew-main,
  body.devnew-theme main#primary.devnew-main {
    margin-left:0 !important;
    width:auto !important;
  }
  body.devnew-theme .header-menu {
    left:0 !important;
    width:100% !important;
  }
}

/* =========================================================
   DEVNEW v1.5 — front page parity pass against the source DLE
   ========================================================= */

/* Brand fallback: reproduce the blue DEVNEW + light .ORG lockup from DLE. */
.devnew-text-logo{
  display:inline-flex !important;
  align-items:baseline;
  gap:0;
  font-size:22px !important;
  line-height:1 !important;
  font-style:normal;
  font-weight:800 !important;
  letter-spacing:0 !important;
  text-transform:uppercase;
}
.devnew-text-logo strong{color:#52b9f7;font:inherit;font-weight:800}
.devnew-text-logo em{color:#f2f5f9;font-style:normal;font-size:.72em;font-weight:700}

/* DLE logged-out control is a real "Войти" pill, not a detached round icon. */
.header-actions .header-user > a{
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:40px;
  height:40px;
  padding:0 17px;
  border-radius:50px;
  background:linear-gradient(0deg,#54b2f5,#82ccff);
  color:#fff !important;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}
.header-actions .header-user > a i{font-size:15px;color:#fff}
.header-actions .header-user > a img{width:28px !important;height:28px !important;border-radius:50% !important;margin:0}
.header-actions .header-user > a:hover{filter:brightness(1.05);color:#fff !important}

/* Let the source DLE geometry drive the home page again. */
body.home .content{margin-top:30px !important;margin-bottom:30px !important}
body.home .mor-telegram{
  margin-bottom:80px !important;
  padding:30px 40px !important;
  font-size:18px !important;
}
body.home .mor-telegram_title{font-size:24px !important;line-height:1.2 !important;margin-bottom:10px !important}
body.home .mor-telegram > div:last-child{width:auto !important;min-width:300px;max-width:340px}

body.home .mor-sect.section{margin-bottom:40px !important}
body.home .mor-sect_title{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:14px 30px !important;
  margin-bottom:30px !important;
}
body.home .mor-sect_title h1,
body.home .mor-sect_title h2{
  margin:0 !important;
  font-size:42px !important;
  line-height:1.1 !important;
  font-weight:700 !important;
}
body.home .mor-sect_title > a{
  display:flex !important;
  align-items:center;
  margin:0 !important;
  color:var(--text2) !important;
  font-size:14px !important;
  font-weight:700 !important;
  white-space:nowrap;
}
body.home .mor-sect_title > a i{
  width:25px !important;
  height:25px !important;
  line-height:25px !important;
  margin-right:10px !important;
  border-radius:50% !important;
  background:var(--light) !important;
  font-size:12px !important;
  text-align:center;
}
body.home .mor-sect_info{
  max-width:700px !important;
  margin:-10px 0 30px !important;
  color:var(--text2) !important;
  font-size:16px !important;
  line-height:1.5 !important;
}
body.home .devnew-section-grid,
body.home .more-blog_items{margin-top:0 !important;gap:20px !important}

/* Commercial list cards: the title, description and price are one card, exactly
   like shortstory-list.tpl; do not let WP/Astra visually split them apart. */
body.home .devnew-home-services .more-list_item,
body.home .devnew-home-whatsapp .more-list_item{
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:auto !important;
  overflow:hidden !important;
  background:var(--bg2) !important;
  border:0 !important;
  border-radius:var(--radius) !important;
  box-shadow:none !important;
}
body.home .devnew-home-services .more-list_title,
body.home .devnew-home-whatsapp .more-list_title{
  display:grid !important;
  grid-template-columns:120px minmax(0,1fr) !important;
  align-items:center !important;
  gap:20px !important;
  padding:10px 10px 0 !important;
  margin:0 0 10px !important;
  background:transparent !important;
  font-size:16px !important;
  font-weight:700 !important;
}
body.home .devnew-home-services .more-list_title img,
body.home .devnew-home-whatsapp .more-list_title img{
  width:120px !important;
  height:auto !important;
  aspect-ratio:16/9 !important;
  object-fit:cover !important;
  border-radius:15px !important;
}
body.home .devnew-home-services .more-list_short,
body.home .devnew-home-whatsapp .more-list_short{
  min-height:0 !important;
  padding:10px 20px !important;
  color:var(--text2) !important;
  font-size:12px !important;
  line-height:1.5 !important;
}
body.home .devnew-home-services .more-list_item > ul,
body.home .devnew-home-whatsapp .more-list_item > ul{
  display:flex !important;
  align-items:center !important;
  gap:20px !important;
  min-height:38px;
  padding:10px 20px !important;
  border-top:1px dashed rgba(255,255,255,.10) !important;
  margin:auto 0 0 !important;
}
body.home .devnew-home-services .more-list_item > ul li,
body.home .devnew-home-whatsapp .more-list_item > ul li{font-size:12px !important}

/* WordPress themes: restore shortstory.tpl proportions. */
body.home .devnew-home-wordpress .more-temp_item{
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  background:var(--bg2) !important;
  border-radius:var(--radius) !important;
  min-height:0 !important;
}
body.home .devnew-home-wordpress .more-temp_bg{
  aspect-ratio:16/9 !important;
  border:5px solid var(--bg2) !important;
  border-radius:var(--radius) !important;
  box-shadow:0 0 30px rgba(0,0,0,.45) !important;
}
body.home .devnew-home-wordpress .more-temp_content{
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:column !important;
  gap:15px !important;
  padding:15px 25px !important;
}
body.home .devnew-home-wordpress .more-temp_content h2{
  margin:0 !important;
  font-size:22px !important;
  line-height:1.18 !important;
}
body.home .devnew-home-wordpress .more-temp_short{
  color:var(--text2) !important;
  font-size:14px !important;
  line-height:1.5 !important;
}
body.home .devnew-home-wordpress .more-temp_link{margin-top:auto !important}
body.home .devnew-home-wordpress .more-temp_price{font-size:25px !important}
body.home .devnew-home-wordpress .more-temp_btn{padding:12px 25px !important;border-radius:10px !important}

/* Article cards mirror shortstory-blog.tpl. */
body.home .more-blog_item{
  height:auto !important;
  overflow:hidden !important;
  background:var(--bg2) !important;
  border-radius:var(--radius) !important;
}
body.home .more-blog_bg{
  aspect-ratio:16/9 !important;
  border:4px solid var(--bg2) !important;
  border-radius:var(--radius) !important;
}
body.home .more-blog_content{
  display:flex !important;
  flex-direction:column !important;
  height:190px !important;
  min-height:190px !important;
  padding:10px 20px !important;
}
body.home .more-blog_title{font-size:18px !important;line-height:1.2 !important;margin-bottom:15px !important}
body.home .more-blog_text{font-size:12px !important;line-height:1.5 !important}
body.home .more-blog_meta{padding:10px 20px 0 !important;margin:auto -20px 0 !important}

/* Empty commercial sections must never be populated by random blog records. */
body.home .devnew-section-empty{margin-bottom:40px !important;padding-bottom:0 !important}
body.home .devnew-section-empty .mor-sect_info{margin-bottom:0 !important}

/* Sidebar type and spacing as in the Russian DLE reference. */
@media (min-width:861px){
  body.devnew-theme .header-menu{padding:20px 25px !important}
  body.devnew-theme .aside-logo{margin-bottom:30px !important}
  body.devnew-theme .aside-menu > span{font-size:10px !important;text-transform:uppercase !important;margin-top:22px !important}
  body.devnew-theme .aside-menu > a,
  body.devnew-theme .aside-menu > div > span{min-height:36px !important}
  .devnew-header .container{justify-content:space-between !important;gap:10px !important}
  .devnew-header .header-search{flex:0 0 auto !important;width:auto !important;max-width:none !important;margin-right:auto !important}
  .devnew-header .header-search input{width:380px !important}
  .header-actions{display:flex;align-items:center;gap:10px !important;margin-left:auto !important}
}

@media (max-width:1200px) and (min-width:861px){
  body.home .mor-sect_title h1,body.home .mor-sect_title h2{font-size:36px !important}
  .devnew-header .header-search input{width:300px !important}
}

@media (max-width:860px){
  .header-actions .header-user > a{width:40px !important;min-width:40px !important;padding:0 !important;font-size:0 !important}
  .header-actions .header-user > a i{font-size:15px !important}
  body.home .mor-telegram{margin-bottom:40px !important;padding:20px !important}
  body.home .mor-telegram > div:last-child{min-width:0;max-width:none;width:100% !important}
  body.home .mor-sect.section{margin-bottom:40px !important}
  body.home .mor-sect_title{display:block !important;margin-bottom:24px !important}
  body.home .mor-sect_title h1,body.home .mor-sect_title h2{font-size:30px !important}
  body.home .mor-sect_title > a{margin-top:16px !important}
  body.home .mor-sect_info{font-size:14px !important;margin:-6px 0 22px !important}
}


/* =========================================================
   DEVNEW v1.5.1 — mobile header, auth and product-action fixes
   ========================================================= */

/* Keep the mobile header pinned to the same viewport position on every page,
   including registration/auth pages. Previously position:fixed had no top
   coordinate, so some page templates could preserve a lower static position. */
@media (max-width:860px){
  body.devnew-theme .devnew-header{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    z-index:1000 !important;
  }
  body.admin-bar.devnew-theme .devnew-header{top:46px !important;}
}
@media (min-width:783px) and (max-width:860px){
  body.admin-bar.devnew-theme .devnew-header{top:32px !important;}
}

/* Language globe: force the Font Awesome glyph into the exact visual centre
   of the round mobile control. */
@media (max-width:860px){
  body.devnew-theme .header-lang_btn{
    display:grid !important;
    place-items:center !important;
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
    min-height:40px !important;
    padding:0 !important;
    gap:0 !important;
    line-height:1 !important;
  }
  body.devnew-theme .header-lang_btn > i,
  body.devnew-theme .header-lang_btn > [class^="fa-"],
  body.devnew-theme .header-lang_btn > [class*=" fa-"]{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:20px !important;
    height:20px !important;
    margin:0 !important;
    padding:0 !important;
    position:static !important;
    line-height:20px !important;
    text-align:center !important;
    transform:none !important;
  }
  body.devnew-theme .header-lang_btn > i::before,
  body.devnew-theme .header-lang_btn > [class^="fa-"]::before,
  body.devnew-theme .header-lang_btn > [class*=" fa-"]::before{
    display:block !important;
    width:20px !important;
    line-height:20px !important;
    text-align:center !important;
  }
}

/* Login modal: centre the DEVNEW logo against the heading/form column. */
body.devnew-theme .modal-auth_content > .login-logo,
body.devnew-theme .modal-auth .login-logo{
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.devnew-theme .modal-auth_content > .login-logo img,
body.devnew-theme .modal-auth .login-logo img{
  display:block !important;
  margin-left:auto !important;
  margin-right:auto !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
}

/* The first auth field must look neutral until the user actually touches it.
   JS adds .devnew-auth-user-focus on real pointer/touch interaction. */
body.devnew-theme .modal-auth:not(.devnew-auth-user-focus) .e-float input:focus,
body.devnew-theme .modal-auth:not(.devnew-auth-user-focus) .e-float textarea:focus{
  border-color:rgb(61 67 79 / 19%) !important;
  box-shadow:none !important;
  outline:0 !important;
}

/* Product secondary actions: Quick purchase + Share on the first row,
   Demo always spans the complete row below them. */
body.devnew-theme.single-product .mor-full_link{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 90px !important;
  gap:12px !important;
  align-items:stretch !important;
  justify-content:stretch !important;
  width:100% !important;
}
body.devnew-theme.single-product .mor-full_link > a.mor-full_quick,
body.devnew-theme.single-product .mor-full_link > a.one-click-buy{
  grid-column:1 !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
}
body.devnew-theme.single-product .mor-full_link > a.mor-full_share{
  grid-column:2 !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  min-height:54px !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
body.devnew-theme.single-product .mor-full_link > a.store-demolink,
body.devnew-theme.single-product .mor-full_link > a:not(.mor-full_share).store-demolink{
  grid-column:1 / -1 !important;
  width:100% !important;
  max-width:none !important;
  min-width:100% !important;
  flex:0 0 100% !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

@media (max-width:480px){
  body.devnew-theme.single-product .mor-full_link{
    grid-template-columns:minmax(0,1fr) 90px !important;
    gap:12px !important;
  }
}


/* DEVNEW v1.5.2 — regression fixes */
body.devnew-theme .devnew-login-modal{display:none!important;position:fixed!important;inset:0!important;z-index:99999!important;min-height:100dvh!important;overflow:auto!important;background:var(--bg)!important;align-items:center!important;justify-content:center!important;padding:32px 20px!important}body.devnew-theme .devnew-login-modal.active{display:flex!important}body.devnew-login-open{overflow:hidden!important}body.devnew-theme .devnew-login-shell{width:100%!important;max-width:620px!important;margin:auto!important}body.devnew-theme .devnew-login-modal .modal-auth_content{width:100%!important;max-width:620px!important;margin:0 auto!important;padding:24px 34px 34px!important}body.devnew-theme .devnew-login-close{position:fixed!important;top:max(20px,env(safe-area-inset-top))!important;right:20px!important;z-index:2!important;width:46px!important;height:46px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;color:var(--text)!important;background:var(--light)!important;border:0!important;border-radius:50%!important;font-size:24px!important;cursor:pointer!important}
body.devnew-theme .devnew-login-modal .login-logo{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;max-width:100%!important;margin:0 auto 28px!important;text-decoration:none!important}body.devnew-theme .devnew-login-modal .login-logo .devnew-text-logo{display:inline-flex!important;align-items:baseline!important;justify-content:center!important;white-space:nowrap!important}body.devnew-theme .devnew-login-modal .login-logo .devnew-text-logo strong{color:var(--color1)!important;font-size:44px!important;line-height:1!important;font-weight:800!important}body.devnew-theme .devnew-login-modal .login-logo .devnew-text-logo em{color:var(--text)!important;font-size:28px!important;line-height:1!important;font-style:normal!important;font-weight:500!important;margin-left:6px!important}body.devnew-theme .devnew-login-title{margin:0 0 32px!important;color:var(--text)!important;font-size:42px!important;line-height:1.08!important;text-align:center!important}
body.devnew-theme .devnew-login-form{width:100%!important;margin:0!important}body.devnew-theme .devnew-login-form .e-float{margin:0 0 16px!important}body.devnew-theme .devnew-login-form input[type=text],body.devnew-theme .devnew-login-form input[type=password]{width:100%!important;min-height:62px!important;padding:0 20px!important;color:var(--text)!important;background:var(--bg2)!important;border:1px solid var(--light)!important;border-radius:20px!important;outline:0!important;box-shadow:none!important;font:inherit!important}body.devnew-theme .devnew-login-form input:focus{border-color:var(--color1)!important;box-shadow:0 0 0 1px var(--color1)!important}body.devnew-theme .devnew-login-modal:not(.devnew-auth-user-focus) .devnew-login-form input:focus{border-color:var(--light)!important;box-shadow:none!important}
body.devnew-theme .devnew-login-remember{display:flex!important;align-items:center!important;gap:12px!important;margin:20px 0 24px!important;color:var(--text2)!important}body.devnew-theme .devnew-login-remember input{appearance:none!important;-webkit-appearance:none!important;position:relative!important;width:42px!important;height:24px!important;flex:0 0 42px!important;margin:0!important;background:var(--light2)!important;border:0!important;border-radius:20px!important}body.devnew-theme .devnew-login-remember input:before{content:""!important;position:absolute!important;width:20px!important;height:20px!important;left:2px!important;top:2px!important;background:#fff!important;border-radius:50%!important;transition:.2s!important}body.devnew-theme .devnew-login-remember input:checked{background:var(--color1)!important}body.devnew-theme .devnew-login-remember input:checked:before{left:20px!important}
body.devnew-theme .devnew-login-modal .modal-auth_link{display:grid!important;grid-template-columns:auto minmax(170px,1fr)!important;gap:22px!important;align-items:center!important;margin:0!important}body.devnew-theme .devnew-login-modal .modal-auth_link>a{color:var(--text2)!important;text-decoration:underline dotted!important}body.devnew-theme .devnew-login-modal .modal-auth_link button{min-height:54px!important;padding:0 24px!important;color:#fff!important;background:var(--color1)!important;border:0!important;border-radius:18px!important;font-size:18px!important;font-weight:700!important}body.devnew-theme .devnew-login-modal .modal-auth_reg{display:table!important;min-width:260px!important;margin:28px auto 0!important;padding:14px 30px!important;border:1px solid var(--color1)!important;border-radius:18px!important;color:var(--color1)!important;text-align:center!important}
body.devnew-theme .devnew-empty-cart{display:flex!important;align-items:center!important;gap:18px!important;width:100%!important;max-width:900px!important;padding:24px 28px!important;color:var(--text)!important;background:var(--bg2)!important;border-radius:20px!important}body.devnew-theme .devnew-empty-cart-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:52px!important;height:52px!important;flex:0 0 52px!important;color:var(--color1)!important;background:rgb(84 178 245 / 12%)!important;border-radius:14px!important;font-size:22px!important}body.devnew-theme .devnew-empty-cart strong{display:block!important;font-size:18px!important}body.devnew-theme .devnew-return-shop{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;margin-top:16px!important;padding:0 20px!important;color:#fff!important;background:var(--color1)!important;border-radius:12px!important;font-weight:700!important}.devnew-cart-page .wc-empty-cart-message:before,.devnew-cart-page .cart-empty:before{display:none!important}
body.devnew-theme.single-product .devnew-add-cart form.cart{display:flex!important;align-items:stretch!important;gap:12px!important;width:100%!important}body.devnew-theme.single-product .devnew-add-cart .quantity{display:grid!important;grid-template-columns:44px 50px 44px!important;align-items:stretch!important;width:138px!important;min-width:138px!important;height:48px!important;overflow:hidden!important;background:#3b424f!important;border-radius:12px!important}body.devnew-theme.single-product .devnew-add-cart .quantity input.qty{appearance:textfield!important;-moz-appearance:textfield!important;width:50px!important;min-width:0!important;height:48px!important;padding:0!important;color:#fff!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:center!important;font-size:16px!important}body.devnew-theme.single-product .devnew-add-cart .quantity input.qty::-webkit-outer-spin-button,body.devnew-theme.single-product .devnew-add-cart .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}body.devnew-theme.single-product .devnew-qty-minus,body.devnew-theme.single-product .devnew-qty-plus{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:48px!important;padding:0!important;color:#fff!important;background:transparent!important;border:0!important;font-size:20px!important;cursor:pointer!important}body.devnew-theme.single-product .devnew-add-cart .single_add_to_cart_button{flex:1 1 auto!important;min-height:48px!important;margin:0!important;border-radius:12px!important}
body.devnew-theme.single-product .devnew-product-reviews{width:100%!important;max-width:none!important;margin:42px 0 20px!important}body.devnew-theme.single-product .devnew-product-reviews .comment-respond,body.devnew-theme.single-product .devnew-product-reviews #respond{width:100%!important;max-width:none!important;margin:0!important;padding:24px!important;background:var(--bg2)!important;border:1px solid var(--light)!important;border-radius:18px!important}body.devnew-theme.single-product .devnew-product-reviews .devnew-comment-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:16px!important;width:100%!important;max-width:none!important}body.devnew-theme.single-product .devnew-product-reviews .comment-form-comment,body.devnew-theme.single-product .devnew-product-reviews .comment-form-cookies-consent,body.devnew-theme.single-product .devnew-product-reviews .form-submit,body.devnew-theme.single-product .devnew-product-reviews .devnew-rating-field{grid-column:1/-1!important}body.devnew-theme.single-product .devnew-product-reviews label,body.devnew-theme.single-product .devnew-product-reviews legend{display:block!important;margin:0 0 8px!important;color:var(--text2)!important;font-size:14px!important}body.devnew-theme.single-product .devnew-product-reviews textarea,body.devnew-theme.single-product .devnew-product-reviews input[type=text],body.devnew-theme.single-product .devnew-product-reviews input[type=email]{width:100%!important;color:var(--text)!important;background:var(--engine)!important;border:1px solid var(--light)!important;border-radius:12px!important;box-shadow:none!important;outline:0!important}body.devnew-theme.single-product .devnew-product-reviews textarea{min-height:130px!important;padding:14px 16px!important}body.devnew-theme.single-product .devnew-product-reviews input[type=text],body.devnew-theme.single-product .devnew-product-reviews input[type=email]{min-height:48px!important;padding:0 14px!important}body.devnew-theme .devnew-no-reviews{margin:-4px 0 20px!important;color:var(--text2)!important}body.devnew-theme .devnew-rating-field{margin:0!important;padding:0!important;border:0!important}body.devnew-theme .devnew-star-rating{display:inline-flex!important;flex-direction:row-reverse!important;justify-content:flex-end!important;gap:4px!important}body.devnew-theme .devnew-star-rating input{position:absolute!important;opacity:0!important;pointer-events:none!important}body.devnew-theme .devnew-star-rating label{margin:0!important;color:#ff8a32!important;font-size:22px!important;cursor:pointer!important}
@media(max-width:860px){body.devnew-theme .devnew-login-modal{padding:82px 24px 32px!important}body.devnew-theme .devnew-login-modal .modal-auth_content{padding:0!important}body.devnew-theme .devnew-login-title{font-size:36px!important;margin-bottom:28px!important}body.devnew-theme .devnew-login-modal .login-logo .devnew-text-logo strong{font-size:36px!important}body.devnew-theme .devnew-login-modal .login-logo .devnew-text-logo em{font-size:23px!important}body.devnew-theme .devnew-login-modal .modal-auth_link{grid-template-columns:1fr 1.5fr!important;gap:14px!important}body.devnew-theme.single-product .devnew-product-reviews .devnew-comment-form{grid-template-columns:1fr!important}body.devnew-theme.single-product .devnew-product-reviews .devnew-comment-form>*{grid-column:1/-1!important}}
@media(max-width:480px){body.devnew-theme .devnew-login-modal{padding-left:18px!important;padding-right:18px!important}body.devnew-theme .devnew-login-title{font-size:32px!important}body.devnew-theme .devnew-login-modal .modal-auth_link{grid-template-columns:1fr!important}body.devnew-theme.single-product .devnew-add-cart form.cart{gap:10px!important}body.devnew-theme.single-product .devnew-add-cart .quantity{grid-template-columns:40px 46px 40px!important;width:126px!important;min-width:126px!important}body.devnew-theme.single-product .devnew-add-cart .quantity input.qty{width:46px!important}body.devnew-theme.single-product .devnew-qty-minus,body.devnew-theme.single-product .devnew-qty-plus{width:40px!important}}
