/* zero_percent.css — обновлённый дизайн в цветовой гамме сайта */

.breadcrumb {
  background: #f8f9fa;
  padding: 1rem 0;
  margin-top: 70px;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb-nav a {
  color: #6a6a6a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover { color: #1a1a1a; }

.current { color: #1a1a1a; font-weight: 500; }

/* Hero секция */
.inst-hero {
  background: #fff;
  padding: 3rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid #e5e5e5;
}

.inst-badge {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 0.35rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.inst-hero-inner h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.2;
}

.inst-hero-inner h1 span {
  color: #6a6a6a;
  font-weight: 400;
  display: block;
  font-size: 2rem;
}

.inst-hero-inner p {
  font-size: 1.3rem;
  color: #6a6a6a;
  margin-bottom: 2.5rem;
}

.inst-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.inst-feature {
  flex: 1;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 1.5rem 1rem;
}

.inst-feature--accent {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.inst-feature--accent .inst-feature__value,
.inst-feature--accent .inst-feature__label {
  color: #fff;
}

.inst-feature__value {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.inst-feature__label {
  font-size: 1rem;
  color: #6a6a6a;
  font-weight: 600;
}

/* Контент */
.inst-content {
  padding: 3rem 0 4rem;
  background: #fafafa;
}

.inst-section-header,
.inst-scheme-header,
.inst-example-block__header,
.inst-advantages-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.inst-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.inst-title span {
  color: #6a6a6a;
  font-weight: 400;
}

.inst-subtitle {
  font-size: 1.2rem;
  color: #6a6a6a;
  margin: 0.5rem 0 0;
}

/* Условия — горизонтальные карточки */
.inst-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.inst-term {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 1.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.inst-term:hover {
  border-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.inst-term::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border-radius: 0 0 0 60px;
  z-index: 0;
}

.inst-term__icon {
  width: 60px;
  height: 60px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.inst-term__icon svg {
  fill: #1a1a1a;
}

.inst-term__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.inst-term__content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.35rem;
}

.inst-term__content p {
  color: #6a6a6a;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.4;
}

.inst-term__value {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a1a1a;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: 0.5rem 1rem;
  min-width: 80px;
  text-align: center;
}

/* Схема работы — горизонтальные шаги */
.inst-steps-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 100px;
  padding: 1rem 2rem;
  margin-bottom: 4rem;
}

.inst-step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.inst-step-item__number {
  width: 48px;
  height: 48px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  flex-shrink: 0;
}

.inst-step-item__content h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}

.inst-step-item__content p {
  font-size: 0.85rem;
  color: #6a6a6a;
  margin: 0;
}

.inst-step-connector {
  width: 40px;
  height: 2px;
  background: #e5e5e5;
  margin: 0 0.5rem;
}

/* Пример расчёта */
.inst-example-block {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 32px;
  padding: 2.5rem;
  margin: 3rem 0;
}

.inst-calculator {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.inst-calculator__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: #f8f9fa;
  border-radius: 24px;
  padding: 2rem;
}

.inst-calculator__door {
  text-align: center;
}

.inst-calculator__door-icon {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.inst-calculator__door-icon svg {
  fill: #1a1a1a;
}

.inst-calculator__door-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #1a1a1a;
}

.inst-calculator__arrow {
  font-size: 3rem;
  color: #ccc;
  font-weight: 300;
}

.inst-calculator__result {
  display: grid;
  gap: 1rem;
}

.inst-calculator__result-item {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  min-width: 250px;
}

.inst-calculator__result-item span {
  color: #6a6a6a;
}

.inst-calculator__result-item strong {
  color: #1a1a1a;
  font-weight: 900;
}

/* ИСПРАВЛЕННЫЙ БЛОК С СУММОЙ */
.inst-calculator__total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: #1a1a1a;
  border-radius: 24px;
  color: #fff;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.inst-calculator__total-label {
  font-size: 1.2rem;
  font-weight: 600;
  width: 100%;
}

.inst-calculator__total-value {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.2;
  width: 100%;
}

.inst-calculator__total-note {
  font-size: 1.2rem;
  opacity: 0.9;
  color: #4caf50;
  font-weight: 500;
  width: 100%;
}

/* Преимущества — сетка с иконками */
.inst-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}

.inst-benefit {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.2s;
}

.inst-benefit:hover {
  border-color: #1a1a1a;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.inst-benefit__icon {
  width: 64px;
  height: 64px;
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.inst-benefit__icon svg {
  fill: #1a1a1a;
}

.inst-benefit h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.inst-benefit p {
  color: #6a6a6a;
  line-height: 1.5;
  margin: 0;
  font-size: 0.95rem;
}

/* CTA секция */
.cta-section{
  margin-top: 3rem;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  border: 1px solid #333;
}

.cta-inner{
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.cta-title{
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.cta-text{
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.btn-white{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.10), 0 1px 0 rgba(255,255,255,.9) inset;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.btn-white::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.035) 0%, rgba(0,0,0,0) 40%, rgba(255,255,255,.55) 65%, rgba(255,255,255,0) 100%);
  opacity: .45;
}

.btn-white::before{
  content:"";
  position:absolute;
  top:-70%;
  left:-60%;
  width: 70%;
  height: 260%;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(115deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,.06) 49%, rgba(255,255,255,.95) 52%, rgba(0,0,0,.05) 56%, rgba(0,0,0,0) 68%, rgba(0,0,0,0) 100%);
  filter: blur(6px);
  opacity: 0;
  transform: translateX(-160%) rotate(14deg);
  transition: transform .85s cubic-bezier(.2,.85,.2,1), opacity .22s ease;
}

.btn-white .shine-line{
  position:absolute;
  inset:-80% auto -80% -60%;
  width: 34%;
  pointer-events:none;
  z-index: 0;
  background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 60%, rgba(255,255,255,0) 100%);
  filter: blur(0.8px);
  opacity: 0;
  transform: translateX(-160%) rotate(14deg);
  transition: transform .78s cubic-bezier(.2,.85,.2,1), opacity .18s ease;
}

.btn-white > *{ position: relative; z-index: 1; }

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255,.9) inset;
}

.btn-white:hover::before,
.btn-white:hover .shine-line {
  opacity: 1;
  transform: translateX(30%) rotate(14deg);
}

/* Responsive */
@media (max-width: 1200px){
  .inst-terms-grid { grid-template-columns: 1fr; }
  .inst-benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .inst-steps-horizontal { flex-direction: column; gap: 1.5rem; border-radius: 32px; }
  .inst-step-connector { width: 2px; height: 30px; }
  .inst-calculator__preview { flex-direction: column; }
  .inst-calculator__arrow { transform: rotate(90deg); }
}

@media (max-width: 768px){
  .inst-hero-inner h1 { font-size: 2.2rem; }
  .inst-hero-inner h1 span { font-size: 1.5rem; }
  .inst-features { flex-direction: column; gap: 1rem; }
  .inst-benefits-grid { grid-template-columns: 1fr; }
  .inst-term { flex-wrap: wrap; }
  .inst-term__value { width: 100%; }

  .inst-calculator__result-item {
    min-width: auto;
    width: 100%;
  }
}

/* Дополнительная защита для маленьких мобильных */
@media (max-width: 480px) {
  .inst-calculator__total-value {
    font-size: 2.5rem;
  }

  .inst-calculator__total-label {
    font-size: 1rem;
  }

  .inst-calculator__total-note {
    font-size: 1rem;
  }

  .btn-white {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    white-space: normal;
    word-break: break-word;
  }
}