:root{
  --mt-radius: 22px;
  --mt-shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --mt-border: rgba(15, 23, 42, .10);
  --mt-text: #0b1220;
  --mt-muted: rgba(11, 18, 32, .62);
  --mt-bg: #ffffff;
  --mt-soft: rgba(15, 23, 42, .04);

  --mt-red: #e53935;
  --mt-red2: #d32f2f;
}

.mt-product-page{
  padding: 26px 0 80px;
}

.mt-product{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.mt-product__crumbs{
  margin: 6px 0 14px;
  opacity: .85;
}

.mt-product__top{
  margin-bottom: 18px;
}

.mt-product__card{
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius);
  box-shadow: var(--mt-shadow);
  padding: 22px;
}

.mt-product__grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px){
  .mt-product__grid{ grid-template-columns: 1fr; }
  .mt-product__card{ padding: 16px; }
}

.mt-product__title{
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--mt-text);
  font-size: 34px;
}

@media (max-width: 980px){
  .mt-product__title{ font-size: 26px; }
}

.mt-product__meta{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.mt-meta{
  display: grid;
  gap: 2px;
}

.mt-meta__label{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mt-muted);
}

.mt-meta__value{
  font-size: 14px;
  color: var(--mt-text);
}

.mt-meta__value.is-ok{ color: #1b7f3a; }
.mt-meta__value.is-bad{ color: #8a3a1b; }

.mt-product__price{
  margin: 0 0 12px;
}

.mt-price{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mt-price__old{
  color: rgba(11, 18, 32, .45);
  text-decoration: line-through;
  font-size: 16px;
}

.mt-price__new{
  color: var(--mt-text);
  font-size: 28px;
  letter-spacing: -.01em;
}

.mt-product__lead{
  color: var(--mt-muted);
  line-height: 1.6;
  margin: 0 0 16px;
}

.mt-product__actions{
  padding: 14px 0 12px;
  border-top: 1px solid var(--mt-border);
  border-bottom: 1px solid var(--mt-border);
  margin-bottom: 14px;
}

.mt-buy__row{
  display: grid;
  grid-template-columns: 112px 1fr 1fr;
  gap: 10px;
  align-items: center;
}

@media (max-width: 620px){
  .mt-buy__row{ grid-template-columns: 1fr; }
}

.mt-qty .quantity{
  width: 100%;
}

.mt-qty input.qty{
  width: 100% !important;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--mt-border);
  background: #fff;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
}

.mt-qty input.qty:focus{
  border-color: rgba(229, 57, 53, .45);
  box-shadow: 0 0 0 4px rgba(229, 57, 53, .10);
}

.mt-btn{
  height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .01em;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  user-select: none;
  white-space: nowrap;
}

.mt-btn:active{ transform: translateY(1px); }

.mt-btn--primary{
  background: var(--mt-red);
  border-color: var(--mt-red);
  color: #fff;
  box-shadow: 0 10px 28px rgba(229, 57, 53, .20);
}

.mt-btn--primary:hover{
  background: var(--mt-red2);
  border-color: var(--mt-red2);
  box-shadow: 0 14px 34px rgba(229, 57, 53, .26);
}

.mt-btn--ghost{
  background: rgba(15, 23, 42, .03);
  border-color: rgba(15, 23, 42, .10);
  color: var(--mt-text);
}

.mt-btn--ghost:hover{
  background: rgba(15, 23, 42, .06);
}

.mt-product__note{
  margin-top: 10px;
  color: var(--mt-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mt-tabs{
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .03);
  border: 1px solid var(--mt-border);
}

.mt-tab{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--mt-text);
  cursor: pointer;
  font-size: 14px;
}

.mt-tab.is-active{
  background: #fff;
  border-color: rgba(15, 23, 42, .10);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}

/* Gallery */
.mt-gallery{
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 980px){
  .mt-gallery{ grid-template-columns: 62px 1fr; gap: 12px; }
}

.mt-gallery__thumbs{
  display: grid;
  gap: 10px;
}

.mt-gallery__thumb{
  width: 74px;
  height: 74px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

@media (max-width: 980px){
  .mt-gallery__thumb{ width: 62px; height: 62px; border-radius: 16px; }
}

.mt-gallery__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-gallery__thumb.is-active{
  border-color: rgba(229, 57, 53, .45);
  box-shadow: 0 12px 28px rgba(229, 57, 53, .18);
}

.mt-gallery__main{
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: linear-gradient(180deg, #fff, rgba(15, 23, 42, .02));
  box-shadow: 0 18px 44px rgba(15, 23, 42, .10);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px){
  .mt-gallery__main{ min-height: 320px; border-radius: 18px; }
}

.mt-gallery__zoom{
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px;
}

.mt-gallery__img{
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

/* Sections */
.mt-product__sections{
  margin-top: 18px;
}

.mt-section{
  display: none;
}

.mt-section.is-active{
  display: block;
}

.mt-textbox{
  background: var(--mt-bg);
  border: 1px solid var(--mt-border);
  border-radius: var(--mt-radius);
  box-shadow: var(--mt-shadow);
  padding: 22px;
}

.mt-muted{
  color: var(--mt-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Features (шахматка) */
.mt-features{
  display: grid;
  gap: 16px;
}

.mt-feature{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, rgba(15, 23, 42, .015));
}

.mt-feature.is-reverse{
  grid-template-columns: 1fr 1fr;
}

.mt-feature.is-reverse .mt-feature__text{ order: 2; }
.mt-feature.is-reverse .mt-feature__media{ order: 1; }

@media (max-width: 980px){
  .mt-feature{
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .mt-feature.is-reverse .mt-feature__text,
  .mt-feature.is-reverse .mt-feature__media{
    order: initial;
  }
}

.mt-feature h2,
.mt-feature h3{
  margin: 0 0 8px;
  color: var(--mt-text);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.mt-feature__body{
  color: var(--mt-muted);
  line-height: 1.7;
}

.mt-feature__media{
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .10);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-feature__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mt-feature__ph{
  width: 100%;
  height: 240px;
  background: rgba(15, 23, 42, .04);
}

/* Specs */
.mt-specgrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 980px){
  .mt-specgrid{ grid-template-columns: 1fr; }
}

.mt-specbox{
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.mt-specbox__title{
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(11, 18, 32, .65);
  margin-bottom: 10px;
}

.mt-specbox__text{
  color: var(--mt-muted);
  line-height: 1.6;
}

.mt-speclist{
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--mt-text);
  line-height: 1.7;
}

.mt-speclist li{
  margin: 6px 0;
  color: var(--mt-text);
}

.mt-specbox--cta{
  background: linear-gradient(180deg, rgba(229,57,53,.08), rgba(15,23,42,.02));
}

/* Docs */
.mt-docs__title{
  font-size: 18px;
  color: var(--mt-text);
  margin: 0 0 8px;
}

.mt-docs__text{
  color: var(--mt-muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.mt-docs__preview{
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .10);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
  margin: 0 0 14px;
}

.mt-docs__img{
  width: 100%;
  height: auto;
  display: block;
}

.mt-docs__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
/* KP Modal */
.kp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.kp-modal.is-open,
.kp-modal[aria-hidden="false"] {
  display: block;
}

.kp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, .55);
  backdrop-filter: blur(8px);
}

.kp-modal__dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 24px));
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
  padding: 22px;
}

.kp-modal__close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 36px;
  cursor: pointer;
  opacity: .7;
}
.kp-modal__close:hover { opacity: 1; }

.kp-modal__title {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 6px;
}

.kp-modal__subtitle {
  font-size: 14px;
  opacity: .7;
  margin: 0 0 14px;
}

.kp-form { display: grid; gap: 12px; }

.kp-field label {
  display: block;
  font-size: 13px;
  opacity: .75;
  margin: 0 0 6px;
}

.kp-field input {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  outline: none;
}

.kp-field input:focus {
  border-color: rgba(255, 59, 48, .55);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, .12);
}

.kp-submit {
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: #ff3b30;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.kp-submit:hover { filter: brightness(.96); }

.kp-note {
  font-size: 12px;
  opacity: .65;
  margin-top: 4px;
}

#kpStatus {
  font-size: 13px;
  opacity: .85;
}
