@charset "UTF-8";
/**
*-----------------------------------------------
* Kalkulatory InfoGrid
* Kompilacja: sass/calculators.scss -> css/calculators.css
*-----------------------------------------------
*/
/**
*-----------------------------------------------
* Nagłówek i układ strony kalkulatora
*-----------------------------------------------
*/
.calc_header {
  background: #F8F9FA;
  border-bottom: 1px solid #E1E5EA;
  padding: 2.5rem 0 2rem;
}
.calc_header .breadcrumbs {
  margin-bottom: 1rem;
}

.calc_title {
  font-size: 2.3rem;
  color: #2F3349;
  margin: 0 0 0.75rem;
}

.calc_lead {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 780px;
  color: rgb(35%, 35%, 35%);
  margin: 0;
}

.calc_page {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

@media all and (max-width: 1039.98px) {
  .calc_page > .row.bigger_row {
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
  }
  .calc_page > .row.bigger_row > * {
    padding-right: calc(0.5 * var(--bs-gutter-x));
    padding-left: calc(0.5 * var(--bs-gutter-x));
  }
}
/**
*-----------------------------------------------
* Pudełko kalkulatora
*-----------------------------------------------
*/
.calc_box {
  background: #fff;
  border: 1px solid #E1E5EA;
  border-top: 4px solid #4A90B8;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 6px 24px rgba(47, 51, 73, 0.06);
}
.calc_box h2, .calc_box h3 {
  font-size: 1.15rem;
  color: #2F3349;
  margin: 2rem 0 1rem;
}
.calc_box > :first-child {
  margin-top: 0;
}
.calc_box p {
  margin: 0.5rem 0;
}

.calc_section_title {
  font-size: 1.15rem;
  color: #2F3349;
  margin: 2rem 0 1rem;
}

.calc_form {
  margin: 0;
}

/**
*-----------------------------------------------
* Pola formularza
*-----------------------------------------------
*/
.calc_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.1rem 1.5rem;
  align-items: start;
}

.calc_grid_2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calc_grid_3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc_field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.calc_field_wide {
  grid-column: 1/-1;
}

.calc_label {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: #2F3349;
  margin: 0;
}

.calc_hint {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #6B7280;
}

.calc_input,
.calc_select {
  width: 100%;
  height: 2.9rem;
  border: 1px solid #CDD3DA;
  border-radius: 0.4rem;
  padding: 0 0.9rem;
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  color: #333;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.calc_input:focus,
.calc_select:focus {
  outline: none;
  border-color: #4A90B8;
  box-shadow: 0 0 0 3px rgba(74, 144, 184, 0.2);
}
.calc_input:disabled, .calc_input[readonly],
.calc_select:disabled,
.calc_select[readonly] {
  background-color: #F3F5F8;
}

.calc_select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.4rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F3349' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

input.calc_input[type=date] {
  padding-right: 0.6rem;
}

.calc_input_lg {
  height: 3.4rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.calc_input_group {
  display: flex;
  align-items: stretch;
  min-width: 0;
}
.calc_input_group .calc_input {
  flex: 1;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.calc_input_group .calc_unit,
.calc_input_group .calc_select {
  border-left: 0;
  border-radius: 0 0.4rem 0.4rem 0;
}
.calc_input_group .calc_select {
  width: auto;
  flex: 0 0 auto;
  max-width: 55%;
}

.calc_unit {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  background: #F3F5F8;
  border: 1px solid #CDD3DA;
  color: #6B7280;
  font-weight: 600;
  white-space: nowrap;
}

.is_invalid .calc_input,
.is_invalid .calc_select {
  border-color: #8B1538;
}

.calc_error {
  color: #8B1538;
  font-size: 0.85rem;
  line-height: 1.3;
}

.calc_segmented {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  border: 1px solid #CDD3DA;
  border-radius: 0.4rem;
  overflow: hidden;
  background: #fff;
}
.calc_segmented label {
  position: relative;
  margin: 0;
}
.calc_segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc_segmented span {
  display: block;
  padding: 0.6rem 1rem;
  border-right: 1px solid #CDD3DA;
  color: #2F3349;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.calc_segmented span:hover {
  background: #F3F5F8;
}
.calc_segmented label:last-child span {
  border-right: 0;
}
.calc_segmented input:checked + span {
  background: #2F3349;
  color: #fff;
}
.calc_segmented input:focus-visible + span {
  box-shadow: inset 0 0 0 2px #4A90B8;
}

.calc_segmented_full {
  display: flex;
}
.calc_segmented_full label {
  flex: 1;
}
.calc_segmented_full span {
  text-align: center;
}

.calc_check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}
.calc_check input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: #2F3349;
}

.calc_checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/**
*-----------------------------------------------
* Przyciski i zakładki
*-----------------------------------------------
*/
.calc_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.9rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 0.4rem;
  background: #2F3349;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.calc_btn:hover, .calc_btn:focus-visible {
  background: #8B1538;
  color: #fff;
}

