/* Дизайн условий покупки */

:root {
  --tp-blue:       #3060a8;
  --tp-blue-deep:  #193359;
  --tp-blue-night: #0e1f3d;
  --tp-blue-soft:  #eaf0f9;
  --tp-ink:        #14243f;
  --tp-text:       #5b6c77;
  --tp-line:       rgba(48, 96, 168, .16);
  --tp-gold:       #ac8f55;
  --tp-gold-light: #d8bd88;
  --tp-wine:       #36020f;
  --tp-r:          20px;
}

.tp-page { background: #fff; }

.tp-section { padding: clamp(48px, 34px + 2.2vw, 88px) 0; }
.tp-section_gray { background: linear-gradient(180deg, #f7f9fc 0%, #fff 100%); }
.tp-section_tight { padding-top: 0; }

.tp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-family: GothamPro-Medium;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--tp-gold);
}

.tp-eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--tp-gold), transparent);
}

.tp-h2 {
  margin: 0 0 14px;
  font-family: GothamPro-Bold;
  font-size: clamp(26px, 18px + 1.5vw, 40px);
  line-height: 1.15;
  color: var(--tp-ink);
}

.tp-sub {
  max-width: 760px;
  margin: 0 0 clamp(28px, 22px + .8vw, 44px);
  font-size: clamp(15px, 14px + .2vw, 17px);
  line-height: 1.6;
  color: var(--tp-text);
}


.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border: 0;
  border-radius: 50px;
  font-family: GothamPro-Medium;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}

.tp-btn_primary {
  background: linear-gradient(135deg, #3f74c4 0%, var(--tp-blue) 55%, #24497f 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(48, 96, 168, .32);
}

.tp-btn_gold {
  background: linear-gradient(135deg, var(--tp-gold-light) 0%, var(--tp-gold) 100%);
  color: var(--tp-wine);
  box-shadow: 0 12px 28px rgba(172, 143, 85, .34);
}

.tp-btn_ghost {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
}

.tp-btn:hover { transform: translateY(-2px); }
.tp-btn_ghost:hover { background: rgba(255, 255, 255, .18); }


.tp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 38px + 3vw, 104px) 0 clamp(52px, 38px + 2.4vw, 92px);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(63, 116, 196, .55), transparent 62%),
    radial-gradient(700px 420px at 92% 8%, rgba(172, 143, 85, .22), transparent 60%),
    linear-gradient(135deg, var(--tp-blue-night) 0%, var(--tp-blue-deep) 55%, #24497f 100%);
  color: #fff;
}

.tp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tp-gold), transparent);
}

.tp-hero__inner { max-width: 820px; }

.tp-hero__title {
  margin: 0 0 20px;
  font-family: GothamPro-Bold;
  font-size: clamp(32px, 22px + 2.4vw, 56px);
  line-height: 1.08;
  color: #fff;
}

.tp-hero__lead {
  margin: 0 0 32px;
  font-size: clamp(16px, 15px + .3vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}

.tp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.tp-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 24px + 1vw, 48px);
}

.tp-hero__stat {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
}

.tp-hero__stat b {
  display: block;
  font-family: GothamPro-Bold;
  font-size: clamp(20px, 16px + .8vw, 27px);
  color: var(--tp-gold-light);
}

.tp-hero__stat span { font-size: 13px; color: rgba(255, 255, 255, .7); }


.tp-tabs {
  position: sticky;
  top: 80px;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tp-line);
}

.tp-tabs__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.tp-tabs__inner::-webkit-scrollbar { display: none; }

.tp-tabs__link {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: GothamPro-Medium;
  font-size: 14px;
  color: var(--tp-blue-deep);
  white-space: nowrap;
  transition: background .25s, color .25s;
}

.tp-tabs__link:hover { background: var(--tp-blue-soft); }

