@import url('https://fonts.googleapis.com/css2?family=Cookie&family=Lora:ital@1&display=swap');
body {
    margin: 0; 
    background-color: #FAEBD7;
    font-family: sans-serif;
    color: #333;
}

.container {
    width: 90%;
    max-width: 700px;
    margin: 0 auto; 
}



header {
    background-image: url('../img/header-bg.png'); 
    background-size: cover;
    background-position: center;
    
    padding: 20px 0; 
    text-align: center;
    color: white; 
}


header h1, header a { 
  
    font-family: 'Cookie', sans-serif;
    
   
    font-size: 72px; 
    color: #FAEBD7;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    
}


main, footer {
    margin-top: 25px;
    margin-bottom: 25px;
}

main .container {
    padding: 25px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

footer .container { 
    padding: 25px;
    background-color: #D3D3D3;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}
main ul {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 10px 40px; 

    padding-left: 0; 
    list-style-position: inside;
}

.thunder-page {
    text-align: center;
}

main li {
    font-size: 20px;     
    margin-bottom: 15px; 
    font-weight: 550;
}
.main-layout {
    display: flex;
    justify-content: center;
    gap: 20px;
    
    max-width: 1300px; 
    width: 95%;
    margin: 20px auto;
}

.main-layout main {
    flex: 1; 
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}


.ad-sidebar {
    flex-basis: 200px;
    flex-shrink: 0;
}

.ad-placeholder {
    width: 100%;
    min-height: 100px;
    border: 2px dashed #cccccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cccccc;
    font-size: 14px;
    box-sizing: border-box;
}

.ad-sidebar .ad-placeholder {
    min-height: 400px; 
}

.ad-sidebar {
    display: grid;              
    grid-template-columns: 1fr; 
    grid-auto-rows: 250px;      
    gap: 20px;                  
    
    
    align-content: start; 
}


.ad-placeholder-small {
    width: 100%; 
    height: 100%; 
    border: 2px dashed #cccccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #cccccc;
    font-size: 14px;
}

.thunder-page ul {
    display: grid;
    grid-template-columns: 110px 1fr 110px;
}

.general-text { text-align: center; 
background-color: white;
}


.nav-button {
    display: inline-block; 
    
    background-color: #e9e9e9; 
    color: #333;               
    
    padding: 8px 15px;      
    margin-right: 10px;     
    
    border-radius: 20px;    
    border: 1px solid #ccc; 
    
    text-decoration: none;  
    font-size: 0.9em;       
    
    
    transition: all 0.2s ease-in-out; 
}


.nav-button:hover {
    background-color: #3498db; 
    color: white;               
    border-color: #2980b9;      
}

.slogan {
  font-family: 'Lora', serif;
  color: #FAEBD7; 
  font-size: 1.1em; 
  margin-top: -15px; 
  
  font-weight: 800;
}

.footer-nav {
  margin-top: 10px;
}

.img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  header h1 {
    font-size: 42px; 
  }
 
  main ul, 
  #category-list {
    grid-template-columns: 1fr; 
  }

  main .container,
  footer .container {
    padding: 15px; 
  }
  
  main li {
    font-size: 18px;
  }
  
  .main-layout main {
      flex-basis: 100%;
  }

}

 h1 {
  text-align: center;
}

 h2{
  text-align: center;
}

 h3{
  text-align: center;
}

 p{
  text-align: center;
}

main li a {
  color: #333; 
  text-decoration: none;
  font-weight: 550; 

  transition: color 0.2s ease-in-out;
}

main li a:hover {
  color: #3498db; 
  text-decoration: underline; 
} 

.button-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-left: 0;
  list-style: none;
  justify-items: center; 
}
.button-list li {
  width: 50%; 
  text-align: center;
  margin-bottom: 0; 
}
.button-list li a {
  display: block; 
  width: 100%; 
  box-sizing: border-box; 
  background-color: #e9e9e9;
  color: #333;
  padding: 10px 15px; 
  border-radius: 20px; 
  border: 1px solid #ccc;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s ease-in-out; 
}
.button-list li a:hover {
  background-color: #3498db;
  color: white;
  border-color: #2980b9;
  cursor: pointer;
}
@media (max-width: 768px) {
  .button-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .steps-section,
  .faq-section {
    padding-left: 15px;
    padding-right: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
  }

  /* Уменьшаем заголовки в новых секциях */
  .steps-title,
  .faq-title {
      font-size: 1.6em;
  }
  .steps-subtitle,
  .faq-subtitle {
      font-size: 1em;
      margin-bottom: 30px;
  }

  /* Уменьшаем шрифты в блоках шагов */
  .step-number {
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 1.5em;
      margin-bottom: 15px;
  }
  .step-box-title {
      font-size: 1.2em;
  }
  .step-box-description {
      font-size: 0.95em;
  }

  /* Уменьшаем шрифты в FAQ */
  .faq-question {
      font-size: 1em;
      padding: 15px 20px;
  }
  .faq-question::after { /* Сдвигаем +/- значок */
      right: 20px;
  }
  .faq-answer {
      padding: 0px 20px 15px 20px;
      font-size: 0.95em;
  }
} 

