/* ================================================
   ТЕМА ЯГПУ для INTEC.Universe Site
   Стилизация под реальную страницу newyspu.ru
   
   Источник: https://newyspu.ru/news/компоненты-новость-данила/
   (исправленная версия от заказчика)
   
   CMS оригинала: WordPress + Educavo + Elementor Pro
   Платформа назначения: 1С-Битрикс + INTEC.Universe Site
   
   Версия: 2.0 (по реальной странице) | 14.07.2026
   ================================================ */

/* ===== CSS-ПЕРЕМЕННЫЕ (палитра с реальной страницы) ===== */
:root {
  /* ===== Основные цвета newyspu.ru ===== */
  --yspu-primary: #ff5421;
  --yspu-primary-hover: #e64a1c;
  --yspu-primary-light: #fff0eb;
  --yspu-dark: #171f32;
  --yspu-dark-hover: #0f1525;
  --yspu-blue-dark: #04328B;
  --yspu-blue: #1A3F84;
  --yspu-blue-light: #1D4EAD;
  --yspu-blue-bright: #124BFF;
  --yspu-accent-blue: #1992D3;
  
  /* ===== Фоны ===== */
  --yspu-bg: #ffffff;
  --yspu-bg-alt: #f3fafc;
  --yspu-bg-light-blue: #F1F9FE;
  --yspu-bg-card: #ffffff;
  
  /* ===== Текст ===== */
  --yspu-text: #101010;
  --yspu-text-muted: #666666;
  --yspu-text-light: #999999;
  --yspu-text-white: #ffffff;
  
  /* ===== Границы ===== */
  --yspu-border: #d3e1fb;
  --yspu-border-light: #f1f1f1;
  
  /* ===== Системные ===== */
  --yspu-rating: #fcb903;
  --yspu-scrollbar: #465977;
  --yspu-scrollbar-bg: #F1F9FE;
  
  /* ===== Геометрия ===== */
  --yspu-radius-sm: 5px;
  --yspu-radius: 8px;
  --yspu-radius-lg: 30px;
  --yspu-shadow: 0 10px 40px rgba(0,0,0,0.08);
  --yspu-shadow-sm: 0 0 10px rgba(0,0,0,0.05);
  --yspu-container: 1320px;
  --yspu-transition: all 0.3s ease;
  --yspu-transition-slow: all 0.5s ease;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--yspu-text);
  background: var(--yspu-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--yspu-primary);
  text-decoration: none;
  transition: var(--yspu-transition);
}
a:hover {
  color: var(--yspu-dark);
}

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

/* ===== КОНТЕЙНЕР (1320px как на странице) ===== */
.container {
  max-width: var(--yspu-container) !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* ===== ШАПКА ===== */
header,
.intec-header {
  background: var(--yspu-bg) !important;
  box-shadow: var(--yspu-shadow-sm) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ===== НАВИГАЦИЯ ===== */
nav a,
.intec-nav a {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 500 !important;
  color: var(--yspu-text) !important;
  padding: 10px 18px !important;
  transition: var(--yspu-transition) !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
}
nav a:hover,
nav a.active,
.intec-nav a:hover,
.intec-nav a.active {
  color: var(--yspu-primary) !important;
}

/* ===== КНОПКИ ===== */
.btn,
.button,
.intec-btn {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  border-radius: var(--yspu-radius-sm) !important;
  padding: 12px 32px !important;
  transition: var(--yspu-transition) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
}

.btn-primary,
.button-primary,
.intec-btn-primary {
  background: var(--yspu-primary) !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover,
.intec-btn-primary:hover {
  background: var(--yspu-primary-hover) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255,84,33,0.3);
}

.btn-dark,
.button-dark,
.intec-btn-dark {
  background: var(--yspu-dark) !important;
  color: #fff !important;
}
.btn-dark:hover,
.intec-btn-dark:hover {
  background: var(--yspu-dark-hover) !important;
  color: #fff !important;
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--yspu-bg-alt);
}
.section-light-blue {
  background: var(--yspu-bg-light-blue);
}

.section-title {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 16px;
}
.section-title span {
  color: var(--yspu-primary);
}
.section-subtitle {
  font-family: 'Montserrat', sans-serif;
  color: var(--yspu-text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1rem;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
  padding: 12px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--yspu-text-light);
  border-bottom: 1px solid var(--yspu-border-light);
  margin-bottom: 30px;
}
.breadcrumbs a {
  color: var(--yspu-text-muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--yspu-primary);
}
.breadcrumbs .current {
  color: var(--yspu-dark);
  font-weight: 600;
}
.breadcrumbs .sep {
  margin: 0 8px;
  color: var(--yspu-border);
}

/* ===== СТРАНИЦА НОВОСТИ ===== */
.news-page-header {
  margin-bottom: 30px;
}
.news-page-header .news-category {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: var(--yspu-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.news-page-header h1 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 12px;
}
.news-page-header .news-date {
  font-family: 'Montserrat', sans-serif;
  color: var(--yspu-text-light);
  font-size: 0.9rem;
}

.news-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--yspu-text);
}
.news-content p {
  margin-bottom: 20px;
}
.news-content img {
  border-radius: var(--yspu-radius);
  margin: 20px 0;
  width: 100%;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 30px 0;
}
.news-gallery img {
  border-radius: var(--yspu-radius);
  width: 100%;
  transition: var(--yspu-transition);
  cursor: pointer;
}
.news-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--yspu-shadow);
}

