/* Unified link color and regional-page layout */
a,
a:visited {
  color: #a8518a !important;
}

a:hover,
a:focus {
  color: #873f70 !important;
}

/* The global link color must not override the dark top navigation. */
#navigation > ul > li > a,
#navigation > ul > li > a:visited,
#navigation > ul > li > a:hover,
#navigation > ul > li > a:focus,
#navigation > ul > li.item-selected > a {
  color: #fff !important;
}

/* Prevent floated catalogue columns from pulling the footer over content. */
#footer {
  clear: both !important;
}

.all-cities-link {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
}

.cities-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 15px 40px;
  box-sizing: border-box;
}

.cities-page__lead {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.6;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 22px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.cities-grid li {
  margin: 0;
}

.cities-grid a {
  display: block;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}

.cities-grid a:hover,
.cities-grid a:focus {
  border-color: #a8518a;
  background: #faf5f8;
  text-decoration: underline;
}

@media (max-width: 800px) {
  .cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .cities-page { padding-left: 12px; padding-right: 12px; }
  .cities-grid { grid-template-columns: 1fr; gap: 9px; }
}

/* Mobile header, burger navigation and readable content. */
.mobile-menu-toggle,
.mobile-submenu-toggle {
  display: none;
}

@media (max-width: 767px) {
  html { overflow-x: hidden; }
  body { min-width: 0 !important; overflow-x: hidden; }
  body.mobile-menu-active { overflow: hidden; }

  #wrapper,
  #wrapper1,
  header.container,
  .container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  header.container {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
  }

  #header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo logo"
      "city contact";
    gap: 4px 12px;
    min-height: 0 !important;
    padding: 10px 58px 9px 10px !important;
    box-sizing: border-box;
  }

  #header .columns,
  #header .seven.columns,
  #header .four.columns,
  #header .five.columns {
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }

  #logo {
    display: flex;
    align-items: center;
    min-height: 0 !important;
    padding: 0 !important;
  }

  #logo a { display: block; line-height: 0; }
  #logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: min(205px, 66vw) !important;
    max-height: 62px;
    margin: 0 !important;
  }
  #tagline { display: none !important; }

  #header .seven.columns { grid-area: logo; }
  #header .four.columns { grid-area: city; align-self: end; }
  #header .five.columns { grid-area: contact; align-self: end; }

  .this_city {
    display: flex !important;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    line-height: 1.25;
  }
  .this_city > br { display: none; }
  .this_city > .current-city,
  .this_city > .all-cities-link {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  .this_city > .all-cities-link::before {
    content: none;
  }
  #contact-details,
  #contact-details.block {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  #contact-details ul {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #contact-details li,
  #contact-details li#tel_link {
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  #contact-details img {
    width: 18px !important;
    height: 18px !important;
    margin: 0 5px 0 0 !important;
    object-fit: contain;
  }
  #contact-details #mailto_link {
    display: inline-block !important;
    padding: 2px 0 !important;
    float: none !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
  }
  #contact-details #tel_link { display: flex !important; }
  #contact-details .site-phone--header {
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  .footer-phone-item { width: 100% !important; }

  .mobile-menu-toggle {
    display: inline-flex;
    position: absolute;
    z-index: 10020;
    top: 13px;
    right: 12px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #a8518a;
    box-shadow: 0 3px 9px rgba(168,81,138,.3);
    cursor: pointer;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
  }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  header.container > .sixteen.columns {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  header.container > .sixteen.columns > br { display: none; }
  .selectnav { display: none !important; }

  #navigation {
    display: none !important;
    position: fixed !important;
    z-index: 10000;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px) !important;
    height: 100vh !important;
    max-height: 100vh !important;
    padding: 78px 0 24px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    background: #343434 !important;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  #navigation.mobile-menu-open { display: block !important; }
  #navigation::before {
    content: "Меню";
    position: absolute;
    top: 25px;
    left: 20px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
  }
  #navigation #nav,
  #navigation ul {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  #navigation li {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    border: 0 !important;
    background: transparent !important;
  }
  #navigation li > a,
  #navigation li > a:visited {
    display: block !important;
    min-height: 0 !important;
    padding: 13px 54px 13px 20px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-align: left !important;
    text-decoration: none !important;
    box-sizing: border-box;
  }
  #navigation li > a:hover,
  #navigation li > a:focus { background: #a8518a !important; }
  #navigation li ul {
    display: none !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
  }
  #navigation li.mobile-submenu-open > ul { display: block !important; }
  #navigation li ul a {
    padding-left: 34px !important;
    background: rgba(255,255,255,.055) !important;
    font-size: 14px !important;
  }
  #navigation li ul li ul a { padding-left: 48px !important; }
  .mobile-submenu-toggle {
    display: flex;
    position: absolute;
    z-index: 2;
    top: 5px;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }
  .mobile-submenu-toggle::before { content: "+"; }
  .mobile-submenu-toggle[aria-expanded="true"]::before { content: "−"; }
  .mobile-menu-backdrop {
    display: none;
    position: fixed;
    z-index: 9990;
    inset: 0;
    background: rgba(0,0,0,.48);
  }
  .mobile-menu-backdrop.is-visible { display: block; }

  @supports (height: 100dvh) {
    #navigation { height: 100dvh !important; max-height: 100dvh !important; }
  }

  #wrapper1 { padding-top: 0 !important; }
  #wrapper1 > h1,
  #wrapper1 h1,
  .zaglushki-page h1 {
    font-size: clamp(25px, 7vw, 32px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }
  #wrapper1 p,
  #wrapper1 li,
  .zaglushki-page p,
  .zaglushki-page li {
    font-size: 16px !important;
    line-height: 1.58 !important;
    text-align: left !important;
    word-spacing: normal !important;
  }
  #breadcrumb,
  .product-breadcrumbs { padding-top: 13px; }
  .columns,
  .column { max-width: 100% !important; box-sizing: border-box; }
  img { max-width: 100%; height: auto; }

  #footer,
  #footer-bottom { width: 100% !important; }
  #footer .columns {
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 14px !important;
    float: none !important;
    box-sizing: border-box;
  }
}

