:root {
  --primary-color: #ff7043;
  --primary-light: #ff8a65;
  --primary-dark: #e64a19;
  --secondary-color: #3182ce;
  --secondary-dark: #2c5aa0;
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #f8fafc;
  --bg-light: #ffffff;
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --success-color: #38a169;
  --warning-color: #e65100;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Общая обёртка для всех страниц */
body {
  background: linear-gradient(135deg, var(--bg-color) 0%, #e2e8f0 100%);
  padding: 0;
  margin: 0 auto;
  max-width: 550px;
  color: var(--text-color);
  min-height: 100vh;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, table, input, textarea, select {
  font-size: 15px;
}

.container {
  width: 100%;
  margin: 0;
  padding: 12px;
  box-sizing: border-box;
}

/* Ссылки */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-dark);
}

/* Изображения */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: cover;
}

/* Заголовок / блок заголовка */
.title {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: white;
  font-weight: 600;
  padding: 14px;
  font-size: 15px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 
    0 10px 20px rgba(255, 112, 67, 0.3),
    0 6px 6px rgba(255, 112, 67, 0.2);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.title:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 15px 25px rgba(255, 112, 67, 0.4),
    0 10px 10px rgba(255, 112, 67, 0.2);
}

.title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.title:hover::before {
  left: 100%;
}

.title a {
  color: white;
  display: block;
}

/* Карточки, блоки */
.menu {
  background: var(--bg-light);
  padding: 16px;
  border: 1px solid rgba(255, 138, 101, 0.3);
  margin-bottom: 12px;
  border-radius: 16px;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.menu:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 15px 30px rgba(255, 138, 101, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 112, 67, 0.5);
}

.menu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
  transition: var(--transition);
}

.menu:hover::after {
  width: 6px;
}

.list1, .list2 {
  color: var(--text-color);
  font-size: 14px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 204, 128, 0.5);
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 
    0 2px 8px rgba(255, 204, 128, 0.1);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.list1:hover, .list2:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: 
    0 8px 20px rgba(255, 138, 101, 0.15);
}

.list1 a, .list2 a {
  color: var(--text-light);
  padding: 4px 0;
  display: block;
  width: 100%;
  transition: var(--transition);
}

.list1 a:hover, .list2 a:hover {
  color: var(--text-color);
}

/* Текстовые поля */
input, select, textarea {
  background: var(--bg-light);
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  margin: 6px 0;
  color: var(--text-color);
  border-radius: 10px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 
    0 0 0 3px rgba(49, 130, 206, 0.2),
    0 2px 8px rgba(49, 130, 206, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

/* Кнопки */
button, input[type="submit"] {
  background: linear-gradient(135deg, #5eb556 0%, #5eb556 100%);
  padding: 10px 20px;
  color: white;
  font-size: 13px;
  margin: 8px 0;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 12px rgba(255, 138, 101, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-block;
}

button:hover, input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 24px rgba(255, 138, 101, 0.4);
}

button:active, input[type="submit"]:active {
  transform: translateY(1px);
}

button::after, input[type="submit"]::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: 0.5s;
}

button:hover::after, input[type="submit"]:hover::after {
  transform: translateX(100%);
}

/* Футер */
.footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 32px;
  padding: 16px;
}

.footer a {
  color: var(--text-light);
}

.footer a:hover {
  color: var(--text-color);
}

/* Таблицы */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0;
  background: var(--bg-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.05);
}

table th {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: white;
  font-weight: 600;
  padding: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background-color: rgba(255, 138, 101, 0.05);
}

/* Сообщения */
.notice {
  background: #fff3e0;
  border-left: 4px solid #ffcc80;
  padding: 14px;
  border-radius: 0 8px 8px 0;
  color: var(--warning-color);
  font-size: 14px;
  margin-bottom: 16px;
  box-shadow: 
    0 2px 8px rgba(255, 204, 128, 0.1);
  position: relative;
  transition: var(--transition);
}

.notice:hover {
  transform: translateX(4px);
}

/* Иконки */
.icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  fill: currentColor;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Адаптивность */
@media (max-width: 600px) {
  body {
    padding: 0 8px;
  }
  
  .container {
    padding: 8px;
  }
  
  .menu, .list1, .list2 {
    padding: 12px;
  }
  
  table {
    font-size: 14px;
  }
  
  table th, table td {
    padding: 8px;
  }
}

/* Дополнительные элементы */
.card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--primary-color);
  color: white;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}