:root {
  --color-base: #F8F7F2;
  --color-spring: #D3E4D8;
  --color-summer: #F2E2B3;
  --color-autumn: #CDBBA4;
  --color-winter: #B0C4D1;
  --color-text: #5A5A58;
  --color-accent: #D3E4D8;
  
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Crimson Pro', serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  
  --shadow-sm: 0 2px 8px rgba(90, 90, 88, 0.08);
  --shadow-md: 0 4px 16px rgba(90, 90, 88, 0.12);
  --shadow-lg: 0 8px 24px rgba(90, 90, 88, 0.16);
  
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 500;
}

button:hover, .btn:hover {
  background: var(--color-text);
  color: var(--color-base);
}

button:focus, .btn:focus, .quiz-option:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

button:focus-visible, .btn:focus-visible, .quiz-option:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md) 0;
  z-index: 1000;
  transition: var(--transition-base);
  background-color: rgb(252, 249, 234);
}

header.scrolled {
  position: fixed;
  background: rgba(248, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

nav a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-fast);
}

nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition-base);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.35rem, 0.35rem);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.35rem, -0.35rem);
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--color-spring) 0%, var(--color-summer) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../visual/bg-image-1.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 0;
}

.hero-content {
  max-width: 50rem;
  position: relative;
  z-index: 1;
  background-color: rgba(248, 247, 242, 0.5);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  opacity: 0.9;
}

section {
  padding: var(--space-xl) 0;
}

