/* --- Стили для кредитного калькулятора Halyk Bank (включая Tailwind) --- */

/* 1. Подключение шрифта Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 2. Базовые стили и переменные Tailwind (минимальный набор) */
:root {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
}
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}
.loan-calculator-container { font-family: 'Inter', sans-serif; }
.loan-calculator-container button {
    background-color: transparent;
    background-image: none;
    cursor: pointer;
}

/* 3. Классы Tailwind, используемые в калькуляторе */
.w-full { width: 100%; }
.bg-white { background-color: #fff; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.p-6 { padding: 1.5rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.text-center { text-align: center; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-bold { font-weight: 700; }
.text-gray-800 { color: #1f2937; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.mt-2 { margin-top: 0.5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.bg-gray-100 { background-color: #f3f4f6; }
.p-1 { padding: 0.25rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-lg { border-radius: 0.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.font-semibold { font-weight: 600; }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.bg-transparent { background-color: transparent; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.mb-2 { margin-bottom: 0.5rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-green-700 { color: #047857; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.mt-1 { margin-top: 0.25rem; }
.bg-green-50 { background-color: #f0fdf4; }
.border { border-width: 1px; }
.border-green-200 { border-color: #bbf7d0; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.border-t { border-top-width: 1px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-4 { padding-top: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.flex-col { flex-direction: column; }
.mb-4 { margin-bottom: 1rem; }
.bg-orange-500 { background-color: #f97316; }
.text-white { color: #fff; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.rounded-md { border-radius: 0.375rem; }
.inline-block { display: inline-block; }
.flex-grow { flex-grow: 1; }
.mt-auto { margin-top: auto; }
.bg-sky-600 { background-color: #0284c7; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.hover\:bg-sky-700:hover { background-color: #0369a1; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.bg-green-500 { background-color: #22c55e; }
.border-gray-200 { border-color: #e5e7eb; }

@media (min-width: 768px) {
  .md\:p-8 { padding: 2rem; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* 4. Кастомные стили для ползунка (range slider) */
.loan-calculator-container input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}
.loan-calculator-container input[type="range"]:hover {
    opacity: 1;
}
.loan-calculator-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #16a34a;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.loan-calculator-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #16a34a;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