.calc_btn_ghost {
  background: transparent;
  color: #2F3349;
  border: 1px solid #CDD3DA;
}
.calc_btn_ghost:hover, .calc_btn_ghost:focus-visible {
  background: #F3F5F8;
  color: #2F3349;
}

.calc_btn_icon {
  width: 2.9rem;
  padding: 0;
}

.calc_btn_sm {
  height: 2.2rem;
  padding: 0 0.9rem;
  font-size: 0.85rem;
}

.calc_actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.calc_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid #E1E5EA;
  margin-bottom: 1.5rem;
}
.calc_tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #6B7280;
  cursor: pointer;
}
.calc_tabs button:hover {
  color: #2F3349;
}
.calc_tabs button.is_active {
  color: #2F3349;
  border-bottom-color: #8B1538;
}

/**
*-----------------------------------------------
* Wyniki
*-----------------------------------------------
*/
.calc_result {
  margin-top: 1.75rem;
  background: #2F3349;
  color: #fff;
  border-radius: 0.5rem;
  padding: 1.5rem 1.75rem;
}

.calc_result_label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.calc_result_value {
  display: block;
  font-family: "merriweather", sans-serif;
  font-weight: 900;
  font-size: 2.3rem;
  line-height: 1.2;
  color: #fff;
  margin: 0.25rem 0;
  word-break: break-word;
}

.calc_result_sub {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.calc_result_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

.calc_result_light {
  background: #F3F5F8;
  color: #333;
}
.calc_result_light .calc_result_label,
.calc_result_light .calc_result_sub {
  color: #6B7280;
}
.calc_result_light .calc_result_value {
  color: #2F3349;
}

.calc_stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.calc_stat {
  background: #F3F5F8;
  border-radius: 0.4rem;
  padding: 0.85rem 1rem;
}

.calc_stat_label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
}

.calc_stat_value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #2F3349;
  margin-top: 0.15rem;
}

.is_up {
  color: #3C8D5A;
}

.is_down {
  color: #8B1538;
}

.calc_breakdown {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.calc_breakdown li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed #E1E5EA;
}
.calc_breakdown li.is_total {
  font-weight: 700;
  border-bottom: 0;
  border-top: 2px solid #2F3349;
  margin-top: 0.25rem;
}
.calc_breakdown b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.calc_badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: #F3F5F8;
  color: #2F3349;
}
.calc_badge.is_up {
  background: rgba(60, 141, 90, 0.12);
  color: #3C8D5A;
}
.calc_badge.is_down {
  background: rgba(139, 21, 56, 0.1);
  color: #8B1538;
}

/**
*-----------------------------------------------
* Tabele
*-----------------------------------------------
*/
.calc_table_wrap {
  overflow: auto;
  max-height: 540px;
  margin: 1rem 0;
  border: 1px solid #E1E5EA;
  border-radius: 0.4rem;
}

