:root {
  --bg: #121212;
  --bg-soft: #1f1f1f;
  --panel: #2b2b2b;
  --panel-soft: #353535;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f5ef;
  --muted: #cac4b8;
  --accent: #ffc20f;
  --accent-soft: #ff4338;
  --ok: #5ec78c;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

.hero {
  position: relative;
  min-height: 520px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 12px;
  max-width: 11ch;
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero p {
  margin: 0;
  max-width: 42rem;
  color: #fff8e7;
  font-size: 1.05rem;
  line-height: 1.6;
}

.stage-card {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.stage-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 67, 56, 0.12);
  color: #ff8b84;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stage-card h3 {
  margin: 10px 0 6px;
  font-size: 1.25rem;
}

.stage-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stage-total {
  color: var(--accent);
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  white-space: nowrap;
}

.stage-items {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.stage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stage-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.stage-item span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.stage-item em {
  align-self: center;
  font-style: normal;
  font-weight: 800;
  color: #fff4cc;
}

.pdf-root {
  position: absolute;
  left: -20000px;
  top: 0;
  width: 794px;
  color: #ffffff;
  background: #1a1a1a;
}

.pdf-deck {
  width: 794px;
}

.pdf-page {
  display: flex;
  flex-direction: column;
  width: 794px;
  height: 1123px;

  overflow: hidden;
  background: #434343;
  box-sizing: border-box;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.pdf-page::before {
  display: none;
}

.pdf-page.bg-hero {
  background: #434343;
}

.pdf-page-no-img {
  background: #434343;
}

.pdf-page-no-img .pdf-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 40px 24px;
  box-sizing: border-box;
}

.pdf-page-no-img.pdf-page:not(.bg-hero) .pdf-content {
  padding-top: 52px;
}

.pdf-hero-img-container {
  width: 100%;
  flex: 0 0 449px;
  overflow: hidden;
  position: relative;
}

.pdf-hero-img-inline {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.pdf-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 54px 30px;
}

.pdf-page:not(.bg-hero):not(.pdf-page-no-img) .pdf-content {
  padding-top: 16px;
}

.pdf-hero-info {
  margin-top: 22px;
  width: 100%;
  max-width: 690px;
}

.pdf-hero-tag {
  display: block;
  color: #ff0000;
  font-size: 1.3rem;
  font-weight: 800;
  border: 4px solid #ff0000;
  padding: 10px 12px;
  line-height: 1.25;
  width: 100%;
  max-width: 690px;
}

.pdf-hero-tag-text-lift {
  display: block;
  transform: translateY(-14px);
}

.pdf-grand-total {
  margin: 4px 0 10px;
  color: #ffc20f !important;
  font-size: 24px !important;

  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  white-space: nowrap !important;
}

.pdf-title {
  margin-top: 10px;
  color: #ffc000;
  font-size: 18px !important;

  font-weight: 800;
  line-height: 1.1;
  max-width: 600px;
}

.pdf-subtitle {
  margin-top: 20px;
  font-size: 1.76rem;
  line-height: 1.42;
  max-width: 610px;
  hyphens: auto;
}

.pdf-logo-row {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
}

.pdf-contact {
  color: #ff0000;
  font-size: 1.2rem;
  font-weight: 700;
}

.pdf-logo {
  width: 152px;
  height: auto;
}

.pdf-block {
  width: 100%;
}

.pdf-page-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  color: #ff0000;
  font-size: 1.3rem;
  font-weight: 800;
  border: 4px solid #ff0000;
  padding: 0 24px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.pdf-page-title-text-lift-14 {
  display: block;
  transform: translateY(-10px);
}

.pdf-stage-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ff0000;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  min-height: 60px;
  padding: 0 20px;
  width: fit-content;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.pdf-stage-tag>span {
  display: block;
  transform: translateY(-4px);
}

.pdf-page {
  position: relative;
}

.pdf-page-heading {
  margin: 4px 0 8px !important;
  color: #ffc000 !important;
  font-size: 14px !important;

  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.pdf-page-heading span {
  font-size: 14px !important;

  display: inline-block !important;
  white-space: nowrap !important;
}

.pdf-page-text {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: 1.34rem;
  line-height: 1.45;
  opacity: 0.96;
  font-weight: 700;
  max-width: 690px;
  hyphens: auto;
}

.pdf-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.pdf-meta {
  padding: 24px 34px;
  background: #8f8f8f;
  width: 100%;
  max-width: 720px;
}

.pdf-meta span {
  display: block;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: none;
  opacity: 1;
}

.pdf-meta strong {
  display: block;
  color: #ffffff;
  font-size: 2.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.pdf-overview-text {
  margin-top: 24px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.68rem;
  line-height: 1.45;
  max-width: 710px;
  font-weight: 700;
  hyphens: auto;
}

.pdf-stage-head {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  align-items: center;
}

.pdf-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.pdf-item {
  padding: 10px 24px 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid #00b0f0;
  border-left: 12px solid #00b0f0;
  width: 100%;
  box-sizing: border-box;
}

.pdf-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1.48rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.28;
  hyphens: auto;
}

.pdf-item-detail {
  display: block;
  font-size: 1.36rem;
  color: #ffffff;
  opacity: 0.92;
  margin-bottom: 4px;
  line-height: 1.25;
}

.pdf-item b {
  display: block;
  color: #ffffff;
  font-size: 1.52rem;
  font-weight: 700;
  line-height: 1.2;
}

.pdf-page.bg-stage-1 .pdf-item strong,
.pdf-page.bg-stage-1 .pdf-item-detail,
.pdf-page.bg-stage-1 .pdf-item b,
.pdf-page.bg-stage-2 .pdf-item strong,
.pdf-page.bg-stage-2 .pdf-item-detail,
.pdf-page.bg-stage-2 .pdf-item b,
.pdf-page.bg-stage-4 .pdf-item strong,
.pdf-page.bg-stage-4 .pdf-item-detail,
.pdf-page.bg-stage-4 .pdf-item b,
.pdf-page.bg-stage-5 .pdf-item strong,
.pdf-page.bg-stage-5 .pdf-item-detail,
.pdf-page.bg-stage-5 .pdf-item b,
.pdf-page.bg-stage-7 .pdf-item strong,
.pdf-page.bg-stage-7 .pdf-item-detail,
.pdf-page.bg-stage-7 .pdf-item b,
.pdf-page.bg-stage-8 .pdf-item strong,
.pdf-page.bg-stage-8 .pdf-item-detail,
.pdf-page.bg-stage-8 .pdf-item b {
  transform: translateY(-6px);
}

.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-heading,
.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-heading span {
  font-size: 13px !important;
  white-space: nowrap !important;
}

.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-heading>span {
  transform: translateY(calc(-5px - 0.65rem));
}

.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-text {
  margin-top: 10px;
  font-size: 1.26rem;
  line-height: 1.4;
  max-width: 705px;
}

.pdf-stage-kpi {
  margin-top: 12px;
  border: 4px solid #ff0000;
  padding: 18px 20px 14px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.pdf-stage-kpi-col {
  width: 50%;
  text-align: center;
}

.pdf-stage-kpi-main {
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.pdf-stage-kpi-label {
  margin-top: 8px;
  font-size: 2.36rem;
  font-weight: 700;
  color: #ffffff;
}

.pdf-stage-kpi-note {
  margin-top: 10px;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

.pdf-stage-kpi-split {
  padding: 14px 16px 12px;
  gap: 18px;
}

.pdf-stage-kpi-split .pdf-stage-kpi-main {
  font-size: 3.1rem;
}

.pdf-stage-kpi-split .pdf-stage-kpi-note {
  margin-top: 10px;
  text-align: left;
  font-size: 1.26rem;
  line-height: 1.32;
}

.pdf-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
}

.pdf-footer-line span {
  color: #ff0000;
  font-size: 1.18rem;
  font-weight: 700;
}

.pdf-total-box {
  max-width: 100%;
  margin-top: 14px;
}

.pdf-total-box .pdf-page-heading {
  font-size: 1.1rem;

  white-space: nowrap !important;
}

.pdf-cta {
  margin-top: 18px;
  padding: 0 22px 0 0;
  border-radius: 0;
  background: #39c8d5;
  border: 3px solid #39c8d5;
  color: #ffffff;
  line-height: 1.35;
  font-weight: 700;
  width: 100%;
  max-width: 760px;
  min-height: 114px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pdf-cta-accent {
  width: 68px;
  min-width: 68px;
  align-self: stretch;
  height: auto;
  margin-right: 18px;
  margin-left: 0;
  border-right: 3px solid #39c8d5;
  background: #434343;
}

.pdf-cta-text {
  display: block;
  font-size: 1.26rem;
  line-height: 1.3;
  padding: 10px 0;
  transform: translateY(-8px);
}

.pdf-page.bg-total .pdf-page-title {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
}

.pdf-page.bg-total .pdf-page-heading {
  color: #ffffff;
  margin-top: 8px;
  margin-bottom: 12px;
  font-size: 1.1rem;

  font-family: "Manrope", sans-serif;
  line-height: 1.12;
  white-space: nowrap !important;
}

.pdf-page.bg-total .pdf-page-text {
  font-size: 1.12rem;
  line-height: 1.36;
  max-width: 710px;
  font-weight: 700;
}

.pdf-page.bg-total .pdf-footer-line {
  padding-top: 12px;
}

.pdf-page.bg-total .pdf-footer-line span {
  font-size: 1.5rem;
}

@media (max-width: 720px) {

  .hero {
    min-height: 460px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.2rem, 10vw, 3.6rem);
  }

  .hero p {
    font-size: 0.96rem;
  }

  .stage-card header,
  .stage-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stage-total,
  .stage-item em {
    text-align: left;
  }
}

.modal-overlay {
  z-index: 99999 !important;
}

.calculator-modal-window {
  z-index: 100000 !important;
  max-width: 56rem !important;
  width: 98% !important;
  padding: 1rem !important;
  border-radius: 2.5rem !important;
  border: none !important;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  overflow: hidden;
  background: white !important;
  opacity: 0;
  transform: scale(0.8) translateY(100px);
  transition: all 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.28);
}

#calculator-modal {
  padding: 1rem !important;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .calculator-modal-window {
    padding: 3.5rem !important;
    border-radius: 3rem !important;
  }
}

.modal-overlay.active .calculator-modal-window {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.calculator-input-container {
  position: relative;
  z-index: 100010 !important;
  pointer-events: auto !important;
}

.calc-modal-header {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .calc-modal-header {
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
}

.calc-modal-icon-wrap {
  position: relative;
}

.calc-modal-icon-box {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: #00b8c0;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 184, 192, 0.35);
  position: relative;
  z-index: 10;
}

@media (min-width: 640px) {
  .calc-modal-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
  }
}

.calc-modal-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0a1b2e;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

@media (min-width: 640px) {
  .calc-modal-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 768px) {
  .calc-modal-title {
    font-size: 2.25rem;
  }
}

.calc-modal-subtitle {
  color: #9ca3af;
  font-size: 0.625rem;
  font-weight: 500;
  max-width: 32rem;
  margin: 0;
}

@media (min-width: 640px) {
  .calc-modal-subtitle {
    font-size: 1.125rem;
    margin-top: 0.75rem;
  }
}

.calc-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 1024px) {
  .calc-modal-grid {
    grid-template-columns: 45% 55%;
    gap: 3rem;
  }
}

.calc-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .calc-modal-fields {
    gap: 2rem;
    padding: 1rem 0;
  }
}

.calc-modal-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-label {
  display: block;
  font-size: 0.5rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
}

@media (min-width: 640px) {
  .calc-label {
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
  }
}

.calc-input {
  width: 100%;
  background: rgba(246, 249, 252, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 1rem;
  padding: 0.75rem;
  color: #1f2937;
  font-size: 0.875rem;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
}

@media (min-width: 640px) {
  .calc-input {
    border-radius: 1.25rem;
    padding: 1.5rem;
    font-size: 1.25rem;
  }
}

.calc-input:focus {
  box-shadow: 0 0 0 4px rgba(0, 184, 192, 0.1);
}

.calc-result-card {
  background: linear-gradient(135deg, #ebf3f9, #f7fafc, #ffffff);
  border-radius: 1.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  min-height: 180px;
}

@media (min-width: 640px) {
  .calc-result-card {
    border-radius: 2.5rem;
    padding: 2.5rem;
    min-height: 340px;
  }
}

.calc-result-inner {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
}

.calc-result-label {
  font-size: 0.4375rem;
  font-weight: 900;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}

@media (min-width: 640px) {
  .calc-result-label {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
  }
}

#clientTotal {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 900;
  color: #0082fb;
  margin-bottom: 1rem;
  white-space: nowrap;
}

@media (min-width: 640px) {
  #clientTotal {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
  }
}

@media (min-width: 768px) {
  #clientTotal {
    font-size: 3rem;
  }
}

#pdfBtn {
  width: 100%;
  background: linear-gradient(to right, #00b8c0, #009da4);
  color: #ffffff;
  font-weight: 800;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 184, 192, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  #pdfBtn {
    border-radius: 1.5rem;
    padding: 1.5rem;
    gap: 1rem;
  }
}

