/* ===================================================
   АНО "АССОЦИАЦИЯ ЖИВОТНОВОДОВ ЗАБАЙКАЛЬСКОГО КРАЯ"
   Главный файл стилей: css/style.css
   =================================================== */

/* --- CSS Переменные (цветовая палитра) --- */
:root {
  --bg-primary:    #F8F9FA;
  --bg-dark:       #1A252F;
  --bg-card:       #FFFFFF;
  --color-text:    #2C3E50;
  --color-muted:   #6C7A89;
  --color-green:   #4A7C59;
  --color-green-d: #3a6347;
  --color-green-l: #EAF2EC;
  --color-gold:    #D4A373;
  --color-gold-d:  #b8874a;
  --color-gold-l:  #FDF5EB;
  --color-white:   #FFFFFF;
  --border-color:  #E0E5EA;
  --shadow-sm:     0 2px 8px rgba(26,37,47,0.08);
  --shadow-md:     0 4px 20px rgba(26,37,47,0.12);
  --radius-sm:     6px;
  --radius-md:     12px;
  --transition:    0.25s ease;
}

/* --- Базовые стили --- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5 {
  font-family: 'PT Serif', Georgia, serif;
  color: var(--bg-dark);
  line-height: 1.3;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-green-d); }

img { max-width: 100%; height: auto; }

/* --- Утилиты --- */
.text-green  { color: var(--color-green) !important; }
.text-gold   { color: var(--color-gold)  !important; }
.text-muted  { color: var(--color-muted) !important; }
.bg-green    { background-color: var(--color-green) !important; }
.bg-dark-site{ background-color: var(--bg-dark) !important; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--bg-dark);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
}

/* ===================================================
   ШАПКА (HEADER)
   =================================================== */
#site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 70px;
}

/* Логотип */
#site-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

#site-header .logo-emblem {
  width: 44px;
  height: 44px;
  background: var(--color-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#site-header .logo-emblem svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

#site-header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#site-header .logo-text .abbr {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

#site-header .logo-text .full-name {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.03em;
}

/* Навигация */
#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.2rem;
}

#main-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

#main-nav a:hover,
#main-nav a.active {
  background: rgba(74,124,89,0.35);
  color: #fff;
}

#main-nav a.nav-auction {
  background: var(--color-green);
  color: #fff;
  margin-left: 0.4rem;
}
#main-nav a.nav-auction:hover {
  background: var(--color-green-d);
}

/* Гамбургер */
#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
#nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================================
   ПОДВАЛ (FOOTER)
   =================================================== */
#site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}

#site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

#site-footer .footer-brand .abbr {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
#site-footer .footer-brand p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

#site-footer h4 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

#site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#site-footer ul li { margin-bottom: 0.45rem; }
#site-footer ul a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
#site-footer ul a:hover { color: var(--color-gold); }

#site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
}
#site-footer .footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-green);
}

#site-footer .footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===================================================
   КНОПКИ
   =================================================== */
.btn-primary-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green);
  color: #fff !important;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary-site:hover {
  background: var(--color-green-d);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(74,124,89,0.35);
}

.btn-gold-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-gold);
  color: #1A252F !important;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-gold-site:hover {
  background: var(--color-gold-d);
  transform: translateY(-1px);
}

