* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans", "NT Somic", Arial, sans-serif;
}

body {
  color: #222;
  background: #fff;
  line-height: 1.5;
  padding-top: 130px;
}

/* Шапка */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #fff;
  flex-wrap: wrap;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

header nav {
  display: flex;
  flex-wrap: wrap;
}

header nav a {
  margin: 10px;
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

header nav a:hover {
  color: #5a3fc0;
}

#header_disc {
    width: 530px;
    padding-left: 50px;
}

.logo {
    padding-left: 40px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 30px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 300px;
  margin-right: 20px;
}

.hero-text h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1rem;
  color: #444;
}

.hero-img img {
  width: 460px;
  max-width: 100%;
}

/* Разделы */
.sections h2 {
  margin: 30px 30px 15px;
  padding-left: 2px;
  width: 110px;
  background-color: #C4ACEA;
  border-radius: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 17px;
  padding: 0 30px 30px;
}

.card {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  color: #080707;
  min-height: 160px;
  overflow: hidden;
  height: 250px;
}

.card a {
  display: inline-block;
  margin-top: 110px;
  color: #080707;
  align-items: center;
}

.grey h3 {
    background-color: #C4ACEA;
    width: 165px; 
    padding-left: 1%;
    border-radius: 6px;
}

.blue h3 {
    background-color: #fff;
    width: 180px; 
    padding-left: 1%;
    border-radius: 6px;
}

.purple h3 {
    background-color: #fff;
    width: 180px; 
    padding-left: 1%;
    border-radius: 6px;
}

.card a img{
  position: relative;  
  max-width: 30px;
  align-items: center; 
}

.card img {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 270px;
}

.grey { background: hsl(0, 0%, 92%); }
.purple { background: #C4ACEA; }
.blue { background: #0841C9; }

/* Помни */
.remember {
  background: #f5f5f5;
  max-width: 1200px;
  width: 100%;
  min-height: 300px;
  padding: 25px 30px;
  text-align: center;
  margin: 0 auto;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.remember button {
  margin-top: 12px;
  padding: 10px 18px;
  background: #5a3fc0;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.remember img {
  width: 100%;
  max-width: 400px;
  height: auto;
  flex-shrink: 0;
}

.text_remember {
  flex: 1 1 300px;
  margin-top: 30px;
  margin-left: 20px;
  margin-right: 20px;
  text-align: left;
}

/* Лайфхаки */
.lifehacks {
  padding: 30px;
}

.accordion .item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 15px;
  background: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
}

.accordion-btn:hover {
  background: #C4ACEA;
}

.content {
  max-height: 0;
  background-color: #C4ACEA;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 15px;
}

.item:hover .content {
  max-height: 200px;
  padding: 10px 15px;
}

.content p {
  margin: 0;
}

/* ССГ */
.council {
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
  font-family: "NT Somic", sans-serif;
}

.council-title {
  display: inline-block;
  background: #e5d8ff;
  color: #4a2fc3;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 20px;
}

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

.council-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 25px;
  text-align: left;
  box-shadow: 4px 4px 0 #00000010;
  transition: transform 0.2s ease;
}

.council-card:hover {
  transform: translateY(-4px);
}

.council-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.council-card h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: bold;
}

.council-card p {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  margin-bottom: 15px;
}

.council-card hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 10px 0;
}

.council-card a {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
  color: #5a3fc0;
  font-size: 15px;
}

.council-card a::before {
  content: "↗";
  display: inline-block;
  margin-right: 6px;
  font-size: 16px;
}

.highlight {
          background-color: #f5f5f5;
          padding: 20px;
          border-radius: 8px;
          margin: 20px 0;
          border-left: 4px solid #5a3fc0;
}

/* Навигатор */
.navigator {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: "NT Somic", sans-serif;
}

.navigator-title {
  display: inline-block;
  background: #e5d8ff;
  color: #4a2fc3;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 25px;
  font-size: 20px;
}

.navigator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  background-color: #0841C9;
  border-radius: 20px;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px;
  padding: 18px 20px;
  text-decoration: none;
  font-weight: 500;
  color: #ffffff;
  font-size: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lol {
  border-right: 1px solid #e0e0e0;
}

.nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 8px #00000015;
}