.calc_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.calc_table th,
.calc_table td {
  padding: 0.55rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid #E1E5EA;
  white-space: nowrap;
}
.calc_table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #F3F5F8;
  color: #2F3349;
  font-weight: 700;
}
.calc_table tbody tr:nth-child(even) {
  background: #FAFBFC;
}
.calc_table tbody tr:hover {
  background: rgba(74, 144, 184, 0.08);
}
.calc_table tfoot td {
  font-weight: 700;
  background: #F3F5F8;
}
.calc_table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc_table caption {
  caption-side: top;
  padding: 0.6rem 0.8rem;
  color: #6B7280;
  font-size: 0.85rem;
}

/**
*-----------------------------------------------
* Komunikaty, opcje dodatkowe
*-----------------------------------------------
*/
.calc_note {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #6B7280;
  margin: 0.9rem 0 0;
}
.calc_note i {
  color: #4A90B8;
  margin-right: 0.25rem;
}

.calc_alert {
  background: #FFF7E6;
  border-left: 4px solid #D9A033;
  border-radius: 0.3rem;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.calc_alert_error {
  background: #FCEDEF;
  border-left-color: #8B1538;
}

.calc_alert_info {
  background: rgba(74, 144, 184, 0.08);
  border-left-color: #4A90B8;
}

.calc_loading {
  color: #6B7280;
  font-size: 0.92rem;
}
.calc_loading i {
  margin-right: 0.4rem;
}

.calc_more {
  margin-top: 1.25rem;
  border: 1px solid #E1E5EA;
  border-radius: 0.4rem;
}
.calc_more summary {
  position: relative;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-weight: 600;
  color: #2F3349;
  cursor: pointer;
  list-style: none;
}
.calc_more summary::-webkit-details-marker {
  display: none;
}
.calc_more summary:after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s;
}
.calc_more[open] summary:after {
  transform: translateY(-50%) rotate(180deg);
}

.calc_more_body {
  padding: 0.25rem 1rem 1rem;
}

/**
*-----------------------------------------------
* Wykresy
*-----------------------------------------------
*/
.calc_chart {
  position: relative;
  margin: 1.25rem 0;
}
.calc_chart svg {
  display: block;
  overflow: visible;
}

.calc_gridline {
  stroke: #E8EBEF;
  stroke-width: 1;
}

.calc_axis {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11.5px;
  fill: #6B7280;
}

.calc_guide {
  stroke: #2F3349;
  stroke-opacity: 0.35;
  stroke-dasharray: 3 3;
}

.calc_bar.is_hover rect {
  opacity: 0.82;
}

.calc_tooltip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: #2F3349;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.5rem 0.7rem;
  border-radius: 0.35rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.calc_tooltip strong {
  display: block;
  margin-bottom: 0.15rem;
}
.calc_tooltip span {
  display: block;
}
.calc_tooltip i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.calc_tooltip b {
  color: #fff;
}

.calc_legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.calc_legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}

.calc_donut {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.calc_donut svg {
  flex-shrink: 0;
}

.calc_donut_label {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  fill: #6B7280;
}

.calc_donut_value {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  fill: #2F3349;
}

.calc_donut_legend {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  min-width: 220px;
}
.calc_donut_legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #E1E5EA;
  font-size: 0.93rem;
}
.calc_donut_legend i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}
.calc_donut_legend span {
  flex: 1;
}
.calc_donut_legend b {
  white-space: nowrap;
}
.calc_donut_legend em {
  font-style: normal;
  color: #6B7280;
  font-size: 0.85rem;
  min-width: 3.5rem;
  text-align: right;
}

/**
*-----------------------------------------------
* Treść opisowa pod kalkulatorem
*-----------------------------------------------
*/
.calc_content {
  margin-top: 3rem;
  font-size: 1.05rem;
  line-height: 1.75;
}
.calc_content h2 {
  font-size: 1.5rem;
  color: #2F3349;
  margin: 2.5rem 0 1rem;
}
.calc_content h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
}
.calc_content > :first-child {
  margin-top: 0;
}
.calc_content p {
  margin: 0 0 1.1rem;
}
.calc_content ul,
.calc_content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.25rem;
}
.calc_content ul li,
.calc_content ol li {
  margin-bottom: 0.4rem;
}
.calc_content a {
  color: #4A90B8;
  text-decoration: underline;
}
.calc_content a:hover {
  color: #8B1538;
}
.calc_content .calc_content_table {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}
.calc_content .calc_content_table table {
  margin: 0;
}
.calc_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.calc_content table th,
.calc_content table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #E1E5EA;
  text-align: left;
}
.calc_content table th {
  background: #F3F5F8;
  color: #2F3349;
}

