/* ===== СТРАНИЦА ОПЛАТА ===== */
.tn-payment-page {
  color: #1a2b3c;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.tn-payment-page h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a2b3c;
  margin: 0 0 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e2e8ef;
}
.tn-payment-block {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 40px;
}
.tn-payment-block__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #eaf2fb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tn-payment-block__icon svg {
  width: 38px;
  height: 38px;
  color: #1565c0;
}
.tn-payment-block__content {
  flex: 1;
}
.tn-payment-block__title {
  font-size: 18px;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tn-payment-block__title::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  background: #1565c0;
  border-radius: 2px;
  margin-left: 4px;
}
.tn-payment-block__text {
  font-size: inherit;
  line-height: 1.7;
  color: #3a4d5e;
  margin: 12px 0 0;
}
.tn-payment-block__text ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.tn-payment-block__text ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: inherit;
  line-height: 1.65;
  color: #3a4d5e;
}
.tn-payment-block__text ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #1565c0;
  font-weight: 700;
}
.tn-payment-block__text a {
  color: #1565c0;
  text-decoration: none;
  border-bottom: 1px dashed #1565c0;
  transition: opacity 0.2s;
}
.tn-payment-block__text a:hover {
  opacity: 0.7;
}
.tn-payment-divider {
  border: none;
  border-top: 1px solid #e2e8ef;
  margin: 0 0 40px;
}
.tn-payment-note {
  background: #f0f6fd;
  border-left: 4px solid #1565c0;
  border-radius: 0 8px 8px 0;
  padding: 14px 20px;
  font-size: inherit;
  color: #2c4a66;
  line-height: 1.65;
  margin-top: 14px;
}
@media (max-width: 600px) {
  .tn-payment-block {
    flex-direction: column;
    gap: 16px;
  }
  .tn-payment-block__icon {
    width: 56px;
    height: 56px;
  }
  .tn-payment-block__icon svg {
    width: 30px;
    height: 30px;
  }
}

/* ===== СТРАНИЦА ДОСТАВКА ===== */
.tn-delivery {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

/* Вкладки — десктоп */
.tn-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: none;
  flex-wrap: wrap;
}
.tn-tab-btn {
  flex: 1;
  min-width: 140px;
  height: 60px;
  line-height: 60px;
  padding: 0 20px;
  background: #0989d2;
  border: none;
  border-radius: 0 !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}
.tn-tab-btn:hover {
  background: #0775b8;
  color: #fff;
}
.tn-tab-btn.active {
  background: #0985cb;
  color: #fff;
}

/* Панели вкладок */
.tn-tab-panel {
  display: none;
}
.tn-tab-panel.active {
  display: block;
  padding-top: 32px;
}

/* Скрываем заголовок аккордеона на десктопе */
.tn-tab-panel-header {
  display: none;
}

/* Содержимое активной панели всегда видно на десктопе */
.tn-tab-panel.active .tn-tab-panel-body {
  display: block;
}

/* Блок с иконкой и текстом */
.tn-delivery-block {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 40px;
}
.tn-delivery-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: #eaf2fb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tn-delivery-icon svg {
  width: 34px;
  height: 34px;
  color: #1565c0;
}
.tn-delivery-body {
  flex: 1;
  min-width: 0;
}
.tn-delivery-title {
  font-size: 18px;
  font-weight: 700;
  color: #1565c0;
  margin: 0 0 6px;
  display: block;
}
.tn-delivery-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 3px;
  background: #1565c0;
  border-radius: 2px;
  margin-top: 6px;
}
.tn-delivery-text {
  font-size: inherit;
  line-height: 1.8;
  color: #3a4d5e;
  margin: 12px 0 0;
}

.tn-delivery-text p {
  margin: 0 0 12px;
}

/* Подзаголовок внутри вкладки */
.tn-delivery-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #1565c0;
  margin: 36px 0 8px;
  display: block;
}
.tn-delivery-subtitle::after {
  content: '';
  display: block;
  width: 20px;
  height: 3px;
  background: #1565c0;
  border-radius: 2px;
  margin-top: 5px;
}

/* Разделитель */
.tn-delivery-hr {
  border: none;
  border-top: 1px solid #e2e8ef;
  margin: 36px 0;
}

/* Сетка 2 колонки */
.tn-delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.tn-delivery-grid-item p {
  margin: 0;
  font-size: inherit;
  line-height: 1.75;
  color: #3a4d5e;
}
.tn-delivery-grid-item strong {
  display: block;
  font-weight: 700;
  color: #1a2b3c;
  margin-bottom: 10px;
}

/* Заметка-подсказка */
.tn-delivery-note {
  background: #f0f6fd;
  border-left: 4px solid #1565c0;
  border-radius: 0 6px 6px 0;
  padding: 16px 20px;
  font-size: inherit;
  color: #2c4a66;
  line-height: 1.7;
  margin: 24px 0;
}

/* Список адресов */
.tn-delivery-addresses {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.tn-delivery-addresses li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8ef;
  font-size: inherit;
  color: #3a4d5e;
  line-height: 1.6;
}
.tn-delivery-addresses li:last-child {
  border-bottom: none;
}
.tn-delivery-addresses li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #1565c0;
  margin-top: 2px;
}

/* Карта */
.tn-delivery-map {
  width: 100%;
  height: 280px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
}
.tn-delivery-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Шаги */
.tn-delivery-steps {
  display: flex;
  gap: 0;
  margin: 32px 0;
  position: relative;
}
.tn-delivery-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #e2e8ef;
  z-index: 0;
}
.tn-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.tn-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1565c0;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.tn-step-text {
  font-size: 13px;
  line-height: 1.5;
  color: #3a4d5e;
}

/* Транспортные компании */
.tn-carriers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.tn-carrier {
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #3a4d5e;
  text-decoration: none;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  box-sizing: border-box;
}
.tn-carrier:hover {
  border-color: #e2e8ef;
}
.tn-carrier-logo {
  width: 100%;
  max-width: 140px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Мобильный аккордеон */
@media (max-width: 700px) {
  .tn-tabs {
    display: none;
  }
  .tn-tab-panel {
    display: block !important;
    border-bottom: 1px solid #e2e8ef;
  }
  .tn-tab-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    font-weight: 700;
    color: #1a2b3c;
    font-size: inherit;
    user-select: none;
  }
  .tn-tab-panel-header svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #1565c0;
    transition: transform 0.2s;
  }
  .tn-tab-panel.active .tn-tab-panel-header svg {
    transform: rotate(180deg);
  }
  .tn-tab-panel-body {
    display: none;
    padding-bottom: 20px;
  }
  .tn-tab-panel.active .tn-tab-panel-body {
    display: block;
  }
  .tn-delivery-grid {
    grid-template-columns: 1fr;
  }
  .tn-delivery-steps {
    flex-direction: column;
    gap: 16px;
  }
  .tn-delivery-steps::before {
    display: none;
  }
  .tn-step {
    flex-direction: row;
    text-align: left;
    gap: 14px;
  }
  .tn-step-num {
    margin-bottom: 0;
  }
  .tn-carriers {
    grid-template-columns: repeat(2, 1fr);
  }
  .tn-delivery-block {
    gap: 16px;
  }
  .tn-delivery-icon {
    width: 52px;
    height: 52px;
  }
  .tn-delivery-icon svg {
    width: 26px;
    height: 26px;
  }
}