/* Медприбор shop — header (aligned to medpribor.pro) */
:root {
  --mp-green: #00bf80;
  --mp-green-dark: #00a870;
  --mp-mint: rgba(0, 191, 128, 0.37); /* #00bf805e */
  --mp-text: #434955;
  --mp-text-muted: #676f7c;
  --mp-border: #e8e8e8;
  --mp-menu-bg: #f2f3f5;
  --mp-menu-link-bg: #fcfcfc;
  --mp-page: #e8e8e8;
  --mp-canvas: 1300px;
  --mp-container: 1240px;
  --mp-font: "Exo 2", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mp-body {
  margin: 0;
  font-family: var(--mp-font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.25px;
  color: var(--mp-text);
  background: var(--mp-page);
  -webkit-font-smoothing: antialiased;
}

/* Boxed site canvas — gray side strips like medpribor.pro */
.mp-canvas {
  width: 100%;
  max-width: var(--mp-canvas);
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
}

@media (min-width: 1300px) {
  body.mp-body { min-width: 1300px; }
}

a { color: var(--mp-green); text-decoration: none; }
a:hover { color: #0055a6; }

.mp-container {
  width: 100%;
  max-width: var(--mp-container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- Top utility bar ----- */
.mp-topbar {
  background: #fff;
  border-bottom: 1px solid var(--mp-border);
  font-size: 15px;
  font-weight: 300;
  color: var(--mp-text-muted);
}

.mp-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.mp-topbar__left,
.mp-topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-topbar a {
  color: var(--mp-text-muted);
  font-weight: 300;
  line-height: 36px;
}

.mp-topbar a:hover { color: var(--mp-green); }

.mp-topbar__right a { font-size: 16px; }

.mp-topbar__email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mp-text-muted);
  font-size: 16px;
  font-weight: 400;
}

.mp-topbar__email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mp-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.55;
}

/* ----- Main header (logo / search / phones) ----- */
.mp-header {
  background: #fff;
  height: 86px;
  display: flex;
  align-items: center;
}

.mp-header__inner {
  display: grid;
  grid-template-columns: 226px minmax(220px, 1fr) auto;
  align-items: center;
  gap: 24px 40px;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.mp-logo {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  line-height: 0;
}

.mp-logo:hover { opacity: 0.92; }

.mp-logo__img {
  display: block;
  width: 226px;
  max-width: 100%;
  height: auto;
}

.mp-search {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
}

.mp-search__input {
  width: 100%;
  height: 45px;
  padding: 0 48px 0 13px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) inset;
  font: inherit;
  font-size: 16px;
  color: var(--mp-text);
  outline: none;
}

.mp-search__input::placeholder { color: #aab2bd; }

.mp-search__input:focus {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3) inset,
    0 0 0 2px rgba(0, 191, 128, 0.35);
}

.mp-search__btn {
  position: absolute;
  right: 2px;
  top: 2px;
  bottom: 2px;
  width: 42px;
  border: 0;
  background: transparent;
  color: #8a939e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mp-search__btn:hover { color: var(--mp-green); }

.mp-phones {
  text-align: right;
  line-height: 1.35;
  white-space: nowrap;
}

.mp-phones__row {
  display: block;
  color: #000;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.mp-phones__row + .mp-phones__row { margin-top: 0; }

.mp-phones__label {
  color: #000;
  font-weight: 600;
}

.mp-phones__num {
  color: #000;
  font-weight: 600;
}

.mp-phones__row:hover,
.mp-phones__row:hover .mp-phones__num {
  color: var(--mp-green);
}

.mp-phones__wa {
  display: inline-block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.25px;
  line-height: 1.2;
  color: var(--mp-text-muted);
}

.mp-phones__wa:hover { color: var(--mp-green); }

/* ----- Catalog nav ----- */
.mp-nav {
  background: var(--mp-mint);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 20;
}

.mp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 76px;
  min-height: 76px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.mp-nav__menu-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.mp-nav__menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 1013px;
  width: max-content;
  background: var(--mp-menu-bg);
  border-radius: 0;
  box-shadow: none;
  height: 40px;
}

.mp-nav__menu > li {
  display: flex;
  flex: 0 0 auto;
}

.mp-nav__menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  background: var(--mp-menu-link-bg);
  color: var(--mp-text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.25px;
  line-height: 40px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 200ms linear, color 200ms linear;
}

.mp-nav__menu > li > a:hover {
  background: var(--mp-green);
  color: #fff;
}

.mp-nav__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mp-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #434955;
  flex-shrink: 0;
}

.mp-cart:hover { color: var(--mp-green-dark); }

.mp-cart svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.mp-cart__badge {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 32px;
  background: var(--mp-green);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

/* ----- Page shell ----- */
.mp-main {
  min-height: 40vh;
  padding: 28px 0 48px;
}

.mp-main__stub {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px;
  text-align: center;
  color: var(--mp-text-muted);
}

.mp-main__stub h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 600;
  color: var(--mp-text);
}

/* ----- Footer ----- */
.mp-footer {
  background: #fff;
  color: #526371;
  border-top: 1px solid #e8e9eb;
}

.mp-footer a { color: var(--mp-green); }
.mp-footer a:hover { color: #0055a6; }

.mp-footer-makers {
  padding: 28px 0 10px;
}

.mp-footer-makers__title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 600;
  color: #526371;
  text-align: center;
}

.mp-footer-makers__title::before,
.mp-footer-makers__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d7dde0;
}

.mp-footer-makers__title span { white-space: nowrap; }

.mp-footer-makers__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
}

