/* ============================================
   ИЦТиМ — Neo Vectorheart Design System
   The Designers Republic inspired
   Neo-Brutalism + Cyberpunk
   ============================================ */

/* ---- CSS Variables (Light Mode Default) ---- */
:root {
  --bg-base: #EDEDED;
  --bg-elevated: #D9D9D9;
  --bg-inverted: #121212;
  --text-primary: #121212;
  --text-secondary: #555555;
  --text-inverted: #EDEDED;
  --accent-primary: #C8FF00;
  --accent-secondary: #00F0FF;
  --accent-magenta: #FF00F0;
  --border-stroke: #121212;
  --border-thin: #555555;
  --font-display: 'Oswald', 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --max-width: 1280px;
  --header-height: 72px;
  --shadow-brutal: 6px 6px 0 var(--border-stroke);
  --shadow-brutal-lg: 8px 8px 0 var(--border-stroke);
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] {
  --bg-base: #0A0A0A;
  --bg-elevated: #1A1A1A;
  --bg-inverted: #EDEDED;
  --text-primary: #EDEDED;
  --text-secondary: #888888;
  --text-inverted: #121212;
  --border-stroke: #EDEDED;
  --border-thin: #444444;
  --shadow-brutal: 6px 6px 0 var(--border-stroke);
  --shadow-brutal-lg: 8px 8px 0 var(--border-stroke);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  transition: background var(--transition-medium), color var(--transition-medium);
  overflow-x: hidden;
}

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

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

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(36px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.9;
}

h2 {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.0;
}

h3 {
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.1;
}

h4 {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.mono {
  font-family: var(--font-mono);
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.section {
  border-top: 4px solid var(--border-stroke);
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-dark {
  background: var(--bg-inverted);
  color: var(--text-inverted);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 3px solid var(--border-stroke);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--text-inverted) !important;
  box-shadow: var(--shadow-brutal);
}

.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border-stroke);
  color: var(--text-inverted) !important;
}

.btn-primary:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--border-stroke);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-brutal);
}

.btn-secondary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--border-stroke);
  background: rgba(200, 255, 0, 0.1);
}

.btn-light {
  background: transparent;
  color: var(--text-inverted) !important;
  border-color: var(--text-inverted);
  box-shadow: 6px 6px 0 var(--text-inverted);
}

.btn-light:hover {
  background: var(--accent-primary);
  color: var(--text-inverted) !important;
  border-color: var(--border-stroke);
}

/* ---- Cards ---- */
.card {
  background: var(--bg-elevated);
  border: 3px solid var(--border-stroke);
  padding: 32px;
  position: relative;
  transition: all var(--transition-fast);
}

.card-shadow {
  box-shadow: var(--shadow-brutal-lg);
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--border-stroke);
}

.card-dashed {
  border: none;
  background:
    linear-gradient(90deg, var(--border-stroke) 50%, transparent 50%) repeat-x top,
    linear-gradient(90deg, var(--border-stroke) 50%, transparent 50%) repeat-x bottom,
    linear-gradient(0deg, var(--border-stroke) 50%, transparent 50%) repeat-y left,
    linear-gradient(0deg, var(--border-stroke) 50%, transparent 50%) repeat-y right;
  background-size: 12px 3px, 12px 3px, 3px 12px, 3px 12px;
  padding: 32px;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  background: var(--accent-primary);
  color: #121212;
}

.badge-cyan {
  background: var(--accent-secondary);
  color: #121212;
}

.badge-magenta {
  background: var(--accent-magenta);
  color: #fff;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-base);
  border-bottom: 3px solid var(--border-stroke);
  z-index: 1000;
  transition: background var(--transition-medium);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 1vw, 50px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-stroke);
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: var(--text-inverted);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.link-header {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  transition: color var(--transition-fast);
}

.link-header:hover {
  color: var(--accent-primary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: 8px 12px;
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  transform: scaleX(1);
}

.nav-desktop a:hover {
  color: var(--accent-primary);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border: 2px solid var(--border-stroke);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background: rgba(200, 255, 0, 0.2);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: #121212;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--border-stroke);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: #121212;
  transform: rotate(15deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--border-stroke);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  /* transition: all var(--transition-fast); */
  transition: transform .3s ease, opacity .25s ease, width .3s ease;
  transform-origin: center ;
}

/* Верхняя полоска */
.menu-toggle.active span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
}

/* Средняя исчезает */
.menu-toggle.active span:nth-child(2){
    opacity: 0;
    transform: scaleX(0);
}

/* Нижняя полоска */
.menu-toggle.active span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
}
/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-inverted);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  transform: translateX(100%);
  transition: transform var(--transition-medium);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-inverted);
  padding: 16px 0;
  border-bottom: 2px dashed var(--border-thin);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--accent-primary);
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 2px solid var(--text-inverted);
  color: var(--text-inverted);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

