body {
  font-family: 'Roboto', sans-serif;
  background: #f7f8fa;
  color: #222;
  text-align: center;
  font-size: 16px;
}
h1 {
  text-align: left;
}

h1.gdz-center{
	text-align: center;
	
}



textarea {
  padding: 10px;
  margin: 8px 0;
  width: 100%;
  max-width: 600px;
  height: 190px;
  resize: vertical;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid #bbb;
}
button {
  background: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 16px;
  transition: background 0.2s;
}
button:hover {
  background: #45a049;
}
.stopBtn { background: #e74c3c; margin-left: 10px; }

#terminal {
  background: #fff;
  color: #111;
  font-family: "Courier New", monospace;
  padding: 15px;
  border-radius: 12px;
  min-height: 300px;
  max-height: 500px;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid #ccc;
  margin-top: 20px;
  text-align: left;
  position: relative;
}



/* Контейнер для фиксации ширины и позиционирования */
.input-group {
    display: block;
    max-width: 600px;  /* Должно совпадать с шириной textarea */
    margin: 0 auto;    /* Центрируем блок на странице */
    text-align: right; /* Прижимает счетчик вправо внутри этого блока */
}

/* Наш изолированный счетчик 100x50 */
#char_counter {
    display: inline-block !important;
    width: 100px !important;
    height: 50px !important;
    line-height: 50px !important;
    
    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    color: #888 !important;
    
    margin: 0 !important;
    padding: 0 5px !important;
    
    /* Обнуляем наследование от #terminal */
    min-height: 0 !important;
    max-height: none !important;
    background: transparent !important;
    border: none !important;
    position: static !important;
}




#terminal {
  max-width: 640px;         /* ≈ 66 символов при 16px шрифте */
  margin: 0 auto;
  padding: 16px;
  font-size: 16px;
  line-height: 2.6;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.answer-block {
  max-width: 640px;
  margin: 24px auto;
  padding: 16px 0 ;
  font-size: 16px;
  line-height: 1.6;
  background-color: #f8f4f1;
  border-left: 4px solid #3399ff;
  border-radius: 6px;
}

/* MathJax контейнеры */
mjx-container {
  display: inline-block;
  margin: 8px 0;
  padding: 4px 8px;
  max-width: 100%;
  overflow-x: auto;
}



.cursor {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  background: #aaa;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
}


input, textarea, button {
  margin: 6px;
  padding: 8px;
  font-size: 1em;
}

#copyBtnText {
    color: white;
}



a {
  color: #0066ff;
}

/* 👍👎 кнопки — только иконки */
.feedback-btn {
  background: none !important;
  border: none !important;
  padding: 4px;
  cursor: pointer;
}

/* SVG-иконки */
.feedback-icon {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  stroke: #000;
  stroke-width: 2;
  display: inline-block;
  background: transparent;
}

/* Основная кнопка "Решить" */
#solveBtn {
  background: #0066ff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

#solveBtn:hover {
  background: #004ecc;
}

svg.feedback-icon {
    stroke: #000;
}

.answer-block  {
  padding: 12px;
  margin: 12px 0;
}


mjx-container {
  overflow-x: unset !important;
  overflow: hidden !important;
}

mjx-container {
  overflow: hidden !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  display: inline-block;
  vertical-align: middle;
  padding: 0 15px;

}

.nodisplay { display: none; }
.display-block { display: block !important; }

#solveBtn.checking {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none; /* Не дает нажать, пока не придет ответ от БД */
}

/* Контейнер документа */
.legal-document {
    max-width: 800px;
    margin: 50px auto;
    background: #fff;
    padding: 50px;
    border: 1px solid #e1e4e8;
    border-radius: 4px; /* Почти острые углы для строгости */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
    color: #24292e;
    line-height: 1.6;
}

/* Заголовки */
.legal-document h1 {
    text-align: left;
    margin-bottom: 30px;
    color: #1b1f23;
	text-transform:uppercase;
}



.legal-document h3 {
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    color: #586069;
    margin-bottom: 40px;
}

/* Секции договора */
.doc-section {
    margin-bottom: 30px;
}

.doc-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #0366d6; /* Глубокий синий акцент */
    border-bottom: 1px solid #eaecef;
    padding-bottom: 5px;
}

/* Списки пунктов */
.doc-section ul {
    list-style: none;
    padding: 0;
}

