/* Layout fixes for static PHP site */

/* Sticky footer */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  clear: both;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

/* Content area: keep pages inside the grid */
.page-content {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 0.9375rem 2rem;
  width: 100%;
  box-sizing: border-box;
}

.page-content .inner-content,
.page-content .pageContacts {
  max-width: 960px;
}

.breadcrumbs {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

/* Foundation already draws "/", kill our duplicate + extra gap */
.breadcrumbs li + li::before {
  content: none !important;
  margin: 0 !important;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/" !important;
  margin: 0 0.35rem !important;
  color: #999;
}

/* Home about text */
.home-about {
  max-width: 960px;
}

.home-about .text {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Reasons block: stable columns */
.reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-left: 0;
  margin-right: 0;
}

.reasons .column,
.reasons .column-block {
  float: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 1 180px;
  max-width: 220px;
  margin: 0 0.5rem 1.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Contact strip in footer */
#footer-top {
  overflow: hidden;
}

#footer-top > .row {
  position: relative;
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
}

#footer-top .footer-hand {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

#footer-top .footer-hand img {
  display: block;
  max-height: 160px;
  width: auto;
}

#footer-top .info-form {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem 2rem;
  padding: 55px 0.9375rem 55px 180px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

#footer-top .info-form p,
#footer-top .info-form .phone,
#footer-top .info-form .mail {
  display: inline-block;
  float: none;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  flex: 0 0 auto;
}

#footer-top .info-form .info-form__title {
  font-size: 26px;
  line-height: 1.2;
}

#footer-top .info-form .phone,
#footer-top .info-form .mail {
  font-size: 20px;
  line-height: 1.2;
}

#footer-top .info-form .mail a {
  text-decoration: none;
}

#footer-top .info-form .mail a:hover {
  text-decoration: underline;
}

/* Footer mid grid */
#footer-mid .footer-mid__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

#footer-mid .footer-logo {
  float: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 720px;
  flex: 1 1 320px;
}

#footer-mid .footer-logo a {
  flex: 0 0 auto;
}

#footer-mid .footer-logo p {
  float: none;
  margin: 0;
  flex: 1 1 220px;
}

#footer-mid .menu-footer {
  float: none;
  width: auto;
  flex: 0 1 auto;
}

#footer-bottom .col,
#footer-bottom .column {
  float: none;
  width: 100%;
}

@media screen and (max-width: 63.99em) {
  #footer-top .info-form {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    padding: 35px 0.9375rem;
  }

  #footer-top .info-form p,
  #footer-top .info-form .phone,
  #footer-top .info-form .mail {
    white-space: normal;
    text-align: center;
  }

  #footer-top .info-form .info-form__title {
    font-size: 22px;
    width: 100%;
  }

  #footer-top .info-form .phone,
  #footer-top .info-form .mail {
    font-size: 18px;
  }

  #footer-mid .footer-mid__inner {
    justify-content: center;
    text-align: center;
  }

  #footer-mid .footer-logo {
    justify-content: center;
  }

  #footer-mid .menu-footer .menu {
    justify-content: center;
  }
}

/* Mobile / tablet burger menu */
@media screen and (max-width: 63.99em) {
  #header .menu-top.show {
    height: auto !important;
    overflow: visible !important;
    margin-left: 0 !important;
  }
}

@media screen and (max-width: 39.99em) {
  #header .menu-top.show {
    margin-top: 0 !important;
    position: relative;
  }
}

/* Header contacts */
#sub-header .info .phone {
  margin-bottom: 0.25rem;
}

#sub-header .info .phone a {
  color: inherit;
  text-decoration: none;
}

#sub-header .info .mail {
  margin: 0;
  font-size: 15px;
}

#sub-header .info .mail a {
  text-decoration: none;
}

#sub-header .info .mail a:hover {
  text-decoration: underline;
}

/* No contact strip — keep gap before footer */
#footer-mid {
  margin-top: 60px;
}