@media (max-width: 370px) {
  #header { gap: 3px 7px; }
  #logo img { max-width: 185px !important; }
  .this_city > .current-city,
  .this_city > .all-cities-link,
  #contact-details #mailto_link { font-size: 12px !important; }
  #contact-details img { width: 16px !important; height: 16px !important; }
}

/* Related BRS category cards on every product page. */
.brs-related {
  margin: 42px 0 10px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}
.brs-related__title {
  margin: 0 0 22px;
  text-align: center;
  font-size: 28px;
  line-height: 1.25;
}
.brs-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.brs-related__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1d9df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
  color: #353535 !important;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.brs-related__card:hover,
.brs-related__card:focus-visible {
  transform: translateY(-3px);
  border-color: #a8518a;
  box-shadow: 0 8px 22px rgba(168, 81, 138, .16);
}
.brs-related__image {
  display: flex;
  height: 210px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #faf8fa;
}
.brs-related__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brs-related__name {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  color: #a8518a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 760px) {
  .brs-related { margin-top: 32px; padding-top: 22px; }
  .brs-related__title { margin-bottom: 17px; font-size: 23px; text-align: left; }
  .brs-related__grid { grid-template-columns: 1fr; gap: 14px; }
  .brs-related__card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .brs-related__image { height: 104px; padding: 9px; }
  .brs-related__name { min-height: 104px; justify-content: flex-start; padding: 12px 14px; font-size: 16px; text-align: left; }
}

/* Homepage content and the connections landing page. */
.home-content-page,
.connections-page {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 46px;
}
.home-content-page {
  width: 1030px !important;
  max-width: 100% !important;
}
.this_city > .current-city {
  color: #a8518a;
  font-size: inherit;
  text-decoration: none;
}
.site-phone {
  color: #a8518a !important;
  white-space: nowrap;
  text-decoration: none !important;
}
#contact-details #tel_link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  clear: both;
}
#contact-details #tel_link img { flex: 0 0 auto; }
.site-phone--header {
  padding-top: 3px;
  font-size: 15px;
  line-height: 1.3;
}
.footer-phone-item {
  display: flex !important;
  width: 220px !important;
  align-items: center;
  gap: 9px;
}
.footer-phone-item img { flex: 0 0 auto; }
.site-phone--footer {
  font-family: Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.3;
}
.contacts-phone { font-size: 12pt; }
.company-highlights {
  margin: 34px 0 12px;
}
.company-highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.company-highlight {
  overflow: hidden;
  border: 1px solid #e1d9df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.company-highlight img {
  display: block;
  width: 100%;
  aspect-ratio: 47 / 28;
  object-fit: cover;
}
.company-highlight h3 {
  margin: 0;
  padding: 15px 17px 17px;
  color: #353535;
  font-size: 20px;
  line-height: 1.3;
}
.home-content-page h1,
.connections-page h1 { line-height: 1.2; }
.home-intro {
  max-width: 980px;
  margin-bottom: 34px;
  font-size: 17px;
  line-height: 1.65;
}
.home-directions,
.connections-listing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
.home-direction-card,
.connections-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 22px;
  border: 1px solid #e1d9df;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.home-direction-card h3,
