/*
 * Прайс-лист (src/components/templates/PriceListPage.tsx) — макет docs/design/price-list/maklean-price.html, 05.11.2026.
 * Значения из CSS макета; классы mk-price, потому что у темы свои .button, .order, table и т. д.
 */
.mk-price {
  background: #f4f6fb;
  color: #131b23;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.mk-price__wrap {
  box-sizing: border-box;
  width: min(1044px, calc(100% - 30px));
  margin: 0 auto;
  /* шапка сайта лежит поверх страницы (position: absolute, 145px): отступ макета 56px считается от неё */
  padding-top: 201px;
}
.mk-price__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}
.mk-price__heading h1 {
  margin: 0 0 5px;
  color: #131b23;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}
.mk-price__period {
  margin: 0;
  color: #596a78;
  font-size: 13px;
}
.mk-price__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.mk-price__actions--bottom {
  justify-content: flex-end;
  margin-top: 29px;
}
.mk-price__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid #007bfc;
  border-radius: 100px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: 0.18s;
}
.mk-price__button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.mk-price__button--solid {
  background: #007bfc;
  color: #fff;
}
.mk-price__button--solid:hover {
  background: #006de2;
  color: #fff;
}
.mk-price__button--ghost {
  background: transparent;
  color: #007bfc;
}
.mk-price__button--ghost:hover {
  background: #eff7ff;
}
.mk-price__factors {
  margin: 0 0 24px;
  padding: 22px 24px 23px;
  border-radius: 16px;
  background: #eaf4ff;
}
.mk-price__factors h2 {
  margin: 0 0 5px;
  color: #131b23;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0;
}
.mk-price__factors p {
  margin: 0 0 15px;
  color: #596a78;
  font-size: 12px;
  line-height: 1.45;
}
.mk-price__factors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mk-price__factors li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  box-sizing: border-box;
  padding: 5px 10px;
  border: 1px solid #d6e6f6;
  border-radius: 100px;
  background: #fff;
  font-size: 11px;
  line-height: 1.25;
}
.mk-price__scroll {
  position: relative;
  overflow-x: auto;
}
.mk-price__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  table-layout: fixed;
  font-size: 15px;
}
.mk-price__table caption,
.mk-price__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.mk-price__table th {
  padding: 14px 16px;
  background: transparent;
  color: #131b23;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.mk-price__table td {
  height: 76px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 0;
  background: #fff;
  color: #007bfc;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.mk-price__table th:first-child,
.mk-price__table td:first-child {
  width: 31%;
  text-align: left;
  white-space: normal;
}
.mk-price__table th:nth-child(n + 2):nth-child(-n + 4),
.mk-price__table td:nth-child(n + 2):nth-child(-n + 4) {
  width: 18%;
}
.mk-price__table th:last-child,
.mk-price__table td:last-child {
  width: 15%;
  text-align: right;
}
.mk-price__table td:first-child {
  border-radius: 18px 0 0 18px;
}
.mk-price__table td:last-child {
  border-radius: 0 18px 18px 0;
}
.mk-price__table tbody tr:nth-child(even) td {
  background: #fbfcff;
}
.mk-price__table tbody tr:hover td {
  background: #eef6ff;
}
.mk-price__service {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #131b23;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}
.mk-price__service:hover .mk-price__name {
  color: #0065d0;
}
.mk-price__service:hover .mk-price__icon {
  background: #e3f0ff;
}
.mk-price__icon {
  display: inline-grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #edf5ff;
  color: #0065d0;
}
.mk-price__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-price__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #007bfb;
  border-radius: 100px;
  background: #007bfb;
  color: #fff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
}
.mk-price__order:hover,
.mk-price__order:focus-visible {
  border-color: #006ada;
  background: #006ada;
  color: #fff;
}
.mk-price__service:focus-visible,
.mk-price__button:focus-visible,
.mk-price__order:focus-visible {
  outline: 3px solid #6fb1ff;
  outline-offset: 3px;
}
.mk-price__cards {
  display: none;
}
.mk-price__extras {
  margin-top: 42px;
  padding-top: 29px;
  border-top: 1px solid #e1e8f0;
}
.mk-price__extras h2 {
  margin: 0 0 18px;
  color: #131b23;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: 0;
}
.mk-price__extra-list {
  display: grid;
  gap: 9px;
}
.mk-price__extra {
  display: grid;
  grid-template-columns: 1fr 180px auto;
  align-items: center;
  gap: 15px;
  min-height: 75px;
  box-sizing: border-box;
  padding: 12px 15px;
  border-radius: 18px;
  background: #fff;
}
.mk-price__extra:nth-child(even) {
  background: #fbfcff;
}
.mk-price__extra strong {
  color: #007bfc;
  font-size: 14px;
  font-weight: 500;
}
/* форма снизу — общая сайта (ContactFormSection) */
.mk-price > .forms {
  margin-top: 88px;
}

@media (min-width: 651px) and (max-width: 980px) {
  .mk-price__table {
    min-width: 960px;
  }
}
@media (max-width: 900px) {
  .mk-price__wrap {
    padding-top: 157px;
  }
}
@media (max-width: 850px) {
  .mk-price__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .mk-price__factors ul {
    gap: 7px;
  }
}
@media (max-width: 650px) {
  .mk-price {
    font-size: 14px;
  }
  .mk-price__wrap {
    width: calc(100% - 28px);
    padding-top: 132px;
  }
  .mk-price__heading {
    gap: 16px;
    margin-bottom: 24px;
  }
  .mk-price__heading h1 {
    font-size: 28px;
  }
  .mk-price__period {
    font-size: 11px;
  }
  .mk-price__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .mk-price__actions--bottom {
    margin-top: 24px;
  }
  .mk-price__button {
    min-width: 0;
    min-height: 46px;
    padding: 8px 9px;
    font-size: 11px;
    white-space: normal;
    text-align: center;
  }
  .mk-price__button svg {
    flex-basis: 17px;
    width: 17px;
    height: 17px;
  }
  .mk-price__factors {
    margin-bottom: 20px;
    padding: 18px;
  }
  .mk-price__factors h2 {
    font-size: 14px;
  }
  .mk-price__factors p {
    margin-bottom: 13px;
    font-size: 11px;
  }
  .mk-price__factors ul {
    gap: 7px;
  }
  .mk-price__factors li {
    min-height: 28px;
    padding: 5px 9px;
  }
  .mk-price__scroll {
    display: none;
  }
  .mk-price__cards {
    display: grid;
    gap: 10px;
  }
  .mk-price__card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e1e8f0;
    border-radius: 20px;
    background: #fff;
  }
  .mk-price__card:nth-child(even) {
    background: #fbfcff;
  }
  .mk-price__card dl {
    display: grid;
    gap: 6px;
    margin: 0;
  }
  .mk-price__card dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e1e8f0;
    font-size: 12px;
  }
  .mk-price__card dt {
    font-weight: 500;
  }
  .mk-price__card dd {
    margin: 0;
    color: #1264ad;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mk-price__order {
    width: 100%;
    min-height: 43px;
    font-size: 13px;
  }
  .mk-price__extras {
    margin-top: 44px;
    padding-top: 28px;
  }
  .mk-price__extras h2 {
    font-size: 22px;
    line-height: 1.2;
  }
  .mk-price__extra-list {
    gap: 12px;
  }
  .mk-price__extra {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 15px 10px;
    min-height: 0;
    padding: 17px 18px;
    border: 1px solid #dce5ef;
    border-radius: 20px;
  }
  .mk-price__extra .mk-price__service {
    grid-column: 1 / -1;
    font-size: 16px;
  }
  .mk-price__extra strong {
    grid-column: 1;
    grid-row: 2;
    font-size: 16px;
    line-height: 1.2;
  }
  .mk-price__extra .mk-price__order {
    grid-column: 2;
    grid-row: 2;
    width: auto;
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12px;
  }
  .mk-price > .forms {
    margin-top: 52px;
  }
}

