.tplsto-page {
  padding: 20px 0 60px;
}

.tplsto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.tplsto-breadcrumbs {
  font-size: 13px;
  margin-bottom: 10px;
  color: #777;
}

.tplsto-breadcrumbs a {
  color: #0077ff;
  text-decoration: none;
}

/* Общий заголовок секций */
.tplsto-section-head {
  text-align: center;
  margin-bottom: 24px;
}

.tplsto-section-head h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.tplsto-section-head p {
  font-size: 1rem;
  color: #666;
}

/* HERO */
.tplsto-hero {
  padding: 40px 0 30px;
  background: #f7f7f9;
}

.tplsto-hero__content {
  max-width: 620px;
}

.tplsto-hero__title {
  font-size: 30px;
  margin-bottom: 12px;
}

.tplsto-hero__subtitle {
  font-size: 16px;
  color: #555;
  margin-bottom: 18px;
}
.tplsto-hero__btn,
.js-open-order-modal{
    transition: all 200ms linear;
}
.js-open-order-modal:hover,
.tplsto-hero__btn:hover {transform: scale(1.05);}

.tplsto-hero__preview {flex: 1}
.tplsto-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tplsto-hero__list {
  font-size: 1rem;
  color: #555;
  padding-left: 5px;
}
.tplsto-hero__list_span {margin-right: 0.5rem;}
.tplsto-hero__list li {
  margin-bottom: 4px;
  list-style: none;
}

.tplsto-hero__preview img {
  max-width: 520px;
  width: 100%;
  border-radius: 14px;
  transition: all 200ms linear;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.tplsto-hero__preview img:hover {transform: scale(1.02);}

.tplsto-hero .tplsto-container {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

/* PREVIEW IFRAME */
.tplsto-preview {
  padding: 40px 0;
}

.tplsto-preview__actions {
  text-align: center;
  margin-bottom: 16px;
}

.tplsto-preview__frame {
  position: relative;
  padding-top: 60%; /* соотношение сторон */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.tplsto-preview__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* СКРИНЫ */
.tplsto-screens {
  padding: 40px 0;
  background: #f9fafb;
}
.tplsto-screens__link {display: inline-block;}
.tplsto-screens__link:hover {transform: scale(1.05);}
.tplsto-screens__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tplsto-screens__item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  margin-bottom: 8px;
}

.tplsto-screens__item figcaption {
  font-size: 13px;
  color: #555;
}

/* АДМИНКА */
.tplsto-admin {
  padding: 40px 0;
}

.tplsto-admin__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tplsto-admin__item img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #eee;
  margin-bottom: 6px;
}

.tplsto-admin__item figcaption {
  font-size: 13px;
  color: #555;
}

/* КОМПЛЕКТ */
.tplsto-kit {
  padding: 40px 0;
  background: #f7f7f9;
}

.tplsto-kit__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.tplsto-kit__item {
font-size: 1rem;
    line-height: 130%;
    padding: 10px 12px 10px 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 10px rgb(0 0 0 / 5%);
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    align-items: center;
}

/* ДЛЯ КОГО */
.tplsto-forwho {
  padding: 40px 0;
}

.tplsto-forwho__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.tplsto-forwho__list li {
  flex: 1 1 220px;
  font-size: 1rem;
  padding: 8px 1rem;
  border-radius: 8px;
  background: #f2f6ff;
  display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
}

/* СТРУКТУРА */
.tplsto-structure {
  padding: 40px 0;
  background: #f9fafb;
}

.tplsto-structure__list {
  font-size: 14px;
  padding-left: 20px;
}


.tplsto-structure__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  margin: auto;
}

.tplsto-structure__list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #333;
}


.tplsto-structure__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6; /* нежно-синий, можно поменять под бренд */
  transform: translateY(-50%);
}


/* ЦЕНА И ПОКУПКА */
.tplsto-buy {
  padding: 40px 0;
}

.tplsto-buy__inner {
  text-align: center;
}

.tplsto-buy__title {
  font-size: 26px;
  margin-bottom: 12px;
}

.tplsto-buy__intro {
  font-size: 15px;
  color: #555;
  margin-bottom: 22px;
}

.tplsto-buy__price-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.tplsto-buy__price-box {
  padding: 14px 26px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.tplsto-buy__price-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 4px;
}

.tplsto-buy__price-value {
  font-size: 24px;
  font-weight: 700;
}

.tplsto-buy__note {
  font-size: 13px;
  color: #666;
}

/* FAQ */
.tplsto-faq {
  padding: 40px 0;
}

/* ГАРАНТИЯ */
.tplsto-guarantee {
  padding: 40px 0 20px;
  background: #f7f7f9;
}

.tplsto-guarantee__box {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 20px 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  font-size: 1rem;
  color: #555;
}

/* Адаптив */
@media (max-width: 768px) {
  .tplsto-hero .tplsto-container {
    flex-direction: column;
  }

  .tplsto-hero__preview {
    order: -1;
  }

  .tplsto-hero__title {
    font-size: 24px;
  }
}


/* Блок "Цена и покупка шаблона" */
.template-buy {
  padding: 40px 0;
  background-color: #f7f7f9;
}

.template-buy__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.template-buy__title {
  font-size: 28px;
  margin-bottom: 16px;
}

.template-buy__intro {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #555;
}
.template-buy__price-b-out {
   display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center; 
}
.template-buy__price-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.template-buy__price-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 6px;
}

.template-buy__price-value {
  font-size: 26px;
  font-weight: 700;
}

.template-buy__note {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 16px;
  color: #666;
}

/* Базовые стили кнопки (если у тебя уже есть .btn, можно не дублировать) */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background-color: #0077ff;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #005fd1;
}

/* Модальное окно */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* по умолчанию скрыто */
  align-items: center;
  justify-content: center;
  z-index: 1041;
}

.modal--visible {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  margin: 0 15px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px 20px 20px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto; 
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.modal__title {
     font-size: 1.3rem;
    margin-bottom: 20px;
    color: #000;
    text-shadow: initial;
}

.modal__subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.modal__field-out {
        display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.modal__form {
  text-align: left;
  gap: 0.1rem
}
.input-block-flex {flex: 1;}
/* .input-block-flex label, .input-block-flex label {font-size: 1rem;} */
.modal__field {
  margin-bottom: 12px;
}
.scx-input{max-width: 15rem;}

.modal__field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.modal__field input,
.modal__field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.modal__field input:focus,
.modal__field textarea:focus {
  border-color: #0077ff;
  outline: none;
}

.modal__submit {
  width: 100%;
  margin-top: 6px;
}

.modal__privacy {
  margin-top: 10px;
  font-size: 14px;
  color: #999;
  margin-bottom: 0;
}

.modal__type-switch {
  display: inline-flex;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 3px;
  margin-bottom: 16px;
}

.modal__type-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  color: #555;
}

.modal__type-btn.is-active {
  background: #2563eb;
  color: #fff;
}

.modal__fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: none;
}

.modal__fieldset.is-active {
  display: block;
}

/*  поля в две колонки  */
.modal__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal__row .modal__field {
  flex: 1 1 0;
}

.js-order-form {
  display: none;
}

.js-order-form.is-active {
  display: block;
}

.ajax_form .error {
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    color: #d64045;
    margin-top: 4px;}


.modal__agree-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.3;
    cursor: pointer;
}

.modal__agree-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.modal__agree-text {
    color: #555;
}


/* Адаптивность */
@media (max-width: 480px) {
  .template-buy__title {
    font-size: 22px;
  }

  .template-buy__price-box {
    width: 100%;
  }
}
