:root {
  --bg: #eef3f2;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-solid: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78));
  --text: #113532;
  --muted: #3f6661;
  --line: rgba(1, 145, 130, 0.18);
  --primary: rgb(1, 145, 130);
  --primary-deep: #0b6c63;
  --gold: #d4bd4d;
  --gold-soft: rgba(212, 189, 77, 0.2);
  --shadow: 0 28px 80px rgba(11, 56, 52, 0.12);
  --radius: 28px;
  --radius-sm: 20px;
  --container: min(1180px, calc(100% - 32px));
  --body-size: clamp(16px, 1vw + 0.18rem, 18px);
  --title-size: clamp(28px, 2.8vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: var(--body-size);
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 189, 77, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(1, 145, 130, 0.10), transparent 30%),
    linear-gradient(180deg, #f7f9f8 0%, var(--bg) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.35s ease;
}

body.theme-night {
  --bg: #071a20;
  --panel: rgba(13, 37, 43, 0.82);
  --panel-solid: linear-gradient(180deg, rgba(17,45,51,0.94), rgba(9,29,35,0.9));
  --text: #eef7f5;
  --muted: #b9d3cf;
  --line: rgba(55, 211, 187, 0.26);
  --primary: rgb(10, 176, 158);
  --primary-deep: #75dfd2;
  --gold: #e4ce65;
  --gold-soft: rgba(228, 206, 101, 0.2);
  --shadow: 0 28px 80px rgba(0, 8, 12, 0.38);
  background:
    radial-gradient(circle at top left, rgba(228, 206, 101, 0.09), transparent 29%),
    radial-gradient(circle at top right, rgba(10, 176, 158, 0.15), transparent 34%),
    linear-gradient(180deg, #0d2930 0%, var(--bg) 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2 {
  margin: 0;
  font-family: "Unbounded", system-ui, sans-serif;
  font-size: var(--title-size);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3,
p,
ul {
  margin: 0;
  font-size: var(--body-size);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 92px 0;
}

.section-tight {
  padding-top: 36px;
}

.body-text {
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--body-size);
}

.eyebrow::before {
  content: "";
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 18px 0;
  backdrop-filter: blur(24px);
  background: rgba(247, 249, 248, 0.68);
  border-bottom: 1px solid rgba(255,255,255,0.5);
}

body.theme-night .site-header {
  background: rgba(7, 25, 31, 0.72);
  border-bottom-color: rgba(117,223,210,0.12);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: clamp(180px, 20vw, 260px);
  height: auto;
}

body.theme-night .brand img {
  height: clamp(63px, 7vw, 91px);
  aspect-ratio: 785 / 273;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid rgba(117,223,210,0.2);
  box-shadow: 0 12px 28px rgba(0,8,12,0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.68);
  box-shadow: 0 20px 50px rgba(11, 56, 52, 0.06);
}

body.theme-night .nav-links,
body.theme-night .menu-toggle {
  background: rgba(15, 42, 48, 0.9);
  border-color: rgba(117,223,210,0.14);
}

body.theme-night .nav-links a:not(.btn) {
  color: var(--muted);
}

body.theme-night .nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(10,176,158,0.14);
}

body.theme-night .menu-toggle span {
  background: var(--text);
}

.nav-links a:not(.btn) {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
  background: rgba(1,145,130,0.08);
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 28px rgba(11, 56, 52, 0.08);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 16px 34px rgba(1,145,130,0.25);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.76);
  border-color: rgba(1,145,130,0.14);
}

body.theme-night .btn-secondary {
  color: var(--text);
  background: rgba(19, 54, 59, 0.84);
  border-color: rgba(117,223,210,0.2);
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0));
  pointer-events: none;
}

.card-solid {
  background: var(--panel-solid);
}

.card-glass {
  background: var(--panel);
  backdrop-filter: blur(22px);
}

body.theme-night .card {
  border-color: rgba(117,223,210,0.13);
}

body.theme-night .card::before {
  background: linear-gradient(135deg, rgba(117,223,210,0.07), rgba(255,255,255,0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.94fr) minmax(420px, 1.06fr);
  gap: 24px;
  align-items: stretch;
}

.hero-control,
.hero-copy,
.calculator-layout,
.contact-shell {
  padding: 32px;
}

.hero-control,
.hero-copy {
  display: grid;
  gap: 24px;
}

.hero-copy h1 {
  max-width: none;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.62;
}

.hero-control h2 {
  font-size: 30px;
}

.control-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
}

.control-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.control-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.hero-estimate {
  padding-top: 20px;
  border-top: 1px solid rgba(1,145,130,0.14);
  color: var(--text);
  font-weight: 600;
}

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

.hero-secondary-actions {
  margin-top: -10px;
}