.calc_formula {
  background: #F3F5F8;
  border-left: 4px solid #4A90B8;
  border-radius: 0 0.4rem 0.4rem 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-weight: 600;
  color: #2F3349;
}

.calc_example {
  border: 1px solid #E1E5EA;
  border-radius: 0.4rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.calc_example > :last-child {
  margin-bottom: 0;
}

.calc_faq {
  margin-top: 1rem;
}
.calc_faq details {
  border-bottom: 1px solid #E1E5EA;
}
.calc_faq summary {
  position: relative;
  padding: 1rem 2.25rem 1rem 0;
  font-family: "merriweather", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #2F3349;
  cursor: pointer;
  list-style: none;
}
.calc_faq summary::-webkit-details-marker {
  display: none;
}
.calc_faq summary:after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: #4A90B8;
}
.calc_faq details[open] summary:after {
  content: "–";
}

.calc_faq_answer {
  padding: 0 0 1rem;
}
.calc_faq_answer > :last-child {
  margin-bottom: 0;
}

/**
*-----------------------------------------------
* Panel boczny i kafelki
*-----------------------------------------------
*/
.calc_aside {
  position: sticky;
  top: 2rem;
}

.calc_aside_block {
  margin-bottom: 2.5rem;
}
.calc_aside_block .calc_card {
  margin-bottom: 0.75rem;
}

.calc_aside_list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.calc_aside_list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #E1E5EA;
  color: #333;
}
.calc_aside_list a:hover {
  color: #8B1538;
}
.calc_aside_list i {
  width: 1.4rem;
  text-align: center;
  color: #4A90B8;
}

.calc_all_link {
  font-weight: 700;
  color: #4A90B8;
}
.calc_all_link i {
  margin-left: 0.25rem;
  transition: transform 0.2s;
}
.calc_all_link:hover i {
  transform: translateX(3px);
}

.calc_cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.calc_card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid #E1E5EA;
  border-radius: 0.5rem;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.calc_card:hover, .calc_card:focus-visible {
  border-color: #4A90B8;
  box-shadow: 0 8px 22px rgba(47, 51, 73, 0.08);
  transform: translateY(-2px);
  color: #333;
}
.calc_card:hover .calc_card_arrow, .calc_card:focus-visible .calc_card_arrow {
  color: #8B1538;
  transform: translateX(3px);
}

.calc_icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(74, 144, 184, 0.12);
  color: #4A90B8;
  font-size: 1.15rem;
}

.calc_card_body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.calc_card_title {
  font-family: "merriweather", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.35;
  color: #2F3349;
}

.calc_card_desc {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #6B7280;
}

.calc_card_arrow {
  margin-top: 0.35rem;
  color: rgb(75%, 75%, 75%);
  transition: color 0.2s, transform 0.2s;
}

.calc_cards_featured .calc_card {
  border-top: 3px solid #8B1538;
}
.calc_cards_featured .calc_card .calc_icon {
  background: rgba(139, 21, 56, 0.1);
  color: #8B1538;
}

.calc_hub_group {
  margin-bottom: 3rem;
}
.calc_hub_group .line_title i {
  color: #4A90B8;
  font-size: 1.1rem;
  margin-right: 0.35rem;
}

/**
*-----------------------------------------------
* Strona główna – sekcja z kalkulatorami
*-----------------------------------------------
*/
.calc_home {
  background: #EDF4F8;
  border-top: 1px solid #D7E7EF;
  border-bottom: 1px solid #D7E7EF;
  padding: 3.5rem 0 3rem;
  margin-bottom: 4.5rem;
}
.calc_home .line_title:after {
  background: #C0D8E6;
}
.calc_home .line_title_inner {
  background: #EDF4F8;
}

