:root {
  --bg: #f7f5e6;
  --text: #555;
  --accent: #f5c53d;
  --card-bg: #d1dce7;
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 20px;
  overflow-x: hidden;
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transform: scale(0.94);
  //transition: opacity 0.4s ease,0.4s ease;
  transition:
    opacity 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67),
    transform 0.6s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  z-index: 1;
}

.page.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.page:not(.active) {
  filter: blur(0px);
}

#page-result {
  height: auto;
}

.page.hidden {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.3;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
  text-align: center;
  margin-bottom: 24px;
}

.placeholder-img {
  width: 100%;
  max-width: 400px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:1.2rem;
  margin: 20px 0;
  color: #aaa;
}

/* Прогресс-бар */
.progress-bar {
  width: 100%;
  max-width: 500px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

/* Селекторы слева (кружки) */
.option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
    margin-bottom: 20px;
}

.option:hover {
  background: rgba(255, 255, 255, 0.15);
}

.selector {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #aaa;
  flex-shrink: 0;
  margin-top: 4px;
  transition: var(--transition);
}

.option:hover .selector,
.option.selected .selector {
  background: #0c9d2ad4;
}

.option input {
  display: none;
}

.option span:not(.selector) {
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;
}

.question {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 500px;
}

.quest {
    background: var(--card-bg);
    border-radius: var(--border-radius);
padding: 20px 20px 0px 20px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 500px;
}

.btn {
  background-color: #0c9d2ad4;
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(245, 197, 61, 0.4);
}

.btn:disabled {
  background: #5555553b;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 197, 61, 0.6);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  margin-top: 12px;
}

/* Список ответов */
.answers-list {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  padding: 20px;
  width: 100%;
  max-width: 500px;
  margin-bottom: 24px;
}

.answers-list h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  text-align: left;
}

.answers-list ul {
  list-style: none;
  padding: 0;
}

.answers-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1.05rem;
}

.answers-list li:last-child {
  border-bottom: none;
}

.final-header {
  text-align: center;
  margin-bottom: 32px;
}

.checkmark {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  width: 100%;
}

.contact-buttons a {
  display: block;
  text-decoration: none;
  text-align: center;
}


#result-description p {
	text-align: left;
	margin-bottom: 14px;
}

#blok1, #blok2, #blok3, #blok4, #blok5 {
	background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    /* padding: 20px 20px 1px 20px; */
	padding: 10px 10px 1px 10px;
    width: 100%;
    max-width: 500px;
    /*margin-bottom: 24px;*/

}

/* Mobile */
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.4rem; }
  .btn { padding: 14px 24px; font-size: 1rem; width: 100%}
  .placeholder-img { height: 160px; font-size: 1rem; }
  .selector { width: 20px; height: 20px; }
}

.loading-step {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
}
.loading-step span {
  flex-shrink: 0;
}