:root {
  --brand-blue: #1456d8;
  --brand-teal: #12a9a2;
  --brand-gold: #d8a43b;
  --brand-green: #1f9f72;
  --ink: #111827;
  --muted: #5c6675;
  --soft: #eef4f9;
  --line: #dce6ee;
  --surface: #ffffff;
  --surface-blue: #f4f8fc;
  --shadow: 0 24px 70px rgba(19, 42, 78, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(120, 150, 186, 0.28);
  --glass-highlight: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 26px 78px rgba(17, 34, 58, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  --glass-shadow-soft: 0 14px 40px rgba(17, 34, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.68);
  --glass-blur: blur(20px) saturate(145%);
  --radius-card: 8px;
  --radius-control: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#quote,
#cabinet,
#services,
#process,
#faq,
#apple-gift-card,
#steam-topup,
#shops,
#testimonials {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(112deg, rgba(20, 86, 216, 0.06) 0%, transparent 38%),
    linear-gradient(247deg, rgba(18, 169, 162, 0.055) 0%, transparent 42%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 34%, #eef6fb 100%);
  font-family: "Aptos Display", "Segoe UI Variable Display", "SF Pro Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.62), transparent 44%),
    linear-gradient(180deg, rgba(20, 86, 216, 0.035), transparent 58%),
    repeating-linear-gradient(90deg, rgba(20, 86, 216, 0.018) 0 1px, transparent 1px 72px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.12) 74%, transparent);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
  padding: 14px clamp(16px, 3vw, 36px);
  border-bottom: 1px solid rgba(120, 150, 186, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 34px rgba(17, 34, 58, 0.06);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  min-height: 44px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(20, 86, 216, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #eaf4ff);
  box-shadow: 0 10px 24px rgba(20, 86, 216, 0.12);
}

.cat-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-lockup {
  display: grid;
  gap: 1px;
}

.brand-lockup b {
  font-size: 18px;
  line-height: 1;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: var(--radius-control);
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand-blue);
  background: #edf5ff;
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid rgba(20, 86, 216, 0.28);
  outline-offset: 3px;
}

.header-cta,
.primary-button,
.secondary-button,
.catalog-select,
.amount-chips button,
.refund-panel button,
#send-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-control);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  gap: 8px;
}

.header-cta,
.primary-button,
.catalog-select {
  white-space: normal;
}

.header-cta {
  max-width: 320px;
}

.primary-button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: buttonSpin 760ms linear infinite;
}

.header-cta,
.primary-button,
.catalog-select,
#send-message {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 14px 32px rgba(20, 86, 216, 0.22);
}

.secondary-button,
.amount-chips button,
.refund-panel button {
  color: var(--ink);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

.secondary-button {
  color: #263446;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
}

.secondary-button--messenger {
  display: none;
}

.header-cta:hover,
.primary-button:hover,
.catalog-select:hover,
#send-message:hover,
.secondary-button:hover,
.amount-chips button:hover,
.refund-panel button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(20, 86, 216, 0.18);
}

.primary-button:disabled,
#send-message:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

main {
  overflow-x: clip;
  padding-bottom: 0;
}

.hero,
.service-rail,
.quick-products,
.requirements,
.process,
.cabinet,
.testimonials,
.faq {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 410px) minmax(0, 720px);
  column-gap: clamp(34px, 5vw, 64px);
  row-gap: 24px;
  width: min(1240px, calc(100% - 64px));
  justify-content: center;
  align-items: start;
  min-height: auto;
  padding: clamp(54px, 7vh, 72px) 0 54px;
}

