:root{
  --red:#E53935;--orange:#FF7043;--yellow:#FFCA28;--bg:#FAFAFA;--text:#222
}

* {
  box-sizing:border-box
}

body {
  font-family:Inter,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  margin:0;
  line-height:1.6
}

.container {
  max-width:1100px;
  margin:0 auto;
  padding:20px
}

.site-header {
  background:linear-gradient(90deg,var(--red),var(--orange));
  color:#fff;
  padding:12px 0
}

.header-flex {
  display:flex;
  align-items:center;
  justify-content:space-between
}

/* .logo {
  font-size:1.4em;
  font-weight:700;
  text-decoration:none;
  color:#fff
} */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.4em;
  font-weight: 700;
}

.logo img {
  display: block;
}

.logo span {
  line-height: 1;
}

.main-nav a {
  margin-left:18px;
  color:#fff;
  text-decoration:none;
  opacity:.95
}

.main-nav a:hover {
  opacity:.8
}

.hero {
  background:linear-gradient(90deg,var(--orange),var(--yellow));
  padding:40px 20px;
  text-align:center
} 

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 200px; /* Увеличиваем высоту секции */
}

.hero-text {
  flex: 1;
  z-index: 2; /* Текст поверх логотипа */
  position: relative;
}

.hero-logo {
  position: absolute;
  right: -50px; /* Выдвигаем за правый край */
  top: 50%;
  transform: translateY(-50%);
}

.hero-logo img {
  opacity: 0.2; /* Еще более прозрачный */
  /* filter: brightness(0) invert(1); */
  width: 300px; /* Увеличиваем размер */
  height: auto;
  max-width: none; /* Убираем ограничения */
}

.hero-logo-r {
  position: absolute;
  right: -50px; /* Выдвигаем за правый край */
  top: 50%;
  transform: translateY(-50%);
}

.hero-logo-r img {
  opacity: 0.2; /* Еще более прозрачный */
  /* filter: brightness(0) invert(1); */
  width: 250px; /* Увеличиваем размер */
  height: auto;
  max-width: none; /* Убираем ограничения */
}

/* Стили для пагинации */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0 20px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 10px 16px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.pagination-current {
  padding: 10px 16px;
  background: var(--orange);
  color: white;
  border-radius: 8px;
  font-weight: bold;
}

.pagination-info {
  margin-left: 20px;
  color: var(--text);
  font-size: 0.9em;
}

.no-data {
  text-align: center;
  font-size: 1.2em;
  color: var(--text);
  padding: 40px;
}

/* Для мобильных */
@media (max-width: 768px) {
  .hero-logo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    text-align: center;
    margin-top: 20px;
  }
  
  .hero-logo img {
    width: 200px;
    opacity: 0.15;
  }

  .hero-logo-r {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    text-align: center;
    margin-top: 20px;
  }
  
  .hero-logo-r img {
    width: 200px;
    opacity: 0.15;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }
}

h1,h2,h3 {
  margin:0 0 .4em
}

.card-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
  margin-top:20px
}

.card {
  background:#fff;
  padding:16px;
  border-radius:16px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  overflow:hidden
}

.card img {
  width:100%;
  height:auto;
  border-radius:12px
}

.card h3 {
  margin:10px 0 6px
}

.card p {
  margin:4px 0
}

.card .btn {
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--red);
  color:#fff;text-decoration:none
}

.card .btn:hover {
  opacity:.9
}

.contests-all-btn {
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--red);
  color:#fff;text-decoration:none
}

.contests-all-btn:hover {
  opacity:.9
}

.btn-requisites {
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--red);
  color:#fff;text-decoration:none
}

.btn-requisites:hover {
  opacity:.9
}

.btn-doc {
  display:inline-block;
  margin-top:10px;
  padding:10px 14px;
  border-radius:10px;
  background:var(--red);
  color:#fff;text-decoration:none
}

.btn-doc:hover {
  opacity:.9
}