.news-quote {
  background: var(--yspu-bg-light-blue);
  border-left: 4px solid var(--yspu-primary);
  padding: 24px 30px;
  margin: 30px 0;
  border-radius: 0 var(--yspu-radius) var(--yspu-radius) 0;
  font-style: italic;
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.05rem;
  line-height: 1.6;
}
.news-quote .quote-author {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-weight: 600;
  color: var(--yspu-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

.news-tags {
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--yspu-border-light);
}
.news-tags a {
  display: inline-block;
  background: var(--yspu-bg-alt);
  color: var(--yspu-blue);
  padding: 6px 14px;
  border-radius: var(--yspu-radius-sm);
  font-size: 0.85rem;
  margin: 0 6px 8px 0;
  transition: var(--yspu-transition);
}
.news-tags a:hover {
  background: var(--yspu-primary);
  color: #fff;
}

/* ===== САЙДБАР / ПОСЛЕДНИЕ НОВОСТИ ===== */
.sidebar-widget {
  background: #fff;
  border-radius: var(--yspu-radius);
  padding: 24px;
  box-shadow: var(--yspu-shadow-sm);
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-family: 'Lora', 'Georgia', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--yspu-primary);
}

.latest-news-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--yspu-border-light);
  transition: var(--yspu-transition);
}
.latest-news-item:last-child {
  border-bottom: none;
}
.latest-news-item:hover {
  padding-left: 8px;
}
.latest-news-item .ln-image {
  width: 80px;
  height: 80px;
  border-radius: var(--yspu-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}
.latest-news-item .ln-content {
  flex: 1;
}
.latest-news-item .ln-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--yspu-dark);
  line-height: 1.4;
  margin-bottom: 4px;
  display: block;
  transition: var(--yspu-transition);
}
.latest-news-item .ln-title:hover {
  color: var(--yspu-primary);
}
.latest-news-item .ln-date {
  font-size: 0.8rem;
  color: var(--yspu-text-light);
}

/* ===== КАРТОЧКИ (Services/Features) ===== */
.card {
  background: var(--yspu-bg-card);
  border-radius: var(--yspu-radius);
  padding: 30px 25px;
  transition: var(--yspu-transition-slow);
  border: none;
  box-shadow: none;
  position: relative;
}
.card:hover {
  box-shadow: var(--yspu-shadow);
  transform: translateY(-5px);
}

.card-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yspu-bg-alt);
  border-radius: var(--yspu-radius-sm);
  font-size: 28px;
  color: var(--yspu-primary);
  margin-bottom: 20px;
  transition: var(--yspu-transition);
}
.card:hover .card-icon {
  background: var(--yspu-primary);
  color: #fff;
}

