:root {
  --bg: #f5f3ee;
  --soft: #ebe7df;
  --text: #212523;
  --accent: #3b5758;
  --brand: #3b5758;
  --brand-dark: #2f4748;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container { width: min(1080px, 92%); margin: 0 auto; }
.section { padding: 44px 0; }
.section-soft { background: var(--soft); }
.hero { background: linear-gradient(120deg, #dce3de, #f8f6f2); }
.hero.section {
  padding-top: 0;
  padding-bottom: 40px;
}
.site-logo-wrap {
  margin: 9px 0 !important;
  padding: 0 !important;
  line-height: 0;
  display: block;
}
.site-logo {
  display: block;
  width: 507px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: top;
  image-rendering: auto;
}
.hero-topline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.hero-logo-wrap {
  margin: 9px 0 !important;
  padding: 0 !important;
}
.site-logo-text {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.hero-photo {
  width: 100%;
  border-radius: 20px;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.08) brightness(1.05);
  box-shadow: 0 20px 45px rgba(53, 66, 65, 0.2);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(30px, 5vw, 52px); max-width: 860px; }
h2 { font-size: clamp(26px, 4vw, 40px); }
.lead { font-size: 20px; max-width: 720px; }
.badge { display: inline-block; padding: 8px 14px; border-radius: 20px; background: #d6e1dc; margin: 0 !important; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
}
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 24px rgba(59, 87, 88, 0.25); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.cta-pulse {
  animation: ctaPulse 1.9s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 24px rgba(59, 87, 88, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 14px 32px rgba(59, 87, 88, 0.38);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-pulse { animation: none; }
}
.package-order-btn {
  margin-bottom: 14px;
}

.ticks, .list, .steps { padding-left: 20px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: transparent;
  border-radius: 18px;
  padding: 20px;
  border: 1px solid #dee2dc;
  box-shadow: 0 8px 22px rgba(32, 45, 45, 0.08);
}
.card-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: saturate(1.14) contrast(1.08) brightness(1.05);
  display: block;
  margin-bottom: 14px;
}
.accent { font-weight: 700; color: var(--accent); }
.price { font-weight: 700; color: var(--brand); margin: 0 0 12px; }
.cases { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.case {
  background: transparent;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  display: inline-block;
  width: auto;
  max-width: 100%;
}
.case img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 347px;
  object-fit: cover;
  object-position: center;
  filter: none;
  display: block;
  background: transparent;
  image-rendering: auto;
  transition: none;
  margin: 0;
}
.case figcaption {
  padding: 12px 16px 14px 22px;
  font-weight: 600;
  line-height: 1.35;
  min-height: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}
blockquote { margin: 0 0 12px; padding: 14px 16px; background: var(--white); border-left: 4px solid var(--brand); border-radius: 10px; }
.projects-carousel {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
}
.projects-track {
  display: flex;
  width: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}
.slide {
  min-width: 100%;
  margin: 0;
  padding: 0;
  opacity: 1;
  transform: none;
  transition: none;
  z-index: 1;
  display: flex;
  justify-content: center;
}
.slide.is-prev,
.slide.is-next {
  opacity: 1;
  z-index: 2;
}
.slide.is-active {
  opacity: 1;
  z-index: 3;
}
.slide.is-prev .case img,
.slide.is-next .case img {
  filter: none;
}
.slide.is-active .case img {
  filter: none;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccd3ce;
  background: var(--white);
  color: var(--brand);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.carousel-nav.prev { left: 0; }
.carousel-nav.next { right: 0; }
.carousel-nav:hover { border-color: var(--brand); }
.carousel-dots {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bcc5c0;
}
.dot.active { background: var(--brand); }
.reviews-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.review-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #dde2dc;
  padding: 14px 16px;
}
.review-card p { margin: 0 0 10px; }
.review-card span {
  color: #5f6763;
  font-size: 14px;
}
.reviews-widget-wrap {
  width: min(100%, 760px);
  height: 800px;
  overflow: hidden;
  position: relative;
}
.reviews-widget-frame {
  width: 100%;
  height: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-sizing: border-box;
}
.reviews-widget-link {
  box-sizing: border-box;
  text-decoration: none;
  color: #b3b3b3;
  font-size: 10px;
  font-family: "YS Text", Arial, sans-serif;
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-height: 14px;
  white-space: nowrap;
  padding: 0 16px;
}
.brands-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.brands-collapse {
  position: relative;
  overflow: hidden;
  max-height: 420px;
  transition: max-height 0.35s ease;
}
.brands-collapse.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(235, 231, 223, 0), rgba(235, 231, 223, 1));
  pointer-events: none;
}
.brands-collapse.is-expanded {
  max-height: 2200px;
}
.brands-toggle { min-width: 220px; }
.brand-item {
  background: var(--white);
  border: 1px solid #dde2dc;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.brand-item img {
  width: 100%;
  max-width: 120px;
  max-height: 38px;
  object-fit: contain;
  filter: saturate(1.12) brightness(1.03);
}

/* Glossy highlight overlay for key visual blocks */
.hero-photo,
.card-photo,
.case img {
  position: relative;
}
.case {
  position: relative;
}
.case::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0) 60%
  );
}

