/* UAFFF — Uzbekistan American Football & Flag Football Federation.
   Navy & white, modern, sporty, with depth and warmth. */

:root {
  --navy: #0f172a;
  --navy-medium: #1e3a5f;
  --navy-light: #2d4a6f;
  --navy-soft: #334155;
  --white: #ffffff;
  --off-white: #f8fafc;
  --bg-soft: #eef1f5;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --font-sans: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-card-hover: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  overflow-x: hidden;
}

/* Фон страниц: фото поля/стадиона + светлый градиент поверх для читаемости */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(244, 246, 250, 0.88) 0%, rgba(241, 245, 249, 0.84) 50%, rgba(238, 241, 245, 0.86) 100%),
    url('../images/hero_default_bg.png');
  background-size: auto, cover;
  background-position: top, center;
  background-repeat: no-repeat, no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: linear-gradient(180deg, var(--navy) 0%, #0c1322 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--white);
}

.header-brand:hover,
.header-brand:focus {
  color: var(--white);
  text-decoration: none;
}

.header-brand:hover .header-title {
  color: var(--white);
}

.header-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  padding: 6px;
}

.header-logo span {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: inherit;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.header-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.lang-form {
  display: inline-flex;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-form button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 0.25rem;
  transition: all 0.2s;
}

.lang-form button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-form button.active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* Кнопка меню (скрыта на десктопе) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Main ========== */
main {
  flex: 1;
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ========== Typography ========== */
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
  max-width: 56ch;
}

.section-title {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--navy-light);
  display: inline-block;
  letter-spacing: -0.01em;
}

a {
  color: var(--navy-medium);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ========== Cards ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--border);
}

.card:hover::before {
  opacity: 1;
}

.card-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--navy-medium);
  text-decoration: none;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.card-meta.accent {
  color: var(--navy-medium);
  font-weight: 600;
}

/* ========== Grids ========== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

/* ========== Images ========== */
.img-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  transition: transform 0.35s ease;
}

.card:hover .img-cover {
  transform: scale(1.02);
}

.img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(145deg, var(--border) 0%, #e8ecf0 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.img-placeholder.small {
  height: 120px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-medium) 100%);
  color: var(--white);
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.btn:hover {
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

/* ========== Hero slider ========== */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}

.hero-slides {
  position: relative;
  min-height: 300px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-medium) 50%, var(--navy-light) 100%),
    repeating-linear-gradient(
      -55deg,
      transparent 0,
      transparent 32px,
      rgba(255,255,255,0.04) 32px,
      rgba(255,255,255,0.04) 33px
    ),
    repeating-linear-gradient(
      -35deg,
      transparent 0,
      transparent 24px,
      rgba(255,255,255,0.03) 24px,
      rgba(255,255,255,0.03) 25px
    );
  color: var(--white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Фоновое фото слайда из админки */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide-has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.75) 100%);
  pointer-events: none;
}

.hero-slide .hero-accent,
.hero-slide h1,
.hero-slide p {
  position: relative;
  z-index: 2;
}

/* Decorative sport imagery: faint football and motion lines */
.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  max-width: 480px;
  z-index: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none' opacity='0.07'%3E%3Cellipse cx='160' cy='80' rx='70' ry='28' stroke='white' stroke-width='2'/%3E%3Cpath d='M90 80 Q160 60 230 80 Q160 100 90 80' stroke='white' stroke-width='1.5' fill='none'/%3E%3Cpath d='M120 55 L200 80 L120 105' stroke='white' stroke-width='0.8' fill='none' opacity='0.7'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 200' fill='none'%3E%3Cpath d='M20 0 L25 40 L20 80 L25 120 L20 160 L25 200' stroke='white' stroke-width='1' opacity='0.05' fill='none'/%3E%3Cpath d='M40 0 L45 50 L40 100 L45 150 L40 200' stroke='white' stroke-width='1' opacity='0.04' fill='none'/%3E%3Cpath d='M60 0 L55 45 L60 90 L55 135 L60 180' stroke='white' stroke-width='1' opacity='0.05' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 90% 50%, 100% 0;
  background-size: 280px auto, 120px 100%;
  pointer-events: none;
}

.hero-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.85rem;
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-slide p {
  opacity: 0.95;
  font-size: 1.1rem;
  max-width: 640px;
  position: relative;
  line-height: 1.65;
  margin: 0;
}

.hero-accent {
  display: inline-block;
  width: 64px;
  height: 5px;
  background: var(--white);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  position: relative;
  opacity: 0.95;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hero slider dots */
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s;
}

.hero-dot:hover {
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.9);
}

.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
}

/* Intro block under hero */
.intro-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.85rem 2rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--navy);
  box-shadow: var(--shadow-sm);
}

.intro-text {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.72;
  margin: 0;
}

/* ========== Логотипы внизу страницы (над footer) ========== */
.bottom-logos {
  margin-top: auto;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.bottom-logos-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Размер логотипов как у карточек новостей (высота изображения в карточке 200px) */
.bottom-logo {
  height: 200px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: brightness(1.02);
  opacity: 0.98;
}

/* ========== Footer (только текст) ========== */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #0c1322 100%);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  margin-bottom: 1rem;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-contact {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-extra {
  width: 100%;
}

.footer-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ========== News detail ========== */
.article-card {
  max-width: 780px;
  padding: 2rem;
}