[data-theme="dark"] .hero-bg img {
  filter: grayscale(30%) brightness(0.6);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  min-height: 24px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-number {
  position: absolute;
  right: -5%;
  top: 15%;
  font-family: var(--font-display);
  font-size: clamp(200px, 30vw, 400px);
  font-weight: 900;
  color: var(--accent-primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: var(--border-stroke);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* ---- Page Hero (compact) ---- */
.page-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-secondary);
}

/* ---- Grid layouts ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* ---- Stats ---- */
.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 900;
  color: var(--accent-magenta);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ---- Program Cards ---- */
.program-card .program-number {
  display: inline-block;
  background: var(--accent-primary);
  color: #121212;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  margin-bottom: 16px;
}

.program-card h3 {
  margin-bottom: 12px;
  font-size: clamp(18px, 2vw, 24px);
}

.program-card ul {
  list-style: none;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---- News Cards ---- */
.news-card {
  overflow: hidden;
}

.news-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 3px solid var(--border-stroke);
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
}

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

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

.news-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-secondary);
  margin-bottom: 8px;
}

.news-card h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    0deg,
    var(--border-thin) 0px,
    var(--border-thin) 6px,
    transparent 6px,
    transparent 12px
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border: 2px solid var(--border-stroke);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
}

.timeline-text {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Tables ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 3px solid var(--border-stroke);
  font-size: 14px;
}

.data-table thead th {
  background: var(--accent-primary);
  color: #121212;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  padding: 14px 16px;
  text-align: left;
  border: 2px solid var(--border-stroke);
}

.data-table td {
  padding: 12px 16px;
  border: 2px solid var(--border-stroke);
  color: var(--text-primary);
}

.data-table tbody tr:nth-child(even) {
  background: var(--bg-elevated);
}

.data-table tbody tr:hover {
  background: rgba(200, 255, 0, 0.1);
}

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

.form-group label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--accent-primary);
  color: #121212;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: var(--bg-base);
  border: 3px solid var(--border-stroke);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,0.1);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23121212' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border-bottom: 1px solid var(--border-thin);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 24px;
  color: var(--accent-primary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Tabs ---- */
.tabs-header {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid var(--border-stroke);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(200, 255, 0, 0.1);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #121212;
  border-color: var(--border-stroke);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-inverted);
  color: var(--text-inverted);
  border-top: 4px solid var(--border-stroke);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text-inverted);
}

.footer p,
.footer a {
  font-size: 14px;
  color: var(--text-inverted);
  opacity: 0.7;
  text-decoration: none;
  line-height: 1.8;
  display: block;
}

.footer a:hover {
  opacity: 1;
  color: var(--accent-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-thin);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.5;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Glitch Effect ---- */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-active::before {
  opacity: 0.8;
  color: var(--accent-secondary);
  animation: glitch-1 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-active::after {
  opacity: 0.8;
  color: var(--accent-magenta);
  animation: glitch-2 0.2s ease;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(3px); }
  40% { transform: translateX(-3px); }
  60% { transform: translateX(2px); }
  80% { transform: translateX(-2px); }
}

/* ---- Section Header ---- */
.section-header {
  margin-bottom: 48px;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

/* ---- Contact Info Block ---- */
.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.contact-info-item h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Calculator ---- */
.calculator-result {
  margin-top: 32px;
  padding: 32px;
  background: var(--bg-elevated);
  border: 3px solid var(--border-stroke);
  text-align: center;
  display: none;
}

.calculator-result.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

.calculator-score {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--accent-primary);
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-cyan { color: var(--accent-secondary); }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ----  CMS ---- */

.page-content{
    padding-top:140px;
    padding-bottom:80px;
}

.page-text{
    max-width:900px;
    line-height:1.8;
}

.page-text p{
    margin-bottom:24px;
}

/* --- news-list --- */
.news-list-card{
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: var(--bg-elevated);
    border:1px solid var(--border-thin);
    border-radius:24px;
    padding:28px;
    margin-bottom:36px;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    transition: .35s;
}

.news-list-card:hover{
    transform:translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow:0 18px 40px rgba(0,0,0,.25);
}
.news-list-card-link{
    display:block;
    text-decoration:none;
    color:inherit;
}

.news-list-card-image{
    overflow:hidden;
    border-radius:18px;
    flex:0 0 340px;
}

.news-list-card-image img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:18px;
    transition:transform .35s;
}

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

.news-list-card-content{
    flex:1;
}

.news-list-date{
    color:var(--accent-primary);
    font-size:.9rem;
    font-weight:700;
    margin-bottom:10px;
}

.news-list-title {
    font-size: clamp(26px,3vw,42px);
    line-height:1.1;
    margin-bottom:16px;
}

.news-list-excerpt{
    line-height:1.8;
    opacity:.85;
}

.news-list-read-more{
    display:inline-block;
    margin-top:20px;
    font-weight:700;
}

/* --- Pagination --- */
.news-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:60px;
    flex-wrap:wrap;
}

.page-btn{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    text-decoration:none;
    background:var(--surface-primary);
    border:1px solid var(--border-color);
    color:var(--text-primary);
    font-weight:600;
    transition:.3s;
}