.nav-icon {
  width: 40px;
  height: 40px;
  background: #f1ebff;
  color: #5a3fc0;
  font-size: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Подвал */
.footer {
  display: flex;
  justify-content: space-between;
  background: #0841C9;
  padding: 20px;
  margin-top: 50px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  border-top: 1px solid #ddd;
}

footer img {
  width: 200px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
}

footer nav a {
  margin: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}

footer nav a:hover {
  color: #5a3fc0;
}

/* 📱 АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 768px) {
  body {
    padding-top: 100px;
  }

  /* Шапка для мобильных */
  header {
    flex-direction: column;
    padding: 10px 20px;
    text-align: center;
  }

  .logo {
    padding-left: 0;
    margin-bottom: 15px;
  }

  .logo img {
    width: 150px;
  }

  header nav {
    justify-content: center;
    width: 100%;
  }

  header nav a {
    margin: 5px 8px;
    font-size: 14px;
    padding: 5px 10px;
  }

  /* Главный блок для мобильных */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }

  .hero-text {
    margin-right: 0;
    /* margin-bottom: 30px; */
  }

  .hero-text h1 img {
    width: 280px;
    max-width: 100%;
  }

  #header_disc {
    width: 100%;
    padding-left: 0;
    font-size: 14px;
    text-align: center;
  }

  .hero-img img {
    width: 280px;
  }

  /* Разделы для мобильных */
  .sections h2 {
    margin: 20px auto 15px;
    display: block;
    text-align: center;
    width: 110px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 15px 20px;
    justify-items: center;
  }

  .card {
    width: 100%;
    max-width: 350px;
    height: 200px;
    min-height: 140px;
    padding: 15px;
  }

  .card h3 {
    font-size: 16px;
    width: fit-content !important;
    padding: 4px 8px !important;
  }

  .card a {
    margin-top: 80px;
    font-size: 14px;
  }

  .card img {
    width: 180px;
    bottom: 5px;
    right: 5px;
  }

  /* Помни для мобильных */
  .remember {
    flex-direction: column;
    padding: 20px;
    text-align: center;
    margin: 0 15px;
    width: calc(100% - 30px);
  }

  .text_remember {
    margin: 0;
    text-align: center;
  }

  .text_remember h2 {
    margin: 0 auto 15px;
    display: block;
    width: 110px;
  }

  .text_remember p {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .remember button {
    width: 100%;
    max-width: 200px;
  }

  .remember img {
    max-width: 280px;
    margin-top: 15px;
    display: none;
  }

  /* Лайфхаки для мобильных */
  .lifehacks {
    padding: 20px 15px;
    text-align: center;
  }

  .lifehacks h2 {
    margin: 0 auto 15px;
    display: block;
    width: 110px;
  }

  .accordion-btn {
    padding: 12px;
    font-size: 14px;
  }

  .content {
    font-size: 13px;
  }

  /* ССГ для мобильных */
  .council {
    padding: 30px 15px;
    text-align: center;
  }

  .council-title {
    display: block;
    margin: 0 auto 25px;
    width: fit-content;
  }

  .council-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }

  .council-card {
    text-align: center;
    max-width: 350px;
    padding: 20px;
  }

  .council-card img {
    width: 50px;
    height: 50px;
  }

  .council-card h3 {
    font-size: 18px;
  }

  .council-card p {
    font-size: 13px;
  }

  /* Навигатор для мобильных */
  .navigator {
    padding: 30px 15px;
    text-align: center;
  }

  .navigator-title {
    display: block;
    margin: 0 auto 25px;
    width: fit-content;
  }

  .navigator-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 15px;
  }

  .nav-card {
    margin: 15px;
    padding: 15px;
    justify-content: center;
    text-align: center;
  }

  .lol {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  /* Подвал для мобильных */
  .footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
  }

  .footer-column {
    width: 100%;
  }

  footer img {
    width: 150px;
  }

  footer nav {
    justify-content: center;
  }

  footer nav a {
    margin: 5px 8px;
    font-size: 13px;
  }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
  body {
    padding-top: 200px;
  }

  header {
    padding: 8px 15px;
  }

  header nav a {
    font-size: 12px;
    margin: 3px 5px;
    padding: 4px 8px;
  }

  .hero-text h1 img {
    width: 240px;
    margin-left: 70px;
  }

  .hero-img img {
    width: 240px;
    
  }

  .card {
    max-width: 300px;
    height: 180px;
  }

  .card img {
    width: 150px;
  }

  .remember img {
    max-width: 240px;
  }

  .grid {
    padding: 0 10px 15px;
  }
}