:root {
  --primary: #0b376d;
  --primary-2: #155aa0;
  --accent: #179c52;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --text: #10233f;
  --muted: #66758f;
  --line: #dce5f3;
  --warning: #ffb545;
  --danger: #d94b57;
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 10px 30px rgba(13, 35, 64, 0.08);
  --shadow-soft: 0 6px 18px rgba(13, 35, 64, 0.06);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Inter",
    "Open Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container-shell {
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
}

.section-space {
  padding: 34px 0;
}

.section-space-lg {
  padding: 38px 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(245, 248, 252, 0.94);
  border-bottom: 1px solid rgba(220, 229, 243, 0.7);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-title {
  display: inline-flex;
  gap: 4px;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
}

.brand-title span {
  color: var(--primary-2);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav {
  order: 3;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  padding-top: 7px;
  border-top: 1px solid rgba(220, 229, 243, 0.75);
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav a {
  position: relative;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

.header-nav a:hover,
.header-nav a:focus,
.header-nav a.is-active {
  color: var(--primary);
}

.header-nav a:hover::after,
.header-nav a:focus::after,
.header-nav a.is-active::after {
  background: var(--primary);
}

.cabinet-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--primary);
  background: var(--surface);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.btn-ui,
button.btn-ui {
  appearance: none;
  border: 0;
  outline: 0;
  cursor: pointer;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn-ui:hover {
  transform: translateY(-1px);
}

.btn-primary-ui {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(11, 55, 109, 0.2);
}

.btn-primary-ui:hover {
  color: #fff;
  box-shadow: 0 12px 26px rgba(11, 55, 109, 0.24);
}

.btn-accent-ui {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(23, 156, 82, 0.22);
}

.btn-accent-ui:hover {
  color: #fff;
  background: #128948;
  box-shadow: 0 12px 26px rgba(23, 156, 82, 0.26);
}

.btn-soft-ui,
.btn-hero-light {
  color: var(--primary);
  background: rgba(11, 55, 109, 0.06);
  border: 1px solid rgba(11, 55, 109, 0.1);
}

.btn-soft-ui:hover,
.btn-hero-light:hover {
  color: var(--primary);
  background: rgba(11, 55, 109, 0.09);
}

.hero {
  padding: 20px 0 12px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 243, 0.9);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff 0%, #f3f7fc 58%, #ecf3fa 100%);
  box-shadow: var(--shadow);
  padding: 30px 22px;
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(21, 90, 160, 0.08);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.hero-copy {
  max-width: 780px;
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.05rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: var(--primary);
}

.hero-text {
  margin: 16px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.trust-card {
  padding: 14px 15px;
  border: 1px solid rgba(220, 229, 243, 0.9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
}

.trust-card strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.trust-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.surface-card,
.calc-card,
.form-card,
.faq-card,
.license-card-ui,
.notice-card,
.cabinet-card,
.thankyou-card-ui {
  border: 1px solid rgba(220, 229, 243, 0.9);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.calc-section {
  padding-top: 22px;
}

.calc-card,
.form-card,
.faq-card,
.license-card-ui,
.notice-card,
.cabinet-card,
.thankyou-card-ui {
  padding: 20px;
}

.calc-head,
.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calc-head h2,
.form-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.calc-head p,
.form-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.calc-layout {
  display: grid;
  gap: 18px;
}

.calc-block,
.calc-summary {
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  border: 1px solid rgba(220, 229, 243, 0.75);
}

.calc-block {
  padding: 18px;
}

.calc-inputs,
.summary-list {
  display: grid;
  gap: 16px;
}

.range-group {
  display: grid;
  gap: 11px;
}

.range-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.range-label {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.range-value-edit {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--primary);
  white-space: nowrap;
}

.range-value-input {
  width: 136px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 800;
  text-align: right;
  outline: 0;
}

.range-value-input--term {
  width: 62px;
}

.range-value-edit span {
  font-size: 1.25rem;
  font-weight: 800;
}

.range-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

input[type="range"] {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary) var(--range-progress, 50%),
    #e5eaf2 var(--range-progress, 50%),
    #e5eaf2 100%
  );
  outline: 0;
  appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 23px;
  height: 23px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(16, 35, 63, 0.16);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 23px;
  height: 23px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 12px rgba(16, 35, 63, 0.16);
  cursor: pointer;
}

.calc-summary {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.calc-summary__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.calc-highlight {
  padding: 15px;
  border: 1px solid rgba(220, 229, 243, 0.9);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.calc-highlight--primary {
  border-color: rgba(21, 90, 160, 0.2);
  background: #f3f7fc;
}

.calc-highlight__label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.calc-highlight__value {
  display: block;
  margin-top: 5px;
  color: var(--primary);
  font-size: clamp(1.65rem, 3vw, 2.18rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.calc-highlight__value--green {
  color: var(--primary);
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(220, 229, 243, 0.7);
  color: var(--muted);
  font-size: 0.9rem;
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-item strong {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: right;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-2);
  flex: 0 0 auto;
}

.dot-principal {
  background: rgb(25, 135, 84);
}
.dot-fee {
  background: rgb(99, 102, 241);
}
.dot-overpay {
  background: rgb(33, 150, 243);
}

.dot-rate {
  background: rgb(255, 193, 7);
}

.dot-receive {
  background: #66758f;
}

.calc-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.application-shell {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.form-card {
  position: relative;
}

.form-head {
  padding-right: 76px;
}

.form-progress {
  position: absolute;
  top: 22px;
  right: 22px;
  min-width: 48px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(21, 90, 160, 0.18);
  border-radius: 999px;
  background: #f3f7fc;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.step-pill strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.step-pill small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.step-pill.is-active {
  border-color: rgba(21, 90, 160, 0.28);
  background: #f3f7fc;
  color: var(--primary);
}

.form-step-panel {
  display: none;
}

.form-step-panel.is-active {
  display: block;
}

.form-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-actions-row .btn-ui {
  flex: 1 1 220px;
}

.form-actions-row--split .btn-ui {
  flex: 1 1 0;
}

.upload-grid {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.file-upload-container {
  position: relative;
}

.file-upload-area {
  border: 1.5px dashed #d6dfec;
  border-radius: var(--radius-lg);
  min-height: 180px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: 0.2s ease;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: rgba(11, 55, 109, 0.35);
  background: #f4f9ff;
}

.file-upload-area.has-file {
  border-color: rgba(21, 90, 160, 0.35);
}

.file-upload-content i {
  color: var(--primary-2);
}

.file-upload-content h5 {
  margin: 14px 0 8px;
  font-size: 1.03rem;
  font-weight: 800;
}

.file-upload-content p,
.file-requirements small {
  color: var(--muted);
}

.file-upload-preview {
  position: absolute;
  inset: 0;
  display: none;
}

.file-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.file-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  background: rgba(16, 35, 63, 0.62);
  color: #fff;
  opacity: 0;
  transition: 0.2s ease;
  border-radius: inherit;
}

.file-upload-preview:hover .file-upload-overlay {
  opacity: 1;
}

.file-requirements {
  margin-top: 12px;
  display: grid;
  gap: 3px;
}

.btn-upload-remove {
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-upload-remove:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.file-upload-container.is-invalid .file-upload-area {
  border-color: rgba(217, 75, 87, 0.48);
  background: #fff7f8;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-label {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 800;
}

.field-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.form-control,
.form-select,
.input-group-text {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
  font-size: 1rem;
}

.form-control,
.form-select {
  padding: 0 15px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(21, 90, 160, 0.5);
  box-shadow: 0 0 0 4px rgba(21, 90, 160, 0.1);
}

.input-group-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  color: var(--primary);
  background: var(--surface-soft);
}

.input-group > .form-control {
  min-height: 52px;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: rgba(217, 75, 87, 0.55);
  background: #fff8f9;
}

.invalid-feedback {
  display: none;
  color: var(--danger);
  font-size: 0.82rem;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
  display: block;
}

.alert-modern {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-top: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.alert-modern.is-warning {
  color: #80520a;
  background: #fff8ec;
  border: 1px solid #ffe3ad;
}

.alert-modern.is-danger {
  color: #94232d;
  background: #fff3f4;
  border: 1px solid #ffd1d7;
}

.alert-modern.is-success {
  color: #17693a;
  background: #effcf4;
  border: 1px solid #c9f1d7;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 16px;
  align-items: stretch;
}

.about-copy {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.about-visual {
  overflow: hidden;
  min-height: 0;
  height: 100%;
  border-radius: var(--radius-lg);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

.info-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.info-card {
  padding: 20px;
}

.info-card__icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  color: var(--primary);
  background: rgba(11, 55, 109, 0.08);
  font-size: 1.08rem;
}

.info-card--accent .info-card__icon {
  color: var(--primary);
  background: rgba(11, 55, 109, 0.08);
}

.info-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 800;
}

.info-card p,
.info-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.info-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.faq-title-wrap {
  width: min(100% - 24px, var(--container));
  margin: 0 auto 14px;
}

.faq-main-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.accordion-modern .accordion-item {
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: transparent;
}

.accordion-modern .accordion-item:last-child {
  border-bottom: 0;
}

.accordion-modern .accordion-button {
  padding: 18px 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
  gap: 14px;
  font-weight: 800;
}

.accordion-modern .accordion-button:not(.collapsed) {
  color: var(--primary);
}

.accordion-modern .accordion-button:focus {
  border-color: transparent;
  box-shadow: none;
}

.accordion-modern .accordion-body {
  padding: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.license-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.license-row {
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.license-row dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.license-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.notice-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.notice-list li i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-mini {
  padding: 0 0 70px;
  text-align: center;
  color: var(--muted);
}

.thankyou-wrap,
.cabinet-wrap {
  min-height: 100vh;
  padding: 28px 0;
}

.success-badge {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  color: var(--accent);
  background: rgba(23, 156, 82, 0.1);
  font-size: 1.8rem;
}

.summary-badges {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.summary-badge {
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.summary-badge span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}

.summary-badge strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 1.05rem;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-panel {
    padding: 42px 38px;
  }

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

  .calc-summary__top,
  .form-grid,
  .license-table,
  .summary-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .field--full,
  .lead-form-grid .field--full,
  .detail-form-grid .field--full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .site-header__inner {
    flex-wrap: nowrap;
    min-height: 64px;
    padding: 0;
  }

  .header-nav {
    order: initial;
    width: auto;
    margin-left: auto;
    padding-top: 0;
    border-top: 0;
  }

  .header-actions {
    margin-left: 6px;
  }

  .section-space {
    padding: 42px 0;
  }

  .section-space-lg {
    padding: 42px 0 34px;
  }

  .calc-layout {
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    align-items: start;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: center;
  }

  .about-visual {
    min-height: 0;
    height: 170px;
    align-self: center;
  }

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

  .calc-actions {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 767.98px) {
  .container-shell {
    width: min(100% - 20px, var(--container));
  }

  .section-space,
  .section-space-lg {
    padding: 24px 0;
  }

  .brand-title {
    font-size: 1.04rem;
  }

  .cabinet-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .header-nav {
    gap: 16px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-panel,
  .calc-card,
  .form-card,
  .faq-card,
  .license-card-ui,
  .notice-card,
  .cabinet-card,
  .thankyou-card-ui {
    border-radius: var(--radius-lg);
  }

  .hero-panel {
    padding: 24px 18px;
  }

  .hero-title {
    font-size: clamp(2rem, 10.5vw, 2.55rem);
    line-height: 1.03;
  }

  .hero-text {
    margin-top: 12px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .hero-actions .btn-ui {
    width: 100%;
  }

  .trust-card {
    padding: 12px 13px;
    border-radius: var(--radius-md);
  }

  .calc-card,
  .form-card,
  .faq-card,
  .license-card-ui {
    padding: 16px;
  }

  .calc-head,
  .form-head {
    margin-bottom: 14px;
  }

  .calc-head h2,
  .form-head h2 {
    font-size: 1.42rem;
  }

  .calc-head p,
  .form-head p {
    font-size: 0.9rem;
  }

  .calc-block,
  .calc-summary {
    padding: 14px;
    border-radius: var(--radius-md);
  }

  .range-header {
    align-items: center;
  }

  .range-value-input {
    width: 112px;
    font-size: 1.58rem;
  }

  .range-value-input--term {
    width: 52px;
  }

  .range-value-edit span {
    font-size: 1.08rem;
  }

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

  .calc-highlight {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .calc-highlight__label {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .calc-highlight__value {
    font-size: 1.25rem;
  }

  .summary-list {
    gap: 4px;
  }

  .summary-item {
    gap: 8px;
    padding: 8px 0;
    font-size: 0.78rem;
  }

  .summary-item strong {
    font-size: 0.82rem;
  }

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

  .calc-actions .btn-ui {
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .form-control,
  .form-select,
  .input-group-text,
  .input-group > .form-control {
    min-height: 48px;
    border-radius: var(--radius-md);
    font-size: 0.93rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 12px;
    align-items: stretch;
  }

  .about-visual {
    min-height: 0;
    height: auto;
    border-radius: var(--radius-lg);
  }

  .info-cards {
    grid-auto-flow: column;
    grid-auto-columns: minmax(258px, 84%);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .info-cards::-webkit-scrollbar {
    display: none;
  }

  .info-card {
    padding: 17px;
    scroll-snap-align: start;
  }

  .license-row {
    padding: 12px 13px;
  }

  .license-card-ui .btn-ui {
    width: 100%;
  }

  .form-head {
    padding-right: 58px;
  }

  .form-progress {
    top: 16px;
    right: 16px;
    min-width: 44px;
    height: 32px;
    font-size: 0.86rem;
  }

  .upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }

  .upload-field {
    height: 100%;
  }

  .upload-field .file-upload-container,
  .upload-field .file-upload-area {
    height: 100%;
  }

  .file-upload-area {
    min-height: 124px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
  }

  .file-upload-content {
    width: 100%;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
  }

  .file-upload-content i {
    font-size: 1.45rem !important;
  }

  .file-upload-content h5 {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: center;
  }

  .file-upload-content p {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.25;
    text-align: center;
  }

  .file-requirements {
    display: none;
  }

  .form-actions-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .form-actions-row--split .btn-ui {
    width: 100%;
    min-height: 50px;
    padding: 0 10px;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