.page-btn:hover{
    background:var(--accent-primary);
    color:#fff;
    border-color:var(--accent-primary);
}

.page-btn.active{
    background:var(--accent-primary);
    color:#fff;
    border-color:var(--accent-primary);
}

.page-dots{
    padding:0 4px;
    color:var(--text-secondary);
    font-weight:700;
}

/*--- SINGLE NEWS ---*/

.section:has(.news-single) {
  padding: 0;
}

.news-single-hero .container{
    max-width:1000px;
}

.news-single{
    max-width:1000px;
    min-height:38vh;
    padding-top:var(--header-height);
    margin:auto;
}
.news-single-title{
  padding-top: 5px;
}

.news-single-hero h1{
    font-size:clamp(36px,5.2vw,62px);
    line-height:1.2;
    word-break:break-word;
}

.news-single-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
    padding-bottom:20px;
    border-bottom:1px solid var(--border-stroke);
}

.news-back{
    color:var(--accent-primary);
    text-decoration:none;
    font-family:'Space Mono', monospace;
    text-transform:uppercase;
    letter-spacing:1px;
    transition:.25s;
    margin-bottom:6px;
    letter-spacing:1.5px;
}

.news-back:hover{
  opacity:.7;
}

.news-meta{
  display:flex;
  align-items:center;
  gap:14px;
}

.news-meta-label{
  color:var(--text-secondary);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:2px;
}

.news-single-date{
    color:var(--text-secondary);
    color:var(--text-primary);
    opacity: .75;
    font-family:'Space Mono', monospace;
    font-size:15px;
    font-weight:700;
}

.news-single-image{
    width:100%;
    display:block;
    border-radius:22px;
    margin-bottom:50px;
    object-fit:cover;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.news-single-content{
    font-size:18px;
    line-height:1.9;
    color:var(--text-primary);
}

.news-single-content h1,
.news-single-content h2,
.news-single-content h3,
.news-single-content h4{
    margin:40px 0 20px;
}

.news-single-content p{
    margin:20px 0;
    overflow-wrap: break-word;
}

.news-single-content img{
    max-width:100%;
    border-radius:16px;
    margin:30px auto;
    display:block;
}

.news-single-content iframe{
    width:100%;
    aspect-ratio:16/9;
    border:0;
    border-radius:16px;
    margin:35px 0;
}

.news-single-content table{
    width:100%;
    display:block;
    overflow:auto;
}

.news-single-bottom{
    margin-top:60px;
    margin-bottom: 5%;
    display:flex;
    justify-content:center;
}

/*--- News Gallery ---*/

.gallery-prettyphoto{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-top:32px;
}

.gallery-prettyphoto .gallery-thumb{
    flex:1 1 340px;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    background:none !important;
}

.gallery-prettyphoto .gallery-thumb a{
    display:block;
}

.gallery-prettyphoto .gallery-thumb img{
    display:block;
    width:auto;
    height:auto;

    border-radius:26px;
    border:1px solid rgba(255,255,255,.25);

    transition:.25s;
}

.gallery-prettyphoto .gallery-thumb img:hover{
    transform:translateY(-4px);
    border-color:#c7ff00;
}

.gallery-prettyphoto > div[style*="clear"]{
    display:none;
}

/* ---- Responsive ---- */
@media (max-width: 1992px) {
    .nav-desktop a {
        font-size: 13px;
    }
}
@media (max-width: 1150px) {
   .nav-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
}

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

@media (max-width:900px){
  .gallery-prettyphoto .gallery-thumb{
    flex:1 1 calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }
    
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 64px 0;
  }
  
  .hero-number {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tabs-header {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
  
  .timeline-horizontal {
    flex-direction: column;
  }

  .news-list-card{
    display:flex;
    flex-direction:column;
    padding:20px;
    gap:20px;
  }

 .news-list-card-image{
    width:100%;
    flex:none;
  }

 .news-list-card-image img{
    width:100%;
    height:335px;
    object-fit:cover;
    object-position:center;
  }

 .news-list-card-content{
    width:100%;
  }

 .news-list-title{
    font-size:2rem;
    line-height:1.05;
    margin:10px 0 16px;
  }

 .news-list-excerpt{
    width:100%;
    max-width:none;
    font-size:1rem;
    line-height:1.7;
  }

 .news-list-read-more{
    margin-top:18px;
  }

 .news-single-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-bottom:24px;
    margin-bottom:48px;
  }
 .news-single-meta {
    padding-right: 0;
    align-items: flex-start;
  }
  
  .news-meta{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
    margin-left:18px;   /* или 20px */
  }

 .news-meta-label {
    display: none; 
  }

  .gallery-prettyphoto{
    gap:16px;
  }

  .gallery-prettyphoto .gallery-thumb{
      flex:1 1 100%;
  }

  .gallery-prettyphoto .gallery-thumb img{
      width:100%;
  }
}

@media (max-width:480px){

    .news-list-card-image img{
      height:240px;
    }

    .news-list-title{
      font-size:1.7rem;
    }

}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}