.hero-copy,
.hero-showcase,
.quote-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.security-line,
.section-heading p,
.quote-card__header p {
  margin: 0;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1 {
  max-width: 430px;
  margin: 0;
  font-size: clamp(40px, 4.1vw, 62px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lead {
  max-width: 410px;
  margin: 0;
  color: #324050;
  font-size: clamp(17px, 1.55vw, 19px);
}

.hero-lead-mobile {
  display: none;
}

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

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 430px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(120, 150, 186, 0.24);
  border-radius: var(--radius-card);
  color: #2e3b4c;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 820;
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  backdrop-filter: blur(14px) saturate(135%);
}

.hero-showcase {
  display: grid;
  min-height: clamp(500px, 58vh, 610px);
  align-items: start;
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 168px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(116, 146, 184, 0.24);
  border-radius: 8px;
  background: #eef7ff;
  box-shadow: 0 36px 90px rgba(17, 34, 58, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  animation: heroSceneFloat 8400ms ease-in-out infinite;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.14), transparent 38%, rgba(255, 255, 255, 0.18));
  pointer-events: none;
}

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

.hero-visual figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 2px;
  width: min(260px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius-card);
  color: #263446;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 36px rgba(17, 34, 58, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.hero-visual figcaption b {
  font-size: 17px;
  line-height: 1.1;
}

.hero-visual figcaption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
}

.trust-strip span,
.payment-flow-belt span,
.safe-note,
.registration-note,
.quote-assurance span {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 251, 255, 0.58));
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: blur(14px) saturate(138%);
  backdrop-filter: blur(14px) saturate(138%);
}

.trust-strip span {
  position: relative;
  overflow: hidden;
  padding: 12px 14px;
  color: #2e3b4c;
  font-size: 13px;
}

.trust-strip b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.15;
}

.trust-strip span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  box-shadow: 0 0 0 5px rgba(18, 169, 162, 0.1);
  vertical-align: 1px;
  animation: trustPulse 720ms ease-out both;
}

.trust-strip span:nth-child(2)::before {
  animation-delay: 90ms;
}

.trust-strip span:nth-child(3)::before {
  animation-delay: 180ms;
}

.trust-strip--below,
.payment-flow-belt--below {
  width: min(var(--max), calc(100% - 32px));
  margin: 18px auto 0;
}

.trust-strip--below {
  max-width: var(--max);
}

.payment-flow-belt--below {
  justify-content: center;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: #111827;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.hero-rating strong,
.hero-rating small {
  color: #ffffff;
}

.hero-rating span {
  color: #ffd34e;
  font-size: 14px;
  letter-spacing: 0;
}

.hero-rating small {
  font-size: 12px;
  opacity: 0.82;
}

.payment-flow-belt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.payment-flow-belt span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.payment-flow-belt i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
}

.payment-flow-belt em {
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--brand-teal));
}

.payment-flow-belt em::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(20, 86, 216, 0.8), transparent);
  transform: translateX(-100%);
  animation: flowSweep 1400ms ease-out 680ms both;
}

.quote-card {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 10px;
  width: min(100%, 448px);
  justify-self: end;
  padding: 22px;
  border: 1px solid rgba(116, 146, 184, 0.32);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.78)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(232, 243, 253, 0.62));
  box-shadow: 0 34px 96px rgba(17, 34, 58, 0.16), 0 3px 10px rgba(20, 86, 216, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(28px) saturate(158%);
  backdrop-filter: blur(28px) saturate(158%);
  overflow: hidden;
}

.hero-showcase .quote-card {
  position: relative;
  top: auto;
  z-index: 2;
  justify-self: start;
  width: min(100%, 394px);
  padding: 18px;
  gap: 8px;
  transform: translateX(-34px);
}

.hero-showcase #quote-helper,
.hero-showcase #quote-amount-help,
.hero-showcase #quote-contact-help,
.hero-showcase #quote-details-help {
  display: none;
}

.hero-showcase .quote-assurance,
.hero-showcase .payment-method-panel,
.hero-showcase .quote-result,
.hero-showcase .safe-note {
  display: none;
}

.hero-showcase .quote-card__header h2 {
  font-size: 22px;
}

.hero-showcase .secondary-button--messenger,
.hero-showcase .hero-visual figcaption {
  display: none;
}

.hero-showcase--visual-only {
  min-height: clamp(460px, 54vh, 620px);
  align-items: stretch;
}

.hero-showcase--visual-only .hero-visual {
  inset: 0;
}

.hero-showcase--visual-only .hero-visual img {
  object-position: 68% center;
}

.hero-showcase--visual-only .hero-visual figcaption {
  display: grid;
}

