body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #548ac0;
    background-image: url('images/Group%2015.jpg'); /* Заменить на путь к фону */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* ===== ЛОГО ДИЗАЙНЫ ===== */
.top-header {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: rgba(255,255,255,0.1);   /* жеңіл мөлдір фон */
  backdrop-filter: blur(6px);           /* әдемі “шыны” эффект */
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.top-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  transition: transform .25s ease, opacity .25s ease;
}

.top-logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
  cursor: pointer;
}

/* мобильде аздап кішірейту */
@media (max-width: 768px){
  .top-header {
    top: 12px;
    right: 16px;
    padding: 6px 10px;
  }
  .top-logo {
    height: 50px;
  }
    
    .searchbar-wrapper {
        
        top: 150px;
    }
    
}

header {
    text-align: center;
    background-color: #1b6ec0;
    padding: 20px;
    color: white;
}
h1{
    font-family: Joan;
    font-size: 45px;
    margin: 0;
    padding: 10px;
}
.pen-image {
    background-image: url('images/Group%2014.png'); /* Путь к изображению ручки */
    background-size: contain; /* Масштабировать изображение, сохраняя пропорции */
    background-repeat: no-repeat; /* Избежать повторения */
    width: 300px; /* Ширина ручки */
    height: 300px; /* Высота ручки */
    position: absolute; /* Абсолютное позиционирование */
    z-index: 10; /* Поверх других элементов */
}

.container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;

}

.container2{
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;

}

.column {
    width: 48%; /* Увеличиваем ширину колонок для двух основных секций */
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
/*    margin-top: 100px;*/
}

.input-section {
    display: flex;
    flex-direction: column;
}

#wordInput {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.button-section {
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

button {
    width: 150px;
    padding: 10px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

button:hover {
    background-color: #1d60a1;
}





/* Стиль для блока результата */
.result-section {
    display: flex;
    flex-direction: column;
}

.result-block {
    padding: 10px;
    margin-top: 10px;
    font-size: 18px;
    border-bottom: 1px solid #ccc;
}

#erejeResult, #mysalResult  {
    color: grey; /* Зеленый для правил, примеров и мысала */
}

.highlight {
    color:black;
    font-weight: bold;
}

/* Общий стиль для результата */
#wordResult {
    color:black; /* Красный цвет для основного сообщения */
    font-weight:normal;
}

/* Стиль для заголовков (Мысал, Жазылу ережесі) */
.result-title {
    color: black; /* Красный цвет для заголовков */
    font-weight: bold;
    margin-top: 10px;
}

.result-block {
    padding: 10px;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
}


.autocomplete-container {
    position: relative;  /* Контейнер для автозаполнения */
    width: 100%;
}

.suggestions-container {

    background-color: white;
    position: absolute;

    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}



/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    .container2 {
        flex-direction: column;
        align-items: center;
    }
    .column {
        width: 90%;
        margin-bottom: 20px;
        margin-top: 30px;
    }

    header {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
    .pen-image {
        display: none; /* Скрыть ручку на экранах меньше 768px */
    }
    button {
        font-size: 14px;
        padding: 8px;
    }

    #wordInput {
        font-size: 14px;
        padding: 8px;
    }

    .result-block {
        font-size: 16px;
    }
}


/* ------- Top accordion ------- */
.top-info{
  max-width: 1200px;
  margin: 12px auto 0;
  padding: 0 20px;
}

.accordion{
  background: transparent;
  border: none;
}

.accordion summary{
  list-style: none;
  cursor: pointer;
  background: #ffffffcc;
  backdrop-filter: blur(2px);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  position: relative;
    text-align: center;
}

.accordion summary::-webkit-details-marker{ display: none; }
.accordion summary::after{
  content: "▾";
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%) rotate(0deg);
  transition: transform .2s ease;
}
.accordion[open] summary::after{ transform: translateY(-50%) rotate(180deg); }

.accordion-body{
  margin-top: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

/* сетка карточек из предыдущей версии */
.info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}
.info-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}
.info-card h3{ margin:0 0 8px; font-size: 18px; color:#1b6ec0; }
.info-card ul{ margin:0; padding-left:18px; line-height:1.5; color:#111827; }
.info-text{
  line-height:1.6; color:#374151; font-size:16px;
  background:#f9fafb; border:1px solid #e5e7eb; border-radius:10px; padding:14px 16px;
}

/* мобильная адаптация */
@media (max-width: 768px){
  .info-grid{ grid-template-columns: 1fr; }
  .accordion summary{ font-size: 18px; }
}


/* Поднимаем блок "Жоба туралы" над декоративной ручкой */
.top-info{
  position: relative;     /* создаём стек-контекст */
  z-index: 50;            /* выше, чем у .pen-image(10) */
}

/* На всякий: и заголовок, и тело аккордеона тоже поверх */
.accordion summary,
.accordion-body{
  position: relative;
  z-index: 50;
}

/* Опускаем ручку, чтобы она не перекрывала клики */
.pen-image{
  z-index: 1;             /* было 10 */
  pointer-events: none;   /* перетаскивание/клики не блокирует */
}



/* ===== Центральная кнопка (обведённая зона) ===== */
.center-action {
  display: flex;
  justify-content: center;
  margin: 26px auto 18px;
  padding: 0 16px;
}

.main-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 280px;
  height: 56px;
  padding: 0 36px;

  background: linear-gradient(135deg, #1f6fbf, #2b8cff);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;

  border-radius: 999px; /* pill */
  box-shadow: 0 12px 28px rgba(31, 111, 191, 0.35);

  transition: all 0.25s ease;
}

.main-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(31, 111, 191, 0.45);
}

.main-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(31, 111, 191, 0.35);
}

/* ===== Адаптивка ===== */
@media (max-width: 768px) {
  .main-action-btn {
    min-width: 50%;
    height: 52px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .center-action {
    margin: 20px auto 14px;
  }
  .main-action-btn {
    height: 48px;
    font-size: 16px;
  }
}