.tp-tabs__link.is-active {
  background: linear-gradient(135deg, #3f74c4, var(--tp-blue));
  color: #fff;
}

@media (max-width: 991px) { .tp-tabs { top: 70px; } }


.tp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tp-card {
  display: block;
  padding: 30px 28px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
  background: #fff;
  box-shadow: 0 2px 10px rgba(12, 28, 52, .04);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

a.tp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(48, 96, 168, .38);
  box-shadow: 0 22px 44px rgba(12, 28, 52, .12);
}

.tp-card__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--tp-blue-soft), #dbe6f6);
  color: var(--tp-blue);
}

.tp-card__ico svg { width: 26px; height: 26px; }

.tp-card__title {
  margin: 0 0 8px;
  font-family: GothamPro-Medium;
  font-size: 19px;
  color: var(--tp-ink);
}

.tp-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tp-text); }


.tp-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.tp-list li {
  position: relative;
  padding-left: 36px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--tp-ink);
}

.tp-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #3f74c4, var(--tp-blue))
    no-repeat;
}

.tp-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}


.tp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: tpstep;
}

.tp-step {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
  background: #fff;
}

.tp-step::before {
  counter-increment: tpstep;
  content: "0" counter(tpstep);
  display: block;
  margin-bottom: 14px;
  font-family: GothamPro-Bold;
  font-size: 30px;
  line-height: 1;
  background: linear-gradient(135deg, var(--tp-gold-light), var(--tp-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tp-step b {
  display: block;
  margin-bottom: 7px;
  font-family: GothamPro-Medium;
  font-size: 17px;
  color: var(--tp-ink);
}

.tp-step span { font-size: 15px; line-height: 1.55; color: var(--tp-text); }


.tp-banks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.tp-bank {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--tp-line);
  border-radius: 16px;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}

.tp-bank:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(12, 28, 52, .1); }

.tp-bank img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .3s, opacity .3s;
}

.tp-bank:hover img { filter: none; opacity: 1; }


.tp-calc__box {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: start;
}

.tp-calc__form {
  padding: clamp(22px, 16px + 1vw, 36px);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-r);
  background: #fff;
  box-shadow: 0 2px 12px rgba(12, 28, 52, .05);
}

.tp-calc__progs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }

.tp-prog {
  display: grid;
  gap: 2px;
  padding: 11px 18px;
  border: 1.5px solid var(--tp-line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: all .25s;
}

.tp-prog__name { font-family: GothamPro-Medium; font-size: 14px; color: var(--tp-ink); }
.tp-prog__rate { font-size: 12px; color: var(--tp-text); }

.tp-prog:hover { border-color: rgba(48, 96, 168, .45); }

.tp-prog.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #3f74c4, var(--tp-blue));
  box-shadow: 0 10px 22px rgba(48, 96, 168, .28);
}

.tp-prog.is-active .tp-prog__name { color: #fff; }
.tp-prog.is-active .tp-prog__rate { color: rgba(255, 255, 255, .8); }

.tp-field { margin-bottom: 26px; }
.tp-field:last-child { margin-bottom: 0; }

.tp-field__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tp-field__top label { font-size: 14px; color: var(--tp-text); }

.tp-field__val {
  font-family: GothamPro-Bold;
  font-size: clamp(17px, 15px + .4vw, 21px);
  color: var(--tp-ink);
}

.tp-field__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #9aa7b4;
}

.tp-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 50px;
  background:
    linear-gradient(90deg, #3f74c4, var(--tp-blue)) 0 / var(--p, 30%) 100% no-repeat,
    var(--tp-blue-soft);
  outline: none;
  cursor: pointer;
}

.tp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--tp-blue);
  box-shadow: 0 3px 10px rgba(48, 96, 168, .45);
  cursor: grab;
}

.tp-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--tp-blue);
  box-shadow: 0 3px 10px rgba(48, 96, 168, .45);
  cursor: grab;
}

