 :root{
      --accent:#f98600;
      --accent-light:#ffb069;
      --gray:#6b6b6b;
      --gray-light:#e0e0e0;
      --bg:#f7f7f8;
      --maxw:1100px;
      --radius:14px;
      --gap:18px;
      --shadow: 0 8px 30px rgba(18,18,18,0.06);
      --font-system: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;font-family:var(--font-system);color:#222;background:var(--bg);-webkit-font-smoothing:antialiased;line-height:1.45;
    }
    .container{max-width:var(--maxw);margin:0 auto;padding:24px}
    header{background:white;border-radius:12px;padding:12px 18px;margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:var(--shadow)}
    .brand{display:flex;align-items:center;gap:12px}
    .logo{width:48px;height:48px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#ffb069);display:flex;align-items:center;justify-content:center;color:white;font-weight:700}
    nav{display:flex;gap:14px;align-items:center}
    .nav-link{color:var(--gray);text-decoration:none;padding:8px;border-radius:8px;font-weight:600}
    .nav-link:hover{color:#111}
    .btn{background:var(--accent);color:white;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700;transition:all 0.2s ease}
    .btn:hover{background:var(--accent-light);transform:translateY(-2px)}

    /* mobile menu */
    .menu-toggle{display:none;border:0;background:transparent;font-size:20px;cursor:pointer}
    .dropdown{position:relative}
    .dropdown-menu{position:absolute;right:0;top:46px;background:white;border-radius:10px;box-shadow:var(--shadow);padding:8px;display:none;min-width:180px;z-index:100}
    .dropdown-menu a{display:block;padding:8px 12px;color:#333;text-decoration:none;border-radius:6px}
    .dropdown-menu a:hover{background:#f5f5f6}

    /* hero */
    .hero{display:grid;grid-template-columns:1fr 430px;gap:24px;margin-top:22px;align-items:center}
    .hero-left{padding:28px;background:white;border-radius:12px;box-shadow:var(--shadow)}
    h1{margin:0 0 8px;font-size:28px}
    p.lead{color:var(--gray);margin:0 0 16px}

    /* calculator card - IMPROVED */
    .card{background:white;padding:22px;border-radius:12px;box-shadow:var(--shadow)}
    .calc-row{display:flex;gap:12px;align-items:center;margin-bottom:16px}
    .range{width:100%;height:8px;-webkit-appearance:none;appearance:none;background:var(--gray-light);outline:none;border-radius:4px}
    .range::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:var(--accent);cursor:pointer;border:2px solid white;box-shadow:0 2px 6px rgba(0,0,0,0.15)}
    .range::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--accent);cursor:pointer;border:2px solid white;box-shadow:0 2px 6px rgba(0,0,0,0.15)}
    .calc-label{font-size:14px;font-weight:600;color:var(--gray);margin-bottom:6px;display:block}
    .calc-value{font-size:16px;font-weight:700;color:var(--accent);margin-top:4px}
    .calc-slider-info{display:flex;justify-content:space-between;margin-top:6px;font-size:12px;color:var(--gray)}
    .result{font-size:20px;font-weight:800;color:var(--accent)}
    .small{font-size:13px;color:var(--gray)}
    .calc-summary{background:#f9f9f9;padding:16px;border-radius:10px;margin-top:16px}
    .calc-summary-row{display:flex;justify-content:space-between;margin-bottom:8px}
    .calc-summary-row:last-child{margin-bottom:0;border-top:1px solid var(--gray-light);padding-top:8px;font-weight:700}

  
  /* Quiz - IMPROVED */
  .quiz-container {
    position: relative;
  }
  
  .quiz-progress {
    margin-bottom: 24px;
  }
  
  .progress-bar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
  }
  .nav-active{
	  
    color: #f98600;
  }
  .progress-fill {
    height: 100%;
    background-color: var(--accent);
    width: 20%;
    transition: width 0.3s ease;
  }
  
  .progress-text {
    font-size: 14px;
    color: var(--gray);
    text-align: center;
  }
  
  .quiz-step {
    display: none;
  }
  
  .quiz-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .quiz-question {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 18px;
  }
  
  .quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }
  
  .quiz-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
  }
  
  .quiz-option:hover {
    background: #f0f0f0;
  }
  
  .quiz-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
  }
  
  .quiz-option label {
    cursor: pointer;
    width: 100%;
    font-size: 16px;
  }
  
  .quiz-navigation {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  
  .reviews-navigation {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  .btn-secondary {
    background: #e0e0e0;
    color: #333;
  }
  
  .btn-secondary:hover {
    background: #d0d0d0;
  }
  
  .quiz-result {
    display: none;
    text-align: center;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-top: 20px;
  }
  
  .quiz-result.show {
    display: block;
    animation: fadeIn 0.5s ease;
  }
  
  .result-percent {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
  }
  
  .result-text {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
  }
    /* reviews */
    .reviews{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}
    .review{background:white;padding:16px;border-radius:12px}
    .stars{color:#f1c40f}
/* FAQ */
.faq {
  padding: 32px;
  border-radius: 16px;
  margin-top: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.faq h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #111827;
  text-align: center;
}

.faq details {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 14px 18px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.faq details:hover {
  border-color: #3b82f6;
}

.faq summary {
  font-weight: 600;
  color: #1f2937;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-weight: bold;
  color: var(--accent-light);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.faq p {
  margin-top: 12px;
  color: #4b5563;
  line-height: 1.5;
}

    footer{margin-top:18px;padding:16px;border-radius:12px;background:white;box-shadow:var(--shadow)}

    /* responsive - IMPROVED mobile menu */
    @media(max-width:1000px){
      .hero{grid-template-columns:1fr 1fr}
      .reviews{grid-template-columns:repeat(2,1fr)}
    }
    @media(max-width:720px){
      .container{padding:12px}
      header{flex-direction:row;align-items:center;position:relative}
      .menu-toggle{display:block;position:absolute;right:18px;top:50%;transform:translateY(-50%)}
      nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;flex-direction:column;padding:16px;margin-top:10px;border-radius:12px;box-shadow:var(--shadow);z-index:1000}
      nav.open{display:flex}
      .dropdown-menu{position:static;box-shadow:none;margin-top:8px;display:none}
      .dropdown-menu.open{display:block}
      .hero{grid-template-columns:1fr;}
      .reviews{grid-template-columns:1fr}
      .quiz-options{flex-direction:column}
    }
	.figure-center {
  margin-top: 12px;
  text-align: center;
}

.figure-center img {
  width: 100%;       /* на всю ширину родителя */
  max-width: 600px;  /* ограничение для больших экранов */
  height: auto;      /* сохраняет пропорции */
}

.figure-center figcaption {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}

.mt10{
	
    margin-top: 10px;
}

button {
  outline: none; /* убирает стандартную обводку при фокусе */
  border: none;  /* если не нужен border */
  
    cursor: pointer;
}

button:focus {
  outline: none;
  box-shadow: none; /* убирает подсветку у некоторых браузеров */
}
.button-wrapper {
  text-align: center; /* центрируем встроенные/inline-block элементы */
  margin: 20px 0; /* отступ сверху и снизу при необходимости */
}


.lk-link {
  display: inline-block; /* чтобы ширина соответствовала тексту */
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 9999;
}

.lk-link:hover {
  background: #000; /* при наведении */
  transform: scale(1.05);
}




.floating-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 9999;
}

.floating-link:hover {
  background: #000; /* при наведении можно заменить */
  transform: scale(1.05);
}

/* Для мобильных */
@media (max-width: 768px) {
  .floating-link {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}