.rate-ticker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 70px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(31, 159, 114, 0.28);
  color: #f2fff9;
  background:
    linear-gradient(135deg, rgba(12, 118, 82, 0.78), rgba(31, 159, 114, 0.66) 48%, rgba(18, 169, 162, 0.54)),
    rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(31, 159, 114, 0.16);
  -webkit-backdrop-filter: blur(22px) saturate(158%);
  backdrop-filter: blur(22px) saturate(158%);
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 760;
  overflow: hidden;
}

.rate-ticker::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.26), transparent 26%, rgba(255, 255, 255, 0.18) 70%, transparent);
  opacity: 0.64;
}

.rate-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(119, 173, 142, 0.82), transparent 10%, transparent 90%, rgba(151, 210, 204, 0.82));
}

.rate-ticker__track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerMarquee 23s linear infinite;
  will-change: transform;
}

.rate-ticker:hover .rate-ticker__track,
.rate-ticker:focus-within .rate-ticker__track {
  animation-play-state: paused;
}

.rate-ticker__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(16px, 3vw, 42px);
  min-width: max-content;
  padding: 0 clamp(34px, 5vw, 72px);
}

.rate-ticker span {
  white-space: nowrap;
}

.rate-ticker .ticker-cat {
  position: relative;
  display: inline-grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(235, 255, 248, 0.46);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(229, 255, 247, 0.16)),
    rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 12px 24px rgba(0, 82, 65, 0.18);
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
}

.rate-ticker .ticker-cat::after {
  content: "₽";
  position: absolute;
  right: 3px;
  bottom: 3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #0b5f52;
  background: rgba(230, 255, 245, 0.92);
  box-shadow: 0 4px 10px rgba(10, 85, 69, 0.22);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.rate-ticker .ticker-cat--usd::after {
  content: "$";
}

.rate-ticker .ticker-cat--eur::after {
  content: "€";
}

.rate-ticker .ticker-cat img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(3, 35, 48, 0.16));
  animation: tickerCatFloat 4400ms ease-in-out infinite;
}

.rate-ticker .ticker-cat--usd img {
  animation-delay: -1200ms;
}

.rate-ticker .ticker-cat--eur img {
  animation-delay: -2400ms;
}

.rate-ticker i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(230, 255, 245, 0.92);
  box-shadow: 0 0 0 5px rgba(230, 255, 245, 0.12);
}

@keyframes tickerCatFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.checkout-page {
  padding: clamp(38px, 6vw, 76px) 0 clamp(54px, 7vw, 96px);
}

.checkout-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 448px);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.checkout-copy {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(120, 150, 186, 0.26);
  border-radius: var(--radius-control);
  color: #2f4159;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 780;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

.checkout-copy h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.checkout-copy p {
  max-width: 560px;
  margin: 0;
  color: #324050;
  font-size: clamp(17px, 1.5vw, 20px);
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.checkout-steps span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(120, 150, 186, 0.22);
  border-radius: var(--radius-card);
  color: #2e3b4c;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--glass-shadow-soft);
  font-size: 13px;
  font-weight: 780;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.checkout-steps b {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  font-size: 12px;
}

.checkout-visual {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 31vw, 450px);
  margin: 8px 0 0;
  border: 1px solid rgba(116, 146, 184, 0.24);
  border-radius: 8px;
  background: #eef7ff;
  box-shadow: 0 34px 90px rgba(17, 34, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  animation: heroSceneFloat 8400ms ease-in-out infinite;
}

.checkout-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.08), transparent 38%, rgba(255, 255, 255, 0.18));
}

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

.quote-card--checkout {
  position: relative;
  top: auto;
  justify-self: stretch;
  width: 100%;
  overflow: visible;
}

.quote-card--checkout .quote-submit-bar {
  order: 8;
}

.quote-card--checkout .payment-method-panel {
  order: 9;
}

.quote-card--checkout .safe-note,
.quote-card--checkout .quote-result {
  order: 10;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.62) 34%, transparent 48%);
  opacity: 0.52;
  transform: translateX(-65%);
  animation: quoteSheen 7200ms ease-in-out infinite;
}

