/* ============================================================
   VORTEX – Академический Модерн
   Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* ── CSS RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #2F4F4F;
  --secondary: #66B2B2;
  --accent:    #F5F5DC;
  --text:      #333333;
  --light:     #F8F8F8;
  --border:    #E0E0E0;
  --white:     #FFFFFF;
  --red-warn:  #C0392B;
  --shadow:    0 4px 10px rgba(0,0,0,0.07);
  --shadow-h:  0 8px 24px rgba(0,0,0,0.12);
  --radius:    7px;
  --font-h:    'Inter', sans-serif;
  --font-b:    'Roboto', sans-serif;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── WARNING BANNER ── */
.warning-banner {
  background: var(--red-warn);
  color: #fff;
  text-align: center;
  font-size: 12.5px;
  font-family: var(--font-b);
  font-weight: 500;
  padding: 10px 20px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  z-index: 9999;
  position: relative;
}
.warning-banner strong { font-weight: 700; }

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

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { fill: var(--secondary); }
.logo-text {
  font-family: var(--font-h);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--secondary); }

/* NAV */
.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { background: var(--accent); color: var(--primary); }

/* DROPDOWN */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-h);
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 600;
  padding: 6px 0;
}
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.dropdown-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 14px;
  border-radius: 0;
  white-space: nowrap;
}
.dropdown-menu li a:hover { background: var(--accent); color: var(--primary); }

.header-cta {
  background: var(--secondary);
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-radius: var(--radius) !important;
  padding: 8px 18px !important;
  transition: background 0.2s, transform 0.15s !important;
}
.header-cta:hover { background: var(--primary) !important; color: var(--light) !important; transform: scale(1.02) !important; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.3s; }

/* ── FOOTER ── */
.site-footer {
  background: var(--primary);
  color: var(--light);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-text { color: var(--light); }
.footer-brand .logo-icon { background: var(--secondary); }
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(248,248,248,0.75);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(248,248,248,0.75);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--secondary); }
.footer-contact-item {
  font-size: 14px;
  color: rgba(248,248,248,0.75);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; fill: var(--secondary); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 13px;
  color: rgba(248,248,248,0.55);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(248,248,248,0.55); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--secondary); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5 { font-family: var(--font-h); color: var(--primary); line-height: 1.25; }
h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p  { font-size: 16px; line-height: 1.75; color: var(--text); }

/* ── SECTION UTILITIES ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }
.section-dark { background: var(--primary); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--light); }
.section-dark p { color: rgba(248,248,248,0.8); }
.section-accent { background: var(--accent); }
.section-light { background: var(--light); }

.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 640px; color: #666; font-size: 17px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 10px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.btn-primary:hover { background: var(--primary); color: var(--light); border-color: var(--primary); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--light); }
.btn-outline-light {
  background: transparent;
  color: var(--light);
  border-color: rgba(248,248,248,0.5);
}
.btn-outline-light:hover { background: var(--secondary); color: var(--primary); border-color: var(--secondary); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card-body { padding: 22px 24px; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
}
.tag-cyan { background: rgba(102,178,178,0.18); color: var(--secondary); }
.card-date { font-size: 13px; color: #888; }
.card-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; line-height: 1.35; }
.card-title a { transition: color 0.2s; }
.card-title a:hover { color: var(--secondary); }
.card-text { font-size: 14px; color: #555; line-height: 1.65; margin-bottom: 16px; }
.card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light);
}
.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--primary);
}

/* ── RATING STARS ── */
.stars { color: #E8A838; font-size: 14px; letter-spacing: 2px; }
.rating-num { font-weight: 700; font-size: 14px; color: var(--text); }

/* ── GRID LAYOUTS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #888;
  padding: 16px 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--secondary); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: #ccc; }

/* ── STAT BLOCK ── */
.stat-block {
  text-align: center;
  padding: 28px 20px;
}
.stat-number {
  font-family: var(--font-h);
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: rgba(248,248,248,0.7); }
.stat-label-dark { color: #666; }

/* ── QUOTE / PULL QUOTE ── */
.pull-quote {
  border-left: 4px solid var(--secondary);
  padding: 20px 28px;
  background: var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--primary);
  line-height: 1.6;
}

/* ── TABLE ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--primary);
  color: var(--light);
  font-family: var(--font-h);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:nth-child(even) td { background: var(--accent); }
.data-table tr:hover td { background: rgba(102,178,178,0.08); }

/* ── FORM ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-family: var(--font-b);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(102,178,178,0.2); }
textarea.form-control { min-height: 130px; resize: vertical; }
select.form-control { cursor: pointer; }

/* ── TABS ── */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 22px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.tab-btn.active, .tab-btn:hover { color: var(--primary); border-bottom-color: var(--secondary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── ACCORDION ── */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; overflow: hidden; }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  transition: background 0.2s;
}
.accordion-trigger:hover { background: var(--accent); }
.accordion-trigger .icon { transition: transform 0.3s; font-size: 20px; color: var(--secondary); }
.accordion-item.open .accordion-trigger .icon { transform: rotate(45deg); }
.accordion-body { display: none; padding: 0 20px 16px; }
.accordion-item.open .accordion-body { display: block; }

/* ── PODCAST CARD SPECIAL ── */
.podcast-card { position: relative; }
.podcast-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-h);
  z-index: 1;
}
.podcast-platform {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.platform-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  background: rgba(47,79,79,0.1);
  color: var(--primary);
  font-weight: 600;
}