.quiz { background: var(--white); border-radius: 18px; padding: 20px; }
.quiz-progress { height: 8px; background: #d8d8d8; border-radius: 4px; margin-bottom: 18px; }
.quiz-progress-fill { height: 100%; width: 0%; border-radius: 4px; background: var(--brand); transition: width .25s; }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-option {
  display: block; width: 100%; text-align: left;
  margin-bottom: 10px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid #ccd3ce; background: #fafafa; cursor: pointer;
}
.quiz-option:hover { border-color: var(--brand); background: #f2f6f4; }
.quiz-option.is-picked {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(59, 87, 88, 0.2);
  background: #f0f6f4;
}
.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}
.quiz-option-visual {
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}
.quiz-option-visual img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.quiz-option-visual span {
  display: block;
  padding: 10px 12px 12px;
  font-weight: 600;
}
.micro { display: block; min-height: 20px; color: var(--brand); margin-top: 8px; }
input {
  width: 100%; margin-bottom: 10px; padding: 12px;
  border: 1px solid #ccd3ce; border-radius: 10px;
}
.muted { color: #666; font-size: 14px; margin-top: 8px; }

.floating-call {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 700;
}
.faq-list details {
  background: var(--white);
  border: 1px solid #dde2dc;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-list p { margin: 10px 0 0; }
.map-wrap {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dde2dc;
}
.map-frame {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}
.final .site-logo-wrap {
  margin: 9px 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.final .site-logo {
  width: 260px;
  max-width: 100%;
  height: auto;
}
.credit-footer {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(59, 87, 88, 0.16);
  background: linear-gradient(180deg, rgba(245, 243, 238, 0.65), rgba(245, 243, 238, 1));
}
.credit-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5c6764;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.credit-badge {
  margin-left: 10px;
  min-width: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(31, 31, 31, 0.2);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(6px);
  color: #161616;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.credit-badge:hover {
  border-color: rgba(31, 31, 31, 0.35);
  transform: translateY(-1px);
}
.credit-dk {
  font-family: "Inter", "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.credit-studio {
  font-family: "Inter", "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2b2b2b;
}
.credit-inner p { margin: 0; }
.credit-inner span {
  color: #2f4748;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero.section {
    padding-top: 0;
    padding-bottom: 28px;
  }
  .section { padding: 30px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 280px; }
  .hero-topline {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
  }
  .hero-logo-wrap { order: 1; flex: 0 0 auto; }
  .badge { order: 2; }
  .site-logo {
    width: 140px;
    max-width: 100%;
    height: auto;
  }
  .final .site-logo {
    width: 180px;
    max-width: 100%;
    height: auto;
  }
  .credit-footer { padding: 14px 0 18px; }
  .credit-inner { font-size: 12px; }
  .site-logo-text { font-size: 18px; }
  .hero-cta {
    padding: 11px 16px;
    font-size: 14px;
    line-height: 1.25;
  }
  .reviews-widget-wrap { height: 620px; }
  .map-frame { height: 280px; }
  .slide {
    min-width: 100%;
    margin-right: 0;
    padding: 0;
  }
  .projects-carousel {
    padding: 0;
  }
  .case img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 240px;
  }
  .case figcaption {
    min-height: 0;
    font-size: 14px;
    padding: 12px 12px 14px 16px;
  }
  .brands-collapse {
    max-height: 300px;
  }
  .carousel-nav {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}