.hero-secondary-actions .btn {
  flex: 1 1 190px;
  padding: 0 14px;
}

.hero-disclaimer {
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.section-head {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin-bottom: 28px;
}

.cards-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.service-card,
.process-card,
.team-card {
  display: grid;
  gap: 16px;
  padding: 26px;
  min-height: 220px;
}

.service-card h3,
.process-card h3,
.team-card h3,
.faq-trigger,
.contact-link strong {
  font-weight: 800;
  color: var(--text);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.calculator-copy {
  display: grid;
  gap: 20px;
}

.price-section-head {
  max-width: 980px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(400px, 1.02fr) minmax(390px, 0.98fr);
  gap: 20px;
  align-items: start;
}

.calculator-panel,
.tariff-panel {
  padding: 28px;
}

.calculator-panel > h3,
.tariff-panel h3 {
  font-size: 20px;
  margin: 0;
}

.calculator-panel > h3 {
  margin-bottom: 20px;
}

.calculator-panel .rTableBody {
  display: grid;
}

.calculator-panel .row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(1,145,130,0.1);
}

.calculator-panel .row:last-child {
  border-bottom: 0;
  padding-top: 20px;
}

.calculator-panel .caclSelect {
  max-width: 100%;
}

.calculator-panel .ui-selectmenu-button {
  max-width: 100%;
  border-color: rgba(1,145,130,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
}

body.theme-night .calculator-panel .ui-selectmenu-button {
  color: var(--text);
  background: rgba(17,48,54,0.88);
  border-color: rgba(117,223,210,0.17);
}

.calculator-panel .spinner {
  width: 98px;
  padding: 10px 12px;
  border-radius: 12px;
}

.calc-result {
  color: var(--primary-deep);
  font-size: 28px;
}

.tariff-panel {
  display: grid;
  gap: 16px;
}

.tariff-head {
  display: grid;
  gap: 10px;
}

.tariff-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(1,145,130,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.54);
}

body.theme-night .tariff-table-wrap {
  background: rgba(17,48,54,0.6);
  border-color: rgba(117,223,210,0.15);
}

.tariff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text);
}

.tariff-table th,
.tariff-table td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(1,145,130,0.1);
  text-align: right;
  white-space: nowrap;
}

.tariff-table th:first-child,
.tariff-table td:first-child {
  text-align: left;
}

.tariff-table thead th {
  font-weight: 800;
  color: var(--primary-deep);
  background: rgba(1,145,130,0.06);
}

body.theme-night .tariff-table thead th {
  background: rgba(10,176,158,0.12);
}

.tariff-table tbody tr:last-child td {
  border-bottom: 0;
}

.tariff-note {
  font-size: 14px;
  color: var(--muted);
}

.payroll-title {
  margin-top: 6px !important;
}

.tariff-download {
  justify-self: start;
  margin-top: 4px;
}

.calculator-slot {
  min-height: 320px;
}

.slot-frame {
  height: 100%;
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px dashed rgba(1,145,130,0.28);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56)),
    radial-gradient(circle at top right, rgba(212,189,77,0.12), transparent 40%);
  color: var(--primary-deep);
  text-align: center;
  padding: 24px;
}

body.theme-night .slot-frame {
  border-color: rgba(117,223,210,0.22);
  background:
    linear-gradient(135deg, rgba(17,48,54,0.76), rgba(9,30,36,0.76)),
    radial-gradient(circle at top right, rgba(228,206,101,0.1), transparent 42%);
}

.team-grid {
  align-items: stretch;
}

.team-card {
  justify-items: start;
}

.team-photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 16px 34px rgba(11,56,52,0.12);
}

.avatar-fallback {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--primary-deep);
  background: linear-gradient(145deg, rgba(212,189,77,0.26), rgba(1,145,130,0.12));
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.66);
  font-family: "Unbounded", system-ui, sans-serif;
}

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

.split-grid > .card {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.simple-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.simple-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.simple-list li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 18px 38px rgba(11,56,52,0.08);
  overflow: hidden;
}