/* ── HERO ── */
.hero {
  background: var(--primary);
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(102,178,178,0.07);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { color: var(--light); margin-bottom: 20px; }
.hero p { color: rgba(248,248,248,0.8); font-size: 18px; margin-bottom: 32px; max-width: 520px; line-height: 1.75; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.hero-img-wrap img { width: 100%; height: 400px; object-fit: cover; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--primary);
  padding: 56px 0 52px;
}
.page-hero h1 { color: var(--light); margin-bottom: 10px; }
.page-hero p { color: rgba(248,248,248,0.75); max-width: 580px; font-size: 17px; }

/* ── FEATURE LIST ── */
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(102,178,178,0.15);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { fill: var(--secondary); }
.feature-text h4 { font-size: 15px; margin-bottom: 4px; }
.feature-text p { font-size: 14px; color: #666; margin: 0; line-height: 1.6; }

/* ── SIDEBAR ── */
.content-sidebar { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-widget h4 { margin-bottom: 16px; font-size: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a { display: block; padding: 10px 0; font-size: 14px; color: var(--text); transition: color 0.2s; }
.sidebar-links li a:hover { color: var(--secondary); }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--light); border-color: var(--primary); }

/* ── SEARCH BOX ── */
.search-box {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  padding: 13px 18px;
  border: none;
  font-size: 15px;
  font-family: var(--font-b);
  outline: none;
  color: var(--text);
}
.search-box button {
  padding: 0 20px;
  background: var(--secondary);
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}
.search-box button:hover { background: var(--primary); color: var(--light); }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--secondary);
  padding: 64px 0;
  text-align: center;
}
.newsletter-section h2 { color: var(--primary); margin-bottom: 10px; }
.newsletter-section p { color: rgba(47,79,79,0.8); margin-bottom: 28px; font-size: 17px; }
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-h);
}
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: 15px;
  font-family: var(--font-b);
  outline: none;
}
.newsletter-form button {
  padding: 0 24px;
  background: var(--primary);
  color: var(--light);
  border: none;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover { background: #1a3333; }

/* ── PROGRESS BAR ── */
.progress-wrap { margin-bottom: 14px; }
.progress-label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.progress-bar-bg { background: var(--border); border-radius: 4px; height: 8px; }
.progress-bar { height: 8px; border-radius: 4px; background: var(--secondary); }

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 400;
  box-shadow: var(--shadow-h);
  max-height: 80vh;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mobile-nav a:hover { background: var(--accent); color: var(--primary); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.divider-accent { height: 3px; background: var(--secondary); width: 60px; border-radius: 2px; margin: 12px 0 24px; }

/* ── ALERT ── */
.alert { padding: 14px 20px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-info { background: rgba(102,178,178,0.15); border-left: 4px solid var(--secondary); color: var(--primary); }
.alert-warn { background: rgba(232,168,56,0.12); border-left: 4px solid #E8A838; color: #7a5500; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form button { width: 100%; border-radius: 0; padding: 14px 18px; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .hero { padding: 64px 0; }
  .page-hero { padding: 40px 0; }
}
