/* ==========================================================================
   margulanai.com — custom additions (header, footer, legal modal)
   Accent colour overridden from #d40606 to #c8102e (see assets/scss/style.css)
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1rem solid #f2f2f2;
}
.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90rem;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12rem;
  font-family: "Gilroy", sans-serif;
  font-weight: 800;
  font-size: 26rem;
  line-height: 100%;
  letter-spacing: -0.03em;
  color: #18171c;
}
.site-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46rem;
  height: 46rem;
  border-radius: 12rem;
  background: #c8102e;
  color: #fff;
  font-weight: 800;
  font-size: 24rem;
  flex-shrink: 0;
}
.site-header__logo em {
  font-style: normal;
  color: #c8102e;
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: 26rem;
}
.site-header__phone {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 20rem;
  letter-spacing: -0.02em;
  color: #18171c;
  white-space: nowrap;
}
.site-header__phone:hover {
  color: #c8102e;
}
.site-header__btn {
  height: 54rem;
  padding: 0 26rem;
  font-size: 16rem;
  border-radius: 12rem;
}
@media screen and (max-width: 850px) {
  .site-header__container { height: 66rem; }
  .site-header__phone { display: none; }
  .site-header__logo { font-size: 20rem; gap: 9rem; }
  .site-header__logo-mark { width: 36rem; height: 36rem; font-size: 19rem; border-radius: 10rem; }
  .site-header__btn { height: 44rem; padding: 0 16rem; font-size: 13rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: #18171c;
  padding: 60rem 0 40rem;
}
.footer-container {
  display: flex;
  flex-direction: column;
  gap: 32rem;
}
.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40rem;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14rem;
  max-width: 480rem;
}
.footer-brand .site-header__logo {
  color: #fff;
}
.footer-brand .site-header__logo-mark {
  background: #c8102e;
  color: #fff;
}
.footer-brand p {
  font-family: "Gilroy", sans-serif;
  font-weight: 300;
  font-size: 18rem;
  line-height: 150%;
  letter-spacing: -0.02em;
  text-align: left;
  color: #a9a9a9;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12rem;
  align-items: flex-start;
}
.footer-contacts a {
  font-family: "Gilroy", sans-serif;
  font-weight: 600;
  font-size: 22rem;
  letter-spacing: -0.02em;
  color: #fff;
  transition: color 0.2s;
}
.footer-contacts a:hover {
  color: #c8102e;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12rem 28rem;
}
.footer-links button {
  font-family: "Gilroy", sans-serif;
  font-weight: 400;
  font-size: 16rem;
  letter-spacing: -0.02em;
  color: #dbdbdb;
  transition: color 0.2s;
}
.footer-links button:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-disclaimer {
  border: 1rem solid rgba(255, 255, 255, 0.12);
  border-radius: 16rem;
  padding: 20rem 22rem;
  display: flex;
  flex-direction: column;
  gap: 10rem;
}
.footer-disclaimer strong {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 16rem;
  letter-spacing: -0.02em;
  color: #c8102e;
  text-align: left;
}
.footer-disclaimer p {
  font-family: "Gilroy", sans-serif;
  font-weight: 300;
  font-size: 15rem;
  line-height: 160%;
  letter-spacing: -0.01em;
  text-align: left;
  color: #a9a9a9;
}
.footer-copy {
  padding-top: 24rem;
  border-top: 1rem solid rgba(255, 255, 255, 0.12);
}
.footer-copy p {
  font-family: "Gilroy", sans-serif;
  font-weight: 300;
  font-size: 15rem;
  line-height: 150%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #5d5d5d;
}
@media screen and (max-width: 850px) {
  .footer { padding: 40rem 0 30rem; }
  .footer-grid { flex-direction: column; gap: 24rem; }
  .footer-contacts a { font-size: 19rem; }
}

/* ---------- Legal modal ---------- */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.legal-modal.active {
  display: flex;
}
.legal-modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}
.legal-modal__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  max-height: 84vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.legal-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #18171c;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legal-modal__close:hover {
  background: #c8102e;
  color: #fff;
}
.legal-modal__title {
  font-family: "Gilroy", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 130%;
  color: #18171c;
  margin-bottom: 18px;
  padding-right: 40px;
}
.legal-modal__body {
  font-family: "Gilroy", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 165%;
  color: #282828;
}
.legal-modal__body p {
  font-weight: 400;
  margin-bottom: 12px;
}
.legal-modal__body strong {
  font-weight: 700;
}