.badge {
  display:inline-block;
  background:#fff;
  border:1px solid #eee;
  border-radius:999px;
  padding:4px 10px;
  margin-right:8px
}

.kv {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:.4em 0
}

.gallery {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
  margin-top:12px
}

.gallery img {
  width:100%;
  height:auto;
  border-radius:10px
}

.site-footer {
  margin-top:40px;
  padding:20px;
  background:#c4c4c4;
  color:#000000;
  text-align:center
}

/* Стили для страницы с жюри */

.jury-card {
  display: flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  margin-bottom: 30px;
  overflow: hidden;
  min-height: 400px;
}

.jury-photo {
  flex: 0 0 300px;
  position: relative;
}

.jury-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jury-info {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.jury-name {
  color: var(--red);
  margin: 0 0 10px 0;
  font-size: 1.8em;
  font-weight: 700;
}

.jury-city {
  color: var(--orange);
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 8px;
}

.jury-specialization {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 500;
}

.jury-bio {
  flex: 1;
  display: flex;
  align-items: center;
}

.jury-bio p {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text);
}

@media (max-width:768px){.main-nav{display:flex;gap:12px;overflow:auto;padding-bottom:8px}}


/* Мобильная адаптация */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header-flex {
    flex-direction: column;
    gap: 15px;
  }
  
  .logo {
    font-size: 1.2em;
    justify-content: center;
  }
  
  .main-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .main-nav a {
    margin-left: 0;
    white-space: nowrap;
    padding: 8px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    font-size: 0.9em;
  }
  
  .hero {
    padding: 30px 15px;
  }
  
  .hero h1 {
    font-size: 1.8em;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .hero-logo {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 10px;
  }
  
  .hero-logo img {
    width: 200px;
    opacity: 0.15;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .card {
    padding: 12px;
    border-radius: 12px;
  }
  
  .kv {
    flex-direction: column;
    gap: 8px;
  }
  
  .badge {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }
  
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  
  .btn {
    display: block;
    text-align: center;
    margin: 10px 0;
    padding: 12px 16px;
    font-size: 1em;
  }
  
  h1 {
    font-size: 2em;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.5em;
  }
  
  h3 {
    font-size: 1.2em;
  }
  
  .pagination-controls {
    gap: 5px;
    margin: 30px 0 15px;
  }
  
  .pagination-btn {
    padding: 8px 12px;
    font-size: 0.9em;
  }
  
  .pagination-current {
    padding: 8px 12px;
  }
  
  .pagination-info {
    margin-left: 15px;
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  .hero {
    padding: 20px 10px;
  }
  
  .hero h1 {
    font-size: 1.5em;
  }
  
  .hero p {
    font-size: 0.9em;
  }
  
  .logo {
    font-size: 1.1em;
  }
  
  .main-nav {
    gap: 8px;
  }
  
  .main-nav a {
    padding: 6px 10px;
    font-size: 0.85em;
  }
  
  .card {
    padding: 10px;
    margin: 5px 0;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
  
  .site-footer {
    padding: 15px 10px;
    font-size: 0.9em;
  }

  /* Страница для жюри */
  .jury-card {
    flex-direction: column;
    min-height: auto;
    margin-bottom: 20px;
  }
  
  .jury-photo {
    flex: none;
    height: 500px;
  }
  
  .jury-info {
    padding: 20px;
  }
  
  .jury-name {
    font-size: 1.5em;
  }
  
  .jury-bio p {
    font-size: 1em;
  }

}

/* Улучшения для тач-устройств */
@media (hover: none) and (pointer: coarse) {
  .btn, .main-nav a {
    min-height: 44px; /* Минимальный размер для касания */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card {
    cursor: pointer;
    transition: transform 0.2s ease;
  }
  
  .card:active {
    transform: scale(0.98);
  }
}

/* Предотвращение горизонтального скролла */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Улучшение читаемости текста на мобильных */
body {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Адаптация таблиц (если понадобятся) */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
