/*
 * Плитка услуг на главной и в каталоге /service/ (src/components/sections/ServicesGrid.tsx).
 * Дизайн «maklean-services-ready» (15.10.2026): классы mk- — карточки от 761px, mv- — аккордеон на телефоне.
 * Значения сведены из двух слоёв CSS макета (базовый + «Urban Company-inspired»); ширину задаёт .container темы.
 */
.mk-catalog {
  --mk-link: #0065d0;
  margin-top: 48px;
  color: #252e35;
  font-family: Montserrat, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mk-category {
  margin: 0 0 36px;
}
.mk-category__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.mk-category__head h2,
.mk-category__head h3 {
  margin: 0;
  color: #252e35;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.mk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mk-list li {
  min-width: 0;
}

/* карточка (компьютер, планшет) */
.mk-service {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 204px;
  padding: 20px;
  background: #fff;
  border: 0;
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.mk-service__head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 40px;
}
.mk-service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #edf5ff;
}
.mk-outline {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--mk-link);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-service__name {
  margin: 0;
  color: #252e35;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.mk-service__description {
  margin: 12px 0 16px;
  color: #617181;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 400;
}
.mk-service__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #edf1f6;
}
.mk-service__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mk-service__amount {
  color: var(--mk-link);
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.mk-service__unit {
  color: #738393;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}
.mk-service__more {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--mk-link);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 550;
  white-space: nowrap;
}
.mk-service__arrow,
.mv-arrow,
.mv-down {
  display: block;
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-service__arrow {
  transition: transform 0.15s;
}
@media (hover: hover) {
  .mk-service:hover {
    background: #fbfdff;
  }
  .mk-service:hover .mk-service__arrow {
    transform: translateX(3px);
  }
}
.mk-service:focus-visible,
.mv-more:focus-visible,
.mv-summary:focus-visible {
  outline: 3px solid #0065d0;
  outline-offset: 4px;
}
.mk-service:focus-visible .mk-service__arrow {
  transform: translateX(3px);
}
.mk-services__hint {
  margin: 24px 0 0;
  color: #596775;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

/* аккордеон (телефон) */
.mv-accordion {
  display: none;
}

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

@media (max-width: 760px) {
  .mk-catalog {
    margin-top: 24px;
  }
  .mk-category {
    margin: 0 0 26px;
  }
  .mk-category__head {
    gap: 10px;
    margin: 0 0 12px;
  }
  .mk-category__head h2,
  .mk-category__head h3 {
    font-size: 17px;
  }
  .mk-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .mk-service,
  .mk-services__hint {
    display: none;
  }
  .mv-accordion {
    display: block;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
  }
  .mv-summary {
    list-style: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mv-summary::-webkit-details-marker {
    display: none;
  }
  .mv-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 10px;
    min-height: 74px;
    padding: 13px 14px;
  }
  .mv-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #edf5ff;
    border-radius: 8px;
  }
  .mv-icon .mk-outline {
    width: 19px;
    height: 19px;
  }
  .mv-pair {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
  }
  .mv-name {
    display: block;
    color: #252e35;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 550;
    letter-spacing: -0.02em;
  }
  .mv-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .mv-amount {
    color: #0065d0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
  }
  .mv-unit {
    color: #728497;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 500;
  }
  .mv-down {
    width: 14px;
    height: 14px;
    color: #7a8da0;
  }
  .mv-accordion[open] .mv-down {
    transform: rotate(180deg);
  }
  .mv-open-body {
    margin-left: 38px;
    padding: 0 14px 16px;
  }
  .mv-open-body p {
    margin: 0 0 12px;
    color: #617181;
    font-size: 13px;
    line-height: 1.6;
  }
  .mv-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0065d0;
    font-size: 12px;
    font-weight: 550;
    white-space: nowrap;
    text-decoration: none;
  }
  .mv-arrow {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 359px) {
  .mv-row {
    gap: 8px;
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mk-service,
  .mk-service__arrow {
    transition: none;
  }
}