.doc-section li {
    margin-bottom: 12px;
    padding-left: 0;
}

/* Блок реквизитов */
.partner-requisites {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 2px solid #1b1f23;
}

.requisites-box {
    font-style: normal;
    background: #f6f8fa;
    padding: 20px;
    border-radius: 6px;
}

/* Ссылки */
.legal-document a {
    color: #0366d6;
    text-decoration: underline;
}

.legal-document h1 a,.legal-document h1 a:hover{
	text-decoration:none;
	color:#4b4b4b;
}

/* Отключаем центр и точки для документов */
.legal-document, 
.legal-document .doc-section, 
.legal-document ul, 
.legal-document li {
    text-align: left !important; /* Строго по левому краю */
    list-style-type: none !important; /* Никаких точек */
    list-style: none !important;
}

/* Обнуляем отступы у списков, чтобы текст не уезжал вправо */
.legal-document ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
}



/* style.css */

.solutions-examples {
    text-align: left;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /*  Легкая тень для красоты */
}

.solution-item {
    margin-bottom: 40px;
    line-height: 1.6; /* Чтобы текст не слипался */
}

.solution-item h3 {
    color: #2c3e50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
    display: inline-block;
}

.solution-item strong {
    color: #e67e22; /* Выделим слово "Ответ" цветом */
}

hr {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 30px 0;
}

p.task-item{
padding: 10px; 
border-left: 10px solid #999; 
margin-bottom:30px; 
}


/* Стиль контейнера для центрирования кнопки */
.solve-action {
    margin: 20px 0 40px 0;
    text-align: center;
}

/* Сама кнопка */
.btn-solver {
    display: inline-block;
    padding: 12px 24px;
    background-color: #28a745; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: 'Roboto', sans-serif;
}

/* Обычное состояние */
.btn-solver {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* При наведении */
.btn-solver:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3) !important;
	    background-color: #0d460f; 
}

/* Убираем подчеркивание и задаем цвет для ссылки внутри кнопки */
.btn-solver, 
.btn-solver a {
    color: white !important;
    text-decoration: none !important;
}

/* Фиксируем состояние при наведении */
.btn-solver:hover a,
.btn-solver a:hover {
    color: white !important;
    text-decoration: none !important;

}

/* Если вы используете структуру <a class="btn-solver">...</a> */
a.btn-solver:hover {
    color: white !important;
    text-decoration: none !important;
}



/* Эффект при нажатии */
.btn-solver:active {
    transform: translateY(0);
}


/* Обертка поля ввода — теперь жестко до 600px */
#inputWrapper {
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 15px 25px;
    
    /* Центрирование и ширина */
    margin: 20px auto;
    width: 100%;        /* Позволяет сжиматься на мобильных */
    max-width: 600px;   /* На ПК не даст стать шире 600px */
    
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: none;
	box-sizing:border-box;
}


/* Настройки самого текстового поля */
#inputWrapper textarea#task {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    max-width: 600px; 
    width: 100%;        /* Занимает всю ширину обертки (т.е. 600px) */
    height: 100px;
    resize: none;
    font-size: 16px;
    line-height: 1.5;
    color: #202124;
    padding: 0;
    margin: 0;
}




/* Поле ввода капчи */
input#captcha {
    border: 1px solid #dfe1e5 !important; /* Светлая рамка как у обертки */
    border-radius: 20px !important;       /* Круглые углы */
    padding: 8px 15px !important;
    outline: none !important;             /* Убираем черную рамку при клике */
    transition: all 0.2s ease;
    text-align: center;                   /* Код капчи обычно лучше смотрится по центру */
    font-size: 16px;
    margin-top: 10px;
}


/* Чтобы placeholder тоже был по центру */
input#captcha::placeholder {
    text-align: center;
    color: #999;
}


textarea#task:focus {
    outline: none !important; /* Убирает ту самую жирную черную полосу */
  
}

#solveBtn {
     /* Сделаем фон чуть темнее, чтобы он отличался от фона страницы */
     background-color: #ebebeb !important; 
     border: 0px solid rgb(31, 31, 31) !important; /* Четкая рамка сразу */
     border-radius: 8px;
  
    color: #999;
     
     padding: 10px 24px;
     font-size: 18px;
     font-weight: 500;
     
     display: block;
     margin: 20px auto; 
     min-width: 150px;
     
     cursor: pointer;
     transition: all 0.2s;
     box-shadow: 0 1px 2px rgba(0,0,0,0.05); /* Легкая тень, чтобы "приподнять" кнопку */
}

