/* ============================================
   STUDENTSCORE - ОСНОВНЫЕ СТИЛИ
   ============================================ */

:root {
  --primary-color: #FDA4AF;
  --primary-hover: #F08A95;
  --text-dark: #1A1A1A;
  --text-gray: #666666;
  --bg-white: #FFFFFF;
  --bg-light: #FAFAFA;
  --bg-pink-light: #FFF5F7;
  --border-color: #F0F0F0;
  --footer-bg: #1A1A1A;
  --shadow: 0 4px 15px rgba(0,0,0,0.05);
  --shadow-hover: 0 8px 20px rgba(253, 164, 175, 0.3);
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 80px;
  background: var(--bg-white);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* ============================================
   CONTAINER
   ============================================ */

.ss-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */

.ss-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow);
  z-index: 9999;
  height: 70px;
  display: flex;
  align-items: center;
}

.ss-header .ss-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.ss-logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.ss-logo a:hover {
  color: var(--primary-color);
}

.ss-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.ss-nav a {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
}

.ss-nav a:hover {
  color: var(--primary-color);
}

/* Бургер-кнопка (скрыта на десктопе) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */

.hero-btn,
.cta-btn,
.submit-btn {
  background: var(--primary-color);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.hero-btn:hover,
.cta-btn:hover,
.submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: #fff;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1.05rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  background: var(--bg-light);
  padding: 80px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 800px;
  margin: 0 auto 30px;
}

/* ============================================
   CARDS
   ============================================ */

.card,
.step,
.feature,
.post-card,
.problem-card,
.stat-card,
.testimonial-card,
.team-card,
.partnership-card,
.vacancy-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Карточки с иконкой/цифрой по центру */
.problem-card,
.step,
.feature,
.mission-card {
  text-align: center;
}

.step:hover,
.feature:hover,
.post-card:hover,
.problem-card:hover,
.testimonial-card:hover,
.team-card:hover,
.partnership-card:hover,
.vacancy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.post-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.problems-grid,
.steps-grid,
.features-grid,
.stats-grid,
.testimonials-grid,
.posts-grid,
.team-grid,
.partnership-grid,
.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

/* 4 пункта в одну строку */
.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.bg-white {
  background: var(--bg-white);
}

.bg-light {
  background: var(--bg-light);
}

.bg-pink {
  background: var(--bg-pink-light);
}

.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.mb-40 {
  margin-bottom: 40px;
}

/* ============================================
   FORM STYLES
   ============================================ */

.scoring-form,
.contact-form-container,
.partnership-form,
.career-form {
  max-width: 900px;
  margin: 20px auto;
  padding: 40px;
  background: var(--bg-white);
  border-radius: 20px;
  border-top: 5px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-section {
  margin: 30px 0 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-dark);
  font-size: 1.2rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input[type="radio"],
.form-group input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-item,
.checkbox-item {
  display: flex;
  align-items: center;
}

.privacy-consent {
  margin: 25px 0;
  padding: 18px;
  background: var(--bg-pink-light);
  border-radius: 8px;
}

.privacy-consent label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.privacy-consent input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 3px;
}

.cf7-inline-link {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
  background: var(--border-color);
  height: 8px;
  border-radius: 4px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-fill {
  background: var(--primary-color);
  height: 100%;
  transition: width 0.3s ease;
}

/* ============================================
   RESULT MODAL
   ============================================ */

.result-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.result-modal-overlay.active {
  display: flex;
}

.result-modal {
  background: var(--bg-white);
  border-radius: 20px;
  padding: 50px 40px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.result-modal .modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-gray);
  line-height: 1;
}

.result-modal .modal-close:hover {
  color: var(--primary-color);
}

.score-display {
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 0 10px;
  line-height: 1;
}

.score-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.score-scale-wrap {
  position: relative;
  margin: 20px 0 30px;
}

.score-scale {
  height: 14px;
  background: linear-gradient(to right, #ff6b6b, #ffd93d, #6bcf7f);
  border-radius: 7px;
}

.score-pointer {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 26px;
  background: var(--text-dark);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s ease;
}

.factors-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
  text-align: left;
}

.factor-item {
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: 10px;
}

.factor-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.factor-score {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
}

.recommendations {
  text-align: left;
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-pink-light);
  border-radius: 12px;
}

.recommendations h3 {
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.recommendations ul {
  list-style: none;
  padding-left: 0;
}

.recommendations li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.recommendations li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* ============================================
   RESULT CONTAINER (старый, оставлен для совместимости)
   ============================================ */

.result-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 50px;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

/* ============================================
   BLOG FILTERS
   ============================================ */

.blog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 30px;
}

.filter-btn {
  padding: 9px 20px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-category {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.post-date {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.post-card h3 {
  margin-bottom: 12px;
}

.post-card p {
  color: var(--text-gray);
  margin-bottom: 20px;
  flex-grow: 1;
}

.post-link {
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 1rem;
  font-family: inherit;
}

.post-link:hover {
  color: var(--primary-hover);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */

.faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 18px 20px;
  background: var(--bg-white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 18px 20px;
  max-height: 500px;
}

/* ============================================
   MODAL (для блога и политики)
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-gray);
  line-height: 1;
}

.modal-close:hover {
  color: var(--primary-color);
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.ss-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
}

.footer-tagline {
  color: #ccc;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
  transition: background 0.3s ease;
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--primary-color);
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 0.9rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .ss-header {
    height: 70px;
  }

  /* Бургер-меню */
  .burger {
    display: flex;
  }

  .ss-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 20px 0;
    z-index: 9998;
  }

  .ss-nav.open {
    display: block;
  }

  .ss-nav ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .ss-nav ul li a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    transition: background 0.2s;
  }

  .ss-nav ul li a:hover {
    background: var(--bg-light);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-title h2 {
    font-size: 1.9rem;
  }

  .hero-section {
    padding: 50px 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  section {
    padding: 45px 0;
  }

  .problems-grid,
  .steps-grid,
  .features-grid,
  .stats-grid,
  .testimonials-grid,
  .posts-grid,
  .team-grid,
  .partnership-grid,
  .vacancies-grid,
  .four-col-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .factors-breakdown {
    grid-template-columns: 1fr;
  }

  .scoring-form,
  .contact-form-container,
  .partnership-form,
  .career-form {
    padding: 24px 16px;
    margin: 16px;
  }

  .score-display {
    font-size: 3.5rem;
  }

  .result-modal {
    padding: 36px 24px;
  }

  .blog-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modal-content {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .hero-btn,
  .cta-btn,
  .submit-btn {
    width: 100%;
    text-align: center;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .hero-btn,
  .result-actions .submit-btn {
    width: 100%;
    text-align: center;
  }
}

