/**
 * Homepage typography and card layout. Keeps existing blue/green palette.
 * Float-based legacy columns caused tall holes and inconsistent image heights.
 */
.f_service.container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  position: relative;
  z-index: 2;
  margin-top: -48px;
  margin-bottom: 56px;
  padding: 14px;
  background: #f1f4f7;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 8px 25px rgba(35,50,57,.09);
}
.f_service.container::before, .f_service.container::after { display: none; }
.f_service .f_service_block,
.f_service.container > .f_service_block.col-md-3 {
  float: none;
  display: flex;
  width: calc((100% - 42px) / 4);
  padding: 0;
  margin: 0;
  min-width: 0;
  background: transparent;
  color: #fff;
}
.f_service .f_service_block_in {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  min-height: 390px;
  padding: 0 0 20px;
  text-align: center;
  border-radius: 8px !important;
  overflow: hidden;
  background: #315ecb;
}
.f_service .f_service_block:nth-child(4n + 2) .f_service_block_in,
.f_service .f_service_block:nth-child(4n + 3) .f_service_block_in { background: #2ebe63; }
.f_service .f_service_img {
  display: block;
  width: 100%;
  height: 180px;
  margin: 0 0 16px;
  flex: 0 0 180px;
  overflow: hidden;
  background: rgba(0,0,0,.08);
}
.f_service .f_service_img img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.f_service .f_service_title {
  flex: 0 0 auto;
  padding: 0 16px;
  margin: 0 0 12px;
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-size: clamp(17px,1.6vw,20px);
  font-weight: 700;
  line-height: 1.26;
  overflow-wrap: anywhere;
}
.f_service .f_service_text {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  opacity: .96;
  overflow-wrap: anywhere;
}
.f_service .f_service_text p { margin: 0 0 8px; line-height: inherit; }
.f_service .f_service_text p:last-child { margin-bottom: 0; }
.f_service .f_service_block .f_service_block_in > a {
  position: static;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 160px;
  max-width: calc(100% - 32px);
  height: 40px;
  min-height: 40px;
  margin: auto 16px 0;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  background: rgba(18,58,144,.35);
  border-radius: 6px;
  opacity: 1;
}
.f_service .f_service_block:nth-child(4n + 2) .f_service_block_in > a,
.f_service .f_service_block:nth-child(4n + 3) .f_service_block_in > a { background: rgba(0,75,37,.26); }
.f_service .f_service_block .f_service_block_in > a:hover,
.f_service .f_service_block .f_service_block_in > a:focus { background: rgba(0,0,0,.28); color: #fff; }

/* Further sections remain in their original sequence, with clean spacing. */
.f_advantages.container, .f_about.container, .f_reviews.container, .f_news.container {
  padding-top: 16px;
  padding-bottom: 42px;
}
.f_advantages h2, .f_about h2, .f_reviews h2, .f_news h2 {
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 24px;
}
.f_advantages .f_advantages_item { min-height: 100%; }
.f_advantages .f_advantages_text { font-size: 15px; line-height: 1.6; }
.f_about .about_content { font-size: 16px; line-height: 1.7; }
.f_map { padding: 0; background: #f3f5f7; }
.f_map > .container { margin-top: 0; }
.f_map > .container > .row { display: flex; align-items: stretch; margin: 0 -15px; }
.f_map .col-md-5, .f_map .col-md-7 { float: none; padding: 28px; min-height: 310px; }
.f_map .col-md-5 { background: #454545; color: #fff; }
.f_map .col-md-5 h3 { color: #fff; font-size: 23px; line-height: 1.2; }
.f_map .col-md-5 p { font-size: 15px; line-height: 1.6; }
.f_map .col-md-5 a { color: #fff; text-decoration: underline; }
.f_map .col-md-7 { background: #e6edf4; }
.f_map .stroyenergy-home-map { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; border-radius: 8px; }
.f_map .stroyenergy-home-map-link { display: inline-flex; margin: 12px 0 0; font-size: 14px; }

@media (max-width: 1199px) {
  .f_service .f_service_block, .f_service.container > .f_service_block.col-md-3 { width: calc((100% - 14px) / 2); }
}
@media (max-width: 767px) {
  .f_service.container { margin-top: -20px; margin-bottom: 36px; padding: 10px; gap: 10px; }
  .f_service .f_service_block, .f_service.container > .f_service_block.col-md-3 { width: calc((100% - 10px) / 2); }
  .f_service .f_service_block_in { min-height: 0; padding-bottom: 16px; }
  .f_service .f_service_img { height: 124px; flex-basis: 124px; margin-bottom: 12px; }
  .f_service .f_service_title { font-size: 16px; padding: 0 10px; }
  .f_service .f_service_text { padding: 0 10px 12px; font-size: 12px; }
  .f_service .f_service_block .f_service_block_in > a { min-width: 0; width: calc(100% - 20px); margin: auto 10px 0; }
  .f_map > .container > .row { flex-direction: column; }
  .f_map .col-md-5, .f_map .col-md-7 { width: 100%; min-height: 0; padding: 22px; }
}
@media (max-width: 520px) {
  .f_service .f_service_block, .f_service.container > .f_service_block.col-md-3 { width: 100%; }
  .f_service .f_service_img { height: 190px; flex-basis: 190px; }
  .f_service .f_service_title { font-size: 19px; }
  .f_service .f_service_text { font-size: 14px; }
  .f_service .f_service_block_in { min-height: 0; }
}
/* Advantages and the source-site offer. */
.se-advantages-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 30px; }
.se-advantage { position: relative; border: 1px solid #b5b5b5; padding: 32px; margin-bottom: 16px; color: #454444; }
.se-advantage--green { background: #2ebe63; color: #fff; border-color: #2ebe63; }
.se-advantage::after { content: ''; position: absolute; width: 26px; height: 26px; right: 24%; bottom: -14px; transform: rotate(45deg); border-right: 1px solid #b5b5b5; border-bottom: 1px solid #b5b5b5; background: #fff; }
.se-advantage--green::after { right: -14px; top: calc(50% - 13px); bottom: auto; border: 0; background: #2ebe63; }
.se-advantage-inner { display: flow-root; }
.se-advantage-icon { float: left; width: 112px; margin: 0 24px 12px 0; }
.se-advantage-icon img { width: 100%; height: auto; }
.se-advantage-text { font-size: 16px; line-height: 1.55; }
.se-advantage-text p { margin: 0; }
/* Native scroll-snap sliders: touch, keyboard and arrow navigation. */
.se-posts.container { padding-top: 36px; padding-bottom: 48px; background: transparent; color: #243239; }
.se-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.se-section-heading h2 { margin: 0; font: 700 34px/1.2 'Roboto Condensed',Arial,sans-serif; }
.se-slider-controls { display: flex; gap: 10px; }
.se-slider-controls button { width: 44px; height: 44px; border: 1px solid #dce3ed; border-radius: 50%; background: #fff; color: #315ecb; font-size: 24px; }
.se-slider-controls button:disabled { opacity: .35; cursor: default; }
.se-card-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0; padding: 4px 0 16px; scrollbar-width: thin; scrollbar-color: #bac8e6 transparent; }
.se-posts--news .se-card-track { grid-auto-columns: calc((100% - 48px) / 3); }
.se-post-card { scroll-snap-align: start; min-width: 0; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #e1e7ed; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(35,50,57,.04); }
.se-posts--otzyvy .se-post-card { border-top: 4px solid #2ebe63; background: #f7fbf8; }
.se-review-mark { font: 72px/.8 Georgia,serif; color: #2ebe63; }
.se-post-card h3 { margin: 16px 0; font: 700 23px/1.3 'Roboto Condensed',Arial,sans-serif; }
.se-post-card h3 a { color: inherit; }
.se-post-excerpt { margin-bottom: 24px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.se-post-excerpt p { margin: 0; }
.se-post-link { margin-top: auto; padding-top: 8px; color: #315ecb; font-size: 15px; font-weight: 700; }
.se-post-card time { color: #6c7a86; font-size: 13px; }
.se-post-image { display: block; width: calc(100% + 56px); height: 180px; margin: -28px -28px 24px; overflow: hidden; border-radius: 12px 12px 0 0; }
.se-post-image img { width: 100%; height: 100%; object-fit: cover; }
/* Full-width contact band, with the map filling its entire half. */
.se-contact-map { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; background: #233239; }
.se-contact-info { padding: 48px max(28px, calc((100vw - 1240px)/2)); padding-right: 48px; color: #fff; }
.se-contact-eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8edeb0; }
.se-contact-info h2 { margin: 12px 0 16px; font: 700 32px/1.2 'Roboto Condensed',Arial,sans-serif; }
.se-contact-description { max-width: 460px; font-size: 16px; line-height: 1.6; margin-bottom: 28px; color: #d7e1e6; }
.se-contact-info dl { margin: 0; display: grid; gap: 20px; }
.se-contact-info dt { margin-bottom: 5px; color: #9db1bc; font-size: 13px; font-weight: 400; }
.se-contact-info dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.se-contact-info a { color: #fff; }
.se-contact-map-frame { position: relative; min-height: 440px; }
.se-contact-map-frame .stroyenergy-home-map { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 100%; border: 0; display: block; }
.se-contact-map-frame .stroyenergy-home-map-link { position: absolute; bottom: 16px; left: 16px; padding: 10px 16px; background: #fff; border-radius: 6px; color: #243239; box-shadow: 0 2px 12px #0002; }
@media (max-width: 991px) {
  .se-advantages-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .se-advantage { padding: 24px; }
  .se-advantage-icon { width: 80px; }
  .se-posts--news .se-card-track { grid-auto-columns: calc((100% - 24px)/2); }
}
@media (max-width: 767px) {
  .se-advantages-grid { grid-template-columns: 1fr; gap: 20px; }
  .se-advantage--green::after { right: 24%; top: auto; bottom: -13px; }
  .se-posts.container { padding-top: 24px; padding-bottom: 28px; }
  .se-section-heading h2 { font-size: 28px; }
  .se-card-track, .se-posts--news .se-card-track { grid-auto-columns: 88%; gap: 16px; }
  .se-post-card { padding: 22px; }
  .se-post-image { margin: -22px -22px 20px; width: calc(100% + 44px); }
  .se-contact-map { grid-template-columns: 1fr; }
  .se-contact-info { padding: 32px 24px; }
  .se-contact-map-frame { min-height: 340px; }
}
/* Three review cards per row; keep real imported items without fillers. */
.se-posts--otzyvy .se-card-track { grid-auto-columns: calc((100% - 48px) / 3); }
.se-posts--news .se-card-track { grid-auto-columns: calc((100% - 24px) / 2); }
@media (min-width: 768px) and (max-width: 991px) {
  .se-posts--otzyvy .se-card-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 767px) {
  .se-posts--otzyvy .se-card-track, .se-posts--news .se-card-track { grid-auto-columns: 88%; }
}

.se-slider-controls button { display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .15s, border-color .15s; }
.se-slider-controls svg { display: block; width: 20px; height: 20px; }
.se-slider-controls .se-arrow-prev { transform: rotate(180deg); }
.se-slider-controls button:not(:disabled):hover { background: #f0f4fc; border-color: #315ecb; }
.se-slider-controls button:focus-visible { outline: 2px solid #315ecb; outline-offset: 3px; }
.se-post-link { display: inline-flex; align-items: center; gap: 8px; }
.se-post-link svg { width: 16px; height: 16px; flex: 0 0 16px; }
/* Solid offer band: no background photography. */
.se-content-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin: 32px 0; }
.se-content-grid h2 { font: 700 24px/1.3 'Roboto Condensed',Arial,sans-serif; margin: 0 0 16px; }
@media (max-width: 991px) { .se-content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) { .se-content-grid { grid-template-columns: 1fr; } }

/* Homepage lead form: its own layout, independent of Bootstrap form classes. */
.se-home-offer { margin: 0 0 56px; padding: 52px 0; background: #315ecb; color: #fff; }
.se-home-offer .se-offer-layout { display: grid; grid-template-columns: .85fr 1.65fr; align-items: center; gap: 48px; }
.se-offer-layout::before, .se-offer-layout::after { display: none; }
.se-offer-eyebrow { display: block; margin-bottom: 14px; color: #c9d8ff; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.se-home-offer .se-offer-intro h2 { margin: 0 0 16px; color: #fff; font: 700 30px/1.15 'Roboto Condensed',Arial,sans-serif; }
.se-home-offer .se-offer-intro p { margin: 0; color: #e3eaff; font-size: 14px; line-height: 1.65; max-width: 400px; }
.se-offer-form { min-width: 0; }
.se-home-offer .wpcf7-form { display: block; margin: 0; }
.se-home-offer .se-form-fields { display: grid; grid-template-columns: 1fr 1fr 1.25fr; align-items: start; gap: 14px; }
.se-home-offer .se-form-field { min-width: 0; }
.se-home-offer .se-form-field label { display: block; width: 100%; margin: 0; color: #e6edff; font: 500 13px/1.4 'Roboto',Arial,sans-serif; }
.se-home-offer .se-form-field input { display: block; width: 100%; height: 56px; margin-top: 8px; padding: 0 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; background: #fff; color: #233239; box-shadow: none; font: 400 15px/1.4 'Roboto',Arial,sans-serif; transition: box-shadow .15s,border-color .15s; }
.se-home-offer .se-form-field input::placeholder { color: #7c8a98; opacity: 1; }
.se-home-offer .se-form-field input:focus { border-color: #9fbaff; outline: none; box-shadow: 0 0 0 4px rgba(255,255,255,.22); }
.se-home-offer .se-form-action { position: relative; padding-top: 26px; min-width: 0; }
.se-home-offer .se-form-submit { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 56px; height: auto; padding: 14px 16px; margin: 0; border: 1px solid transparent; border-radius: 10px; background: #2ebe63; color: #fff; box-shadow: 0 4px 10px rgba(12,68,38,.12); font: 700 14px/1.4 'Roboto',Arial,sans-serif; text-transform: none; white-space: normal; cursor: pointer; transition: background .15s,box-shadow .15s; }
.se-home-offer .se-form-submit:hover { background: #27ad59; box-shadow: 0 6px 16px rgba(12,68,38,.22); }
.se-home-offer .se-form-submit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.se-home-offer .se-form-submit:disabled { opacity: .65; cursor: not-allowed; }
.se-home-offer .se-form-fields p, .se-home-offer .se-form-consent p { margin: 0; }
.se-home-offer .se-form-consent { margin-top: 20px; color: #e3eaff; font-size: 12px; line-height: 1.6; }
.se-home-offer .se-form-consent .wpcf7-list-item { margin: 0; }
.se-home-offer .se-form-consent label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; cursor: pointer; }
.se-home-offer .se-form-consent input[type=checkbox] { position: static; flex: 0 0 18px; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #2ebe63; cursor: pointer; }
.se-home-offer .se-form-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.se-home-offer .wpcf7-not-valid-tip { margin-top: 6px; color: #fff0b5; font-size: 12px; line-height: 1.4; }
.se-home-offer .wpcf7-response-output { margin: 20px 0 0 !important; padding: 12px 16px !important; border-radius: 8px; color: #fff; font-size: 14px; line-height: 1.5; }
.se-home-offer .wpcf7-spinner { position: absolute; right: 8px; bottom: -30px; margin: 0; }
@media (max-width: 1199px) {
  .se-home-offer .se-offer-layout { grid-template-columns: 1fr; gap: 28px; }
  .se-home-offer .se-offer-intro p { max-width: 620px; }
}
@media (max-width: 767px) {
  .se-home-offer { margin-bottom: 32px; padding: 32px 0; }
  .se-home-offer .se-offer-layout { gap: 24px; }
  .se-home-offer .se-offer-intro h2 { font-size: 28px; }
  .se-home-offer .se-form-fields { grid-template-columns: 1fr; gap: 16px; }
  .se-home-offer .se-form-action { padding-top: 4px; }
  .se-home-offer .se-form-consent { margin-top: 16px; }
}
/* Legacy input:hover/focus removed native appearance, hiding the checkbox. */
.se-home-offer .se-form-consent input[type=checkbox] { appearance: auto; -webkit-appearance: checkbox; opacity: 1; visibility: visible; }
.se-home-offer .se-form-consent input[type=checkbox]:focus-visible { outline: 2px solid #fff !important; outline-offset: 3px; }
