/* Шапка / меню / футер / hero — релиз 2026-11. Выравнивание 2026-11-11. */

/* ===== HEADER ===== */
#header_wrapper {
  overflow: visible;
}
#header_area {
  gap: 12px;
  padding: 0 12px;
  box-sizing: border-box;
}
#header_left { flex-shrink: 0; }
#header_right {
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
}
.header_info {
  float: none !important;
  flex-shrink: 0;
}
.header_phone {
  white-space: nowrap;
  min-width: 148px;
}
.header_phone:before {
  content: none !important;
  display: none !important;
}
header .header_phone-icon {
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -14px;
  border: 1px solid #737373;
  border-radius: 50%;
  background: url(/local/templates/2stroit_adaptive/images/icons/header_phone.png) center no-repeat;
}
.header_phone a {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.header_phone > div { line-height: 20px; }
.header_socials {
  flex-shrink: 0;
  gap: 6px;
}
.header_socials_link.tg { display: inline-block; }
.header_actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.header_calc_btn {
  padding: 12px 14px;
  background: #ffca00;
  color: #252525 !important;
  line-height: 100%;
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "DINPro-Regular", "Roboto", sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.header_calc_btn:hover { background: #ffc105; }
#header_wrapper .header_callback_btn {
  padding: 12px 14px;
  font-size: 12px;
  white-space: nowrap;
}
@media (max-width: 1500px) {
  #header_right { gap: 12px; }
  #header_right .header_address:first-child { display: none; }
}
@media (max-width: 1280px) {
  .header_left_span { display: none; }
  .header_calc_btn,
  #header_wrapper .header_callback_btn {
    padding: 11px 10px;
    font-size: 11px;
  }
}

/* ===== MENU (flex вместо table-cell) ===== */
#index_header_topmenu {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100%;
  height: 70px;
  background: #1f1f1f !important; /* непрозрачный — белый текст читается */
  z-index: 120;
  overflow: visible !important;
}
#index_header_topmenu.float_menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 300;
  background: #1a1a1a !important;
}
#index_header_topmenu_center {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  height: 70px;
  position: relative;
  overflow: visible !important;
  z-index: 121;
}
#index_header_topmenu_center nav {
  height: 70px;
  overflow: visible !important;
  position: relative;
  z-index: 122;
}
#index_header_topmenu_center nav > ul.menu,
#index_header_topmenu_center nav > ul {
  display: flex !important;
  width: 100% !important;
  height: 70px;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  position: relative;
  z-index: 122;
  table-layout: auto;
}
#index_header_topmenu_center nav > ul > li {
  display: block !important;
  position: relative !important;
  flex: 1 1 0;
  height: 70px;
  list-style: none;
  z-index: 1;
  overflow: visible !important;
  float: none !important;
}
#index_header_topmenu_center nav > ul > li:hover,
#index_header_topmenu_center nav > ul > li:focus-within {
  z-index: 200;
}
#index_header_topmenu_center nav > ul > li:before {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -15px;
  height: 30px;
  width: 1px;
  background: #fff;
  opacity: 0.07;
  content: "";
}
#index_header_topmenu_center nav > ul > li:first-child:before { content: none; }
#index_header_topmenu_center nav > ul > li.has_children:after {
  position: absolute;
  content: "\25BC";
  color: #fff;
  right: 6px;
  top: 0;
  line-height: 70px;
  font-size: 7px;
  opacity: 0.7;
  pointer-events: none;
}
#index_header_topmenu_center nav > ul > li > a {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  line-height: 70px !important;
  color: #ffffff !important;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  padding: 0 18px 0 12px;
  margin: 0 !important;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
#index_header_topmenu_center nav > ul > li > a:after {
  height: 3px;
  left: 12px;
  right: 18px;
  width: auto;
  position: absolute;
  bottom: 0;
  background: #ffc105;
  content: "";
  opacity: 0;
  transition: 0.3s;
}
#index_header_topmenu_center nav > ul > li > a:hover,
#index_header_topmenu_center nav > ul > li.active > a {
  color: #ffc105 !important;
}
#index_header_topmenu_center nav > ul > li > a:hover:after,
#index_header_topmenu_center nav > ul > li.active > a:after {
  opacity: 1;
  bottom: 15px;
}

