*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --text: #1f1f1f;
  --text-muted: #5f6368;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.85);
  --blue: #1a73e8;
  --green: #188038;
}

html { height: 100%; }

body {
  min-height: 100%;
  font-family: "Google Sans Flex", "Roboto", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #f8f9fa;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(66, 133, 244, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(234, 67, 53, 0.22), transparent 50%),
    radial-gradient(ellipse 65% 50% at 50% 100%, rgba(52, 168, 83, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 75% 65%, rgba(251, 188, 4, 0.25), transparent 50%),
    linear-gradient(165deg, #e8f0fe 0%, #fce8e6 38%, #e6f4ea 68%, #fef7e0 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 5.5rem;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-top .badge { margin-bottom: 0; }

.lang-toggle {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(218, 220, 224, 0.95);
  background: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-toggle:hover {
  color: var(--blue);
  border-color: rgba(26, 115, 232, 0.35);
  background: rgba(232, 240, 254, 0.9);
}

.note-phone {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.card {
  width: min(100%, 540px);
  padding: 2.25rem 2rem 2rem;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.08),
    0 8px 24px rgba(60, 64, 67, 0.06),
    0 24px 48px rgba(60, 64, 67, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blue);
  background: rgba(26, 115, 232, 0.1);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 128, 56, 0.2);
}

.badge-muted {
  color: var(--text-muted);
  background: rgba(95, 99, 104, 0.12);
}

h1 {
  font-size: clamp(1.625rem, 4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.lead:last-child { margin-bottom: 0; }

.facts {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.facts li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}

.facts li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  opacity: 0.85;
}

.price-box {
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(218, 220, 224, 0.9);
  margin-bottom: 1.25rem;
}

.price-label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.price-rows { display: grid; gap: 0.5rem; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.9375rem;
}

.price-row span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(218, 220, 224, 0.95);
  font-size: 1.0625rem;
  font-weight: 600;
}

.price-total span:last-child {
  font-size: 1.375rem;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}

.back-link:hover { text-decoration: underline; }

.info-box {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(234, 67, 53, 0.07);
  border: 1px solid rgba(234, 67, 53, 0.18);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Contact FAB (YouTube-style pop-in) */
.contact-fab-wrap {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  max-width: min(calc(100vw - 2.5rem), 320px);
  pointer-events: none;
}

.contact-fab-bubble {
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(218, 220, 224, 0.95);
  box-shadow: 0 4px 20px rgba(60, 64, 67, 0.12);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text);
  pointer-events: auto;
}

.contact-fab-bubble.is-visible {
  animation: fabPopIn 0.55s ease-out 0.15s forwards;
}

.contact-fab-bubble strong {
  display: block;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.contact-fab {
  opacity: 0;
  transform: translateY(14px) scale(0.9);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem 0.65rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(218, 220, 224, 0.95);
  box-shadow: 0 4px 16px rgba(60, 64, 67, 0.14);
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  pointer-events: auto;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-fab:hover {
  box-shadow: 0 6px 22px rgba(60, 64, 67, 0.18);
  transform: translateY(-1px) scale(1.02);
}

.contact-fab.is-visible {
  animation: fabPopIn 0.55s ease-out forwards;
}

.contact-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #4285f4, #34a853);
  color: #fff;
  flex-shrink: 0;
}

.contact-fab-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

@keyframes fabPopIn {
  from { opacity: 0; transform: translateY(14px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .contact-fab-wrap {
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .contact-fab span.contact-fab-label-long { display: none; }
  .contact-fab span.contact-fab-label-short { display: inline; }
}

@media (min-width: 481px) {
  .contact-fab span.contact-fab-label-short { display: none; }
}