.quote-card > * {
  position: relative;
  z-index: 1;
}

.quote-card.is-targeted {
  animation: quoteTarget 520ms ease;
}

.quote-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quote-card__header h2 {
  margin: 4px 0 2px;
  font-size: 24px;
  line-height: 1.1;
}

.quote-card small,
.quote-card__header small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.field-error {
  color: #b42318;
  font-weight: 760;
}

.quote-card label {
  display: grid;
  gap: 5px;
  color: #223043;
  font-size: 13px;
  font-weight: 720;
}

.quote-card input,
.quote-card select,
.quote-card textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(120, 150, 186, 0.34);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  outline: none;
}

.quote-card textarea {
  min-height: 70px;
  padding: 11px 12px;
  resize: vertical;
}

.quote-card input:focus,
.quote-card select:focus,
.quote-card textarea:focus,
#support-message:focus,
#recovery-token:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(20, 86, 216, 0.1);
}

.quote-card input[aria-invalid="true"],
.quote-card textarea[aria-invalid="true"],
#recovery-token[aria-invalid="true"] {
  border-color: #c93636;
  box-shadow: 0 0 0 4px rgba(201, 54, 54, 0.12);
}

.quote-card input.is-shaking,
.quote-card textarea.is-shaking,
#recovery-token.is-shaking {
  animation: invalidShake 190ms ease;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 12px;
}

.quote-status-stack {
  flex: 0 0 auto;
}

.quote-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quote-assurance span {
  padding: 7px 9px;
  color: #264156;
  font-size: 11px;
  font-weight: 800;
}

.status-pill,
.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0c5f54;
  background: #dff7f2;
  font-size: 12px;
  font-weight: 850;
}

.safe-note,
.registration-note {
  margin: 0;
  padding: 9px 11px;
  color: #264156;
  font-size: 12px;
}

.registration-note {
  border-color: rgba(20, 86, 216, 0.2);
  background: rgba(244, 249, 255, 0.8);
}

.payment-method-panel {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(244, 249, 255, 0.86), rgba(255, 255, 255, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: blur(14px) saturate(138%);
  backdrop-filter: blur(14px) saturate(138%);
}

.payment-method-panel img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 14px 20px rgba(20, 55, 90, 0.14));
  animation: paymentCatDash 8200ms ease-in-out infinite;
}

.quote-result {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(120, 150, 186, 0.32);
  border-radius: var(--radius-card);
  background: rgba(246, 251, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.quote-result.is-updating {
  animation: quoteResultPulse 320ms ease;
}

#quote-total.is-updating {
  display: inline-block;
  animation: pricePop 220ms ease;
}

.quote-result > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.quote-result span,
.quote-result dt {
  color: var(--muted);
  font-size: 13px;
}

.quote-result strong {
  font-size: 23px;
}

.quote-result dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.quote-result dl div {
  display: grid;
  gap: 2px;
}

.quote-result dd {
  margin: 0;
  font-weight: 850;
}

.quote-result small {
  color: var(--muted);
  font-size: 11px;
}

.quote-submit-bar {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(170px, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 38px rgba(17, 34, 58, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}

.quote-submit-bar div {
  display: grid;
  gap: 1px;
}

.quote-submit-bar span {
  color: var(--muted);
  font-size: 12px;
}

.quote-submit-bar strong {
  font-size: 18px;
}

.full-width {
  width: 100%;
}

.section-heading {
  display: grid;
  gap: 8px;
  max-width: 780px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
  letter-spacing: 0;
}

.service-rail,
.quick-products,
.requirements,
.process,
.cabinet,
.testimonials,
.faq {
  padding: 48px 0;
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
  font-weight: 800;
}

.filter-button.is-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  box-shadow: 0 14px 28px rgba(20, 86, 216, 0.18);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card,
.quick-products article,
.requirements-grid article,
.steps article,
.dashboard-panel,
.refund-panel,
.testimonial-grid article,
.faq details {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-card);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 251, 255, 0.58)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--glass-shadow-soft);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.catalog-card::before,
.quick-products article::before,
.requirements-grid article::before,
.steps article::before,
.dashboard-panel::before,
.refund-panel::before,
.testimonial-grid article::before,
.faq details::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.66), transparent 36%, rgba(255, 255, 255, 0.18));
  opacity: 0.62;
}