/* Поиск в конце ряда */
#index_header_topmenu_center nav > ul > li.nav-search {
  flex: 0 0 48px;
  max-width: 48px;
}
#index_header_topmenu_center nav > ul > li.nav-search:before,
#index_header_topmenu_center nav > ul > li.nav-search:after {
  content: none !important;
  display: none !important;
}
#index_header_topmenu_center nav > ul > li.nav-search .nav-search__form {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  margin: 0;
}
#index_header_topmenu_center nav > ul > li.nav-search .nav-search__input {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.5 6.5 0 1 0 14 15.5l.27.28v.79l5 5L20.49 19l-5-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/16px no-repeat;
  color: transparent;
  cursor: pointer;
  padding: 0;
  transition: width 0.2s, background-color 0.2s;
}
#index_header_topmenu_center nav > ul > li.nav-search .nav-search__input:focus {
  width: 140px;
  color: #fff;
  background-color: rgba(255,255,255,0.22);
  background-position: 8px center;
  padding: 0 10px 0 30px;
  cursor: text;
  outline: none;
}

/* Мегаменю «Проекты и цены» */
#index_header_topmenu_center nav > ul > li > .mega-panel {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto;
  z-index: 400 !important;
  min-width: 720px;
  width: max-content;
  max-width: min(980px, 92vw);
  background: #fff !important;
  color: #252525;
  padding: 18px 20px 14px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  text-align: left;
  box-sizing: border-box;
}
#index_header_topmenu_center nav > ul > li > .mega-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
#index_header_topmenu_center nav > ul > li:hover > .mega-panel,
#index_header_topmenu_center nav > ul > li:focus-within > .mega-panel {
  display: block !important;
}
#index_header_topmenu_center .mega-panel .menu-section {
  display: flex !important;
  gap: 28px;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
}
#index_header_topmenu_center .mega-panel .menu-section > li {
  list-style: none !important;
  flex: 0 0 auto;
  min-width: 170px;
  height: auto !important;
  display: block !important;
  position: static !important;
  float: none !important;
}
#index_header_topmenu_center .mega-panel .menu-section > li:before,
#index_header_topmenu_center .mega-panel .menu-section > li:after {
  content: none !important;
  display: none !important;
}
#index_header_topmenu_center .mega-panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #636363;
  line-height: 1.3;
}
#index_header_topmenu_center .mega-panel .menu-section ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  display: block !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  background: transparent !important;
}
#index_header_topmenu_center .mega-panel .menu-section ul > li {
  height: auto !important;
  display: block !important;
  position: static !important;
  float: none !important;
  list-style: none !important;
}
#index_header_topmenu_center .mega-panel .menu-section ul > li:before,
#index_header_topmenu_center .mega-panel .menu-section ul > li:after {
  content: none !important;
  display: none !important;
}
#index_header_topmenu_center .mega-panel .menu-section a {
  display: block !important;
  color: #252525 !important;
  text-decoration: none !important;
  line-height: 1.55 !important;
  font-size: 14px !important;
  text-transform: none !important;
  margin: 0 !important;
  padding: 5px 0 !important;
  white-space: normal !important;
  text-align: left !important;
  width: auto !important;
}
#index_header_topmenu_center .mega-panel .menu-section a:after {
  content: none !important;
  display: none !important;
}
#index_header_topmenu_center .mega-panel .menu-section a:hover {
  color: #94ad09 !important;
}
#index_header_topmenu_center .mega-panel .lead a {
  color: #94ad09 !important;
  font-weight: 600;
}
#index_header_topmenu_center .mega-panel .mega-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #636363;
}
#index_header_topmenu_center .mega-panel .mega-foot a {
  color: #94ad09 !important;
  text-transform: none !important;
  font-weight: 600;
  padding: 0 !important;
  line-height: 1.4 !important;
}

/* Выпадашка «О компании» */
#index_header_topmenu_center nav > ul > li > ul.submenu-green {
  display: none;
  position: absolute !important;
  top: 100% !important;
  left: 0;
  z-index: 400 !important;
  min-width: 240px;
  width: max-content;
  background: #94ad09 !important;
  padding: 8px 0 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}
