/* ============================================================
   "Владимир Каркас" (park-noyabrsk.ru) — design shim.
   The WordPress theme "456ecology" lost its core CSS (bootstrap/application/
   fonts/color — all 404), so this restores a readable, modern green layout:
   a Bootstrap-3-compatible grid + theme/Visual-Composer styling.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap');

:root {
  --green:       #5e9c34;   /* refined brand green */
  --green-dark:  #4a7d29;
  --green-soft:  #eef5e6;
  --leaf:        #79ad4b;   /* original brand accent */
  --bg:          #ffffff;
  --bg-alt:      #f4f7f0;
  --ink:         #232a1c;
  --ink-soft:    #4c5443;
  --ink-muted:   #7b8270;
  --line:        #e3e8db;
  --accent:      #5e9c34;
  --warn:        #c0512c;
  --r:    12px;
  --r-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(40,50,30,.07);
  --shadow:    0 12px 32px rgba(40,50,30,.12);
  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; max-width: 100vw;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--green); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); font-weight: 800; line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3.2vw, 34px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }
p { margin: 0 0 1em; }
::selection { background: var(--green); color: #fff; }

/* ---------- BOOTSTRAP-3 COMPATIBLE GRID ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row::before, .row::after { content: none; display: none; } /* kill float clearfix */
[class*="col-"] { position: relative; width: 100%; padding: 0 15px; box-sizing: border-box; float: none !important; }

/* base (xs) widths — apply everywhere, overridden upward */
.col-xs-1{width:8.3333%}.col-xs-2{width:16.6667%}.col-xs-3{width:25%}.col-xs-4{width:33.3333%}
.col-xs-5{width:41.6667%}.col-xs-6{width:50%}.col-xs-7{width:58.3333%}.col-xs-8{width:66.6667%}
.col-xs-9{width:75%}.col-xs-10{width:83.3333%}.col-xs-11{width:91.6667%}.col-xs-12{width:100%}
.col-1-2{width:50%}.col-1-3{width:33.3333%}.col-1-4{width:25%}

@media (min-width: 768px) {
  .col-sm-1{width:8.3333%}.col-sm-2{width:16.6667%}.col-sm-3{width:25%}.col-sm-4{width:33.3333%}
  .col-sm-5{width:41.6667%}.col-sm-6{width:50%}.col-sm-7{width:58.3333%}.col-sm-8{width:66.6667%}
  .col-sm-9{width:75%}.col-sm-10{width:83.3333%}.col-sm-11{width:91.6667%}.col-sm-12{width:100%}
}
@media (min-width: 992px) {
  .col-md-1{width:8.3333%}.col-md-2{width:16.6667%}.col-md-3{width:25%}.col-md-4{width:33.3333%}
  .col-md-5{width:41.6667%}.col-md-6{width:50%}.col-md-7{width:58.3333%}.col-md-8{width:66.6667%}
  .col-md-9{width:75%}.col-md-10{width:83.3333%}.col-md-11{width:91.6667%}.col-md-12{width:100%}
}
@media (min-width: 1200px) {
  .col-lg-1{width:8.3333%}.col-lg-2{width:16.6667%}.col-lg-3{width:25%}.col-lg-4{width:33.3333%}
  .col-lg-5{width:41.6667%}.col-lg-6{width:50%}.col-lg-7{width:58.3333%}.col-lg-8{width:66.6667%}
  .col-lg-9{width:75%}.col-lg-10{width:83.3333%}.col-lg-11{width:91.6667%}.col-lg-12{width:100%}
}
/* below tablets, every column stacks full-width */
@media (max-width: 767px) { [class*="col-"], .col-1-2, .col-1-3, .col-1-4 { width: 100% !important; } }

/* ---------- VISUAL COMPOSER ---------- */
.vc_row, .vc_row-fluid { position: relative; }
.wpb_row, .vc_row { display: block; }
.vc_row.vc_row-flex, .vc_row-fluid { display: flex; flex-wrap: wrap; }
.wpb_column, .vc_column_container { padding: 0 15px; box-sizing: border-box; }
.vc_column-inner { padding: 0; }
.wpb_wrapper { width: 100%; }
.wpb_content_element, .wpb_text_column { margin-bottom: 20px; }
.wpb_single_image img, .wpb_wrapper img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.vc_row-has-fill, .vc_row-has-fill > .vc_column_container > .vc_column-inner { padding-top: 10px; }
[class*="vc_custom_"] { background-size: cover !important; background-position: center !important; }

/* generous section rhythm */
.vc_row { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); }
.vc_row .vc_row { padding-top: 0; padding-bottom: 0; }