.calc_mini {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #E1E5EA;
  border-top: 4px solid #4A90B8;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 6px 24px rgba(47, 51, 73, 0.05);
}
.calc_mini .calc_grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.calc_mini .calc_field_wide {
  grid-column: 1/-1;
}
.calc_mini .calc_result {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}
.calc_mini .calc_result_value {
  font-size: 1.7rem;
}
.calc_mini .calc_segmented span {
  padding: 0.5rem 0.75rem;
}

.calc_mini_head {
  gap: 0.75rem;
  flex-wrap: nowrap;
  margin-bottom: 1.1rem;
}

.calc_mini_title {
  font-size: 1.15rem;
  margin: 0;
}
.calc_mini_title a {
  color: #2F3349;
}
.calc_mini_title a:hover {
  color: #8B1538;
}

.calc_mini_link {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4A90B8;
}
.calc_mini_link i {
  margin-left: 0.25rem;
  transition: transform 0.2s;
}
.calc_mini_link:hover i {
  transform: translateX(3px);
}

.calc_home_more {
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.calc_home_more_label {
  font-weight: 700;
  color: #2F3349;
  margin-right: 0.25rem;
}

.calc_chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid #E1E5EA;
  border-radius: 2rem;
  background: #fff;
  font-size: 0.88rem;
  color: #333;
}
.calc_chip i {
  color: #4A90B8;
  font-size: 0.85rem;
}
.calc_chip:hover {
  border-color: #4A90B8;
  color: #2F3349;
}

.calc_chip_all {
  background: #2F3349;
  border-color: #2F3349;
  color: #fff;
}
.calc_chip_all i {
  color: #fff;
}
.calc_chip_all:hover {
  background: #8B1538;
  border-color: #8B1538;
  color: #fff;
}

.calc_embed {
  margin: 2rem 0;
}
.calc_embed .calc_box a {
  text-decoration: none;
}

/**
*-----------------------------------------------
* Style poszczególnych grup kalkulatorów
*-----------------------------------------------
*/
.calc_sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calc_stat_sub {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #6B7280;
  margin-top: 0.15rem;
}

/* Przelicznik walut: [kwota][z waluty][⇄][na walutę] */
.calc_fx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto minmax(0, 1.35fr);
  gap: 1.1rem 0.75rem;
  align-items: end;
}
.calc_fx .calc_field_wide {
  grid-column: 1/-1;
}

.calc_fx_swap {
  display: flex;
  justify-content: center;
}
.calc_fx_swap .calc_btn_icon {
  width: 3.4rem;
  height: 3.4rem;
  font-size: 1.1rem;
}

.calc_fx_result .calc_result_sub + .calc_result_sub {
  margin-top: 0.1rem;
}