.card h3 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.card p {
  color: var(--yspu-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== ЦИФРЫ / ФАКТЫ ===== */
.fact-value {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: var(--yspu-primary);
  line-height: 1;
  margin-bottom: 4px;
}
.fact-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--yspu-dark);
  font-size: 0.95rem;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.fact-item {
  padding: 30px 20px;
  border-right: 1px solid var(--yspu-border);
}
.fact-item:last-child { border-right: none; }

/* ===== РУКОВОДСТВО ===== */
.staff-card {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: var(--yspu-radius);
  transition: var(--yspu-transition);
}
.staff-card:hover {
  box-shadow: var(--yspu-shadow);
}
.staff-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}
.staff-name {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.staff-position {
  font-family: 'Montserrat', sans-serif;
  color: var(--yspu-text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* ===== НОВОСТИ (сетка) ===== */
.news-card {
  background: #fff;
  border-radius: var(--yspu-radius);
  overflow: hidden;
  transition: var(--yspu-transition-slow);
}
.news-card:hover {
  box-shadow: var(--yspu-shadow);
  transform: translateY(-5px);
}
.news-card .news-image {
  overflow: hidden;
  position: relative;
}
.news-card .news-image img {
  width: 100%;
  transition: var(--yspu-transition-slow);
}
.news-card:hover .news-image img {
  transform: scale(1.05);
}
.news-card .news-content {
  padding: 20px;
}
.news-card .news-date {
  font-family: 'Montserrat', sans-serif;
  color: var(--yspu-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.news-card .news-title {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  font-size: 1.1rem;
  line-height: 1.4;
}
.news-card .news-title a {
  color: var(--yspu-blue-dark) !important;
  transition: var(--yspu-transition) !important;
}
.news-card .news-title a:hover {
  color: var(--yspu-primary) !important;
}
.news-card .news-excerpt {
  color: var(--yspu-text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* ===== ФУТЕР ===== */
footer {
  background: var(--yspu-dark) !important;
  color: #fff !important;
  padding: 60px 0 0;
}
footer h3,
footer .footer-title {
  color: #fff !important;
  font-family: 'Lora', 'Georgia', serif !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  font-size: 1.1rem !important;
}
footer p,
footer a {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.92rem !important;
  line-height: 1.8 !important;
  transition: var(--yspu-transition) !important;
}
footer a:hover {
  color: var(--yspu-primary) !important;
}
footer ul {
  list-style: none;
  padding: 0;
}
footer ul li {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 40px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ===== ФОРМЫ ===== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  border: 1px solid var(--yspu-border-light) !important;
  border-radius: var(--yspu-radius-sm) !important;
  padding: 12px 18px !important;
  height: 48px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.93rem !important;
  transition: var(--yspu-transition) !important;
  width: 100% !important;
  outline: none !important;
  background: #fff;
}
textarea {
  height: 120px !important;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--yspu-primary) !important;
  box-shadow: 0 0 0 3px rgba(255,84,33,0.1) !important;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--yspu-border) !important;
  border-radius: var(--yspu-radius-sm) !important;
  margin-bottom: 10px !important;
  overflow: hidden;
}
.faq-question {
  background: var(--yspu-bg-alt) !important;
  padding: 16px 20px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  color: var(--yspu-dark) !important;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--yspu-transition);
}
.faq-question:hover {
  color: var(--yspu-primary) !important;
}
.faq-answer {
  padding: 16px 20px !important;
  color: var(--yspu-text-muted) !important;
  border-top: 1px solid var(--yspu-border-light);
}

/* ===== КОНТАКТЫ ===== */
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--yspu-primary);
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  margin-bottom: 4px;
  font-size: 1rem;
}
.contact-item p {
  color: var(--yspu-text-muted);
  font-size: 0.92rem;
}

/* ===== ШАГИ ПОСТУПЛЕНИЯ ===== */
.steps-grid {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}
.step-item {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: var(--yspu-radius);
  transition: var(--yspu-transition);
}
.step-item:hover {
  box-shadow: var(--yspu-shadow);
  transform: translateY(-3px);
}
.step-number {
  width: 50px;
  height: 50px;
  background: var(--yspu-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.step-item h4 {
  font-family: 'Lora', 'Georgia', serif;
  font-weight: 700;
  color: var(--yspu-blue-dark);
  margin-bottom: 8px;
}
.step-item p {
  font-size: 0.9rem;
  color: var(--yspu-text-muted);
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 5px;
  background: var(--yspu-scrollbar-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--yspu-scrollbar);
  border-radius: 3px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media only screen and (max-width: 1320px) {
  .container {
    max-width: 100% !important;
    padding: 0 20px !important;
  }
}

@media only screen and (max-width: 1024px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-item:nth-child(2) {
    border-right: none;
  }
  .fact-item:nth-child(1),
  .fact-item:nth-child(2) {
    border-bottom: 1px solid var(--yspu-border);
  }
  .news-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 768px) {
  .section-title { font-size: 1.6rem; }
  .section { padding: 60px 0; }
  
  .news-page-header h1 { font-size: 1.5rem; }
  .news-gallery { grid-template-columns: 1fr; }
  
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-item { max-width: 100%; width: 100%; }
  
  .latest-news-item .ln-image { width: 60px; height: 60px; }
}

@media only screen and (max-width: 480px) {
  .section-title { font-size: 1.3rem; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact-item { border-right: none; border-bottom: 1px solid var(--yspu-border); }
  .fact-value { font-size: 2rem; }
  .btn { padding: 10px 24px; font-size: 0.88rem; }
  .news-page-header h1 { font-size: 1.2rem; }
}
