:root {
  --bg: #FFFDF9;
  --surface: #FFFFFF;
  --text: #1F2937;
  --muted: #6B7280;
  --brand: #F97316;
  --brand2: #22C55E;
  --accent: #2563EB;
  --line: rgba(31, 41, 55, 0.12);
  --shadow: 0 16px 36px rgba(31, 41, 55, 0.10);
  --white: #FFFFFF;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ee 30%, #fffdf9 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
}

main {
  min-height: 65vh;
}

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.2;
}

.section p.lead,
.muted {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.btn-brand {
  background: var(--brand);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost {
  background: rgba(249, 115, 22, 0.1);
  color: #bf5b12;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.brand span {
  font-weight: 700;
  letter-spacing: 0.1px;
  font-size: clamp(0.92rem, 1.8vw, 1.08rem);
  line-height: 1.1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.main-nav a {
  font-weight: 500;
  color: var(--muted);
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.nav-cta {
  display: inline-flex;
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn span {
  width: 19px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 19px;
  height: 2px;
  background: var(--text);
}

.menu-btn span::before {
  top: -6px;
}

.menu-btn span::after {
  top: 6px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 0 14px;
}

.mobile-panel.open {
  display: block;
  animation: slideDown 0.24s ease;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-links a {
  color: var(--text);
  font-weight: 500;
  padding: 9px 2px;
}

.mobile-links .btn {
  margin-top: 6px;
  width: fit-content;
}

.hero {
  min-height: 80vh;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  position: relative;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(17, 24, 39, 0.8) 20%, rgba(17, 24, 39, 0.45) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  color: var(--white);
  padding: 70px 0;
}

.hero h1 {
  margin: 0 0 14px;
  line-height: 1.12;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.hero p {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9);
}

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

.chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-image {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-body {
  padding: 14px;
}

.card h3,
.card h4 {
  margin: 0;
  line-height: 1.3;
}

.price {
  margin-top: 8px;
  color: var(--brand2);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.value-card {
  padding: 18px;
}

.value-card .icon-dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.14);
  display: grid;
  place-items: center;
  color: #159947;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.testimonial {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 16px;
}

.final-cta {
  border-radius: 18px;
  background: linear-gradient(135deg, #fff5e7, #eef8ff);
  border: 1px solid var(--line);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  cursor: pointer;
}

.filter-chip.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.select-input,
.text-input,
.textarea,
.select {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  min-height: 42px;
  padding: 9px 12px;
  width: 100%;
  font: inherit;
}

.select-input {
  width: 180px;
}

.deal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1300;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-content {
  padding: 16px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.helper-wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.05fr 1fr;
}

.helper-result {
  border: 1px dashed rgba(34, 197, 94, 0.65);
  border-radius: 16px;
  padding: 16px;
  background: #f6fffa;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 14px;
  cursor: pointer;
}

.faq-content {
  display: none;
  padding: 0 14px 14px;
  color: var(--muted);
}

.faq-item.open .faq-content {
  display: block;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.form-full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.error {
  color: #dc2626;
  min-height: 18px;
  font-size: 12px;
}

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

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  background: #111827;
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  display: none;
  cursor: pointer;
  z-index: 1100;
}

.scroll-top.show {
  display: inline-grid;
  place-items: center;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-grid {
  padding: 40px 0 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
}

.footer-grid h4 {
  margin: 0 0 10px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .helper-wrap,
  .modal-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .nav-wrap {
    min-height: 64px;
    flex-wrap: nowrap;
  }

  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    flex-shrink: 0;
  }

  .mobile-panel {
    display: none;
  }

  .mobile-panel.open {
    display: block;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 1200;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .testimonials,
  .helper-wrap,
  .footer-grid,
  .form-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .select-input {
    width: 100%;
  }

  .hero-content {
    padding: 56px 0;
  }

  .section {
    padding: 42px 0;
  }
}

@media (max-width: 480px) {
  .btn {
    height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .brand span {
    font-size: 0.88rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