/* Печать: только таблицы — без шапки, подвала, кнопок и формы */
@media print {
  body:has(.mk-price) .header,
  body:has(.mk-price) .footer,
  body:has(.mk-price) .mk-mm-bar,
  body:has(.mk-price) .mk-mm-overlay,
  body:has(.mk-price) .phone-button-mobile,
  body:has(.mk-price) #mk-cookie,
  body:has(.mk-price) .modal,
  .mk-price > .forms,
  .mk-price__actions,
  .mk-price__order,
  .mk-price__icon,
  .mk-price__cards {
    display: none !important;
  }
  .mk-price {
    background: #fff;
  }
  .mk-price__wrap {
    width: 100%;
    padding: 0;
  }
  .mk-price__heading {
    display: block;
    margin: 0 0 10px;
  }
  .mk-price__heading h1 {
    font-size: 24px;
  }
  .mk-price__period {
    color: #000;
  }
  .mk-price__factors {
    margin: 0 0 9px;
    padding: 7px 9px;
    border: 1px solid #dce5ef;
    background: #fff;
  }
  .mk-price__factors h2 {
    margin-bottom: 4px;
    font-size: 10px;
  }
  .mk-price__factors p {
    display: none;
  }
  .mk-price__factors ul {
    gap: 2px 5px;
  }
  .mk-price__factors li {
    min-height: 0;
    padding: 2px 5px;
    font-size: 8px;
  }
  .mk-price__scroll {
    display: block !important;
    overflow: visible;
  }
  .mk-price__table {
    min-width: 0;
    border-spacing: 0;
  }
  .mk-price__table th,
  .mk-price__table td {
    height: auto;
    padding: 6px 7px;
    border-bottom: 1px solid #dce5ef;
    border-radius: 0 !important;
    color: #000;
    font-size: 9px;
    white-space: normal;
  }
  .mk-price__table th {
    background: #e9f3ff;
  }
  .mk-price__table th:last-child,
  .mk-price__table td:last-child {
    display: none;
  }
  .mk-price__service {
    font-size: 9px;
  }
  .mk-price__extras {
    margin-top: 16px;
    padding-top: 0;
    border: 0;
  }
  .mk-price__extras h2 {
    margin-bottom: 6px;
    font-size: 14px;
  }
  .mk-price__extra-list {
    gap: 0;
  }
  .mk-price__extra {
    grid-template-columns: 1fr 180px;
    min-height: 0;
    padding: 5px 7px;
    border-bottom: 1px solid #dce5ef;
    border-radius: 0;
    background: #fff;
  }
  .mk-price__extra .mk-price__service,
  .mk-price__extra strong {
    font-size: 9px;
    color: #000;
  }
}