#index_header_topmenu_center nav > ul > li:hover > ul.submenu-green,
#index_header_topmenu_center nav > ul > li:focus-within > ul.submenu-green {
  display: block !important;
}
#index_header_topmenu_center nav > ul > li:nth-last-child(2) > ul.submenu-green {
  left: auto;
  right: 0;
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green > li {
  display: block !important;
  height: auto !important;
  position: relative;
  float: none !important;
  list-style: none;
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green > li:before {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: calc(100% - 34px);
  margin: 0 17px;
  background: #768813;
  content: "";
  opacity: 1;
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green > li:first-child:before {
  content: none;
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green > li > a {
  display: block !important;
  line-height: 35px !important;
  color: #fff !important;
  padding: 5px 17px !important;
  margin: 0 !important;
  font-size: 15px !important;
  text-transform: none !important;
  text-align: left !important;
  white-space: nowrap;
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green > li > a:after {
  content: none !important;
  display: none !important;
}
#index_header_topmenu_center nav > ul > li > ul.submenu-green > li > a:hover {
  color: #ffc105 !important;
}

/* ===== Нижняя прилипающая панель — компактнее ===== */
#footer_bb {
  min-height: 0 !important;
  padding: 6px 0 !important;
  height: auto !important;
}
#footer_bb_area {
  width: 100%;
  max-width: 1200px;
  padding: 0 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
#footer_bb_area:after { display: none !important; content: none !important; }
#footerbb_call,
#footerbb_zakaz {
  float: none !important;
  width: auto !important;
  min-width: 0;
  line-height: 34px !important;
  font-size: 12px !important;
  padding: 0 14px 0 42px !important;
  margin: 0 !important;
  background-size: 18px !important;
  background-position: 12px center !important;
  height: 34px;
  box-sizing: border-box;
}
#footerbb_call:before,
#footerbb_zakaz:before,
#footerbb_call:after,
#footerbb_zakaz:after {
  content: none !important;
  display: none !important;
}
#footer_bb_right {
  float: none !important;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  line-height: 1.2 !important;
  font-size: 13px !important;
  font-weight: 600;
  text-align: left !important;
}
#footer_bb_right .header_phone-icon {
  display: none !important;
}
#footer_bb_right .round_the_clock {
  display: none !important;
}
#footer_bb_right > div {
  line-height: 1.2;
}
#footer_bb_right a {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ===== FOOTER ===== */
.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 24px;
  width: 100%;
  margin: 8px 0 28px;
  clear: both;
  float: none;
}
#footer_info {
  clear: both;
  display: flex;
  gap: 20px;
  width: 100%;
}
#footer_info .footer_block {
  float: none;
  box-sizing: border-box;
}
.footer__logo { flex-wrap: wrap; }
#footer_links {
  flex-wrap: wrap;
  gap: 12px 20px;
}
.footer-cols h3 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aaa;
}
.footer-cols a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 28px;
}
.footer-cols a:hover { color: #ffc105; }
.footer-cols .header_calc_btn { display: inline-block; margin-top: 10px; }

#mobile_header { align-items: center; }
#mobile_header .header_calc_btn {
  margin-left: auto;
  margin-right: 12px;
  padding: 10px 12px;
  font-size: 11px;
  flex-shrink: 0;
}
#mobile_toggle_logo,
#mobile_toggle_menu { float: none; }
#mobile_toggle_button { height: fit-content !important; }
#mobile_toggle_menu { padding-top: 0; }
#mobile_toggle_logo { padding-top: 0; }