body.theme-night .faq-item,
body.theme-night .contact-link,
body.theme-night .footer-inner {
  background: rgba(14,40,46,0.78);
  border-color: rgba(117,223,210,0.13);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-inner {
  padding: 0 24px 22px;
  color: var(--muted);
}

.contact-shell {
  display: block;
}

.contact-copy {
  display: grid;
  gap: 22px;
  max-width: 680px;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(1,145,130,0.08);
}

.contact-link span {
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(1,145,130,0.16);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.8);
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

body.theme-night input,
body.theme-night textarea {
  color: var(--text);
  background: rgba(17,48,54,0.86);
  border-color: rgba(117,223,210,0.17);
}

input:focus,
textarea:focus {
  border-color: rgba(1,145,130,0.42);
  box-shadow: 0 0 0 4px rgba(1,145,130,0.1);
}

.site-footer {
  padding: 24px 0 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: 0 18px 38px rgba(11,56,52,0.08);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.footer-copy {
  white-space: nowrap;
}

.decor-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  perspective: 1800px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.snowfall-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.snow-particle {
  position: absolute;
  top: -12px;
  left: var(--snow-x);
  width: var(--snow-dot);
  height: var(--snow-dot);
  border-radius: 50%;
  background: rgba(151, 201, 217, var(--snow-opacity));
  box-shadow: 0 0 7px rgba(151, 201, 217, 0.18);
  animation: gentle-snowfall var(--snow-duration) linear infinite;
  animation-delay: var(--snow-delay);
}

body.theme-night .snow-particle {
  background: rgba(221, 243, 249, var(--snow-opacity));
  box-shadow: 0 0 9px rgba(176, 226, 239, 0.22);
}

@keyframes gentle-snowfall {
  0% {
    transform: translate3d(0, -4vh, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  82% {
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--snow-sway), 106vh, 0);
    opacity: 0;
  }
}

.decor-item {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  filter: saturate(1.28) drop-shadow(0 20px 48px rgba(11,56,52,0.22));
}

.decor-snowflake {
  font-size: var(--snow-size, 64px);
  line-height: 1;
  color: rgba(106, 180, 201, 0.78);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.92),
    0 12px 34px rgba(31,105,133,0.22);
  filter: drop-shadow(0 12px 30px rgba(31,105,133,0.18));
  user-select: none;
}

body.theme-night .decor-snowflake {
  color: rgba(192, 229, 243, 0.86);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.58),
    0 0 22px rgba(107,206,226,0.34);
}

@media (prefers-reduced-motion: reduce) {
  .snow-particle {
    animation: none;
  }
}

.decor-rect {
  border-radius: var(--shape-radius, 26px);
  border: 1px solid rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
}

.decor-triangle {
  width: 0;
  height: 0;
  border-left: var(--tri-size, 70px) solid transparent;
  border-right: var(--tri-size, 70px) solid transparent;
  border-bottom: calc(var(--tri-size, 70px) * 1.2) solid rgba(255,255,255,0.7);
  filter: saturate(1.35) drop-shadow(0 20px 46px rgba(11,56,52,0.2));
}

.variant-glass.decor-rect {
  background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.26));
}

.variant-outline.decor-rect {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.96);
}

.variant-filled.decor-rect {
  background: linear-gradient(145deg, rgba(255,255,255,0.42), rgba(255,255,255,0.12));
}

.tone-teal.decor-rect {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    inset 0 -24px 44px rgba(1,190,172,0.18),
    0 0 0 1px rgba(1,145,130,0.22),
    0 24px 66px rgba(1,145,130,0.22);
}

.tone-gold.decor-rect {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.76),
    inset 0 -24px 44px rgba(236,203,43,0.2),
    0 0 0 1px rgba(212,189,77,0.26),
    0 24px 66px rgba(212,189,77,0.24);
}

.tone-teal.decor-triangle {
  border-bottom-color: rgba(0,174,156,0.42);
}

.tone-gold.decor-triangle {
  border-bottom-color: rgba(226,194,45,0.46);
}

@media (max-width: 1080px) {
  .hero-grid,
  .calculator-layout,
  .pricing-layout,
  .contact-shell,
  .split-grid,
  .cards-grid-5,
  .cards-grid-4,
  .cards-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(330px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 24px;
    display: grid;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .nav-wrap {
    position: relative;
  }

  .nav-wrap.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a:not(.btn) {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.72);
  }

  .nav-cta {
    width: 100%;
  }

  .hero-grid,
  .calculator-layout,
  .pricing-layout,
  .contact-shell,
  .split-grid,
  .cards-grid-5,
  .cards-grid-4,
  .cards-grid-3,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .footer-inner {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 20px, 100% - 20px);
    --body-size: 16px;
    --title-size: 30px;
  }

  .site-header {
    padding: 12px 0;
  }

  .hero-copy,
  .hero-control,
  .calculator-layout,
  .calculator-panel,
  .tariff-panel,
  .contact-shell,
  .split-grid > .card,
  .service-card,
  .process-card,
  .team-card {
    padding: 22px;
  }

  .btn,
  .contact-link,
  .faq-trigger {
    min-height: 50px;
  }

  .brand img {
    width: 180px;
  }

  .hero-control h2 {
    font-size: 26px;
  }

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

  .calculator-panel .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-result {
    font-size: 24px;
  }
}