#privacy-content ul {
  display: block; 
  grid-template-columns: 1fr; 
  list-style-type: none; 
  padding-left: 0; 
}

#privacy-content li {
  text-align: left; 
  margin-bottom: 10px; 
}

.general-text p {
  font-weight: 600; 
}

.hero-buttons-container { 
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 35px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  border: 1px solid #e7e7e7;
  text-align: center;
  transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
  flex-basis: calc(50% - 15px);
  min-width: 280px;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.hero-button:hover { 
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hero-button-icon {
  font-size: 2.8em; margin-bottom: 20px; color: #555;
}

.hero-button-title { 
  font-size: 1.8em; font-weight: 600; color: #333; margin-top: 0; margin-bottom: 15px;
}

.hero-button-description { 
  font-size: 1em; color: #666; line-height: 1.6; margin-top: 0; margin-bottom: 25px; flex-grow: 1;
}

.hero-button-link {
  display: inline-block; background-color: transparent; color: #3498db; border: 2px solid #3498db; padding: 10px 25px; border-radius: 25px; text-decoration: none; font-weight: 600; font-size: 1em; transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out; margin-top: auto;
}

.hero-button-link:hover { 
  background-color: #3498db; color: white;
}

@media (max-width: 650px) {
  .hero-buttons-container { 
    padding: 30px 15px;
    gap: 25px;
  }
 .hero-button { 
    flex-basis: 100%;
  }
}

.common-dream-list {
  list-style: none; 
  padding-left: 0; 
  margin-top: 30px; 
}

.common-dream-list li {
  background-color: #f9f9f9; 
  border: 1px solid #eee; 
  border-radius: 8px; 
  padding: 20px; 
  margin-bottom: 20px; 
  text-align: left; 
}

.common-dream-list h3 {
  margin-top: 0; 
  margin-bottom: 10px; 
}

.common-dream-list h3 a {
  color: #3498db; 
  text-decoration: none; 
  font-size: 1.4em; 
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

.common-dream-list h3 a:hover {
  color: #2980b9;
  text-decoration: underline; 
}

.common-dream-list p {
  color: #555; 
  line-height: 1.6;
  margin-bottom: 0; 
}

.search-form {
  margin-left: auto; 
  margin-right: auto;
  margin-top: 40px; 
  margin-bottom: 0; 

  max-width: 800px; 
  width: 90%; 
  display: flex;
}

.search-prompt {
  text-align: center; 
  color: #555; 
  font-style: normal; 
  margin-top: 10px; 
  margin-bottom: 50px; 
}

.search-form input[type="search"] {
  flex-grow: 1;
  padding: 12px 15px; 
  font-size: 1.1em; 
  border: 1px solid #ccc;
  border-right: none; 
  border-radius: 25px 0 0 25px; 
  outline: none; 
}

.search-form button {
  padding: 12px 20px; 
  font-size: 1.1em; 
  border: 1px solid #ccc;
  background-color: #eee; 
  border-radius: 0 25px 25px 0; 
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.search-form button:hover {
  background-color: #ddd; 
}

@media (max-width: 850px) {
  .search-form {
    max-width: 90%; 
  }
}

.steps-section {
  padding: 0px 20px; 
  text-align: center; 
  max-width: 1000px; 
  margin: 40px auto; 
  margin-bottom: 220px;
}

.steps-title {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.steps-subtitle {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 40px;
  max-width: 700px; 
  margin-left: auto;
  margin-right: auto;
}

.steps-container {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 30px; 
}

.step-box {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
  border: 1px solid #e7e7e7;
  text-align: center; 
}

.step-number {
  width: 50px; 
  height: 50px; 
  border-radius: 50%; 
  background-color: #001f3f; 
  color: #ffffff; 
  font-size: 1.8em; 
  font-weight: bold; 
  line-height: 50px; 
  margin: 0 auto 20px auto; 
}

.step-box-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.step-box-description {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
}

.faq-section {
  padding: 50px 20px;
  max-width: 900px; 
  margin: 40px auto 60px auto; 
  text-align: center;
}

.faq-title {
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.faq-subtitle {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 40px;
}

.faq-list {
  text-align: left; 
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 8px; 
  margin-bottom: 15px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.faq-question {
  padding: 18px 25px; 
  font-weight: 600; 
  font-size: 1.1em;
  cursor: pointer; 
  position: relative; 
  list-style: none; 
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 25px; 
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4em;
  color: #888;
}

.faq-answer {
  padding: 0px 25px 20px 25px; 
  color: #555;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0; 
  text-align: left; 
}

.faq-item[open] > .faq-question::after {
  content: '−'
  color: #555;
}

.faq-question::-webkit-details-marker {
  display: none;
}