:root {
  --primary: #0D9488;
  --primary-light: #CCFBF1;
  --primary-dark: #0F766E;
  --bg: #F1F5F9;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --error: #EF4444;
  --font: "Inter Tight", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ad label */
.ad-label {
  text-align: center;
  padding: 8px 0;
  background: var(--bg);
}
.ad-label p {
  margin: 0;
  font-size: 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 12px;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  background: var(--surface);
  border-radius: 16px;
  padding: 10px 16px;
  max-height: 56px;
}
.header-spacer { width: 70px; }
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-text {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.header-cta { display: flex; align-items: center; }
.header-btn {
  padding: 8px 14px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.25s ease;
}
.header-btn:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 600px) {
  .header-spacer { display: none; }
  .header-inner { border-radius: 0; }
}

/* Main */
main {
  flex: 1;
  padding: 24px 16px;
  margin: 0 auto;
  width: 100%;
}
.content-wrapper {
  display: flex;
  justify-content: center;
}
.main-article {
  max-width: 1200px;
  width: 100%;
  background: var(--surface);
  border-radius: 28px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

@media (max-width: 600px) {
  main { padding: 10px 0; }
  .main-article { border-radius: 0; padding: 20px 14px; gap: 36px; }
}

/* Hero */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-text h1 {
  font-size: 28px;
  line-height: 36px;
  margin: 0 0 16px;
}
.subtitle {
  font-size: 18px;
  line-height: 26px;
  color: var(--text-secondary);
  margin: 0;
}
.hero-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.hero-image-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Text sections */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section h2 {
  font-size: 24px;
  line-height: 30px;
  margin: 0;
}
.text-section p {
  font-size: 17px;
  line-height: 26px;
  margin: 0;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.4;
}
.feature-card h3 {
  font-size: 18px;
  margin: 0;
  line-height: 24px;
}
.feature-card p {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Stats */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 20px 0;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-value {
  font-size: 42px;
  line-height: 42px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(180deg, #0D9488 -20%, #1E40AF 140%);
  -webkit-background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .stats-row { flex-direction: column; gap: 24px; align-items: center; }
}

/* Chart */
.chart-box {
  background: var(--surface);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.chart-title {
  text-align: center;
  font-size: 18px;
  margin: 0 0 16px;
}
.chart-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 300px;
}
@media (max-width: 600px) {
  .chart-box {
    padding: 10px 4px;
  }
  .chart-canvas-wrap {
    min-height: 260px;
  }
  .chart-title {
    font-size: 15px;
  }
}

/* Calculator */
.calculator {
  display: flex;
  gap: 16px;
}
.calc-sliders {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slider-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
}
.slider-box h4 {
  margin: 0 0 15px;
  font-size: 15px;
  font-weight: 500;
}
.slider-container { position: relative; }
.value-tooltip-wrapper {
  position: absolute;
  left: 0;
  top: -65px;
  width: 100%;
  pointer-events: none;
  height: 0;
  z-index: 10;
}
.value-tooltip-group {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: left 0.15s;
}
.value-tooltip {
  background: #1E293B;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.tooltip-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #1E293B;
  margin-top: -1px;
}
.range-track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: #fff;
  margin-top: 18px;
  margin-bottom: 8px;
  overflow: visible;
}
.range-fill {
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 6px;
  transition: width 0.15s;
}
.range-thumb {
  position: absolute;
  top: -9px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.15s;
  z-index: 3;
}
.thumb-dot {
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
}
input[type=range] {
  position: absolute;
  width: 100%;
  height: 20px;
  opacity: 0;
  z-index: 4;
  top: -10px;
  left: 0;
  margin: 0;
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.range-labels span {
  font-size: 12px;
  color: var(--text-secondary);
  background: #fff;
  padding: 0 6px;
  border-radius: 4px;
}
.calc-result {
  flex: 1;
  background: var(--bg);
  border-radius: 16px;
  padding: 50px 30px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  justify-content: center;
}
.calc-result-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.calc-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
}

@media (max-width: 768px) {
  .calculator { flex-direction: column; }
}

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
}
.step-divider {
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.step-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.step-circle {
  min-width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}
.step-row p {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}
.steps-cta {
  display: flex;
  justify-content: flex-end;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease;
  text-align: center;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}
.btn-wide { min-width: 200px; }
.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 16px;
}

/* Form */
.form-wrapper {
  display: flex;
  justify-content: center;
}
.registration-form {
  max-width: 580px;
  width: 100%;
  background: var(--primary);
  border-radius: 24px;
  padding: 16px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
}
.form-heading {
  font-size: 19px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin: 0;
}
.form-fields {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.form-group label {
  font-size: 12px;
  color: var(--text-secondary);
}
.form-input {
  padding: 0 10px;
  height: 42px;
  border-radius: 10px;
  background: #F8FAFC;
  border: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  font-size: 14px;
  width: 100%;
}
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px rgba(13,148,136,0.2);
}
.form-error {
  display: none;
  font-size: 12px;
  color: var(--error);
  text-align: right;
  position: absolute;
  top: 100%;
  right: 0;
}
.phone-row {
  display: flex;
  height: 42px;
  border-radius: 10px;
  background: #F8FAFC;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
  overflow: hidden;
}
.country-code {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 14px;
  border-right: 1px solid rgba(0,0,0,0.1);
}
.phone-input {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.form-security {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.form-security p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  margin: 0;
}
.form-submit-wrap { display: contents; }
.form-preloader-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  border-radius: 24px;
  display: none;
}
.form-preloader-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}
.form-preloader {
  width: 44px;
  height: 44px;
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* FAQ */
.faq-section {
  background: var(--bg);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq-section h2 {
  font-size: 24px;
  margin: 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  border-bottom: 1px solid #D1D5DB;
  padding-bottom: 16px;
}
.faq-header {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.faq-num {
  font-size: 18px;
  color: var(--text);
  opacity: 0.4;
  min-width: 30px;
}
.faq-question {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 24px;
}
.faq-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}
.faq-toggle.active {
  background: var(--primary);
}
.faq-icon-plus {
  color: var(--text);
  display: block;
}
.faq-icon-minus {
  display: none;
}
.faq-toggle.active .faq-icon-plus { display: none; }
.faq-toggle.active .faq-icon-minus { display: block; }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  padding-left: 46px;
}
.faq-answer.open {
  opacity: 1;
}
.faq-answer p {
  font-size: 16px;
  line-height: 24px;
  margin: 12px 0 0;
  color: var(--text-secondary);
}
.faq-cta {
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .faq-section { padding: 18px; }
  .faq-question { font-size: 15px; }
  .faq-toggle { width: 34px; height: 34px; }
  .faq-answer { padding-left: 0; }
}

/* Comments */
.comments-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comments-heading {
  font-size: 20px;
  margin: 0;
}
.comment {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.comment-avatar {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.comment-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comment-meta {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}
.comment-meta strong {
  color: var(--text);
}
.comment-text {
  font-size: 15px;
  line-height: 22px;
  margin: 0;
}
.comment-actions {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.like-count::before {
  content: '👍 ';
}
.dislike-count::before {
  content: '👎 ';
}

/* Important note */
.important-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.important-note p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
footer {
  background: #1E293B;
  color: #CBD5E1;
  padding: 50px 0 70px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  justify-content: center;
}
.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 13px;
  margin: 0 8px;
}
.footer-links a:hover {
  color: #fff;
}
.footer-disclaimers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-disclaimers p {
  font-size: 12px;
  line-height: 18px;
  margin: 0;
}

@media (max-width: 600px) {
  .footer-links { flex-direction: column; align-items: center; }
}