.tp-calc__result {
  position: sticky;
  top: 150px;
  padding: clamp(24px, 18px + 1vw, 34px);
  border-radius: var(--tp-r);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(172, 143, 85, .26), transparent 60%),
    linear-gradient(150deg, var(--tp-blue-night), var(--tp-blue-deep) 60%, #24497f);
  color: #fff;
  box-shadow: 0 26px 54px rgba(12, 28, 52, .28);
}

.tp-calc__label { display: block; font-size: 13px; color: rgba(255, 255, 255, .68); }

.tp-calc__pay strong {
  display: block;
  margin: 6px 0 22px;
  font-family: GothamPro-Bold;
  font-size: clamp(28px, 20px + 1.6vw, 40px);
  line-height: 1.05;
  color: var(--tp-gold-light);
}

.tp-calc__list { margin: 0 0 20px; padding: 0; list-style: none; }

.tp-calc__list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px;
}

.tp-calc__list span { color: rgba(255, 255, 255, .68); }
.tp-calc__list b { font-family: GothamPro-Medium; }

.tp-calc__bar {
  height: 8px;
  border-radius: 50px;
  background: rgba(255, 255, 255, .18);
  overflow: hidden;
}

.tp-calc__bar span {
  display: block;
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--tp-gold-light), var(--tp-gold));
  transition: width .3s;
}

.tp-calc__legend {
  display: flex;
  justify-content: space-between;
  margin: 9px 0 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}

.tp-calc__result .tp-btn { width: 100%; }

.tp-calc__note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--tp-gold-light);
}

@media (max-width: 991px) {
  .tp-calc__box { grid-template-columns: 1fr; }
  .tp-calc__result { position: static; }
}


.tp-cta__box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 16px + 1.6vw, 52px);
  align-items: center;
  padding: clamp(28px, 20px + 1.8vw, 56px);
  border-radius: 26px;
  background:
    radial-gradient(700px 340px at 8% 0%, rgba(63, 116, 196, .5), transparent 62%),
    radial-gradient(560px 320px at 100% 100%, rgba(172, 143, 85, .24), transparent 60%),
    linear-gradient(135deg, var(--tp-blue-night), var(--tp-blue-deep));
  color: #fff;
}

.tp-cta__title {
  margin: 0 0 14px;
  font-family: GothamPro-Bold;
  font-size: clamp(23px, 17px + 1.2vw, 34px);
  line-height: 1.15;
  color: #fff;
}

.tp-cta__text p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.tp-cta__form { display: grid; gap: 12px; }

.tp-cta__form input[type="text"],
.tp-cta__form input[type="tel"] {
  width: 100%;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50px;
  background: rgba(255, 255, 255, .08);
  font-family: GothamPro-Regular;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color .25s, background .25s;
}

.tp-cta__form input::placeholder { color: rgba(255, 255, 255, .55); }

.tp-cta__form input:focus {
  border-color: var(--tp-gold);
  background: rgba(255, 255, 255, .14);
}

.tp-cta__form .tp-btn { width: 100%; }

.tp-cta__policy { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

@media (max-width: 767px) { .tp-cta__box { grid-template-columns: 1fr; } }


.tp-note {
  padding: 22px 26px;
  border-left: 3px solid var(--tp-gold);
  border-radius: 0 14px 14px 0;
  background: #f7f9fc;
  font-size: 13.5px;
  line-height: 1.6;
  color: #7d8b96;
}

.tp-note_inline {
  margin-top: 26px;
  border-left-color: var(--tp-blue);
}

.tp-note a { color: var(--tp-blue); text-decoration: underline; }

/*Логотипы жк в маткапитале*/

.tp-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tp-card__head .tp-card__title { margin: 0; }

.tp-card__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tp-blue-soft), #dbe6f6);
  overflow: hidden;
}

.tp-card__logo img {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
}

.tp-card__ext {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 8px;
  vertical-align: -1px;
  background: currentColor;
  opacity: .45;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3C/svg%3E") center / contain no-repeat;
}