/* ============================================================
   Rassrochka page — local styles only (prefix .rassrochka__*)
   Reuses .service-hero, .service-content, .service-features,
          .service-cta, .service-sidebar__* from services.css.
   ============================================================ */

/* --- Hero owner trust card --- */
.rassrochka__owner {
  margin: 32px auto 0;
  max-width: 420px;
  padding: 28px 24px;
  background: rgba(250, 248, 244, 0.92);
  border: 1px solid rgba(28, 26, 21, 0.07);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(28, 26, 21, 0.06);
  text-align: center;
}

.rassrochka__owner-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
  border: 3px solid var(--color-primary-light, #c4b49a);
  box-shadow: 0 4px 16px rgba(28, 26, 21, 0.08);
}

.rassrochka__owner-eyebrow {
  font-family: 'Golos Text', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary, #8c7b63);
  margin-bottom: 8px;
}

.rassrochka__owner-name {
  font-family: 'Lora', serif;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-gray-900, #1c1a15);
  margin-bottom: 6px;
}

.rassrochka__owner-role {
  font-family: 'Golos Text', sans-serif;
  font-size: 13px;
  color: var(--color-gray-700, #3d3830);
  opacity: 0.75;
  margin-bottom: 16px;
}

.rassrochka__owner-desc {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray-700, #3d3830);
  margin: 0 0 20px;
}

.rassrochka__owner-verify {
  border-top: 1px solid rgba(28, 26, 21, 0.08);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.rassrochka__owner-verify-label {
  font-family: 'Golos Text', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-700, #3d3830);
  opacity: 0.6;
}

.rassrochka__owner-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Golos Text', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary, #8c7b63);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.rassrochka__owner-verify-link:hover {
  color: var(--color-primary-dark, #6b5d4a);
}

.rassrochka__owner-verify-link svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.rassrochka__owner-verify-inn {
  font-family: 'Golos Text', sans-serif;
  font-size: 12px;
  color: var(--color-gray-700, #3d3830);
  opacity: 0.55;
  letter-spacing: 0.3px;
}

/* Desktop — larger photo on the LEFT, text on the RIGHT */
@media (min-width: 768px) {
  .rassrochka__owner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 28px;
    margin: 0;
    max-width: 100%;
    align-self: center;
    padding: 28px;
    text-align: left;
  }
  .rassrochka__owner > picture {
    display: block;
    line-height: 0;
  }
  .rassrochka__owner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
  }
  .rassrochka__owner-photo {
    width: 200px;
    height: 200px;
    margin: 0;
    border-width: 4px;
  }
  /* Inline the name on desktop instead of stacking */
  .rassrochka__owner-name br { display: none; }
  .rassrochka__owner-name {
    font-size: clamp(28px, 2.6vw, 34px);
    margin-bottom: 4px;
  }
  .rassrochka__owner-role {
    margin-bottom: 14px;
  }
  .rassrochka__owner-desc {
    margin-bottom: 16px;
  }
  .rassrochka__owner-verify {
    align-self: stretch;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .rassrochka__owner {
    gap: 36px;
    padding: 32px 36px;
  }
  .rassrochka__owner-photo {
    width: 240px;
    height: 240px;
  }
  .rassrochka__owner-name {
    font-size: clamp(30px, 2.4vw, 36px);
  }
  .rassrochka__owner-desc {
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .rassrochka__owner {
    gap: 40px;
    padding: 36px 40px;
  }
  .rassrochka__owner-photo {
    width: 260px;
    height: 260px;
  }
}

/* --- USP strip section --- */
.rassrochka__usp-section {
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.rassrochka__usp-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.rassrochka__usp-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: rgba(250, 248, 244, 0.88);
  border: 1px solid rgba(28, 26, 21, 0.07);
  border-radius: 14px;
}

.rassrochka__usp-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, #8c7b63);
}

.rassrochka__usp-icon svg {
  width: 32px;
  height: 32px;
}

.rassrochka__usp-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.45;
}

.rassrochka__usp-text strong {
  font-family: 'Lora', serif;
  font-weight: 500;
  font-size: 17px;
  color: var(--color-gray-900, #1c1a15);
}

.rassrochka__usp-text span {
  color: var(--color-gray-700, #3d3830);
}

@media (max-width: 880px) {
  .rassrochka__usp-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --- Calculator section --- */
.rassrochka__calc-section {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.rassrochka__calc {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(250, 248, 244, 0.92);
  border: 1px solid rgba(28, 26, 21, 0.08);
  border-radius: 24px;
  padding: 40px clamp(20px, 4vw, 48px);
  box-shadow: 0 4px 24px rgba(28, 26, 21, 0.06);
}

.rassrochka__calc-head {
  text-align: center;
  margin-bottom: 28px;
}

.rassrochka__calc-sub {
  color: var(--color-gray-700, #3d3830);
  font-size: 15px;
  margin-top: 8px;
}

.rassrochka__calc-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rassrochka__calc-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.rassrochka__calc-legend {
  /* Visually hidden but available to screenreaders */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rassrochka__calc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rassrochka__calc-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-700, #3d3830);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rassrochka__calc-input {
  font-family: 'Golos Text', sans-serif;
  font-size: 20px;
  font-weight: 500;
  padding: 14px 16px;
  border: 1.5px solid rgba(28, 26, 21, 0.12);
  border-radius: 10px;
  background: #fff;
  color: var(--color-gray-900, #1c1a15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.rassrochka__calc-input:focus {
  outline: none;
  border-color: var(--color-primary, #8c7b63);
  box-shadow: 0 0 0 3px rgba(140, 123, 99, 0.15);
}

.rassrochka__calc-input:invalid {
  border-color: #c4445a;
}

.rassrochka__calc-help {
  font-size: 12px;
  color: var(--color-gray-700, #3d3830);
  opacity: 0.75;
}

/* Pill button-group for months & prepay radios */
.rassrochka__calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.rassrochka__calc-pill {
  flex: 1 1 auto;
  min-width: 60px;
  position: relative;
  cursor: pointer;
}

.rassrochka__calc-pill input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rassrochka__calc-pill span {
  display: block;
  text-align: center;
  padding: 12px 14px;
  font-family: 'Golos Text', sans-serif;
  font-weight: 500;
  font-size: 14px;
  background: #fff;
  border: 1.5px solid rgba(28, 26, 21, 0.12);
  border-radius: 10px;
  color: var(--color-gray-700, #3d3830);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

.rassrochka__calc-pill:hover input[type=radio]:not(:checked) + span {
  border-color: var(--color-primary, #8c7b63);
  color: var(--color-primary, #8c7b63);
}

.rassrochka__calc-pill input[type=radio]:checked + span {
  background: linear-gradient(135deg, #2c2620, #3d3428);
  border-color: #2c2620;
  color: #faf8f4;
}

.rassrochka__calc-pill input[type=radio]:focus-visible + span {
  outline: 2px solid var(--color-primary, #8c7b63);
  outline-offset: 2px;
}

/* "Wide" field — span full grid width on desktop */
.rassrochka__calc-field--wide {
  grid-column: 1 / -1;
}

.rassrochka__calc-result {
  background: linear-gradient(135deg, #2c2620, #3d3428);
  color: #faf8f4;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rassrochka__calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.rassrochka__calc-result-label {
  font-size: 14px;
  color: rgba(250, 248, 244, 0.7);
}

.rassrochka__calc-result-value {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 500;
  color: #faf8f4;
}

.rassrochka__calc-result-value--zero {
  font-size: clamp(18px, 3vw, 22px);
  color: rgba(250, 248, 244, 0.85);
}

.rassrochka__calc-result-note {
  font-size: 13px;
  color: rgba(250, 248, 244, 0.7);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid rgba(250, 248, 244, 0.12);
  margin-top: 4px;
}

.rassrochka__calc-disclaimer {
  font-size: 13px;
  color: var(--color-gray-700, #3d3830);
  line-height: 1.55;
  padding: 14px 16px;
  background: rgba(196, 180, 154, 0.12);
  border-left: 3px solid var(--color-primary-light, #c4b49a);
  border-radius: 6px;
}

.rassrochka__calc-cta {
  margin-top: 20px;
  padding: 16px 18px;
  background: rgba(250, 248, 244, 0.88);
  border: 1px solid rgba(28, 26, 21, 0.07);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.rassrochka__calc-cta-text {
  flex: 1 1 240px;
  font-size: 14px;
  color: var(--color-gray-900, #1c1a15);
  font-weight: 500;
  line-height: 1.4;
}

.rassrochka__calc-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .rassrochka__calc-fieldset {
    grid-template-columns: 1fr;
  }
  .rassrochka__calc {
    padding: 28px 18px;
  }
  .rassrochka__calc-cta {
    gap: 12px;
    padding: 14px 16px;
  }
  .rassrochka__calc-cta-text {
    flex: 1 1 100%;
    text-align: center;
  }
  .rassrochka__calc-cta .btn {
    flex: 1 1 100%;
  }
}

/* --- Legal disclaimer --- */
.rassrochka__legal-section {
  padding: 40px 0 80px;
  position: relative;
  z-index: 2;
}

.rassrochka__legal {
  max-width: 920px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-gray-700, #3d3830);
  opacity: 0.85;
  padding: 20px 24px;
  background: rgba(250, 248, 244, 0.6);
  border: 1px solid rgba(28, 26, 21, 0.06);
  border-radius: 10px;
}

.rassrochka__legal strong {
  font-weight: 600;
  opacity: 1;
}

.rassrochka__legal a {
  color: var(--color-primary, #8c7b63);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.rassrochka__legal a:hover {
  color: var(--color-primary-dark, #6b5d4a);
}