#pdfBtn:hover:not(:disabled) {
  transform: scale(1.02);
}

#pdfBtn:active:not(:disabled) {
  transform: scale(0.98);
}

#pdfBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pdfState {
  font-size: 0.4375rem;
  color: #9ca3af;
  margin-top: 0.5rem;
  text-align: center;
  height: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

@media (min-width: 640px) {
  #pdfState {
    font-size: 0.625rem;
    margin-top: 1.25rem;
    height: 1rem;
  }
}

.calc-modal-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  color: #9ca3af;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 50;
}

.calc-modal-close-btn:hover {
  background: #ffffff;
  color: #4b5563;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
  transition: all 5s ease-in-out;
  pointer-events: none !important;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #00b8c0;
  top: -150px;
  right: -100px;
  animation: move-blob 10s infinite alternate;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: #0082fb;
  bottom: -100px;
  left: -100px;
  animation: move-blob 12s infinite alternate-reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #ffffff;
  top: 40%;
  left: 30%;
  animation: move-blob 15s infinite linear;
}

@keyframes move-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }

  33% {
    transform: translate(150px, 100px) scale(1.4) rotate(120deg);
  }

  66% {
    transform: translate(-100px, 150px) scale(0.8) rotate(240deg);
  }

  100% {
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -200%;
  width: 200%;
  height: 400%;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(45deg);
  animation: shimmer-calc 2s infinite linear;
}

