/* Version 4 refinements: product detail, responsive navigation and footer. */

.product-overline.pro { color: #b48732; }

.gallery-series {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  min-width: 72px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: #fff;
  font: 900 .68rem/1 Arial, sans-serif;
  letter-spacing: .05em;
}

.gallery-series.pro { background: linear-gradient(135deg, #9b7027, #d0a957); }
.gallery-series.economy { background: linear-gradient(135deg, #236c70, #489395); }

.product-note {
  display: grid;
  gap: 5px;
}

.product-note b { color: var(--teal-dark); }
.product-note span { color: #5d7582; }

.product-jump {
  position: sticky;
  z-index: 20;
  top: 110px;
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 54px 0 10px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid rgba(215, 226, 230, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 35px rgba(27, 58, 74, .08);
  backdrop-filter: blur(14px);
  scrollbar-width: none;
}

.product-jump::-webkit-scrollbar { display: none; }

.product-jump a {
  flex: none;
  padding: 8px 14px;
  border-radius: 10px;
  color: #607783;
  font-size: .76rem;
  font-weight: 750;
}

.product-jump a:hover {
  background: #edf5f5;
  color: var(--teal-dark);
}

.detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 24px;
}

.detail-heading > p {
  max-width: 560px;
  margin: 0;
  color: #647b87;
  font-size: .9rem;
}

.product-applications .use-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  padding: 26px;
  background: linear-gradient(145deg, #fff, #f7fafb);
}

.product-applications .use-card > span {
  position: absolute;
  left: 13px;
  bottom: -15px;
  color: rgba(34, 75, 95, .055);
  font: 900 5rem/1 Arial, sans-serif;
}

.product-applications .use-card b {
  position: relative;
  font-size: 1rem;
}

.product-applications .use-card p { position: relative; }

.wiring-section {
  scroll-margin-top: 160px;
  padding: 38px;
  border: 1px solid #d8e4e7;
  border-radius: 28px;
  background: linear-gradient(155deg, #fff, #f6f9fa);
}

.wiring-canvas {
  overflow: hidden;
  border-radius: 24px;
  background: #f8fbfc;
  box-shadow: 0 22px 55px rgba(28, 58, 74, .08);
}

.wiring-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Vazirmatn, Tahoma, sans-serif;
}

.wiring-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 18px;
  color: #5d7481;
  font-size: .76rem;
}

.wiring-legend span { display: flex; align-items: center; gap: 7px; }
.wiring-legend i { width: 24px; height: 5px; border-radius: 9px; }
.wiring-legend .neutral { background: #2d80c4; }
.wiring-legend .phase { background: #d64545; }
.wiring-legend .return { background: #d7762d; }

.safety-alert {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 16px;
  margin-top: 25px;
  padding: 20px;
  border: 1px solid #edcd91;
  border-right: 5px solid #d69a2d;
  border-radius: 17px;
  background: #fff8e9;
}

.safety-alert > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #d69a2d;
  color: #fff;
  font: 900 1.2rem/1 Arial, sans-serif;
}

.safety-alert b { color: #6f5017; }
.safety-alert p { margin: 4px 0 0; color: #6e6044; font-size: .83rem; line-height: 1.95; }

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 25px;
}

.install-steps article {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
}

.install-steps article > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #1d4659, #377476);
  color: #fff;
  font-weight: 900;
}

.install-steps h3 { margin: 1px 0 5px; font-size: 1rem; }
.install-steps p { margin: 0; color: #607783; font-size: .82rem; }

.current-note {
  margin-top: 15px;
  padding: 17px 20px;
  border-radius: 14px;
  background: #edf5f5;
  color: #4c696f;
  font-size: .84rem;
}

.current-note b { color: var(--teal-dark); }

/* Product archive — media and content are isolated so images can never cover text. */
.product-catalog-section { padding-top: 72px; }

.catalog-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 24px;
  color: #71848f;
  font-size: .86rem;
}

.catalog-status p { margin: 0; }
.catalog-status b { color: var(--ink); }
.catalog-status > span {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef4f5;
  color: var(--teal-dark);
  font-size: .7rem;
  font-weight: 800;
}

.catalog-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalog-product-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e3e6;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 10px 35px rgba(26, 56, 72, .035);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.catalog-product-card:hover {
  transform: translateY(-5px);
  border-color: #c4d4d8;
  box-shadow: 0 22px 48px rgba(26, 56, 72, .11);
}

.catalog-product-link {
  display: grid;
  grid-template-rows: auto minmax(135px, 1fr);
  height: 100%;
}

.catalog-product-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  min-height: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #f0f3f4 64%, #e9edef 100%);
}

.catalog-product-card.pro .catalog-product-media {
  background: radial-gradient(circle at 50% 38%, #fff 0%, #f4f3ef 64%, #eceae4 100%);
}

.catalog-product-media img {
  position: absolute;
  inset: 7%;
  display: block;
  width: 86%;
  height: 86%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 18px rgba(22, 44, 56, .13));
  transition: transform .3s ease;
}

.catalog-product-card:hover .catalog-product-media img { transform: scale(1.025); }

.catalog-product-content {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding: 17px 18px 16px;
  overflow: hidden;
  border-top: 1px solid #e1e8ea;
  background: #fff;
}

.catalog-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-product-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid #d9e4e6;
  border-radius: 999px;
  background: #f7fafb;
  color: var(--teal-dark);
  font-size: .65rem;
  font-weight: 800;
}

.catalog-product-card.pro .catalog-product-tags span:first-child {
  border-color: #ead7ae;
  background: #fcf7ec;
  color: #9a7028;
}

.catalog-product-content h2 {
  margin: 10px 0 5px;
  color: var(--ink);
  font-size: .95rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.catalog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.catalog-card-footer p {
  min-width: 0;
  margin: 0;
  color: #85959d;
  font-size: .7rem;
}

.catalog-card-footer i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #edf5f5;
  color: var(--teal-dark);
  font-style: normal;
  transition: .2s ease;
}

.catalog-product-card.pro .catalog-card-footer i {
  background: #faf4e7;
  color: #9e742b;
}

.catalog-product-card:hover .catalog-card-footer i {
  background: var(--ink);
  color: #fff;
  transform: translateX(-3px);
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 38px;
}

.catalog-page-numbers {
  display: flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
}

.catalog-page-numbers a,
.catalog-page-direction {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d9e3e6;
  border-radius: 13px;
  background: #fff;
  color: #607783;
  font-size: .78rem;
  font-weight: 800;
  transition: .2s ease;
}

.catalog-page-numbers a:hover,
.catalog-page-numbers a.active,
.catalog-page-direction:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.catalog-page-direction.disabled {
  cursor: not-allowed;
  opacity: .42;
}

@media (max-width: 1000px) {
  .catalog-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .products-page .page-hero { padding: 48px 0 38px; }
  .products-page .page-hero .display-title { font-size: 2.2rem; }
  .product-catalog-section { padding-top: 52px; }
  .products-page .filter-bar {
    flex-wrap: nowrap;
    margin-inline: -12px;
    padding: 0 12px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .products-page .filter-bar::-webkit-scrollbar { display: none; }
  .products-page .filter-button {
    flex: none;
    padding: 8px 12px;
    font-size: .73rem;
  }
  .catalog-status { margin-bottom: 18px; font-size: .76rem; }
  .catalog-status > span { font-size: .62rem; }
  .catalog-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .catalog-product-card { border-radius: 18px; }
  .catalog-product-link { grid-template-rows: auto minmax(123px, 1fr); }
  .catalog-product-media { aspect-ratio: 1 / 1; }
  .catalog-product-media img { inset: 6%; width: 88%; height: 88%; }
  .catalog-product-content { min-height: 123px; padding: 11px 10px 10px; }
  .catalog-product-tags { gap: 4px; }
  .catalog-product-tags span { min-height: 22px; padding: 2px 7px; font-size: .55rem; }
  .catalog-product-content h2 { margin: 7px 0 3px; font-size: .73rem; line-height: 1.65; }
  .catalog-card-footer p { font-size: .57rem; line-height: 1.55; }
  .catalog-card-footer i { width: 27px; height: 27px; font-size: .75rem; }
  .catalog-pagination { gap: 7px; margin-top: 28px; }
  .catalog-page-numbers { gap: 5px; }
  .catalog-page-numbers a,
  .catalog-page-direction { min-width: 36px; height: 38px; padding: 0 9px; border-radius: 11px; font-size: .7rem; }
}

/* Why Royal */
.why-royal-section { padding-top: 82px; }

.why-royal-panel {
  position: relative;
  overflow: hidden;
  padding: 52px;
  border: 1px solid #dce6e8;
  border-radius: 44px;
  background:
    radial-gradient(circle at 8% 12%, rgba(197, 151, 65, .11), transparent 24%),
    radial-gradient(circle at 92% 85%, rgba(49, 112, 114, .1), transparent 26%),
    linear-gradient(145deg, #f9fbfb, #f2f7f7);
}

.why-royal-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -150px;
  left: 12%;
  border: 1px solid rgba(47, 103, 106, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(47, 103, 106, .025), 0 0 0 70px rgba(47, 103, 106, .018);
  pointer-events: none;
}

.why-royal-heading {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.why-royal-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #a77b2d;
  font: 850 .7rem/1.4 Vazirmatn, sans-serif;
  letter-spacing: .14em;
}

.why-royal-heading > span::before,
.why-royal-heading > span::after {
  content: "";
  width: 25px;
  height: 2px;
  border-radius: 4px;
  background: currentColor;
}

.why-royal-heading h2 {
  margin: 8px 0 7px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.25;
}

.why-royal-heading p {
  margin: 0;
  color: #617985;
  font-size: .93rem;
}

.why-royal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.22fr repeat(4, 1fr);
  gap: 13px;
}

.why-royal-card {
  position: relative;
  min-width: 0;
  min-height: 270px;
  padding: 25px 21px;
  overflow: hidden;
  border: 1px solid rgba(211, 224, 227, .95);
  border-radius: 31px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 35px rgba(27, 57, 72, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.why-royal-card:hover {
  transform: translateY(-6px);
  border-color: #c4d6d9;
  box-shadow: 0 24px 46px rgba(27, 57, 72, .12);
}

.why-royal-card.warranty {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(205, 168, 94, .5);
  background: linear-gradient(145deg, #17394c, #2d6d70);
  color: #fff;
}

.why-royal-card.warranty::after {
  content: "48";
  position: absolute;
  left: -10px;
  bottom: -32px;
  color: rgba(255, 255, 255, .055);
  font: 900 8rem/1 Arial, sans-serif;
  pointer-events: none;
}

.why-royal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border-radius: 20px;
  background: #edf5f5;
  color: var(--teal-dark);
}

.why-royal-card.warranty .why-royal-icon {
  background: rgba(255, 255, 255, .12);
  color: #e4bf70;
}

.why-royal-icon svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.warranty-duration {
  display: inline-flex;
  margin-bottom: 4px;
  color: #e4bf70;
  font-size: .73rem;
  font-weight: 900;
}

.why-royal-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.why-royal-card.warranty h3 { color: #fff; font-size: 1.2rem; }

.why-royal-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6b808b;
  font-size: .78rem;
  line-height: 1.95;
}

.why-royal-card.warranty p { color: #d9e5e7; }

@media (max-width: 1050px) {
  .why-royal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-royal-card.warranty { grid-column: 1 / -1; min-height: 235px; }
}

@media (max-width: 680px) {
  .why-royal-section { padding-top: 62px; }
  .why-royal-panel {
    padding: 30px 16px 16px;
    border-radius: 32px;
  }
  .why-royal-heading { margin-bottom: 24px; padding-inline: 6px; }
  .why-royal-heading h2 { font-size: 2.15rem; }
  .why-royal-heading p { font-size: .8rem; line-height: 1.9; }
  .why-royal-grid { grid-template-columns: 1fr; gap: 10px; }
  .why-royal-card,
  .why-royal-card.warranty {
    grid-column: auto;
    min-height: 0;
    padding: 22px;
    border-radius: 25px;
  }
  .why-royal-card:not(.warranty) {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
  }
  .why-royal-icon {
    width: 52px;
    height: 52px;
    grid-row: 1 / span 2;
    margin: 0;
    border-radius: 17px;
  }
  .why-royal-card h3 { margin: 0 0 5px; font-size: .94rem; }
  .why-royal-card p { font-size: .74rem; }
  .why-royal-card.warranty .why-royal-icon { margin-bottom: 21px; }
}

/* Footer */
.site-footer {
  padding-top: 58px;
  background: #fff;
}

.site-footer .footer-grid {
  grid-template-columns: 1.35fr .85fr .95fr 1.15fr;
  gap: 48px;
  padding-bottom: 43px;
}

.site-footer .footer-brand { align-items: flex-start; }
.site-footer .footer-brand p { max-width: 320px; line-height: 1.9; }

.site-footer .footer-links h2,
.site-footer .footer-contact h2 {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 1rem;
}

.site-footer .footer-links a { padding-block: 2px; }

.site-footer .social-row {
  margin-top: 3px;
}

.site-footer .social-row a {
  width: 36px;
  height: 36px;
  color: var(--ink);
  transition: .2s ease;
}

.site-footer .social-row a:hover {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer .social-row svg,
.site-footer .contact-line svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .footer-contact { gap: 7px; }

.site-footer .contact-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #526b78 !important;
  font-size: .8rem !important;
}

.site-footer .contact-line svg {
  flex: none;
  color: var(--teal-dark);
}

.site-footer .email-line { font-size: .72rem !important; }

.site-footer .footer-contact small {
  margin: -4px 27px 4px 0;
  color: #8b9aa2;
  font-size: .65rem;
}

.site-footer .footer-bottom {
  min-height: 62px;
  justify-content: center;
  text-align: center;
  color: #84949d;
  font-size: .72rem;
}

/* Mobile navigation */
@media (max-width: 1000px) {
  body.menu-open::before {
    content: "";
    position: fixed;
    z-index: 98;
    inset: 0;
    background: rgba(16, 39, 52, .34);
    backdrop-filter: blur(5px);
  }

  .menu-toggle {
    position: relative;
    z-index: 104;
    width: 46px;
    height: 46px;
    gap: 5px;
    overflow: hidden;
    border-color: #d7e2e5;
    border-radius: 15px;
    box-shadow: 0 8px 22px rgba(27, 57, 73, .08);
    transition: background .2s ease, border-color .2s ease;
  }

  .menu-toggle span {
    position: absolute;
    width: 21px;
    height: 2px;
    border-radius: 4px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
  }

  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 22px; width: 16px; }
  .menu-toggle span:nth-child(3) { top: 29px; }

  .menu-toggle[aria-expanded="true"] {
    border-color: var(--ink);
    background: var(--ink);
  }

  .menu-toggle[aria-expanded="true"] span { top: 22px; background: #fff; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(12px); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .site-header .mobile-nav,
  .site-header .mobile-nav.open {
    position: fixed;
    z-index: 103;
    top: 88px;
    right: 16px;
    left: 16px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    gap: 8px;
    max-height: 0;
    padding: 0 12px !important;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 70px rgba(16, 39, 52, .22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(.98);
    transform-origin: top;
    transition: opacity .24s ease, transform .24s ease, max-height .3s ease, padding .24s ease, visibility .24s;
  }

  .site-header .mobile-nav.open {
    max-height: 360px;
    padding: 13px !important;
    border-color: #dce6e9;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .site-header .mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 11px 14px;
    border: 1px solid #e3eaed;
    border-radius: 14px;
    background: #f8fafb;
    color: #435f6e;
    font-size: .84rem;
    font-weight: 750;
  }

  .site-header .mobile-nav a:hover {
    border-color: #bfd2d6;
    background: #edf5f5;
    color: var(--teal-dark);
  }
}

@media (max-width: 820px) {
  .detail-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .install-steps { grid-template-columns: 1fr; }
  .wiring-section { padding: 25px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 28px; }
  .site-footer .footer-brand,
  .site-footer .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .product-page .gallery-card { padding-bottom: 14px; }
  .product-page .gallery-card > img { height: 310px; }
  .product-page .variant-row {
    position: static;
    margin-top: 5px;
    flex-wrap: wrap;
  }
  .product-page .variant { padding: 6px 8px; font-size: .64rem; }
  .product-page .quick-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .product-page .quick-fact { min-width: 0; padding: 10px 8px; }
  .product-page .quick-fact small { font-size: .58rem; }
  .product-page .quick-fact b { display: block; overflow-wrap: anywhere; font-size: .68rem; }
  .product-jump {
    top: 86px;
    justify-content: flex-start;
    margin-top: 35px;
    margin-inline: -2px;
    padding: 7px;
  }
  .product-jump a { padding: 7px 10px; font-size: .68rem; }
  .product-applications .use-grid { grid-template-columns: 1fr; }
  .product-applications .use-card { min-height: 145px; padding: 21px; }
  .wiring-section {
    margin-inline: -5px;
    padding: 19px 12px;
    border-radius: 21px;
  }
  .wiring-canvas {
    overflow: hidden;
    border-radius: 16px;
  }
  .wiring-svg {
    width: 100%;
    max-width: 100%;
  }
  .wiring-legend { justify-content: flex-start; padding-inline: 5px; }
  .safety-alert { grid-template-columns: 38px 1fr; gap: 11px; padding: 15px 12px; }
  .safety-alert > span { width: 36px; height: 36px; border-radius: 11px; }
  .safety-alert p { font-size: .76rem; }
  .install-steps article { grid-template-columns: 41px 1fr; gap: 11px; padding: 17px 14px; }
  .install-steps article > span { width: 39px; height: 39px; border-radius: 12px; }
  .site-footer { padding-top: 45px; }
  .site-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 18px; }
  .site-footer .footer-brand,
  .site-footer .footer-contact { grid-column: 1 / -1; }
  .site-footer .footer-brand { align-items: center; text-align: center; }
  .site-footer .footer-brand p { margin-inline: auto; }
  .site-footer .footer-links { align-items: flex-start; }
  .site-footer .footer-links h2 { font-size: .9rem; }
  .site-footer .footer-links a:not(.brand) { font-size: .76rem; }
  .site-footer .footer-contact {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f9fbfb;
  }
  .site-footer .contact-line { font-size: .76rem !important; }
  .site-footer .email-line { font-size: .68rem !important; }
  .site-footer .footer-bottom { padding: 17px 8px; line-height: 1.8; }
  .site-header .mobile-nav,
  .site-header .mobile-nav.open { top: 76px; right: 10px; left: 10px; }
}

@media (max-width: 390px) {
  .site-header .mobile-nav,
  .site-header .mobile-nav.open { grid-template-columns: 1fr !important; }
  .site-header .mobile-nav.open { max-height: 500px; }
}