.calc_fx_src {
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.calc_fx_quick {
  gap: 1rem 1.5rem;
}
.calc_fx_quick .calc_table_wrap {
  margin: 0;
}

.calc_box .calc_fx_quick_title {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

/* Tabela kursów NBP */
.calc_rates_search {
  max-width: 420px;
  margin-bottom: 1.25rem;
}

.calc_search {
  position: relative;
}
.calc_search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6B7280;
  pointer-events: none;
}
.calc_search .calc_input {
  padding-left: 2.5rem;
}

.calc_box .calc_rates_meta {
  font-size: 0.92rem;
  color: #6B7280;
  margin: 0 0 0.5rem;
}
.calc_box .calc_rates_meta strong {
  color: #2F3349;
}

.calc_rates td:first-child {
  white-space: normal;
  min-width: 8.5rem;
}
.calc_rates small {
  color: #6B7280;
  font-size: 0.82rem;
}

.calc_rates_code {
  font-weight: 700;
  color: #4A90B8;
  text-decoration: none;
}
.calc_rates_code:hover, .calc_rates_code:focus-visible {
  color: #8B1538;
  text-decoration: underline;
}

.calc_change {
  white-space: nowrap;
  font-weight: 600;
}
.calc_change i {
  font-size: 0.8rem;
  margin-right: 0.1rem;
}

.calc_rates_chart,
.calc_gold_chart {
  margin-top: 2.5rem;
  scroll-margin-top: 1rem;
}

.calc_chart_controls {
  display: flex;
  flex-wrap: wrap;
}
.calc_chart_controls > .calc_field:first-child {
  flex: 1 1 210px;
}
.calc_chart_controls > .calc_field:last-child {
  flex: 0 1 auto;
  max-width: 100%;
}

@media all and (max-width: 767px) {
  .calc_chart_controls > .calc_field:last-child {
    flex-basis: 100%;
  }
}
/* Kurs z dnia poprzedzającego */
.calc_kd_table {
  font-size: 1.6rem;
}

.calc_box .calc_busy {
  opacity: 0.45;
  transition: opacity 0.2s 0.15s;
}

.calc_copy_row .calc_btn:disabled {
  cursor: default;
  background: #2F3349;
}

.calc_copy {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.calc_copy_row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
}
.calc_copy_row .calc_btn {
  height: auto;
  min-height: 2.6rem;
  flex-shrink: 0;
}

.calc_box .calc_copy_text {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.7rem 0.9rem;
  background: #F3F5F8;
  border: 1px dashed #CDD3DA;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #2F3349;
  word-break: break-word;
  user-select: all;
}

@media all and (max-width: 767px) {
  .calc_fx {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .calc_fx_amount {
    grid-column: 1/-1;
  }
  .calc_kd_table {
    font-size: 1.35rem;
  }
}
@media all and (max-width: 480px) {
  .calc_fx {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
  .calc_fx_swap .calc_btn_icon {
    height: 2.6rem;
    transform: rotate(90deg);
  }
  .calc_copy_row {
    flex-direction: column;
  }
}
/**
*-----------------------------------------------
* Kalkulator wynagrodzeń
*-----------------------------------------------
*/
.calc_praca_panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #E1E5EA;
}

.calc_praca_checks {
  margin-top: 1.1rem;
}

.calc_praca_sub {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid rgba(74, 144, 184, 0.35);
}

.calc_praca_alerts {
  margin-top: 1rem;
}
.calc_praca_alerts:empty {
  margin-top: 0;
}
.calc_praca_alerts .calc_alert {
  margin: 0.5rem 0 0;
}

.calc_praca_cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}
.calc_praca_cols .calc_breakdown {
  margin-top: 0;
}
.calc_praca_cols .calc_breakdown span {
  min-width: 0;
}

.calc_praca_year .calc_table {
  font-size: 0.875rem;
}
.calc_praca_year .calc_table th,
.calc_praca_year .calc_table td {
  padding: 0.5rem 0.55rem;
}
.calc_praca_year .calc_table thead th {
  white-space: normal;
  vertical-align: bottom;
}

@media all and (max-width: 767px) {
  .calc_praca_cols {
    grid-template-columns: 1fr;
  }
  .calc_praca_sub {
    padding-left: 0.75rem;
  }
}
@media all and (max-width: 420px) {
  .calc_praca_cols .calc_breakdown li {
    font-size: 0.92rem;
    gap: 0.6rem;
  }
}
.calc_fin_check {
  align-self: end;
  justify-content: center;
  min-height: 2.9rem;
}

.calc_fin_alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.calc_fin_alert[hidden] {
  display: none;
}
.calc_fin_alert i {
  color: #4A90B8;
  margin-top: 0.25rem;
}

.calc_fin_charts .calc_chart {
  margin-top: 0.5rem;
}

.calc_fin_sub {
  display: block;
  margin-top: 0.15rem;
}

@media all and (max-width: 767px) {
  .calc_fin_check {
    align-self: start;
    min-height: 0;
  }
}
.calc_panels {
  display: grid;
  gap: 1.25rem;
}

.calc_panel {
  min-width: 0;
  border: 1px solid #E1E5EA;
  border-left: 4px solid #4A90B8;
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.calc_box .calc_panel_title {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #2F3349;
  margin: 0 0 1rem;
}

.calc_panel_num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(74, 144, 184, 0.12);
  color: #4A90B8;
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.calc_panel_result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.5rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #F3F5F8;
  border-radius: 0.4rem;
  color: #6B7280;
  font-size: 0.95rem;
}
.calc_panel_result b {
  color: #2F3349;
  font-variant-numeric: tabular-nums;
}

.calc_panel_value {
  font-family: "merriweather", sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  word-break: break-word;
}

.calc_panel_formula {
  flex-basis: 100%;
  font-size: 0.85rem;
  word-break: break-word;
}

.calc_result_note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
.calc_result_note[hidden] {
  display: none;
}

.calc_years {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0.75rem;
}

.calc_swap {
  height: 2.9rem;
}

@media all and (max-width: 767px) {
  .calc_panel {
    padding: 1rem;
  }
  .calc_panel_value {
    font-size: 1.2rem;
  }
}
@media all and (max-width: 420px) {
  .calc_years {
    grid-template-columns: 1fr;
  }
  .calc_swap {
    justify-self: start;
  }
  .calc_swap i {
    transform: rotate(90deg);
  }
}
.calc_field_center {
  align-self: start;
  justify-content: center;
  padding-top: 1.6rem;
  min-height: 5rem;
}

.calc_stat .calc_stat_hint {
  display: block;
  margin-top: 0.15rem;
}

.calc_day_list .calc_badge {
  margin-left: 0.35rem;
  font-weight: 600;
  color: #6B7280;
}

/**
*-----------------------------------------------
* Kalkulator zużycia prądu – lista urządzeń
*-----------------------------------------------
*/
.calc_devices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calc_device {
  border: 1px solid #E1E5EA;
  border-left: 4px solid #4A90B8;
  border-radius: 0.4rem;
  padding: 1rem 1.1rem;
  background: #FAFBFC;
}

.calc_device_head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.calc_device_head .calc_device_name {
  flex: 1;
}
.calc_device_head .calc_select {
  font-weight: 600;
}

.calc_device_remove {
  flex-shrink: 0;
  margin-top: 1.6rem;
  color: #8B1538;
}
.calc_device_remove:hover, .calc_device_remove:focus-visible {
  color: #8B1538;
}

.calc_device_remove:disabled,
.calc_device_add:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.calc_device_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem 1rem;
  margin-top: 0.9rem;
}
.calc_device_grid .calc_input {
  height: 2.6rem;
  padding: 0 0.7rem;
}
.calc_device_grid .calc_unit {
  padding: 0 0.6rem;
  font-size: 0.85rem;
}