@keyframes shimmer-calc {
  0% {
    left: -200%;
  }

  20% {
    left: 200%;
  }

  100% {
    left: 200%;
  }
}

.pdf-root {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  color: #ffffff;
  background: #1a1a1a;
  font-family: 'Manrope', sans-serif;
  visibility: visible !important;
  display: block !important;
}

.pdf-title,
.pdf-page-heading,
.pdf-grand-total {
  font-family: 'Oswald', sans-serif;
}

.pdf-deck {
  width: 794px;
}

.pdf-page {
  display: flex;
  flex-direction: column;
  width: 794px;
  height: 1123px;
  overflow: hidden;
  background: #434343;
  box-sizing: border-box;
  position: relative;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.pdf-hero-img-container {
  width: 100%;
  flex: 0 0 449px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pdf-page.bg-hero .pdf-hero-img-container {
  background-image: url("images/pdf_template/image1.jpg");
}

.pdf-page.bg-stage-1 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image3.jpg");
}

.pdf-page.bg-stage-2 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image4.jpg");
}

.pdf-page.bg-stage-3 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image5.jpg");
}

.pdf-page.bg-stage-4 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image6.jpg");
}

.pdf-page.bg-stage-5 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image10.jpg");
}

.pdf-page.bg-stage-6 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image7.jpg");
}