.article-card .img-cover {
  height: 320px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
}

.article-body {
  margin-top: 1rem;
  font-size: 1.06rem;
  line-height: 1.8;
}

.article-body p {
  margin-bottom: 1rem;
}

/* ========== Association logo ========== */
.assoc-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  padding: 8px;
}

/* ========== Person card ========== */
.person-card .img-cover,
.person-card .img-placeholder {
  height: 220px;
}

.person-card .card-title.person-name {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.person-card .person-position {
  margin-bottom: 0.75rem;
}

.person-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.person-bio p {
  margin: 0 0 0.5em;
}

.person-bio p:last-child {
  margin-bottom: 0;
}

/* На списке — только 2 строки био */
.person-bio-short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.person-bio-short p {
  margin: 0;
  display: inline;
}

.person-bio-short br {
  display: none;
}

.person-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-medium);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.person-more:hover {
  color: var(--navy);
  text-decoration: underline;
}

.person-contacts {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.person-contact {
  margin: 0 0 0.35em;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.person-contact:last-child {
  margin-bottom: 0;
}

.person-contact a {
  color: var(--navy-medium);
}

/* ========== Страница одного человека (полная информация) ========== */
.person-detail {
  padding: 2rem;
  max-width: 720px;
}

.person-detail-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.person-detail-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.person-detail-photo-placeholder {
  width: 200px;
  height: 200px;
  background: var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

.person-detail-info {
  flex: 1;
  min-width: 0;
}

.person-detail-position {
  font-size: 1.1rem;
  color: var(--navy-medium);
  font-weight: 600;
  margin: 0.25rem 0 1rem;
}

.person-detail-contacts {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.person-detail-contacts p {
  margin: 0.2em 0;
}

.person-detail-contacts a {
  color: var(--navy-medium);
}

.person-detail-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.person-detail-bio p {
  margin-bottom: 0.75em;
}

.person-detail-bio p:last-child {
  margin-bottom: 0;
}

/* ========== Documents list ========== */
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-item {
  margin-bottom: 0;
}

.doc-item-content .card-title {
  margin-bottom: 0.5rem;
}

.doc-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

/* ========== Empty state ========== */
.empty-state {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-muted);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}

/* ========== Responsive — планшеты ========== */
@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ========== Responsive — мобилки ========== */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    min-height: auto;
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }

  .header-brand {
    flex: 1;
    min-width: 0;
  }

  .header-logo {
    width: 44px;
    height: 44px;
  }

  .header-title {
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .site-header {
    position: relative;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
    background: var(--navy);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .site-header.nav-open .header-nav {
    display: flex;
  }

  .header-nav a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    min-height: 48px;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-nav a:last-of-type {
    border-bottom: none;
  }

  .lang-form {
    margin: 0;
    padding: 0.75rem 1.25rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 0.5rem;
  }

  .lang-form button {
    min-width: 52px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    flex: 1;
  }

  main {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .page-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.25rem;
    margin: 2rem 0 0.85rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .btn {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-slider {
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
  }

  .hero-slides {
    min-height: 240px;
  }

  .hero-slide {
    padding: 1.75rem 1.25rem;
  }

  .hero-slide h1 {
    font-size: 1.35rem;
    margin-bottom: 0.6rem;
  }

  .hero-slide p {
    font-size: 0.95rem;
  }

  .hero-dots {
    bottom: 1rem;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  .intro-block {
    padding: 1.35rem 1.25rem;
    margin-bottom: 1.5rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .img-cover {
    height: 180px;
  }

  .img-placeholder {
    height: 180px;
  }

  .person-card .img-cover,
  .person-card .img-placeholder {
    height: 200px;
  }

  .assoc-logo {
    width: 64px;
    height: 64px;
  }

  .article-card {
    padding: 1.25rem;
  }

  .article-card .img-cover {
    height: 220px;
  }

  .article-body {
    font-size: 1rem;
  }

  .person-detail {
    padding: 1.25rem;
  }

  .person-detail-header {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .person-detail-photo,
  .person-detail-photo-placeholder {
    width: 160px;
    height: 160px;
  }

  .person-detail-info {
    text-align: center;
  }

  .person-detail-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1rem;
  }

  .doc-list {
    gap: 1rem;
  }

  .doc-item .card {
    padding: 1.25rem;
  }

  .empty-state {
    padding: 2rem 1.25rem;
    font-size: 1rem;
  }

  .bottom-logos {
    padding: 1.5rem 1rem;
  }

  .bottom-logos-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .bottom-logo {
    height: 140px;
    max-width: 260px;
  }

  .site-footer {
    padding: 1rem 1rem;
    font-size: 0.85rem;
  }

  .site-footer::before {
    margin-bottom: 0.75rem;
  }

  .footer-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .card:hover {
    transform: none;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .site-header {
    padding: 0.75rem 0.85rem;
  }

  .header-title {
    font-size: 0.85rem;
  }

  .header-nav a {
    padding: 0.45rem 0.6rem;
    font-size: 0.85rem;
  }

  main {
    padding: 1rem 0.85rem;
  }

  .page-title {
    font-size: 1.35rem;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .hero-slide h1 {
    font-size: 1.2rem;
  }

  .hero-slide p {
    font-size: 0.9rem;
  }

  .hero-slides {
    min-height: 220px;
  }

  .bottom-logo {
    height: 120px;
    max-width: 220px;
  }
}