.btn-outline-site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-green) !important;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid var(--color-green);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline-site:hover {
  background: var(--color-green);
  color: #fff !important;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ===================================================
   КАРТОЧКИ
   =================================================== */
.card-site {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card-site:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-site .card-body {
  padding: 1.5rem;
}

.card-site .card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-green-l);
  color: var(--color-green);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.card-site .card-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.card-site .card-title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card-site .card-excerpt {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

/* ===================================================
   PAGE HERO (внутренние страницы)
   =================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d4a38 100%);
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234A7C59' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  position: relative;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  position: relative;
}

.breadcrumb-site {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  position: relative;
}
.breadcrumb-site a {
  color: rgba(255,255,255,0.6);
}
.breadcrumb-site a:hover { color: var(--color-gold); }

/* ===================================================
   СЕКЦИИ
   =================================================== */
.section-pad {
  padding: 5rem 0;
}

.section-pad-sm {
  padding: 3rem 0;
}

.container-site {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 3rem;
}

/* Divider */
.divider-green {
  width: 48px;
  height: 3px;
  background: var(--color-green);
  border-radius: 2px;
  margin: 0.6rem 0 1rem;
}

/* ===================================================
   СТАТИСТИКА / СЧЁТЧИКИ
   =================================================== */
.stat-block {
  text-align: center;
  padding: 1.5rem;
}
.stat-block .stat-number {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-green);
  display: block;
  line-height: 1;
}
.stat-block .stat-label {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin-top: 0.3rem;
}

/* ===================================================
   РЫНОЧНЫЕ ДАННЫЕ / ГРАФИК
   =================================================== */
#price-chart-section {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chart-tab-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  background: transparent;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.chart-tab-btn:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}
.chart-tab-btn.active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.chart-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.chart-canvas-container {
  position: relative;
  height: 380px;
}

.price-table-wrapper {
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.price-table th {
  background: var(--color-green);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.price-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-green-l); }

.price-change.up   { color: #28a745; font-weight: 700; }
.price-change.down { color: #dc3545; font-weight: 700; }

/* ===================================================
   АУКЦИОН
   =================================================== */
.auction-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.auction-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.auction-card .auction-header {
  background: linear-gradient(135deg, var(--bg-dark), #2d4a38);
  padding: 1.5rem;
  color: #fff;
}

.auction-card .auction-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
}
.auction-status.upcoming {
  background: rgba(212,163,115,0.25);
  color: var(--color-gold);
}
.auction-status.completed {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.auction-card .auction-title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.auction-card .auction-date {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.auction-card .auction-body {
  padding: 1.5rem;
  flex: 1;
}

.auction-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.auction-meta-item:last-child { border-bottom: none; }
.auction-meta-item .label { color: var(--color-muted); }
.auction-meta-item .value { font-weight: 700; color: var(--bg-dark); }

/* Табы */
.tabs-site {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active {
  color: var(--color-green);
  border-bottom-color: var(--color-green);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===================================================
   КОНТАКТЫ / ФОРМА
   =================================================== */
.contact-info-card {
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h3 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.contact-item svg {
  flex-shrink: 0;
  color: var(--color-gold);
  margin-top: 2px;
}
.contact-item .ci-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}
.contact-item .ci-value {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}
.contact-item a.ci-value {
  color: var(--color-gold);
}

.form-site label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 0.4rem;
}

.form-site input,
.form-site textarea,
.form-site select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--bg-card);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-site input:focus,
.form-site textarea:focus,
.form-site select:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(74,124,89,0.15);
}
.form-site .form-group { margin-bottom: 1.2rem; }

.form-success {
  display: none;
  background: var(--color-green-l);
  border: 2px solid var(--color-green);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  color: var(--color-green-d);
  font-weight: 700;
  margin-top: 1rem;
}

/* ===================================================
   РЕКВИЗИТЫ
   =================================================== */
.requisites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.requisites-table tr td:first-child {
  font-weight: 700;
  color: var(--color-muted);
  width: 40%;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}
.requisites-table tr td:last-child {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--bg-dark);
  font-weight: 600;
}
.requisites-table tr:last-child td { border-bottom: none; }

/* ===================================================
   HERO (ГЛАВНАЯ)
   =================================================== */
#home-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3528 60%, #2d4a38 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
}

#home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(74,124,89,0.25) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234A7C59' fill-opacity='0.05'%3E%3Cpath d='M40 0C17.9 0 0 17.9 0 40s17.9 40 40 40 40-17.9 40-40S62.1 0 40 0zm0 70C23.4 70 10 56.6 10 40S23.4 10 40 10s30 13.4 30 30-13.4 30-30 30z'/%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74,124,89,0.2);
  border: 1px solid rgba(74,124,89,0.4);
  color: #8fcfaa;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

#home-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

#home-hero h1 span {
  color: var(--color-gold);
}

#home-hero .hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat .number {
  display: block;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

/* Декоративный элемент в hero */
.hero-decor {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.08;
  pointer-events: none;
}

/* ===================================================
   СЕКЦИЯ НОВОСТЕЙ НА ГЛАВНОЙ
   =================================================== */
#home-news-section { padding: 5rem 0; }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ===================================================
   ПРИЗЫВ К ДЕЙСТВИЮ (CTA)
   =================================================== */
#home-cta-section {
  background: linear-gradient(135deg, var(--color-green) 0%, #3a6347 100%);
  padding: 5rem 0;
  text-align: center;
  color: #fff;
}
#home-cta-section h2 { color: #fff; }
#home-cta-section p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; max-width: 600px; margin: 0 auto 2rem; }

/* ===================================================
   АДАПТИВНОСТЬ
   =================================================== */
@media (max-width: 991px) {
  #site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-decor { display: none; }
}

@media (max-width: 768px) {
  #main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0.2rem; }
  #main-nav a { padding: 0.6rem 1rem; }
  #main-nav a.nav-auction { margin-left: 0; }

  #nav-toggle { display: block; }

  #site-header .header-inner { padding: 0 1rem; }

  .page-hero { padding: 3rem 1rem; }

  #home-hero { min-height: 100vh; padding: 6rem 1rem 4rem; }

  #site-footer .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  #site-footer .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 1.5rem 1rem 0;
  }

  .container-site { padding: 0 1rem; }

  .section-pad { padding: 3rem 0; }

  .hero-stats { gap: 1.5rem; }
  .hero-stat .number { font-size: 1.6rem; }

  .contact-info-card { margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions a, .hero-actions button {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================================
   АНИМАЦИИ
   =================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
.animate-in-delay-1 { animation-delay: 0.15s; animation-fill-mode: both; opacity: 0; }
.animate-in-delay-2 { animation-delay: 0.3s;  animation-fill-mode: both; opacity: 0; }
.animate-in-delay-3 { animation-delay: 0.45s; animation-fill-mode: both; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===================================================
   ВСПОМОГАТЕЛЬНЫЕ СЕТКИ
   =================================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.gap-2 { gap: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.text-center { text-align: center; }

/* ===================================================
   ABOUT page specifics
   =================================================== */
.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green), #3a6347);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  flex-shrink: 0;
}
.team-info h3 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}
.team-role {
  color: var(--color-green);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.team-desc { font-size: 0.88rem; color: var(--color-muted); }

.mission-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  border-left: 4px solid var(--color-green);
}
.mission-card h4 {
  color: var(--color-green);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Зелёный блок с документами */
.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
  transition: transform var(--transition);
}
.doc-item:hover { transform: translateX(4px); }
.doc-icon {
  width: 36px;
  height: 36px;
  background: var(--color-green-l);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  flex-shrink: 0;
}
.doc-name { font-weight: 700; font-size: 0.9rem; color: var(--bg-dark); }
.doc-type { font-size: 0.75rem; color: var(--color-muted); }


/* ===================================================
   Production additions
   =================================================== */
main { min-height: 62vh; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--color-gold);
  color: var(--bg-dark);
  padding: 0.6rem 1rem;
  z-index: 2000;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { left: 10px; }
#site-footer a { color: rgba(255,255,255,0.72); }
#site-footer a:hover { color: var(--color-gold); }
.section-lead { max-width: 760px; color: var(--color-muted); font-size: 1.02rem; }
.lead-dark { color: rgba(255,255,255,0.72); }
.site-table-wrapper { overflow-x: auto; background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.site-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.site-table th { background: var(--color-green); color: #fff; text-align: left; padding: 0.75rem 1rem; white-space: nowrap; }
.site-table td { border-bottom: 1px solid var(--border-color); padding: 0.7rem 1rem; vertical-align: top; }
.site-table tr:last-child td { border-bottom: none; }
.notice-card {
  background: var(--color-gold-l);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.notice-card h3, .notice-card h4 { margin-top: 0; }
.filter-controls { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-controls button {
  padding: 0.45rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--color-muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.filter-controls button.active,
.filter-controls button:hover { border-color: var(--color-green); color: var(--color-green); background: var(--color-green-l); }
.lot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.lot-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.lot-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lot-card .lot-label { color: var(--color-green); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.lot-card h3 { margin: 0.4rem 0 0.8rem; font-size: 1.05rem; }
.lot-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 1rem 0; }
.lot-meta span { display: block; font-size: 0.76rem; color: var(--color-muted); }
.lot-meta strong { font-size: 0.9rem; color: var(--bg-dark); }
.price-badge { display: inline-flex; background: var(--color-gold-l); color: var(--color-gold-d); border-radius: 999px; padding: 0.35rem 0.75rem; font-weight: 700; }
.step-list { counter-reset: steps; display: grid; gap: 1rem; }
.step-card { background: var(--bg-card); box-shadow: var(--shadow-sm); border-radius: var(--radius-md); padding: 1.3rem 1.5rem 1.3rem 4rem; position: relative; }
.step-card::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 1.3rem;
  top: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.data-list { display: grid; gap: 0.7rem; }
.data-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.55rem; }
.data-list div:last-child { border-bottom: none; padding-bottom: 0; }
.data-list span { color: var(--color-muted); }
.data-list strong { color: var(--bg-dark); text-align: right; }
.price-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.chart-canvas-container canvas { width: 100%; height: 380px; display: block; }
.contact-card { background: var(--bg-card); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 2rem; }
.privacy-note { font-size: 0.82rem; color: var(--color-muted); }
.privacy-note a { font-weight: 700; }
.will-animate { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 600px) {
  .lot-meta { grid-template-columns: 1fr; }
  .step-card { padding-left: 1.5rem; padding-top: 4rem; }
  .step-card::before { top: 1.2rem; }
  .data-list div { flex-direction: column; gap: 0.2rem; }
  .data-list strong { text-align: left; }
}

/* ===================================================
   MOBILE HARDENING v1.1
   Дополнительная защита верстки для телефонов 320–480 px
   =================================================== */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

#site-header .logo,
#site-header .logo-text,
.team-info,
.contact-item,
.data-list,
.card-site,
.notice-card,
.lot-card,
.mission-card,
.doc-item {
  min-width: 0;
}

#site-header .logo-text .full-name,
.contact-item .ci-value,
#site-footer .footer-contact-item,
.card-site,
.notice-card,
.lot-card,
.team-card,
.mission-card,
.doc-item,
.data-list,
.requisites-table,
.site-table,
.price-table {
  overflow-wrap: break-word;
}

#nav-toggle {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.lot-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.tabs-site,
.site-table-wrapper,
.price-table-wrapper {
  -webkit-overflow-scrolling: touch;
}

.tabs-site {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.tab-btn {
  flex: 0 0 auto;
  min-height: 44px;
  white-space: nowrap;
}

.chart-tab-btn,
.filter-controls button,
.btn-primary-site,
.btn-gold-site,
.btn-outline-site,
.btn-outline-white {
  min-height: 44px;
  justify-content: center;
  text-align: center;
}

.requisites-table {
  table-layout: fixed;
}

.requisites-table td {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  #nav-toggle {
    display: flex;
  }

  #main-nav {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
  }

  #main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .tabs-site {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .chart-wrapper,
  .contact-card,
  .contact-info-card,
  .notice-card,
  .team-card,
  .mission-card {
    padding: 1.5rem;
  }

  .chart-canvas-container {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .news-grid,
  .lot-grid {
    grid-template-columns: 1fr;
  }

  .requisites-table,
  .requisites-table tbody,
  .requisites-table tr,
  .requisites-table td {
    display: block;
    width: 100% !important;
  }

  .requisites-table tr {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-color);
  }

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

  .requisites-table tr td:first-child,
  .requisites-table tr td:last-child {
    border-bottom: none;
    padding: 0;
    white-space: normal;
  }

  .requisites-table tr td:first-child {
    margin-bottom: 0.25rem;
  }

  .requisites-table tr td:last-child {
    font-weight: 600;
  }

  .team-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-item {
    align-items: flex-start;
  }

  .price-table {
    min-width: 490px;
  }

  .chart-canvas-container {
    height: 280px;
  }
}

@media (max-width: 480px) {
  #site-header .header-inner {
    height: 64px;
  }

  #main-nav {
    top: 64px;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
  }

  #site-header .logo-emblem {
    width: 40px;
    height: 40px;
  }

  #site-header .logo-text .abbr {
    font-size: 1rem;
  }

  #site-header .logo-text .full-name {
    display: none;
  }

  .page-hero h1,
  #home-hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  #home-hero {
    min-height: auto;
    padding-top: 5.2rem;
    padding-bottom: 3rem;
  }

  .hero-badge {
    align-items: flex-start;
    white-space: normal;
    text-align: left;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .btn-primary-site,
  .btn-gold-site,
  .btn-outline-site,
  .btn-outline-white {
    width: 100%;
  }

  .card-site .card-body,
  .lot-card,
  .notice-card,
  .contact-card,
  .contact-info-card,
  .mission-card,
  .team-card {
    padding: 1.2rem;
  }

  .chart-wrapper {
    padding: 1rem;
  }

  .chart-controls,
  .filter-controls {
    gap: 0.4rem;
  }

  .chart-tab-btn,
  .filter-controls button {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

@media (max-width: 360px) {
  .container-site {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

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

  .page-hero {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}