.connections-card h2 { margin: 0 0 10px; line-height: 1.25; }
.home-direction-card p,
.connections-card p { margin: 0 0 13px; }
.home-direction-card ul { margin: 8px 0 0 18px; }
.home-direction-card a,
.connections-card a { font-weight: 700; }
.connections-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.connections-card__image {
  display: flex;
  height: 140px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 4px;
  background: #faf8fa;
}
.connections-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.connections-copy { max-width: 980px; }
.connections-copy h2 { margin-top: 34px; }
.connections-copy ul { margin-left: 20px; }
.connections-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
.connections-cta a {
  display: inline-block;
  padding: 11px 17px;
  border-radius: 3px;
  background: #a8518a;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}
@media (max-width: 760px) {
  .home-content-page,
  .connections-page { padding: 20px 14px 32px; }
  .home-content-page { width: 100%; }
  .home-content-page h1,
  .connections-page h1 { font-size: 28px !important; }
  .home-intro { font-size: 16px; line-height: 1.55; }
  .home-directions,
  .connections-listing { grid-template-columns: 1fr; gap: 14px; }
  .home-direction-card { padding: 18px; }
  .connections-card { grid-template-columns: 105px minmax(0, 1fr); gap: 13px; padding: 12px; }
  .connections-card__image { height: 100px; padding: 5px; }
  .connections-card h2 { font-size: 19px; }
  .company-highlights__grid { grid-template-columns: 1fr; gap: 14px; }
  .company-highlight h3 { font-size: 18px; }
}

/* Legacy catalogue pages: replace floated archive layout with a stable grid. */
#wrapper1.catalog-legacy-page {
  display: flow-root;
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 36px !important;
  background: #fff;
}
.catalog-legacy-page .news-section-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0 24px !important;
  float: none !important;
  clear: both;
}
.catalog-legacy-page .news-section {
  width: auto !important;
  min-width: 0;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.catalog-legacy-page .news-section h2 { margin: 0 0 10px; }
.catalog-legacy-page .news-list { display: flow-root; width: 100%; }
.catalog-legacy-page > .brs-related { clear: both; }
.brs-related-shell {
  box-sizing: border-box;
  width: 1030px;
  max-width: 100%;
  margin: 0 auto;
}
.brs-related-shell .brs-related {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 760px) {
  #wrapper1.catalog-legacy-page { padding-bottom: 24px !important; }
  .catalog-legacy-page .news-section-list { grid-template-columns: 1fr; gap: 22px; }
  #contact-details .site-phone--header { padding: 0 !important; font-size: 13px !important; }
  .footer-phone-item { width: 100% !important; }
}

.myths-article { box-sizing: border-box; width: 100%; padding: 0 20px 44px; }
.myths-article h1 { margin: 22px 0 18px; line-height: 1.2; }
.myths-article h2 { margin: 34px 0 12px; line-height: 1.3; }
.myths-article h3 { margin: 12px 0 8px; font-size: 19px; line-height: 1.4; }
.myths-article p { font-size: 16px; line-height: 1.65; }
.myths-article .article-date { margin: 18px 0 0; color: #777; font-size: 14px; }
.myths-article .article-lead { font-size: 18px; }
.myth-card { margin-top: 28px; padding: 22px 24px; border: 1px solid #e4dce1; border-radius: 5px; background: #fff; }
.myth-card h2 { margin-top: 0; }
@media (max-width: 767px) {
  .myths-article { padding: 0 14px 30px; }
  .myths-article h1 { margin: 18px 0 14px; font-size: 28px !important; }
  .myths-article h2 { font-size: 23px; }
  .myths-article h3 { font-size: 18px; }
  .myths-article .article-lead { font-size: 17px; }
  .myth-card { padding: 18px 16px; }
}

/* Footer alignment and home-page spacing. */
#footer > .container {
  display: grid;
  grid-template-columns: 220px 280px minmax(0, 1fr);
  column-gap: 24px;
  align-items: start;
}
#footer > .container > .four.columns,
#footer > .container > .six.columns,
#footer > .container > .sixteen.columns {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}
#footer > .container > .four.columns:first-child > br:first-child { display: none; }
#footer > .container > .two.columns { display: none; }
#footer > .container > .sixteen.columns { grid-column: 1 / -1; }
#footer .footer-headline > ul {
  display: grid;
  grid-auto-rows: minmax(48px, auto);
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
}
#footer .footer-headline > ul > li,
#footer .footer-headline > ul > li.footer-phone-item {
  display: grid !important;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  box-sizing: border-box;
}
#footer .footer-headline > ul > li > img {
  width: 25px !important;
  height: 20px !important;
  margin: 0 !important;
  object-fit: contain;
}
#footer .footer-headline > ul > li > a,
#footer .footer-headline > ul > li > p {
  margin: 0 !important;
  padding: 0 !important;
  align-self: start;
  vertical-align: initial !important;
}
.home-content-page > h1 {
  margin: 0 !important;
  padding: 32px 0 16px !important;
}
.product-breadcrumbs,
#breadcrumb {
  margin: 0 !important;
}
.zg-button:not(.zg-button--ghost),
.zg-button:not(.zg-button--ghost):visited,
.zg-button:not(.zg-button--ghost):hover,
.zg-button:not(.zg-button--ghost):focus {
  color: #fff !important;
}
@media (max-width: 767px) {
  #wrapper1 { padding-bottom: 0 !important; }
  .home-content-page > h1 {
    margin: 0 !important;
    padding: 22px 0 14px !important;
  }
  #footer > .container { display: block; }
  #footer .footer-headline > ul { grid-auto-rows: auto; gap: 16px; }
}