/* ---------- HEADER (one compact row: logo left, contacts+callback right) ---------- */
.header-middle { background: var(--bg); border-bottom: 1px solid var(--line); }
.header-middle .container { max-width: 1180px; margin: 0 auto; padding: 8px 15px; display: block; }
.header-middle .row { display: block !important; margin: 0; width: 100%; }
.header-middle .col-md-12 {
  display: flex !important; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 24px; width: 100% !important; padding: 0;
}
/* logo — smaller so the header is shorter/narrower */
.header-middle .img { margin: 0; max-height: 56px; display: flex; align-items: center; }
.header-middle .img h1 { margin: 0; line-height: 0; }
.header-middle .img img, .site-logo img, .custom-logo { max-height: 52px !important; width: auto !important; height: auto; }
/* contacts block pinned to the right, single row */
.header-content-wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-left: auto;
}
.header-content { display: flex; align-items: center; gap: 12px; margin: 0; }
.phone-work-hours { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; font-size: 14px; line-height: 1.3; }
.phone-work-hours a { font-weight: 700; font-size: 17px; color: var(--ink); }
.phone-work-hours a:hover { color: var(--green); }
.custom-header-container { display: flex; align-items: center; gap: 14px; }
@media (max-width: 767px) {
  .header-middle .col-md-12 { justify-content: center; text-align: center; }
  .header-content-wrap { margin-left: 0; justify-content: center; }
}

/* ---------- NAV / MENU ---------- */
.header-bottom, .header-bottom-wrap { background: var(--green) !important; }
.header-bottom-wrap { display: flex; align-items: center; }
.menu-container, #menu-menu, ul.menu {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 2px 4px;
  margin: 0; padding: 0; list-style: none;
}
.menu-container > .menu-item, ul.menu > .menu-item { position: relative; list-style: none; }
.menu-container > .menu-item > a, ul.menu > .menu-item > a {
  display: block; padding: 14px 18px; color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
  border-radius: 6px;
}
.menu-container > .menu-item > a:hover, .menu-container > .menu-item.active > a,
.menu-container > .menu-item.current-menu-item > a { background: rgba(0,0,0,.14); color: #fff; }

/* dropdowns */
.menu-item-has-children > .sub-menu, .dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: var(--shadow); padding: 8px 0; display: none; z-index: 500;
}
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:hover > .dropdown-menu { display: block; }
.sub-menu .menu-item a, .dropdown-menu .menu-item a, .dropdown-menu a {
  display: block; padding: 9px 18px; color: var(--ink); font-weight: 500; white-space: nowrap;
}
.sub-menu .menu-item a:hover, .dropdown-menu a:hover { background: var(--green-soft); color: var(--green-dark); }
.dropdown-menu.row { display: none; flex-wrap: wrap; }
.menu-item-has-children:hover > .dropdown-menu.row { display: flex; }
.dropdown-menu.row .menu-item { width: 100%; }

/* mobile "Menu" toggle label */
.menu-title, .responsive-menu-title { font-weight: 700; }