.calc_device_sum {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  color: #6B7280;
}
.calc_device_sum b {
  color: #2F3349;
  white-space: nowrap;
}

.calc_power_season {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
}
.calc_power_season[hidden] {
  display: none;
}

.calc_power_tip {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.calc_power_tip i {
  color: #D9A033;
  margin-top: 0.2rem;
}

@media all and (max-width: 575px) {
  .calc_device {
    padding: 0.85rem;
  }
  .calc_device_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }
}
@media all and (max-width: 509px) {
  .calc_field_center {
    padding-top: 0;
    min-height: 0;
  }
}
@media all and (max-width: 359px) {
  .calc_device_grid {
    grid-template-columns: 1fr;
  }
}
/**
*-----------------------------------------------
* Kalkulator BMI
*-----------------------------------------------
*/
.calc_result_value.calc_bmi_range {
  font-size: 1.75rem;
  line-height: 1.5;
}

.calc_box .calc_bmi_diff {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.calc_bmi_scale {
  margin: 1.75rem 0 0.5rem;
}

.calc_bmi_scale_title {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6B7280;
}

.calc_bmi_zones {
  display: flex;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2F3349;
}

.calc_bmi_zone {
  flex-basis: 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calc_bmi_track {
  position: relative;
  margin-top: 2.2rem;
}

.calc_bmi_bar {
  display: flex;
  height: 0.9rem;
  border-radius: 0.45rem;
  overflow: hidden;
}

.calc_bmi_seg {
  flex-basis: 0;
  min-width: 0;
}

.calc_bmi_dot {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  margin-right: 0.55rem;
}

.calc_bmi_seg.is_wyglodzenie,
.calc_bmi_dot.is_wyglodzenie {
  background: #2B5F80;
}

.calc_bmi_seg.is_wychudzenie,
.calc_bmi_dot.is_wychudzenie {
  background: #3B7BA3;
}

.calc_bmi_seg.is_niedowaga,
.calc_bmi_dot.is_niedowaga {
  background: #7DB0D0;
}

.calc_bmi_seg.is_norma,
.calc_bmi_dot.is_norma {
  background: #3C8D5A;
}

.calc_bmi_seg.is_nadwaga,
.calc_bmi_dot.is_nadwaga {
  background: #D9A033;
}

.calc_bmi_seg.is_otylosc1,
.calc_bmi_dot.is_otylosc1 {
  background: #D2762F;
}

.calc_bmi_seg.is_otylosc2,
.calc_bmi_dot.is_otylosc2 {
  background: #B9472B;
}

.calc_bmi_seg.is_otylosc3,
.calc_bmi_dot.is_otylosc3 {
  background: #8B1538;
}

.calc_bmi_marker {
  position: absolute;
  top: -0.4rem;
  bottom: -0.4rem;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: #2F3349;
  box-shadow: 0 0 0 2px #fff;
  transition: left 0.3s ease;
}
.calc_bmi_marker[hidden] {
  display: none;
}

.calc_bmi_marker_value {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.4rem;
  padding: 0.1rem 0.5rem;
  border-radius: 0.3rem;
  background: #2F3349;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.calc_bmi_marker_value:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #2F3349;
}

.calc_bmi_ticks {
  position: relative;
  height: 1.3rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: #6B7280;
  font-variant-numeric: tabular-nums;
}

.calc_bmi_tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.calc_bmi_table tr.is_active td {
  background: rgba(74, 144, 184, 0.14);
  color: #2F3349;
  font-weight: 700;
}

/**
*-----------------------------------------------
* Kalkulator kalorii
*-----------------------------------------------
*/
.calc_kcal_form .calc_grid + .calc_grid {
  margin-top: 1.1rem;
}

.calc_kcal_macros {
  margin-top: 1.75rem;
}
.calc_kcal_macros .calc_chart {
  margin-top: 1rem;
}

.calc_kcal_steps {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

@media all and (max-width: 575px) {
  .calc_bmi_tick_minor,
  .calc_bmi_zones {
    display: none;
  }
  .calc_bmi_track {
    margin-top: 2rem;
  }
}
/**
*-----------------------------------------------
* Responsywność
*-----------------------------------------------
*/
@media all and (max-width: 991px) {
  .calc_aside {
    position: static;
    margin-top: 3rem;
  }
  .calc_title {
    font-size: 1.9rem;
  }
}
@media all and (max-width: 767px) {
  .calc_header {
    padding: 1.75rem 0 1.5rem;
  }
  .calc_home {
    padding: 2.5rem 0 2rem;
    margin-bottom: 3rem;
  }
  .calc_title {
    font-size: 1.6rem;
  }
  .calc_lead {
    font-size: 1.02rem;
  }
  .calc_page {
    padding-top: 1.5rem;
  }
  .calc_box {
    padding: 1.25rem;
  }
  .calc_result {
    padding: 1.25rem;
  }
  .calc_result_value {
    font-size: 1.85rem;
  }
  .calc_grid_2,
  .calc_grid_3 {
    grid-template-columns: 1fr;
  }
  .calc_segmented {
    display: flex;
  }
  .calc_segmented label {
    flex: 1 1 auto;
  }
  .calc_segmented span {
    text-align: center;
    padding: 0.55rem 0.6rem;
  }
  .calc_content {
    margin-top: 2rem;
    font-size: 1rem;
  }
  .calc_mini {
    padding: 1.25rem;
  }
}
