:root {
  --ccalc-primary: #2f3d50;
  --ccalc-primary-light: #4a5a70;
  --ccalc-accent: #0d994b;
  --ccalc-accent-light: #1db954;
  --ccalc-border: rgba(48, 62, 80, .12);
  --ccalc-white: #fff;
  --ccalc-bg-light: #fafbff;
  --ccalc-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  --ccalc-error: #e53e3e;
  --ccalc-font: system-ui;
}
.calculator-container {
  width: 100%;
  max-width: 690px;
  max-height: 330px;
  background: var(--ccalc-white);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--ccalc-shadow);
  border: 1px solid var(--ccalc-border);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  font-family: var(--ccalc-font) !important;
  transition: max-height .4s cubic-bezier(.34, 1.56, .64, 1);
}
.calculator-container * {
  box-sizing: border-box;
}
.calculator-container.state-no-product {
  max-height: 320px;
}
.calculator-container.state-has-product {
  max-height: 450px;
}
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ccalc-primary);
}

.control-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--ccalc-bg-light);
  border: 1px solid var(--ccalc-border);
  border-radius: 16px;
  transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
}

.control-container:focus-within {
  border-color: var(--ccalc-accent);
  box-shadow: 0 0 0 3px rgba(13, 153, 75, .12);
}

.control-container.error {
  border-color: var(--ccalc-error);
  animation: pulseError .6s 1;
}

@keyframes pulseError {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, .2);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(229, 62, 62, 0);
  }
}

.control-input {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ccalc-primary);
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--ccalc-font);
  -moz-appearance: textfield;
}

.control-input::placeholder {
  color: #a0aec0;
  font-weight: 500;
}

.slider-track {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #eef4ff;
  border-radius: 2px;
  overflow: visible;
}

.slider-fill {
  height: 100%;
  background: var(--ccalc-accent);
  border-radius: 3px;
  width: 0%;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--ccalc-white);
  border: 2px solid var(--ccalc-primary);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .2);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 3;
}

.invisible-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  -webkit-appearance: none;
}

.range-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #718096;
}

.result-info {
  margin-top: 16px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(13, 153, 75, .08), rgba(29, 185, 84, .05));
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ccalc-primary);
  text-align: center;
  opacity: 1;
}

.result-info.error {
  background: linear-gradient(135deg, rgba(229, 62, 62, .08), rgba(255, 100, 100, .05));
  font-size: 14px;
  color: var(--ccalc-error);
}

.product-info {
  margin-top: 12px;
  font-size: 14px;
  color: var(--ccalc-primary);
  text-align: center;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
}

.product-info.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.show-schedule {
  margin-top: 12px;
  display: block;
  width: 100%;
  padding: 10px;
  background: rgba(13, 153, 75, .06);
  color: var(--ccalc-accent);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  opacity: 0;
  transform: translateY(10px);
}

.show-schedule.visible {
  opacity: 1;
  transform: translateY(0);
}

.show-schedule:hover {
  background: rgba(13, 153, 75, .12);
  transform: translateY(-2px);
}

.ccalc-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .6);
  z-index: 1000;
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ccalc-modal-content {
  background: var(--ccalc-white);
  width: 100%;
  max-width: 690px;
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  font-family: var(--ccalc-font);
}

.ccalc-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--ccalc-border);
  font-weight: 700;
  font-size: 18px;
  color: var(--ccalc-primary);
}

.ccalc-modal-body {
  overflow-y: auto;
  padding: 0;
}

.inner_page .ccalc-modal table tr {
  font-size: 12px;
}
.inner_page .ccalc-modal table tr th {
  font-size: 14px;
}
.inner_page .ccalc-modal table tr:first-child {
  text-transform: inherit;
}
.inner_page .ccalc-modal table tr:first-child td:first-child {
  background: inherit;
}
.inner_page .ccalc-modal table tr:first-child td:nth-child(2) {
  background: inherit;
}

