/* site-fixes.css — whitespace, responsiveness and the MAS presentation feature.
   Loaded after style.css on index.html / index_ru.html / index_az.html only. */

/* ---------- 1. section rhythm (template used 100-150px per seam, uneven) ---------- */
.about-section { padding: 88px 0 48px; }
.services-section { padding: 0 0 88px; }
.services-section:before { height: 400px; }
.project-section { padding: 88px 0 60px; }
.project-section-two { padding: 88px 0 0; }
.call-to-action { padding: 84px 0 88px; }
.why-choose-us { padding: 88px 0 60px; }
.newsletter-section { padding: 76px 0 76px; }
.fluid-section-one { padding: 76px 0 76px; }
.main-footer .widgets-section { padding: 76px 0 40px; }
.main-footer .footer-bottom { padding: 22px 0 20px; }

/* long unbroken tokens used to blow the grid apart */
h1, h2, h3, h4, h5, h6, .sec-title h2, .service-block .lower-content .text {
  overflow-wrap: anywhere;
}

/* the language switcher is the last nav item; its 240px panel dropped off the right edge */
.main-menu .navigation > li:last-child.dropdown > ul { left: auto; right: 0; }

/* the pages had no h1 at all; keep one for structure without changing the design */
.mas-h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mas-form-note {
  display: none;
  margin: 10px 0 0;
  font-size: 14px;
  color: #1d5c2f;
}

/* ---------- 2. service cards: fixed 460px body left short texts floating ---------- */
.service-block .lower-content {
  height: auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.service-block .lower-content .text { flex: 1 1 auto; }
.service-block .lower-content .link-box { margin-top: 14px; }

/* ---------- 3. our-values: 530px of empty padding above every column ---------- */
.project-block-two .inner-box { padding-top: 250px; padding-bottom: 44px; }
.project-block-two .count { margin-bottom: 26px; font-size: 56px; }
.project-block-two h5 { margin-bottom: 18px; }

/* ---------- 4. keyframes the dropped animate.css used to provide ---------- */
@keyframes masSlideInDown {
  from { transform: translateY(-110%); }
  to { transform: translateY(0); }
}
.sticky-header.animated.slideInDown {
  animation: masSlideInDown 500ms ease both;
}
@keyframes masFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animated.fadeIn { animation: masFadeIn 400ms ease both; }

/* ---------- 5. presentation feature ---------- */
.presentation-section {
  position: relative;
  background: #01386a;
  padding: 84px 0 84px;
  overflow: hidden;
}
.presentation-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/icons/dotted-map.png);
  background-repeat: no-repeat;
  background-position: center;
  opacity: .12;
  pointer-events: none;
}
.presentation-section .auto-container { position: relative; z-index: 1; }
.presentation-section .sec-title .title { color: #f6a21d; }
.presentation-section .sec-title h2 { color: #ffffff; }
.presentation-section .sec-title h2:before { background-color: #f6a21d; }
.presentation-section .lead {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 26px;
}
.presentation-section .lead strong { color: #ffffff; font-weight: 600; }

.mas-figs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.mas-figs li {
  flex: 1 1 132px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  padding: 12px 10px;
  text-align: center;
}
.mas-figs .num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
}
.mas-figs .cap {
  display: block;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  margin-top: 4px;
}

.mas-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 26px;
}
.mas-thumb {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #00204a;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.mas-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
  transition: transform .45s ease, opacity .3s ease;
}
.mas-thumb:hover img,
.mas-thumb:focus-visible img { transform: scale(1.07); opacity: 1; }
.mas-thumb span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 20, 48, .86));
  text-align: left;
}
.mas-thumb:focus-visible { outline: 3px solid #f6a21d; outline-offset: 2px; }

.mas-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mas-btn-pdf {
  background-color: #f6a21d;
  color: #01234a;
}
.mas-btn-pdf i,
.service-block .mas-dl i { margin-right: 7px; }
.mas-btn-pdf:hover,
.mas-btn-pdf:focus { background-color: #e08f0c; color: #01234a; }
.mas-btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .55);
  padding: 10px 26px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 600;
  cursor: pointer;
}
.mas-btn-ghost:hover,
.mas-btn-ghost:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.mas-btn-ghost i { margin-right: 6px; }