@media (max-width: 1199px) {
  .header_actions .header_callback_btn { display: none; }
  .header_actions .header_calc_btn { display: inline-block; }
  #index_header_topmenu_center nav > ul > li > .mega-panel {
    min-width: 0;
    max-width: 92vw;
  }
}
@media (max-width: 992px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ===== HERO ===== */
.hero[data-dv-hero="2026"] {
  position: relative;
  z-index: 1;
  min-height: 720px;
  font-family: Montserrat, "Roboto", sans-serif;
  color: #252525;
  background-color: #eef3e4;
  background-image:
    linear-gradient(90deg, rgba(245,247,240,.96) 0%, rgba(245,247,240,.88) 42%, rgba(245,247,240,.35) 68%, rgba(245,247,240,.15) 100%),
    url("/images/hero-bg.webp");
  background-position: right center, 100% center;
  background-repeat: no-repeat, no-repeat;
  background-size: auto, contain;
  overflow: hidden;
}
.hero[data-dv-hero="2026"] .hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 720px;
  position: relative;
  z-index: 2;
  height: auto;
}
.hero[data-dv-hero="2026"] .hero-top { display: flex; align-items: flex-start; gap: 10px; }
.hero[data-dv-hero="2026"] .hero-top-info { width: 58%; display: flex; flex-direction: column; align-items: flex-start; }
.hero[data-dv-hero="2026"] .hero-top-image {
  width: 42%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero[data-dv-hero="2026"] .hero-top-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
}
.hero[data-dv-hero="2026"] .h1 {
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: #252525;
  max-width: 100%;
  width: 100%;
}
.hero[data-dv-hero="2026"] .hero-price-row {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px;
}
.hero[data-dv-hero="2026"] .hero-top-block {
  background-color: rgba(246, 246, 246, .9);
  border-radius: 15px;
  margin: 0;
  padding: 14px 22px;
  box-shadow: 0 10px 10px rgba(105, 105, 105, .2);
}
.hero[data-dv-hero="2026"] .hero-top-block-text {
  color: #95c001;
  text-transform: uppercase;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.hero[data-dv-hero="2026"] .hero-price-chip {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 2px solid #ffca00;
  border-radius: 15px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #252525;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0,0,0,.08);
  transition: transform .2s;
}
.hero[data-dv-hero="2026"] .hero-price-chip:hover { transform: translateY(-2px); color: #6f8608; }
.hero[data-dv-hero="2026"] .hero-price-chip span { color: #94ad09; margin-left: 6px; }
.hero[data-dv-hero="2026"] .hero-top-list {
  list-style: disc;
  background-color: rgba(246, 246, 246, .72);
  border-radius: 30px;
  margin: 28px 0 0;
  padding: 22px 28px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 10px rgba(105, 105, 105, .18);
  width: 100%;
}
.hero[data-dv-hero="2026"] .hero-top-item {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: #252525;
}
.hero[data-dv-hero="2026"] .hero-top-item::marker { color: #FDCC00; font-size: 22px; }
.hero[data-dv-hero="2026"] .hero-bottom {
  margin-top: 36px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero[data-dv-hero="2026"] .hero-btn-block { position: relative; }
.hero[data-dv-hero="2026"] .hero-btn {
  display: block;
  color: #fff;
  text-align: center;
  text-decoration: none;
  letter-spacing: .02em;
  text-transform: uppercase;
  background-image: linear-gradient(270deg, #95bf01, #11b517);
  border-radius: 10px;
  padding: 16px 46px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px #089828;
  line-height: 1.25;
  transition: filter .2s, transform .2s;
}
.hero[data-dv-hero="2026"] .hero-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.hero[data-dv-hero="2026"] .hero-btn--yellow {
  background-image: linear-gradient(270deg, #ffd329, #ffca00);
  color: #252525;
  box-shadow: 0 4px #ecad03;
}
.hero[data-dv-hero="2026"] .hero-btn-icon-1,
.hero[data-dv-hero="2026"] .hero-btn-icon-2 {
  width: 92px;
  position: absolute;
  top: -8px;
  left: -46px;
  pointer-events: none;
}
.hero-works[data-dv-hero="2026"] {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 22px 0 28px;
}
.hero-works[data-dv-hero="2026"] .hero-works-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.hero-works[data-dv-hero="2026"] .hero-works-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.hero-works[data-dv-hero="2026"] .hero-works-head h2 {
  margin: 0;
  font-family: "DINPro-Regular", Montserrat, sans-serif;
  font-size: 22px; color: #252525; font-weight: 500;
}
.hero-works[data-dv-hero="2026"] .hero-works-head a {
  color: #94ad09; font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: none;
}
.hero-works[data-dv-hero="2026"] .hero-works-head a:hover { color: #ffc105; }
.hero-works[data-dv-hero="2026"] .hero-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-works[data-dv-hero="2026"] .hero-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ddd;
  aspect-ratio: 4/3;
}
.hero-works[data-dv-hero="2026"] .hero-work-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.hero-works[data-dv-hero="2026"] .hero-work-card:hover img { transform: scale(1.05); }
.hero-works[data-dv-hero="2026"] .hero-work-card span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff; font-size: 13px; font-weight: 600;
  font-family: Montserrat, sans-serif;
}
@media (max-width: 992px) {
  .hero[data-dv-hero="2026"] {
    min-height: 0;
    background-size: cover;
    background-position: 70% center, 70% center;
  }
  .hero[data-dv-hero="2026"] .hero-container { min-height: 0; padding-top: 28px; padding-bottom: 28px; }
  .hero[data-dv-hero="2026"] .hero-top { flex-direction: column; }
  .hero[data-dv-hero="2026"] .hero-top-info,
  .hero[data-dv-hero="2026"] .hero-top-image { width: 100%; }
  .hero[data-dv-hero="2026"] .hero-top-image { order: -1; margin-bottom: -20px; }
  .hero[data-dv-hero="2026"] .hero-top-img { max-width: 260px; }
  .hero[data-dv-hero="2026"] .h1 { max-width: none; font-size: 30px; }
  .hero[data-dv-hero="2026"] .hero-bottom { gap: 28px; justify-content: center; }
  .hero[data-dv-hero="2026"] .hero-btn-icon-1,
  .hero[data-dv-hero="2026"] .hero-btn-icon-2 { display: none; }
  .hero-works[data-dv-hero="2026"] .hero-works-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-works[data-dv-hero="2026"] .hero-works-grid { grid-template-columns: 1fr; }
}