.catalog-card > *,
.quick-products article > *,
.requirements-grid article > *,
.steps article > *,
.dashboard-panel > *,
.refund-panel > *,
.testimonial-grid article > *,
.faq details > * {
  position: relative;
  z-index: 1;
}

.catalog-card {
  display: grid;
  min-height: 252px;
  gap: 13px;
  padding: 16px;
  animation: catalogEnter 360ms ease both;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.catalog-card:nth-child(2) { animation-delay: 28ms; }
.catalog-card:nth-child(3) { animation-delay: 56ms; }
.catalog-card:nth-child(4) { animation-delay: 84ms; }
.catalog-card:nth-child(5) { animation-delay: 112ms; }
.catalog-card:nth-child(6) { animation-delay: 140ms; }
.catalog-card:nth-child(7) { animation-delay: 168ms; }
.catalog-card:nth-child(8) { animation-delay: 196ms; }
.catalog-card:nth-child(9) { animation-delay: 224ms; }
.catalog-card:nth-child(10) { animation-delay: 252ms; }
.catalog-card:nth-child(11) { animation-delay: 280ms; }
.catalog-card:nth-child(12) { animation-delay: 308ms; }

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 86, 216, 0.22);
  box-shadow: 0 18px 46px rgba(17, 34, 58, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.catalog-card__top,
.catalog-card footer,
.dashboard-top,
.order-item,
.message-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card__icon,
.product-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(120, 150, 186, 0.24);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 34, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.catalog-card__icon img,
.product-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.catalog-card__icon--cat,
.product-icon--cat {
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.96), rgba(226, 244, 255, 0.72) 58%, rgba(31, 159, 114, 0.16)),
    rgba(255, 255, 255, 0.78);
}

.catalog-card__icon--cat img,
.product-icon--cat img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transform: translateY(1px);
}

.product-icon--cat img {
  width: 54px;
  height: 54px;
}

.catalog-card:hover .catalog-card__icon img,
.quick-products article:hover .product-icon img {
  transform: scale(1.06);
}

.catalog-card h3,
.quick-products h3,
.steps h3,
.dashboard-panel h3 {
  margin: 0;
  line-height: 1.12;
}

.catalog-card p,
.quick-products p,
.steps p,
.requirements-grid span,
.cabinet-copy p,
.refund-panel p,
.testimonial-grid p,
.faq p {
  margin: 0;
  color: var(--muted);
}