.mp-footer-makers__list li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.mp-footer-makers__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.mp-footer-makers__list img {
  display: block;
  max-width: 72px;
  width: auto;
  height: auto;
  max-height: 36px;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(0.15);
  opacity: 0.92;
}

.mp-footer-makers__list a:hover img {
  opacity: 1;
  filter: none;
}

.mp-footer-nav {
  padding: 18px 0 8px;
}

.mp-footer-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mp-footer-nav__list a {
  color: var(--mp-green);
  font-size: 16px;
  font-weight: 600;
}

.mp-footer-main {
  padding: 24px 0 10px;
}

.mp-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 28px;
}

.mp-footer-col__icon {
  color: #aab2bd;
  margin-bottom: 8px;
}

.mp-footer-col__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #434955;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mp-footer-phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: #222 !important;
}

.mp-footer-phone:hover { color: var(--mp-green) !important; }

.mp-footer-phone--free {
  font-size: 18px;
  color: var(--mp-green) !important;
}

.mp-footer-phone-free-wrap {
  margin: 6px 0 0;
}

.mp-footer-free {
  display: inline;
  margin-left: 4px;
  font-size: 13px;
  color: #676f7c;
}

.mp-footer-note {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #676f7c;
}

.mp-footer-link { font-weight: 500; }

.mp-footer-lower {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px 40px;
  align-items: start;
  margin-top: 28px;
  padding-top: 8px;
}

.mp-footer-logo {
  display: inline-block;
  line-height: 0;
}

.mp-footer-logo img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.mp-footer-brand__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.mp-footer-brand__links a {
  font-size: 15px;
  font-weight: 600;
}

.mp-footer-about {
  font-size: 14px;
  line-height: 1.55;
  color: #676f7c;
}

.mp-footer-about p { margin: 0 0 10px; }
.mp-footer-about p:last-child { margin-bottom: 0; }

.mp-footer-bottom {
  background: #e8e8e8;
  border-top: 0;
  padding: 22px 0;
  margin-top: 20px;
}

.mp-footer-bottom__inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 16px 24px;
}

.mp-footer-bottom__center {
  font-size: 14px;
  line-height: 1.55;
  color: #676f7c;
  text-align: center;
}

.mp-footer-bottom__center p { margin: 0 0 4px; }
.mp-footer-bottom__center p:last-child { margin-bottom: 0; }

.mp-footer-bottom__links {
  margin-bottom: 6px !important;
}

.mp-footer-bottom__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mp-green);
}

.mp-footer-bottom__pay {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mp-pay-icon {
  display: inline-flex;
  line-height: 0;
  opacity: 0.92;
}

.mp-pay-icon svg { display: block; }

/* ----- Mobile ----- */
.mp-nav-toggle {
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 3px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--mp-text);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .mp-nav__menu > li > a {
    padding: 0 8px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .mp-header { height: auto; min-height: 86px; }
  .mp-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo phones"
      "search search";
    gap: 16px;
    padding: 12px 0;
  }
  .mp-logo { grid-area: logo; }
  .mp-search { grid-area: search; max-width: none; justify-self: stretch; }
  .mp-phones { grid-area: phones; }

  .mp-nav__inner {
    height: auto;
    min-height: 56px;
    justify-content: flex-start;
    padding: 8px 0;
  }
  .mp-nav-toggle { display: inline-flex; }
  .mp-nav__menu-wrap {
    display: none;
    width: 100%;
    max-width: none;
    order: 3;
  }
  .mp-nav.is-open .mp-nav__menu-wrap { display: block; }
  .mp-nav__menu {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    width: 100%;
    max-width: none;
  }
  .mp-nav__menu > li > a {
    height: auto;
    line-height: 1.3;
    padding: 12px 14px;
    white-space: normal;
    justify-content: flex-start;
  }
  .mp-cart { margin-left: auto; }

  .mp-footer-cols { grid-template-columns: 1fr 1fr; }
  .mp-footer-lower { grid-template-columns: 1fr; }
  .mp-footer-bottom__inner { grid-template-columns: 1fr; }
  .mp-footer-bottom__pay { justify-content: center; }
  .mp-footer-makers__list { flex-wrap: wrap; justify-content: center; }
  .mp-footer-makers__list li { flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .mp-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    min-height: 0;
  }
  .mp-topbar a { line-height: 1.6; }
  .mp-logo__img { width: 170px; }
  .mp-phones { font-size: 13px; }
  .mp-phones__row {
    font-size: 15px;
    white-space: normal;
  }

  .mp-footer-cols { grid-template-columns: 1fr; }
  .mp-footer-nav__list { gap: 8px 16px; justify-content: flex-start; }
  .mp-footer-phone { font-size: 20px; }
}