.section-header {
  text-align: center;
  max-width: 45rem;
  margin: 0 auto var(--space-lg);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.season-card {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-radius: var(--radius-lg);
}

.season-spring { background: var(--color-spring); }
.season-summer { background: var(--color-summer); }
.season-autumn { background: var(--color-autumn); }
.season-winter { background: var(--color-winter); }

.icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.contact-section {
  background: linear-gradient(to bottom, var(--color-winter), var(--color-base));
  padding: var(--space-xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-item i {
  font-size: 1.3rem;
  margin-top: 0.2rem;
}

.form-wrapper {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(90, 90, 88, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 8rem;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 0.2rem;
}

.checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.4;
}

.map-container {
  width: 100%;
  height: 20rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

footer {
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--color-text);
  color: var(--color-base);
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-base);
  font-size: 0.85rem;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-bottom {
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(248, 247, 242, 0.2);
  font-size: 0.8rem;
  opacity: 0.8;
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-text);
  color: var(--color-base);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(100%);
  transition: var(--transition-slow);
}

.privacy-popup.active {
  transform: translateY(0);
}

.privacy-content {
  max-width: 60rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.privacy-content p {
  margin: 0;
  font-size: 0.85rem;
  flex: 1;
  min-width: 15rem;
}

.privacy-buttons {
  display: flex;
  gap: var(--space-sm);
}

.privacy-buttons button {
  border-color: var(--color-base);
  color: var(--color-base);
}

.privacy-buttons button:hover {
  background: var(--color-base);
  color: var(--color-text);
}

.quiz-container {
  max-width: 45rem;
  margin: 0 auto;
}

.quiz-submit {
  min-width: 12rem;
  font-size: 1rem;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-text);
  color: var(--color-base);
  border: 2px solid var(--color-text);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

.quiz-submit:hover {
  background: transparent;
  color: var(--color-text);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.quiz-submit:active {
  transform: scale(0.98);
}

.quiz-question {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-md);
}

.quiz-options {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quiz-option {
  padding: var(--space-md);
  border: 2px solid rgba(90, 90, 88, 0.2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  text-align: left;
  width: 100%;
  background: white;
  position: relative;
  overflow: hidden;
}

.quiz-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(211, 228, 216, 0.3), transparent);
  transition: var(--transition-base);
}

.quiz-option p {
      font-size: 0.85rem;
      margin: 0;
      color: var(--color-text);
}

.quiz-option:hover::before {
  left: 100%;
}

.quiz-option:hover {
  border-color: var(--color-text);
  background: rgba(211, 228, 216, 0.1);
  transform: translateX(0.25rem);
  box-shadow: var(--shadow-sm);
}

.quiz-option.selected {
  border-color: var(--color-text);
  background: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: scale(1.02);
  position: relative;
}

.quiz-option.selected::after {
  content: '✓';
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  from {
    transform: scale(0) rotate(-45deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.quiz-option strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--color-text);
  font-size: 1rem;
}

.quiz-result {
  padding: var(--space-lg);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: slideUp 0.5s ease;
  border: 3px solid var(--color-accent);
  position: relative;
  overflow: hidden;
}

.quiz-result::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: shimmer 2s ease-in-out;
}

@keyframes shimmer {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.quiz-result h3 {
  color: var(--color-text);
  font-size: 1.8rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.quiz-result p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.quiz-result-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
  position: relative;
  z-index: 1;
  animation: bounce 1s ease;
}

.quiz-result > div,
.quiz-result > a,
.quiz-result > button {
  position: relative;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.quiz-question {
  animation: fadeIn 0.6s ease;
}

.quiz-question:nth-child(2) {
  animation-delay: 0.1s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quiz-question:nth-child(3) {
  animation-delay: 0.2s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quiz-question:nth-child(4) {
  animation-delay: 0.3s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.quiz-question:nth-child(5) {
  animation-delay: 0.4s;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-content > div:first-child {
  animation: fadeIn 1s ease;
}

.hero-content > div:first-child i {
  transition: var(--transition-base);
  cursor: pointer;
}

.hero-content > div:first-child i:hover {
  transform: scale(1.2) rotate(5deg);
}

.quiz-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-wrapper i {
  transition: var(--transition-base);
}

.season-card:hover .icon-wrapper i {
  transform: scale(1.1) rotate(5deg);
}

.quiz-progress {
  animation: fadeIn 0.6s ease;
}

.quiz-progress div > div {
  animation: slideIn 0.8s ease;
}

@keyframes slideIn {
  from {
    width: 0 !important;
  }
}

.thank-you-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 35rem;
  padding: var(--space-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.thank-you-content i {
  font-size: 4rem;
  color: var(--color-spring);
  margin-bottom: var(--space-md);
}

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content {
  max-width: 35rem;
}

.error-content h1 {
  font-size: 6rem;
  margin-bottom: var(--space-sm);
  color: var(--color-autumn);
}

.policy-page {
  padding: var(--space-xl) 0;
}

.policy-content {
  max-width: 50rem;
  margin: 0 auto;
  margin-top: 50px;
}

.policy-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-md);
}

.policy-content ul, .policy-content ol {
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (max-width: 48rem) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.2rem; }
  
  .hero {
    min-height: 70vh;
    padding: var(--space-lg) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 20rem;
    height: 100vh;
    background: var(--color-base);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
  }
  
  nav ul.active {
    right: 0;
  }
  
  .burger {
    display: flex;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 30rem) {
  html {
    font-size: 95%;
  }
  
  body {
    font-size: 0.9rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  button, .btn {
    font-size: 0.85rem;
    padding: var(--space-sm) var(--space-md);
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card, .form-wrapper, .contact-info {
    padding: var(--space-md);
  }
  
  .map-container {
    height: 15rem;
  }
  
  .privacy-content {
    flex-direction: column;
    text-align: center;
  }
  
  .privacy-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .quiz-question {
    padding: var(--space-md);
  }
  
  .quiz-option {
    padding: var(--space-sm) var(--space-md);
  }
  
  .quiz-result h3 {
    font-size: 1.5rem;
  }
  
  .quiz-result p {
    font-size: 1rem;
  }
  
  .hero-content > div:first-child {
    font-size: 2rem;
    gap: var(--space-xs);
  }
}

@media (max-width: 20rem) {
  html {
    font-size: 90%;
  }
}


