/*
Theme Name: Монолит — СНТ
Theme URI: https://snt-monolit.ru
Author: Monolit Team
Author URI: https://snt-monolit.ru
Description: Современная тема для СНТ "Монолит" — г. Омск. Чистый дизайн, адаптивность, быстрый отклик.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monolit
Tags: one-column, custom-menu, featured-images, translation-ready
*/

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --accent: #38a169;
  --accent-light: #48bb78;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-light);
}

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

/* ===== CONTAINER ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--primary);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
}

/* ===== NAVIGATION ===== */
.main-nav {
  display: block;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 10px 18px;
  color: var(--gray-700);
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  background: var(--gray-100);
  color: var(--primary);
  text-decoration: none;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 70px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero h1 span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 12px;
  opacity: 0.85;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== NEWS CARDS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.news-card-image {
  width: 100%;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.news-card:hover .news-card-image img {
  transform: scale(1.05);
}

.news-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 20px 24px;
}

.news-date {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

.news-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.news-card-body {
  padding: 24px;
}

.news-card-body p {
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.6;
}

.news-card .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* ===== MAP SECTION ===== */
.map-section {
  background: var(--gray-100);
  padding: 60px 0;
}

.map-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 30px;
}

.map-placeholder {
  height: 400px;
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  gap: 16px;
}

.map-placeholder .map-icon {
  font-size: 4rem;
}

/* ===== CONTACT INFO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-item {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
  color: var(--primary);
}

.contact-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-item p {
  color: var(--gray-600);
}

.contact-item a {
  color: var(--accent);
  font-weight: 500;
}

/* ===== DOCUMENTS LIST ===== */
.documents-list {
  max-width: 900px;
  margin: 0 auto;
}

.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.doc-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.doc-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.doc-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.doc-info h4 {
  font-size: 1rem;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.doc-info span {
  font-size: 0.85rem;
  color: var(--gray-600);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--gray-300);
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.15rem;
  opacity: 0.9;
}

/* ===== TEAM GRID ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-avatar {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.team-card .position {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.team-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===== ОПЛАТА CTA ===== */

/* ===== ИНФРАСТРУКТУРА КАРТОЧКИ ===== */
.infrastructure-card {
  transition: var(--transition);
}

.infrastructure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.infrastructure-card:hover .infrastructure-card-image svg {
  transform: scale(1.1);
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--white);
  padding: 30px 0;
  box-shadow: var(--shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block !important;
  }

  .main-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    z-index: 1000;
    border-top: 1px solid var(--gray-200);
  }

  .main-nav.active {
    display: block !important;
  }

  .main-nav ul {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    margin: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 16px;
    color: var(--gray-700);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 1rem;
  }

  .main-nav a:hover,
  .main-nav .current-menu-item a {
    background: var(--gray-100);
    color: var(--primary);
    text-decoration: none;
  }

  .header-inner {
    padding: 12px 20px;
  }

  .hero {
    padding: 50px 20px 60px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero h1 span {
    font-size: 0.8rem;
  }

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

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .doc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 20px;
  }
}

/* ===== WP ALIGNMENT ===== */
.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 500;
}

.pagination a:hover,
.pagination .current {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== MESSAGES ===== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.alert-success {
  background: #f0fff4;
  color: #22543d;
  border: 1px solid #c6f6d5;
}

.alert-error {
  background: #fff5f5;
  color: #742a2a;
  border: 1px solid #fed7d7;
}