.pdf-page.bg-stage-7 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image11.jpg");
}

.pdf-page.bg-stage-8 .pdf-hero-img-container {
  background-image: url("images/pdf_template/image8.jpg");
}

.pdf-page.bg-total .pdf-hero-img-container {
  background-image: url("images/pdf_template/image9.jpg");
}

.pdf-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 54px 30px;
  box-sizing: border-box;
}

.pdf-hero-info {
  margin-top: 22px;
  width: 100%;
  max-width: 690px;
}

.pdf-hero-tag {
  display: block;
  color: #ff0000;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  border: 4px solid #ff0000;
  padding: 10px 12px;
  width: 100%;
  max-width: 690px;
}

.pdf-hero-tag-text-lift {
  display: block;
  transform: translateY(-14px);
}

.pdf-title {
  margin: 22px 0 0;
  color: #ffc000;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.03;
  max-width: 620px;
}

.pdf-subtitle {
  max-width: 610px;
  margin: 20px 0 0;
  color: #ffffff;
  font-size: 1.76rem;
  line-height: 1.42;
  font-weight: 700;
}

.pdf-logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
}

.pdf-contact {
  color: #ff0000;
  font-size: 1.2rem;
  font-weight: 700;
}

.pdf-logo {
  width: 152px;
  height: auto;
}