.catalog-card p {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.catalog-card footer {
  align-items: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.catalog-select {
  margin-top: auto;
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.quick-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.featured-directions {
  padding-top: 56px;
  padding-bottom: 28px;
}

.featured-directions article {
  min-height: 280px;
}

.direction-label {
  color: var(--brand-blue) !important;
  font-size: 12px;
  font-weight: 850;
}

.quick-products article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 20px;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.requirements-grid,
.steps,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.requirements-grid article,
.steps article,
.testimonial-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
}

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

.testimonial-grid article {
  align-content: start;
  min-height: 210px;
}

.testimonial-grid b {
  color: var(--brand-blue);
  font-size: 34px;
  line-height: 1;
}

.testimonial-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.steps article {
  border-top-color: rgba(20, 86, 216, 0.22);
  border-left-color: rgba(18, 169, 162, 0.22);
}

.requirements-grid b {
  color: var(--ink);
}

.steps article span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  box-shadow: 0 12px 24px rgba(20, 86, 216, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-weight: 900;
}

.cabinet {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 24px;
  align-items: start;
}

.cabinet-copy {
  display: grid;
  gap: 16px;
}

.cabinet-copy h1,
.cabinet-copy h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.06;
}

.status-page {
  padding: clamp(48px, 7vw, 86px) 0 clamp(60px, 8vw, 100px);
}

.status-page .cabinet {
  padding: 0;
}

.order-list {
  display: grid;
  gap: 8px;
}

.order-list .secondary-button {
  width: 100%;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(120, 150, 186, 0.3);
  border-radius: var(--radius-card);
  color: var(--muted);
  background: rgba(248, 251, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.order-list .empty-state::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    url("assets/paycat-premium-mark.png") center / 28px 28px no-repeat,
    linear-gradient(135deg, #ffffff, #eaf4ff);
  box-shadow: 0 10px 24px rgba(20, 86, 216, 0.1);
}

.empty-state b {
  color: var(--ink);
}

.empty-state--compact {
  padding: 12px;
}

.order-item {
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid rgba(120, 150, 186, 0.3);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  text-align: left;
}

.order-item.active {
  border-color: rgba(20, 86, 216, 0.32);
  background: rgba(240, 247, 255, 0.86);
}

.order-item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-panel {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.dashboard-panel.is-celebrating {
  animation: cabinetGlow 900ms ease;
}

.dashboard-top strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0b5f52;
  background: #dff7f2;
  font-size: 13px;
}

.client-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 13px 14px;
  border: 1px solid rgba(120, 150, 186, 0.3);
  border-radius: var(--radius-card);
  background: rgba(244, 249, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.client-profile span,
.client-profile small {
  color: var(--muted);
  font-size: 13px;
}

.client-profile b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-profile small {
  grid-column: 1 / -1;
}

.dashboard-top span {
  color: var(--muted);
  font-size: 13px;
}

.order-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-timeline li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.order-timeline li div {
  display: grid;
  gap: 2px;
}

.order-timeline li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border: 2px solid #b8cad8;
  border-radius: 50%;
  background: #ffffff;
}

.order-timeline li.done::before,
.order-timeline li.active::before {
  border-color: var(--brand-teal);
  background: var(--brand-teal);
}

.order-timeline li.active {
  color: var(--ink);
  font-weight: 750;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dashboard-metrics span {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(120, 150, 186, 0.28);
  border-radius: var(--radius-card);
  color: var(--muted);
  background: rgba(251, 253, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.dashboard-metrics b {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.support-thread {
  display: grid;
  gap: 10px;
}

.message-row {
  align-items: flex-start;
  animation: messagePop 180ms ease both;
}

.message-row.manager::before {
  content: "";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(20, 86, 216, 0.14);
  border-radius: 8px;
  background:
    url("assets/paycat-premium-mark.png") center / 22px 22px no-repeat,
    #ffffff;
  box-shadow: 0 8px 18px rgba(20, 55, 90, 0.1);
}

.message-row span {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: var(--radius-card);
  background: rgba(238, 244, 249, 0.86);
  border: 1px solid rgba(120, 150, 186, 0.22);
}

.message-row.client {
  justify-content: flex-end;
}

.message-row.client span {
  color: #ffffff;
  background: var(--brand-blue);
}

.support-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

#support-message,
#recovery-token {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(120, 150, 186, 0.34);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.recovery-panel {
  display: grid;
  gap: 10px;
}

.recovery-panel__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.refund-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 252, 245, 0.82), rgba(255, 255, 255, 0.66)),
    rgba(255, 250, 240, 0.72);
}

.faq {
  display: grid;
  gap: 10px;
  padding-bottom: 72px;
}

.faq details {
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 850;
}

.faq p {
  margin-top: 10px;
}

.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(420px, calc(100vw - 36px));
  padding: 13px 16px;
  border: 1px solid rgba(20, 86, 216, 0.2);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.motion-reveal.is-revealed {
  animation: cardReveal 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header,
  .quote-card,
  .trust-strip span,
  .payment-flow-belt span,
  .safe-note,
  .registration-note,
  .quote-assurance span,
  .back-link,
  .checkout-steps span,
  .payment-method-panel,
  .quote-submit-bar,
  .filter-button,
  .secondary-button,
  .amount-chips button,
  .refund-panel button,
  .catalog-card,
  .quick-products article,
  .requirements-grid article,
  .steps article,
  .dashboard-panel,
  .refund-panel,
  .faq details,
  .toast {
    background-color: rgba(255, 255, 255, 0.94);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSceneFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -8px, 0) scale(1.01);
  }
}

@keyframes paymentCatDash {
  0%,
  100% {
    transform: translateX(0);
  }
  44% {
    transform: translateX(3px);
  }
  58% {
    transform: translateX(-1px);
  }
}

@keyframes flowSweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes tickerMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes quoteSheen {
  0%,
  44% {
    transform: translateX(-72%);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  72%,
  100% {
    transform: translateX(72%);
    opacity: 0;
  }
}

@keyframes quoteTarget {
  0% {
    box-shadow: var(--shadow);
  }
  45% {
    box-shadow: 0 0 0 5px rgba(18, 169, 162, 0.12), var(--shadow);
  }
  100% {
    box-shadow: var(--shadow);
  }
}

@keyframes trustPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes invalidShake {
  0%,
  100% {
    transform: translateX(0);
  }
  28% {
    transform: translateX(-3px);
  }
  62% {
    transform: translateX(3px);
  }
}

@keyframes pricePop {
  0% {
    transform: scale(1);
    color: var(--ink);
  }
  52% {
    transform: scale(1.03);
    color: #0b7b6c;
  }
  100% {
    transform: scale(1);
    color: var(--ink);
  }
}

@keyframes quoteResultPulse {
  0% {
    transform: scale(1);
    border-color: #d9e8f5;
  }
  50% {
    transform: scale(1.012);
    border-color: rgba(18, 169, 162, 0.48);
    box-shadow: 0 12px 28px rgba(18, 169, 162, 0.12);
  }
  100% {
    transform: scale(1);
    border-color: #d9e8f5;
  }
}

@keyframes catalogEnter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes messagePop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cabinetGlow {
  0% {
    box-shadow: 0 12px 32px rgba(20, 55, 90, 0.08);
  }
  42% {
    box-shadow: 0 0 0 5px rgba(18, 169, 162, 0.12), 0 18px 48px rgba(20, 55, 90, 0.14);
  }
  100% {
    box-shadow: 0 12px 32px rgba(20, 55, 90, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .motion-reveal {
    opacity: 1;
    transform: none;
  }

  .hero-visual,
  .checkout-visual,
  .rate-ticker__track,
  .payment-method-panel img,
  .payment-flow-belt em::after,
  .quote-card::before,
  .trust-strip span::before,
  .quote-result.is-updating,
  #quote-total.is-updating,
  .quote-card.is-targeted,
  .quote-card input.is-shaking,
  .catalog-card,
  .message-row,
  .primary-button.is-loading::before,
  .dashboard-panel.is-celebrating {
    animation: none !important;
  }
}

@media (min-width: 1081px) and (max-height: 820px) {
  .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .hero h1 {
    font-size: clamp(38px, 3.75vw, 54px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-showcase {
    min-height: 560px;
  }

  .quote-card {
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    scrollbar-width: thin;
    gap: 8px;
    padding: 18px;
  }

  .quote-card textarea {
    min-height: 60px;
  }

  #quote-helper,
  #quote-amount-help,
  #quote-contact-help,
  .payment-method-panel,
  .quote-result {
    display: none;
  }

  .quote-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .quote-card--checkout {
    max-height: none;
    overflow: visible;
  }

  .checkout-page #quote-helper,
  .checkout-page #quote-amount-help,
  .checkout-page #quote-contact-help {
    display: block;
  }

  .checkout-page .payment-method-panel,
  .checkout-page .quote-result {
    display: grid;
  }

  .checkout-page .quote-submit-bar {
    position: static;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .cabinet,
  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    justify-content: stretch;
  }

  .checkout-shell {
    width: min(860px, calc(100% - 32px));
    align-items: start;
  }

  .checkout-copy {
    max-width: 760px;
  }

  .checkout-visual {
    height: min(46vw, 360px);
  }

  .quote-card--checkout {
    max-width: 640px;
    justify-self: center;
  }

  .hero-showcase {
    min-height: auto;
    gap: 16px;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    height: min(48vw, 380px);
  }

  .hero-showcase--visual-only .hero-visual {
    inset: auto;
  }

  .hero-showcase .quote-card {
    justify-self: stretch;
    width: 100%;
    transform: none;
  }

  .quote-card {
    position: relative;
    top: 0;
    justify-self: stretch;
    width: 100%;
  }

  .catalog-grid,
  .requirements-grid,
  .steps,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .rate-ticker {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-lockup small {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .header-cta {
    display: inline-flex;
    min-height: 38px;
    max-width: 154px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero,
  .service-rail,
  .quick-products,
  .requirements,
  .process,
  .cabinet,
  .checkout-shell,
  .testimonials,
  .faq,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    padding-top: 24px;
    gap: 16px;
  }

  .checkout-page {
    padding: 16px 0 44px;
  }

  .checkout-shell {
    gap: 14px;
  }

  .checkout-copy {
    display: contents;
    gap: 14px;
  }

  .back-link {
    order: 1;
  }

  .checkout-copy h1 {
    order: 2;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.05;
  }

  .checkout-copy p {
    order: 3;
    font-size: 14px;
    line-height: 1.44;
  }

  .quote-card--checkout {
    order: 4;
  }

  .checkout-steps {
    order: 5;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .checkout-steps span {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .checkout-visual {
    order: 6;
    height: 210px;
    margin-top: 0;
  }

  .hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.44;
  }

  .hero-lead-full {
    display: none;
  }

  .hero-lead-mobile {
    display: inline;
  }

  .secondary-button--messenger {
    display: none;
  }

  @media (max-height: 700px) {
    .hero {
      padding-top: 24px;
      gap: 18px;
    }

    .hero-visual {
      display: none;
    }
  }

  .trust-strip {
    display: none;
  }

  .hero-highlights {
    gap: 6px;
  }

  .hero-highlights span {
    flex: 1 1 auto;
    min-height: 32px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero-visual {
    height: 214px;
  }

  .hero-visual figcaption {
    display: none;
  }

  .hero-showcase--visual-only .hero-visual figcaption {
    display: none;
  }

  .payment-flow-belt {
    display: flex;
    gap: 6px;
  }

  .payment-flow-belt span {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: 8px 7px;
    font-size: 11px;
  }

  .payment-flow-belt em {
    display: none;
  }

  .payment-flow-belt--below {
    display: none;
  }

  .trust-strip,
  .quick-products,
  .catalog-grid,
  .requirements-grid,
  .steps,
  .testimonial-grid,
  .dashboard-metrics,
  .quote-grid,
  .quote-result dl,
  .quote-assurance,
  .payment-method-panel,
  .quote-submit-bar,
  .recovery-panel__form {
    grid-template-columns: 1fr;
  }

  .payment-method-panel img {
    width: 48px;
    height: 48px;
  }

  .quick-products article {
    grid-template-columns: 1fr;
  }

  .rate-ticker {
    min-height: 54px;
    gap: 14px;
    padding: 12px 0;
    font-size: 15px;
  }

  .rate-ticker__group {
    gap: 18px;
    padding: 0 28px;
  }

  .hero-rating {
    display: none;
  }

  .quote-card__header,
  .quote-result > div,
  .dashboard-top,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  #quote-helper {
    display: none;
  }

  #quote-amount-help,
  #quote-contact-help,
  #quote-details-help,
  #quote-custom-service-help,
  .quote-assurance,
  .safe-note,
  .quote-result {
    display: none;
  }

  .quote-card {
    gap: 9px;
    padding: 18px;
  }

  .quote-grid {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 0.58fr);
  }

  .quote-submit-bar {
    order: 8;
  }

  .payment-method-panel {
    order: 9;
  }

  .safe-note,
  .quote-result {
    order: 10;
  }

  .support-compose {
    grid-template-columns: 1fr;
  }

  .quote-submit-bar {
    position: static;
    grid-template-columns: minmax(104px, 0.6fr) minmax(148px, 1fr);
    width: 100%;
    box-shadow: 0 14px 28px rgba(20, 86, 216, 0.18);
  }

  .message-row span {
    max-width: 92%;
  }
}
