:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-accent: #e6f0fa;
  --primary: #2a6df4;
  --primary-strong: #1f57c7;
  --text: #1e293b;
  --muted: #475569;
  --success: #10b981;
  --border: #dbe4ef;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid #dbe4ef;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.15);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
}

.tg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-accent);
  color: var(--primary);
  font-weight: 700;
}

.hero {
  padding: 72px 0 48px;
  background: radial-gradient(80% 70% at 90% 10%, #dbeafe 0%, #ffffff 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.hero-art {
  min-height: 0;
  border-radius: var(--radius-lg);
  background: #f7fbff;
  border: 1px solid #d7e4f7;
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.8vw, 1.35rem); }

p.lead { color: var(--muted); font-size: 1.06rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: none;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
  text-decoration: none;
}

.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }

.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.icon-dot {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-accent);
  color: var(--primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

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

.results-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.range-row { margin-bottom: 16px; }
.range-row label { font-weight: 600; display: flex; justify-content: space-between; margin-bottom: 6px; }
input[type="range"] { width: 100%; accent-color: var(--primary); }

.result-box {
  border-radius: var(--radius-lg);
  border: 1px solid #bfdbfe;
  background: #f8fbff;
  padding: 16px;
}

.result-value {
  color: var(--success);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th, td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; }
th { background: #eef4ff; }

.carousel-wrap { position: relative; }
.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px;
}

.review-meta { color: var(--muted); font-size: .93rem; margin-bottom: 8px; }
.review-result { font-weight: 800; color: var(--primary); margin-top: 8px; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.ctrl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
}

.dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #cdd8ea; }
.dot.active { background: var(--primary); }

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

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

textarea { min-height: 130px; resize: vertical; }

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

.faq-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
}

.faq-panel { display: none; padding: 0 14px 14px; color: var(--muted); }
.faq-item.open .faq-panel { display: block; }

.site-footer {
  background: var(--bg-soft);
  margin-top: 56px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 28px 0;
}

.footer-title { font-weight: 700; margin-bottom: 8px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

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

.map-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.map-frame {
  width: 100%;
  height: 320px;
}


@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .results-wrap { grid-template-columns: 1fr 1fr; }
  .review-form .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }

  .carousel-track {
    grid-template-columns: 1fr 1.4fr 1fr;
  }

  .review-card.side {
    opacity: .5;
    transform: scale(.94);
  }

  .review-card.center {
    transform: scale(1.01);
  }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
  }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; }
}