.pdf-block {
  width: 100%;
}

.pdf-page-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  color: #ff0000;
  font-size: 1.3rem;
  font-weight: 800;
  border: 4px solid #ff0000;
  padding: 0 24px;
  width: fit-content;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
}

.pdf-page-title-text-lift-14 {
  display: block;
  transform: translateY(-10px);
}

.pdf-page-heading {
  color: #ffc000;
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
  margin: 12px 0 20px;
}

.pdf-page-heading>span {
  display: block;
  transform: translateY(-2px);
}

.pdf-page-text {
  color: #ffffff;
  font-size: 1.34rem;
  line-height: 1.45;
  opacity: 0.96;
  margin: 14px 0 0;
  font-weight: 700;
  max-width: 690px;
}

.pdf-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.pdf-meta {
  padding: 24px 34px;
  background: #8f8f8f;
  width: 100%;
  max-width: 720px;
}

.pdf-meta span {
  display: block;
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 700;
}

.pdf-meta strong {
  display: block;
  color: #ffffff;
  font-size: 2.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.pdf-overview-text {
  margin-top: 24px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.68rem;
  line-height: 1.45;
  max-width: 710px;
  font-weight: 700;
}

.pdf-stage-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #ff0000;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 800;
  min-height: 60px;
  padding: 0 20px;
  width: fit-content;
  line-height: 1;
  white-space: nowrap;
}

.pdf-stage-tag>span {
  display: block;
  transform: translateY(-14px);
}

.pdf-stage-head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.pdf-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.pdf-item {
  padding: 10px 24px 9px;
  border: 2px solid #00b0f0;
  border-left: 12px solid #00b0f0;
  background: rgba(255, 255, 255, 0.02);
  box-sizing: border-box;
  width: 100%;
}

.pdf-item strong {
  display: block;
  font-size: 1.48rem;
  color: #ffffff;
  margin-bottom: 3px;
  font-weight: 700;
  line-height: 1.28;
}

.pdf-item-detail {
  display: block;
  font-size: 1.36rem;
  color: #ffffff;
  opacity: 0.92;
  margin-bottom: 4px;
  line-height: 1.25;
}

.pdf-item b {
  display: block;
  color: #ffffff;
  font-size: 1.52rem;
  font-weight: 700;
  line-height: 1.2;
}

.pdf-page.bg-stage-1 .pdf-item strong,
.pdf-page.bg-stage-1 .pdf-item-detail,
.pdf-page.bg-stage-1 .pdf-item b,
.pdf-page.bg-stage-2 .pdf-item strong,
.pdf-page.bg-stage-2 .pdf-item-detail,
.pdf-page.bg-stage-2 .pdf-item b,
.pdf-page.bg-stage-4 .pdf-item strong,
.pdf-page.bg-stage-4 .pdf-item-detail,
.pdf-page.bg-stage-4 .pdf-item b,
.pdf-page.bg-stage-5 .pdf-item strong,
.pdf-page.bg-stage-5 .pdf-item-detail,
.pdf-page.bg-stage-5 .pdf-item b,
.pdf-page.bg-stage-7 .pdf-item strong,
.pdf-page.bg-stage-7 .pdf-item-detail,
.pdf-page.bg-stage-7 .pdf-item b,
.pdf-page.bg-stage-8 .pdf-item strong,
.pdf-page.bg-stage-8 .pdf-item-detail,
.pdf-page.bg-stage-8 .pdf-item b {
  transform: translateY(-6px);
}

.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-heading {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.04;
}

.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-heading>span {
  transform: translateY(calc(-5px - 0.65rem));
}

.pdf-page:not(.pdf-page-no-img):not(.bg-hero):not(.bg-total) .pdf-page-text {
  margin-top: 10px;
  font-size: 1.26rem;
  line-height: 1.4;
  max-width: 705px;
}

.pdf-stage-kpi {
  margin-top: 12px;
  border: 4px solid #ff0000;
  padding: 18px 20px 14px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 26px;
}

.pdf-stage-kpi-col {
  width: 50%;
  text-align: center;
}