/* ---------- BUTTONS ---------- */
.btn, button, input[type="submit"], .wpcf7-submit, a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; font-family: var(--font); font-size: 15px; font-weight: 700; line-height: 1;
  background: var(--green); color: #fff !important; border: 0; border-radius: 999px; cursor: pointer;
  text-decoration: none; text-align: center; transition: background .15s, transform .1s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(94,156,52,.28);
}
.btn:hover, button:hover, .wpcf7-submit:hover { background: var(--green-dark); color: #fff !important; transform: translateY(-1px); }
.btn-primary { background: var(--green); }
.btn-medium { padding: 12px 24px; }
.btn-large, .btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.wpb_text_column, .wpb_text_column p { color: var(--ink-soft); }
.wpb_text_column h1, .wpb_text_column h2, .wpb_text_column h3 { color: var(--ink); }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* price-like big text */
[style*="font-size: 48px"], [style*="font-size:48px"], .price { color: var(--green-dark); font-weight: 800; }

/* ---------- FORMS ---------- */
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea, select, .wpcf7-form-control {
  width: 100%; padding: 12px 14px; font-family: var(--font); font-size: 15px;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-sizing: border-box;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
textarea { min-height: 110px; resize: vertical; }
.wpcf7-submit { width: auto; }

/* ---------- TABLES (easy-tables-vc) ---------- */
table { border-collapse: collapse; width: 100%; }
table td, table th { border: 1px solid var(--line); padding: 10px 12px; }
table th { background: var(--green-soft); color: var(--ink); font-weight: 700; }

/* ---------- PROMO MODULES (mm_module banners) ---------- */
/* These are background-image banners with absolutely-positioned text layers whose
   CSS is gone. Flatten each into a readable card: cover image + dark overlay + flowed text. */
[class*="mm_module"] {
  position: relative;
  min-height: 240px;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  margin-bottom: 20px;
  color: #fff;
}
[class*="mm_module"]::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,12,.15) 0%, rgba(20,30,12,.72) 100%);
  z-index: 0;
}
[class*="mm_module"] > * { position: relative !important; z-index: 1; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; }
[class*="_content"], [class*="_content_wrap"] { position: relative !important; z-index: 1; inset: auto !important; width: auto !important; height: auto !important; }
[class*="mm"][class*="_title"] { color: #fff !important; font-family: var(--font); font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.2; margin: 0 0 6px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
[class*="mm"][class*="_description"] { color: #eef3e7 !important; font-size: 14px; line-height: 1.45; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.mm_dark_bg { background-color: transparent !important; }
.row.hidden-xs { display: flex; flex-wrap: wrap; }
@media (max-width: 767px) { .hidden-xs { display: none !important; } }

/* ---------- HIDE ENGLISH CRUMBS + "Menu" LABEL ---------- */
.lpd_breadcrumb { display: none !important; }       /* "You Are Here: Home / Archives / Category / ..." */
.menu-title, .responsive-menu-title, .menuToggle { display: none !important; } /* the literal "Menu" word that breaks the green nav bar */

/* ---------- PRODUCT GALLERY (Colorbox thumbnails hidden by missing init) ---------- */
.galleria, .single-post-content .gallery {
  display: flex !important; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; align-items: flex-start;
}
.galleria a.cboxElement, .gallery a.cboxElement {
  display: block !important; width: calc(33.333% - 8px); border-radius: var(--r-sm);
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt);
}
.galleria a.cboxElement img, .gallery a.cboxElement img {
  width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block;
}
.page-thumbnail, img.page-thumbnail { display: block; width: 100%; max-width: 560px; height: auto; border-radius: var(--r); margin: 0 0 18px; }
@media (max-width: 600px) { .galleria a.cboxElement, .gallery a.cboxElement { width: calc(50% - 6px); } }

/* ---------- RELATED POSTS (YARPP) ---------- */
.yarpp-related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); clear: both; }
.yarpp-related > h3, .yarpp-related-title { font-size: 0; margin: 0 0 18px; } /* hide English "Related Posts:" */
.yarpp-related > h3::before, .yarpp-related-title::before { content: "Похожие проекты"; font-size: 22px; font-weight: 800; color: var(--ink); }
.yarpp-thumbnails-horizontal {
  display: flex !important; flex-wrap: wrap; gap: 20px; align-items: stretch;
}
.yarpp-thumbnail {
  display: flex !important; flex-direction: column; width: calc(25% - 15px);
  text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s; margin: 0 !important;
}
.yarpp-thumbnail:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.yarpp-thumbnail img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin: 0 !important; }
.yarpp-thumbnail-title { display: block; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
@media (max-width: 991px) { .yarpp-thumbnail { width: calc(50% - 10px); } }
@media (max-width: 560px)  { .yarpp-thumbnail { width: 100%; } }

/* ---------- CATALOG / CATEGORY GRID ---------- */
/* product columns (.col-md-4 with .lpd-portfolio-item) are dumped straight into
   .page-content as block elements → they stacked. Lay them out as a real grid. */
.page-content:has(> .col-md-4) {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 -12px;
}
.page-content:has(> .col-md-4) > .col-md-4 {
  width: 33.3333% !important;
  padding: 0 12px;
  margin-bottom: 24px;
  box-sizing: border-box;
}
@media (max-width: 991px) { .page-content:has(> .col-md-4) > .col-md-4 { width: 50% !important; } }
@media (max-width: 600px)  { .page-content:has(> .col-md-4) > .col-md-4 { width: 100% !important; } }

.lpd-portfolio-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.lpd-portfolio-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.lpd-portfolio-item a img, .lpd-portfolio-item img.img-responsive, .lpd-portfolio-item img {
  width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0;
}
.lpd-portfolio-item h1, .lpd-portfolio-item h2, .lpd-portfolio-item h3, .lpd-portfolio-item .lpd-portfolio-title {
  padding: 14px 16px 2px; margin: 0; font-size: 18px; line-height: 1.25;
}
.lpd-portfolio-item p, .lpd-portfolio-item .price, .lpd-portfolio-item div { padding-left: 16px; padding-right: 16px; }
.lpd-portfolio-item .price, .lpd-portfolio-item strong { color: var(--green-dark); font-weight: 800; }
.lpd-portfolio-item > *:last-child { margin-bottom: 14px; }

/* ---------- HIDE LEFTOVER THEME DEMO CONTENT (Envato placeholders) ---------- */
/* "FREE DELIVERY / STUDENT DISCOUNT", "BIOMASS / SOLAR PANELS / UK DELIVERY",
   and the "DESIGNED BY ENVATO / Lorem ipsum" featured modules are demo blocks
   the site owner never removed. */
.vc_custom_1465311667470,
.vc_custom_1465311736400,
.featured-module,
.featured-modules-wrap,
[class*="featured-module"] { display: none !important; }

/* ---------- FOOTER ---------- */
.footer, footer, [class*="footer-"] { background: #20281a; color: #c4ccb6; }
.footer a, footer a, [class*="footer-"] a { color: #c4ccb6; }
.footer a:hover, footer a:hover { color: #fff; }
.footer-m-copyright { background: #20281a; color: #aab39a; padding: 18px 0; }

/* ---------- IMAGES / SLIDERS ---------- */
[class*="ult"][class*="slider"] img, .rev_slider img, .wpb_gallery img { max-width: 100%; height: auto; }
.uvc-heading, .ult-responsive { max-width: 100%; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .menu-container > .menu-item > a, ul.menu > .menu-item > a { padding: 12px 14px; font-size: 14px; }
}
@media (max-width: 767px) {
  .header-content-wrap, .header-middle .container { justify-content: center; text-align: center; }
  .menu-container, #menu-menu, ul.menu { flex-direction: column; align-items: stretch; }
  .menu-container > .menu-item > a { border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .menu-item-has-children > .sub-menu, .dropdown-menu { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.08); display: block; padding: 0; }
  .sub-menu .menu-item a, .dropdown-menu a { color: #eaf3e0; padding-left: 32px; }
  h1 { font-size: 26px; } h2 { font-size: 22px; }
  .vc_row { padding-top: 28px; padding-bottom: 28px; }
}
