*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
  max-width: 100%;
}

/* Typography */
.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0;
  font-variation-settings: "opsz" 144;
}

.h1,
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.h2,
h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.h3,
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.h4,
h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  font-weight: 650;
  margin: 0;
}

.lead {
  font-size: 18px;
  color: var(--text-2);
  margin: 0;
}

.p,
p {
  margin: 0;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: var(--fs-small);
}

.caption {
  font-size: var(--fs-caption);
  letter-spacing: 0.02em;
}

.label-section {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-1);
  color: #fff;
}

.btn-primary:hover,
.btn-primary.is-press {
  background: var(--accent-1-press);
}

.btn-primary:disabled,
.btn-primary.is-inactive {
  background: var(--accent-1-inactive);
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-block);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--line);
}

.btn-secondary:hover,
.btn-secondary.is-press {
  background: var(--bg);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover,
.btn-ghost.is-press {
  background: rgba(255, 255, 255, 0.28);
}

.btn-on-accent {
  background: #fff;
  color: var(--accent-2);
}

.btn-on-accent:hover,
.btn-on-accent.is-press {
  background: #ffe8dc;
}

.btn-navy {
  background: var(--text);
  color: #fff;
  min-height: 48px;
}

.btn-navy:hover,
.btn-navy.is-press {
  background: #12244c;
}

.btn-text {
  background: transparent;
  color: var(--text);
  min-height: auto;
  padding: 0;
  border-radius: 0;
}

.btn-text:hover {
  color: var(--accent-2);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--accent-2);
  color: #fff;
  padding: 0;
}

.icon-btn-light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 750;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(8, 24, 54, 0.08);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.site-footer .logo-mark {
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent-2);
}

.lang-switch {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

/* Pills / tabs */
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 650;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pill.is-active {
  background: #fff;
  color: var(--accent-2);
  box-shadow: none;
}

.pill-light {
  background: var(--bg);
  color: var(--text-2);
  box-shadow: none;
}

.pill-light.is-active {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

/* Cards */
.card {
  background: var(--bg-block);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card-flat {
  background: var(--bg);
  box-shadow: none;
}

.card-soft {
  background: #f7f8fb;
  box-shadow: none;
}

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}

.benefit-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
}

.offer-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.offer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.rate {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.offer-grid span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.offer-grid strong {
  font-size: 14px;
  font-weight: 650;
}

.input-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.input-card__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.input-card__value {
  margin-top: 8px;
  font-size: 28px;
  font-weight: 750;
  color: var(--accent-2);
  letter-spacing: -0.03em;
}

/* Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 650;
}

.field input,
.field textarea,
.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder,
.input::placeholder {
  color: var(--text-2);
}

.field input:focus,
.field textarea:focus,
.input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(237, 81, 41, 0.12);
}

.field-on-accent input,
.field-on-accent textarea {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.field-on-accent label,
.field-on-accent input::placeholder,
.field-on-accent textarea::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-item[open] {
  background: var(--bg);
  border-radius: 12px;
  border-bottom: none;
  margin: 4px 0;
}

.accordion-item:has(+ .accordion-item[open]),
.accordion-item[open] + .accordion-item {
  border-top: none;
}

.accordion-item:has(+ .accordion-item[open]) {
  border-bottom: none;
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px;
  font-weight: 700;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

.accordion-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: -4px;
}

.accordion-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.accordion-item p {
  padding: 0 12px 16px;
  color: var(--text-2);
  font-size: 14px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--gradient-h);
  color: #fff;
  font-weight: 750;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.badge-sm {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.progress {
  display: flex;
  gap: 6px;
}

.progress span {
  height: 6px;
  flex: 1;
  border-radius: 99px;
  background: rgba(8, 24, 54, 0.12);
}

.progress span.is-on {
  background: var(--accent-2);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--gradient-from);
}

/* Hero helpers */
.hero-panel {
  background: #eef4fb;
  border-radius: var(--radius-xl);
  padding: 56px;
}

.hero-orange {
  background: var(--gradient);
  color: #fff;
  border-radius: 0 0 28px 28px;
  padding: 36px 24px 28px;
}

.amount-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 16px;
  background: var(--accent-2);
  color: #fff;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.contact-band {
  background: var(--accent-1);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-band .caption,
.contact-band .label-section {
  color: #f0bc00;
}

.site-footer {
  background: var(--text);
  color: #fff;
  padding: 40px 0 28px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer__copy {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