#solveBtn:hover {
     background-color: #e0e0e0 !important; /* Еще чуть темнее при наведении */
     border-color: #c6c6c6 !important;
     box-shadow: 0 1px 3px rgba(0,0,0,0.1);
     color: #202124;
}


.containerprice { max-width: 1000px; margin: 0 auto; }
        		
		.headerprice {
    text-align: left; /* Ориентируем заголовок и описание влево */
    margin-bottom: 30px;
}
        
        .plan-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 50px; }
        .plan-group-title { grid-column: 1 / -1; text-align: center; font-size: 24px; color: #555; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-top: 20px; }
        
        .card { 
		position: relative;
		background: white; border-radius: 15px; padding: 30px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #eee; display: flex; flex-direction: column; }
        .card:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.1); }
        .card h3 { margin-top: 0; color: #4a90e2; font-size: 22px; padding-top: 10px;}
        /* Основной контейнер цены */
.price { 
    font-size: 32px; 
    font-weight: bold; 
    margin: 20px 0 10px 0; /* Уменьшили нижний отступ, чтобы подпись была ближе */
    align-items: center;
}



        .price span { font-size: 16px; color: #888; }
        .features { list-style: none; padding: 0; margin: 20px 0; color: #666; flex-grow: 1; }
        .features li { margin: 10px 0; }
        
/* Общие улучшения для обеих кнопок */
.btn-buy { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    color: #ffffff !important;
    border: none; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    font-size: 16px; 
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
    /* Добавляем плавность для фона и тени */
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.1s; 
    /* Начальная легкая тень */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	margin-top: auto;
}


/* Эффект нажатия для обеих кнопок */
.btn-buy:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

a.btn-buy { text-decoration:none; }
a.btn-buy:hover { color:#fff; }


@media (max-width: 600px) {
            .plan-section { grid-template-columns: 1fr; }
}

/* Выделенная карточка */
.card-featured {
    position: relative;
    border: 2px solid #28a745 !important; /* Зеленая рамка */
    transform: scale(1.05); /* Чуть больше остальных */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    z-index: 1;
}

/* Плашка над заголовком */
.badge-best {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #16a34a;
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
	white-space: nowrap;
    z-index: 10;
    text-transform: uppercase;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Самая яркая кнопка */
.featured-btn {
    background-color: #16a34a !important; /* Ярко-зеленый */
    color: white !important;
}


/* Ховер для зеленой кнопки */
.featured-btn:hover {
    background-color: #15803d !important;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Остальные кнопки (сделаем их поспокойнее, например, синими) */
.btn-buy {
    background-color: #2563eb;
    transition: 0.3s;
}

/* Ховер для синих кнопок */
.btn-buy:hover {
    background-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}


/* Эффект при наведении на ЛЮБУЮ кнопку */
.btn-buy:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
    transform: translateY(-1px);
}


		
		
/* Текст про лучшую цену */
.featured-li {
    background-color: #f0fdf4; /* Очень бледный зеленый фон */
    color: #16a34a;            /* Насыщенный зеленый текст */
    padding: 8px 12px;         /* Добавляем внутренние отступы */
    border-radius: 8px;        /* Скругляем углы */
    font-size: 15px;           /* Чуть увеличим размер */
    display: block;            /* Чтобы фон растянулся */
    margin: 15px -10px;        /* Немного расширим за пределы списка */
    border: 1px dashed #16a34a; /* Пунктирная рамка для привлечения внимания */
}

.price-sub {
    font-size: 14px;      /* Мелкий шрифт */
    color: #888;          /* Серый цвет, чтобы не отвлекать */
    font-weight: normal;  /* Не жирный */
    margin-top: 5px;    /* Подтягиваем ближе к основной цене */
    margin-bottom: 5px;
	display: block; /* А вот это заставит приписку быть снизу */
}

/* Опционально: можно выделить саму цифру 32.5 жирным */
.price-sub b {
    color: #16a34a; /* Сделаем цифру 32.5 зеленым, как наш акцент */
}
		
h1 a{
	text-decoration:none;
	color: #4b4b4b;
}h1 a:hover, h1 a:visited {
	text-decoration:none;
	color: #4b4b4b;
}

