.page-home .hero {
  position: relative;
  z-index: 2;
  padding: 56px 0 62px;
  background:
    radial-gradient(circle at 10% 8%, rgba(var(--brand-blue-rgb), 0.09), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(var(--brand-deep-rgb), 0.11), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, var(--brand-sky-tint) 100%);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  column-gap: 32px;
  row-gap: 14px;
}

.page-home .hero-main {
  display: contents;
}

.page-home .hero-main > .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.page-home .hero-main > h1 {
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: none;
}

.page-home .hero-main > .hero-text {
  grid-column: 1;
  grid-row: 3;
  margin-top: 12px;
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.6;
  color: #3f4d67;
}

.page-home .hero-main > .hero-points {
  grid-column: 1;
  grid-row: 4;
}

.page-home .hero-main > .hero-actions {
  grid-column: 1;
  grid-row: 5;
}

.page-home .hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .hero-points li {
  color: #2f3c53;
  font-size: 16px;
  line-height: 1.5;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding-left: 28px;
}

.page-home .hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  box-shadow: 0 0 0 4px rgba(var(--brand-blue-rgb), 0.08);
}

.page-home .hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  align-self: start;
}

.page-home .hero-panel {
  position: relative;
  overflow: visible;
  align-self: start;
  grid-column: 2;
  grid-row: 3 / span 3;
  margin-top: 12px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.page-home .hero-panel h2 {
  font-size: 26px;
}

.page-home .calc-form {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.page-home .calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
  align-items: end;
}

.page-home .calc-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .calc-form label {
  margin: 0;
  height: 22px;
  display: flex;
  align-items: flex-end;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-gray-500);
}

.page-home .calc-form input,
.page-home .calc-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--brand-gray-200);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--brand-black);
  background: #fff;
}

.page-home #calc-amount::-webkit-outer-spin-button,
.page-home #calc-amount::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.page-home #calc-amount {
  -moz-appearance: textfield;
  appearance: textfield;
}

.page-home .currency-select {
  position: relative;
  z-index: 50;
}

.page-home .currency-trigger {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--brand-gray-200);
  border-radius: 10px;
  background: #fff;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--brand-black);
  cursor: pointer;
}

.page-home .currency-selected {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.page-home .currency-selected img,
.page-home .currency-option img {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  object-fit: cover;
}

.page-home .currency-arrow {
  font-size: 16px;
  color: var(--brand-gray-400);
}

.page-home .currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 300px;
  z-index: 200;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--brand-gray-200);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  max-height: 260px;
  overflow: auto;
  display: none;
}

.page-home .currency-select.is-open .currency-menu {
  display: block;
}

.page-home .currency-select.is-open .currency-arrow {
  transform: rotate(180deg);
}

.page-home .currency-option {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
}

.page-home .currency-option:hover {
  background: var(--brand-gray-50);
}

.page-home .currency-option-code {
  font-size: 14px;
  font-weight: 500;
  color: #20242f;
  min-width: 36px;
}

.page-home .currency-option-name {
  font-size: 13px;
  line-height: 1.25;
  color: #567090;
}

.page-home .currency-check {
  opacity: 0;
  color: #0f1421;
  font-size: 16px;
}

.page-home .currency-option.is-active .currency-check {
  opacity: 1;
}

.page-home .calc-form input:focus,
.page-home .calc-form select:focus,
.page-home .currency-trigger:focus {
  outline: none;
  border-color: rgba(var(--brand-blue-rgb), 0.35);
  box-shadow: 0 0 0 4px rgba(var(--brand-blue-rgb), 0.08);
}

.page-home .iti {
  width: 100%;
  display: block;
}

.page-home .iti input[type="tel"] {
  /* Let the library handle padding-left dynamically, just clear right padding */
  padding-right: 12px;
}

/* Reset any global button styles that bleed into the flag button */
.page-home .iti__selected-country {
  background-color: rgba(var(--brand-blue-rgb), 0.04) !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 8px 0 12px !important;
  border-radius: 10px 0 0 10px !important;
  height: 100% !important;
}

.page-home .iti__selected-country:hover {
  background-color: rgba(var(--brand-blue-rgb), 0.04) !important;
}

.page-home .iti:focus-within .iti__selected-country {
  background-color: rgba(var(--brand-blue-rgb), 0.06) !important;
}

.page-home .iti__country-list {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 500;
  border: 1px solid var(--brand-gray-200);
}

/* Fix search input padding inside the dropdown */
.page-home .iti__search-input {
  padding-left: 32px !important;
}

.page-home .calc-form button[type="submit"] {
  margin-top: 8px;
  width: 100%;
}

.page-home .calc-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--brand-gray-400);
}

.page-home .calc-note a {
  color: var(--brand-blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-home .calc-note a:hover {
  color: var(--brand-blue);
}

.page-home #consultation .calc-note {
  margin-top: 12px;
}

.page-home #cases .cards-3 {
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home #cases .feature-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.page-home #cases .case-card-text h3 {
  margin-top: 0;
}

.page-home #cases .case-card-text {
  grid-column: 2;
}

.page-home #cases .case-card-text p + p {
  margin-top: 10px;
}

.page-home #cases .case-card-media {
  grid-column: 1;
  grid-row: 1;
  width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: cover;
  border-radius: 14px;
}

@media (max-width: 1100px) {
  .page-home .hero-grid {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }

  .page-home .hero-main {
    display: block;
  }

  .page-home .hero-main > .eyebrow,
  .page-home .hero-main > h1,
  .page-home .hero-main > .hero-text,
  .page-home .hero-main > .hero-points,
  .page-home .hero-main > .hero-actions,
  .page-home .hero-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .page-home .hero-panel {
    margin-top: 6px;
    width: 100%;
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .page-home .hero {
    padding: 42px 0 48px;
  }

  .page-home .hero-panel {
    max-width: none;
    padding: 18px;
    border-radius: 16px;
  }

  .page-home .hero-panel h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .page-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .page-home .hero-main > .hero-text {
    font-size: 16px;
    line-height: 1.55;
  }

  .page-home .hero-points li {
    font-size: 15px;
    padding-left: 26px;
  }

  .page-home #cases .feature-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-home #cases .case-card-text {
    grid-column: 1;
    grid-row: 2;
  }

  .page-home #cases .case-card-media {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: 220px;
  }

  .page-home .calc-row {
    grid-template-columns: 1fr;
  }

  .page-home .currency-menu {
    left: 0;
    right: 0;
    width: auto;
    max-height: 220px;
  }
}