/* service card CTA row */
.service-block .mas-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}
.service-block .mas-open {
  background: none;
  border: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  color: #222222;
  cursor: pointer;
  text-align: left;
}
.service-block .mas-open:hover { color: #01386a; text-decoration: underline; }
.service-block .mas-dl {
  font-size: 14px;
  font-weight: 600;
  color: #01386a;
  padding: 4px 12px;
  border: 1px solid #01386a;
  border-radius: 3px;
}
.service-block .mas-dl:hover { background: #01386a; color: #fff; text-decoration: none; }

/* ---------- 6. modal ---------- */
.mas-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.mas-modal.is-open { display: block; }
.mas-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 34, .82);
  backdrop-filter: blur(2px);
}
.mas-modal-panel {
  position: relative;
  max-width: 1000px;
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mas-modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  background: #01386a;
  color: #fff;
}
.mas-modal-head .kicker {
  display: block;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #f6a21d;
  margin-bottom: 4px;
}
.mas-modal-head h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}
.mas-modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.mas-modal-close:hover { background: rgba(255, 255, 255, .3); }
.mas-modal-body { padding: 24px; }
.mas-modal-body h4 {
  font-size: 19px;
  font-weight: 600;
  color: #01386a;
  margin: 26px 0 12px;
}
.mas-modal-body h4:first-child { margin-top: 0; }
.mas-modal-body p { font-size: 15.5px; line-height: 1.75; color: #444b57; }
.mas-slide-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  margin-bottom: 10px;
  cursor: zoom-in;
}
.mas-shot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mas-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mas-group {
  border: 1px solid #e3e6ea;
  border-radius: 6px;
  padding: 14px 16px;
  background: #fafbfc;
}
.mas-group .g-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}
.mas-group ul { margin: 0; padding-left: 18px; }
.mas-group li { font-size: 14.5px; line-height: 1.7; color: #4b525c; }
.mas-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mas-spec {
  border-left: 3px solid #f6a21d;
  background: #fafbfc;
  padding: 12px 14px;
}
.mas-spec b { display: block; font-size: 21px; color: #01386a; line-height: 1.2; }
.mas-spec span { display: block; font-size: 13px; color: #6a7280; margin-top: 2px; }
.mas-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.mas-status li {
  font-size: 13.5px;
  color: #1d5c2f;
  background: #eef8f0;
  border: 1px solid #cfe9d6;
  border-radius: 20px;
  padding: 5px 14px 5px 10px;
}
.mas-status li i { color: #2e9e4f; margin-right: 5px; }
.mas-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-top: 1px solid #e6e8eb;
  background: #f7f8fa;
  position: sticky;
  bottom: 0;
}
.mas-modal-foot .note { font-size: 13px; color: #6a7280; }
.mas-modal .mas-btn-pdf { padding: 10px 26px; font-size: 16px; line-height: 28px; }
body.mas-no-scroll { overflow: hidden; }

/* ---------- 7. adaptive ---------- */
@media (max-width: 1199px) {
  .project-block-two .inner-box { padding-top: 210px; }
}
@media (max-width: 1023px) {
  .about-section { padding: 66px 0 36px; }
  .services-section { padding: 0 0 66px; }
  .project-section { padding: 66px 0 44px; }
  .project-section-two { padding: 66px 0 0; }
  .call-to-action { padding: 62px 0 66px; }
  .why-choose-us { padding: 66px 0 44px; }
  .newsletter-section { padding: 56px 0 56px; }
  .fluid-section-one { padding: 56px 0 56px; }
  .main-footer .widgets-section { padding: 56px 0 32px; }
  .presentation-section { padding: 62px 0 62px; }
  .mas-thumbs { grid-template-columns: repeat(3, 1fr); }
  .mas-groups { grid-template-columns: 1fr; }
  .service-block .lower-content { min-height: 0; }
  .project-block-two .inner-box { padding-top: 170px; padding-bottom: 36px; }
}
@media (max-width: 767px) {
  .about-section .image-column { padding-bottom: 30px; }
  .project-block-two .inner-box { padding-top: 120px; }
  .mas-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mas-modal-panel { max-height: calc(100vh - 16px); margin: 8px auto; border-radius: 6px; }
  .mas-modal-head { padding: 16px 18px 14px; }
  .mas-modal-head h3 { font-size: 19px; }
  .mas-modal-body { padding: 18px; }
  .mas-shot-row { grid-template-columns: 1fr; }
  .mas-modal-foot { padding: 14px 18px; }
  .presentation-section .lead { font-size: 16px; }
}
@media (max-width: 599px) {
  .mas-thumbs { grid-template-columns: repeat(2, 1fr); }
  .mas-figs li { flex: 1 1 45%; }
  .project-block-two .inner-box { padding-top: 96px; }
  .project-block-two .count { font-size: 42px; margin-bottom: 16px; }
}
@media (max-width: 479px) {
  .mas-specs { grid-template-columns: 1fr; }
  .mas-thumbs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