.ns-schedule-table {
  width: 100% !important;
  text-transform: none !important;
  border-collapse: collapse !important;
  font-size: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ns-schedule-table th,
.ns-schedule-table td {
  padding: 12px 14px !important;
  text-align: right !important;
  border-bottom: 1px solid var(--ccalc-border) !important;
  margin: 0 !important;
}

.ns-schedule-table th {
  background: var(--ccalc-bg-light) !important;
  color: var(--ccalc-primary) !important;
  font-weight: 700 !important;
  text-align: center !important;
  position: sticky !important;
  top: 0 !important;
}

.ccalc-modal-footer {
  padding: 20px 24px;
  text-align: right;
  border-top: 1px solid var(--ccalc-border);
}

.ccalc-modal-footer button {
  padding: 10px 22px;
  background: var(--ccalc-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s ease;
}

.ccalc-modal-footer button:hover {
  background: var(--ccalc-accent-light);
  transform: translateY(-1px);
}

.credit-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credit-card {
  width: 690px;
  padding: 24px;
  background: linear-gradient(135deg, #ebf3fa, #fff, rgba(13, 177, 75, .15));
  background-size: 200% 200%;
  animation: gradient-animation 8s infinite;
  border: 1px solid var(--ccalc-border);
  border-radius: 16px;
  font-family: var(--ccalc-font);
  position: relative;
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.credit-card:hover {
  box-shadow: 5px 5px 5px rgba(0, 0, 0, .05);
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.credit-card.delay-0 {
  animation-delay: 0s;
}

.credit-card.delay-1 {
  animation-delay: 1s;
}

.credit-card.delay-2 {
  animation-delay: 2s;
}

.credit-card.delay-3 {
  animation-delay: 3s;
}

.credit-card__content {
  flex: 1;
  min-width: 0;
}

.credit-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ccalc-primary) !important;
  text-decoration: none !important;
  transition: color .2s;
  margin-bottom: 12px;
  display: inline-block;
}

.credit-card__title:hover {
  color: var(--ccalc-accent) !important;
}

.credit-card__conditions {
  font-size: 13px;
  color: var(--ccalc-primary);
  margin-bottom: 0;
}

.credit-card__conditions p {
  margin-bottom: 4px;
}

.credit-card__conditions strong {
  color: var(--ccalc-primary);
}

.credit-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background-color: rgba(38, 55, 88, .06);
  color: var(--ccalc-primary) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--ccalc-border);
  border-radius: 10px;
  transition: all .25s ease-out;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
  align-self: flex-end;
}

.credit-card__btn:hover {
  background: var(--ccalc-accent) !important;
  color: var(--ccalc-white) !important;
  border-color: var(--ccalc-accent) !important;
}

.credit-card__btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.calculator-title {
  font-size: 18px;
  font-weight: 700;
  font-family: system-ui;
  color: var(--ccalc-primary);
  margin: 0 0 16px;
  padding: 0;
}

.documents-section {
  margin-top: 24px;
  font-family: var(--ccalc-font);
}

.documents-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(13, 153, 75, .06);
  color: var(--ccalc-accent);
  border: solid 1px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
}

.documents-toggle:hover {
  background: rgba(13, 153, 75, .12);
}

.toggle-icon {
  transition: transform .3s ease;
  flex-shrink: 0;
}

.documents-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.documents-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.34, 1.56, .64, 1);
  opacity: 0;
  visibility: hidden;
}

.documents-content.is-open {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  margin-top: 12px;
}

.document-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--ccalc-border);
}

.document-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.document-title-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ccalc-primary) !important;
  text-decoration: none !important;
  line-height: 1.4;
  margin-bottom: 4px;
}

.document-title-link:hover {
  color: var(--ccalc-accent) !important;
  text-decoration: underline !important;
}

.document-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #718096;
  margin-bottom: 6px;
}

.document-desc {
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
}