.pdf-stage-kpi-main {
  font-size: 3.4rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.pdf-stage-kpi-label {
  margin-top: 8px;
  font-size: 2.36rem;
  font-weight: 700;
  color: #ffffff;
}

.pdf-stage-kpi-note {
  margin-top: 10px;
  font-size: 1.3rem;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

.pdf-stage-kpi-split {
  padding: 14px 16px 12px;
  gap: 18px;
}

.pdf-stage-kpi-split .pdf-stage-kpi-main {
  font-size: 3.1rem;
}

.pdf-stage-kpi-split .pdf-stage-kpi-note {
  margin-top: 10px;
  text-align: left;
  font-size: 1.26rem;
  line-height: 1.32;
}

.pdf-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
}

.pdf-footer-line span {
  color: #ff0000;
  font-size: 1.18rem;
  font-weight: 700;
}

.pdf-total-box {
  max-width: 100%;
  margin-top: 14px;
}

.pdf-total-box .pdf-page-heading {
  font-size: 2.9rem;
}

.pdf-grand-total {
  color: #ffffff;
  font-size: 3.45rem;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.05;
  margin: 12px 0 12px;
}

.pdf-cta {
  margin-top: 18px;
  padding: 0 22px 0 0;
  border-radius: 0;
  background: #39c8d5;
  border: 3px solid #39c8d5;
  color: #ffffff;
  line-height: 1.35;
  font-weight: 700;
  width: 100%;
  max-width: 760px;
  min-height: 114px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.pdf-cta-accent {
  width: 68px;
  min-width: 68px;
  align-self: stretch;
  height: auto;
  margin-right: 18px;
  margin-left: 0;
  border-right: 3px solid #39c8d5;
  background: #434343;
}

.pdf-cta-text {
  display: block;
  font-size: 1.26rem;
  line-height: 1.3;
  padding: 10px 0;
  transform: translateY(-8px);
}

.pdf-page.bg-total .pdf-page-title {
  background: #ff0000;
  color: #ffffff;
  border-color: #ff0000;
}

.pdf-page.bg-total .pdf-page-heading {
  color: #ffffff;
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 2.45rem;
  font-family: "Manrope", sans-serif;
  line-height: 1.12;
}

.pdf-page.bg-total .pdf-page-text {
  font-size: 1.12rem;
  line-height: 1.36;
  max-width: 710px;
  font-weight: 700;
}

.pdf-page.bg-total .pdf-footer-line {
  padding-top: 12px;
}

.pdf-page.bg-total .pdf-footer-line span {
  font-size: 1.5rem;
}

.pdf-page-no-img {
  background: #434343;
}

.pdf-page:not(.bg-hero):not(.pdf-page-no-img) .pdf-content {
  padding-top: 16px;
}

.pdf-page-no-img .pdf-content {
  padding: 52px 40px 24px;
}

/* Mobile fixes for the calculator modal */
@media (max-width: 639px) {
  #calculator-modal {
    padding: 0.75rem !important;
    align-items: flex-start !important;
  }

  .calculator-modal-window {
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 1.5rem);
    padding: 1rem !important;
    border-radius: 1.5rem !important;
    overflow-y: auto;
  }

  .calc-modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .calc-modal-header {
    padding-right: 2.4rem;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .calc-modal-title {
    font-size: 1rem;
    overflow-wrap: anywhere;
  }

  .calc-modal-subtitle {
    font-size: 0.7rem;
    line-height: 1.35;
  }

  .calc-modal-grid,
  .calc-modal-fields-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .calc-modal-fields {
    gap: 0.95rem;
    min-width: 0;
  }

  .calc-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #64748b;
    text-transform: none;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
    margin-bottom: 0.4rem;
    padding: 0;
  }

  .calc-input {
    min-width: 0;
    min-height: 48px;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
  }

  .calc-result-card {
    min-height: 0;
    padding: 1rem;
    border-radius: 1.1rem;
  }

  .calc-result-label {
    font-size: 0.72rem;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
  }

  #clientTotal {
    max-width: 100%;
    font-size: clamp(1.05rem, 7vw, 1.7rem);
    overflow-wrap: anywhere;
    white-space: normal;
  }

  #pdfBtn {
    min-width: 0;
    max-width: 100%;
    padding: 0.85rem 0.75rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }
}
