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

html, body {
  touch-action: manipulation;
}

/* CSS Variables for theming */
:root {
  --primary-gradient: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  --primary-color: #2575fc;
  --secondary-color: #6a11cb;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 18px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.18);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

/* Базовые стили для блоков */
.check-form,
.verdict-card,
.analysis-card,
.sources-card,
.source-card,
.tips-section {
  background: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

/* Светлая тема */
body.light .check-form,
body.light .verdict-card,
body.light .analysis-card,
body.light .sources-card,
body.light .source-card,
body.light .tips-section {
  background: color-mix(in srgb, var(--bg-primary) 95%, white);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.07);
}

/* Тёмная тема */
body.dark .check-form,
body.dark .verdict-card,
body.dark .analysis-card,
body.dark .sources-card,
body.dark .source-card,
body.dark .tips-section {
  background: color-mix(in srgb, var(--bg-primary) 92%, black);
  box-shadow: 0 4px 16px rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Hover эффект для карточек */
.source-card:hover,
.verdict-card:hover,
.analysis-card:hover,
.sources-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
body.dark .source-card:hover,
body.dark .verdict-card:hover,
body.dark .analysis-card:hover,
body.dark .sources-card:hover {
  box-shadow: 0 6px 16px rgba(255,255,255,0.1);
}

/* Dark theme variables */
body.dark {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 10px 18px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 30px rgba(0, 0, 0, 0.35);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:  #f5fbff;
  color: var(--text-primary);
  line-height: 1.6;
  transition: all 0.3s ease;
  height: auto;
}

body.dark {
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0c1929 100%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.error-message {
  color: #dc2626;
  text-align: center;
  padding: 14px;
}

/* === NAVBAR === */
.navbar {
  width: 100%;
  background: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 3px 12px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 60px;
  transition: box-shadow 0.3s ease;
}

body.light .navbar {
  /* лёгкая чёрная тень вниз */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.dark .navbar {
  /* лёгкая белая подсветка и чуть глубины вниз */
  box-shadow: 
    0 2px 10px rgba(255,255,255,0.07),  /* мягкий свет вниз */
    0 -1px 3px rgba(255,255,255,0.08); /* лёгкая подсветка сверху */
}


/*.logo {
  height: 1.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}*/

.logo img {
  height: 50px;       /* базовая высота (примерно как текст) */
  width: auto;        /* сохраняем пропорции */
  display: block;     /* убираем лишние отступы */
}

/* планшеты/мобильные */
@media (max-width: 768px) {
  .logo img {
    height: 35px;
  }
}

@media (max-width: 590px) {
  .logo img {
    height: 40px;
  }
}


@media (max-width: 390px) {
  .logo img {
    height: 30px;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link1 {
  margin-right: 0rem;
}


.nav-link2 {
  margin-left: 0rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(37, 117, 252, 0.1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  z-index: 200;
  animation: fadeInDown 0.2s ease;
}

.lang-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.lang-option:hover {
  background: var(--bg-secondary);
  color: var(--primary-color);
}

.lang-option:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Page takes full height */
.page {
  max-height: 100%;              
  display: flex;
  justify-content: center;        
  align-items: center;            
  opacity: 1;
  transform: translateY(0%);
  transition: all 0.3s ease;
}

/* Page takes full height */
.page2 {
  max-height: 100%;              
  display: flex;
  justify-content: center;        
  align-items: center;           
  opacity: 1;
  transform: translateY(-0%);
  transition: all 0.3s ease;
}

/* Container inside page */
.container {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
}

.page2.hidden {
  display: none;
}

.page.hidden {
  display: none;
}


#sources-page .container {
  max-width: 1200px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3rem;
}

.main-title {
  font-size: 3rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.mode-selector {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto); /* автоширина, под контент */
  gap: 1.5rem;
  bottom: 0.5rem;
  margin: 0rem auto 2rem auto; /* центрируем весь блок */
  justify-content: center; /* всё внутри — по центру */
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.mode-option:hover {
  color: var(--text-primary);
}

.mode-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
}

.mode-option input[type="radio"]:checked {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.mode-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* Form */
.check-form {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.input-group {
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.input-group.hidden {
  opacity: 0;
  transform: translateY(-10px);
  height: 0;
  margin: 0;
  overflow: hidden;
}

textarea,
input[type="url"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
  resize: vertical;
}

textarea:focus,
input[type="url"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.1);
}

textarea::placeholder,
input[type="url"]::placeholder {
  color: var(--text-muted);
}

.check-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.check-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.check-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.2rem;
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 3rem;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease;
}

.loading-spinner {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.spinner-ring:first-child {
  border-top-color: var(--primary-color);
}

.spinner-ring:last-child {
  border-bottom-color: var(--secondary-color);
  animation-delay: 0.5s;
}

.loading-text {
  color: var(--text-secondary);
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}

/* Results */
.results-container {
  animation: fadeInUp 0.5s ease;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.verdict-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary-color);
}

.verdict-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.verdict-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verdict-score {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.verdict-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.analysis-card {
  background: linear-gradient(135deg, rgba(106, 17, 203, 0.05) 0%, rgba(37, 117, 252, 0.05) 100%);
  border: 1px solid rgba(106, 17, 203, 0.2);
  padding: 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}

.analysis-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.analysis-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.sources-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.sources-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.source-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.source-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.source-icon {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.source-content {
  flex: 1;
}

.source-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.source-url {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.no-sources {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Sources page */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.source-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

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

.source-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.source-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.source-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center; 
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.2s ease;
}


.source-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.link-icon {
  font-size: 1rem;
}

/* Tips section */
.tips-section {
  background: var(--bg-primary);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.tips-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.tip-item {
  display: flex;
  gap: 1rem;
  align-items: start;
}

.tip-number {
  width: 32px;
  height: 32px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.tip-content h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tip-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Utility classes */
.hidden {
  display: none !important;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Burger menu styles */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.burger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Responsive design */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
  }

  .burger-menu {
    display: none;
  }
}

@media (max-width: 1024px) {
  .navbar {
    padding: 0.65rem 1.5rem;
  }

  .sources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .container {
    padding: 2rem 1.5rem;
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .tip-item {
    gap: 0.75rem;
  }
}

@media (max-width: 900px) {
  .tips-grid {
    gap: 1.5rem;
  }

  .tip-content h4 {
    font-size: 1rem;
  }

  .tip-content p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {

  
  .navbar {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    min-height: 48px;
    gap: 0;
  }

  .logo {
    font-size: 1.2rem;
    flex: 0 0 auto;
  }

  .nav-controls {
    order: 3;
    gap: 0.5rem;
    flex: 0 0 auto;
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 0rem;
    margin: 0;
    padding: 0;
  }


  .nav-link {
    font-size: 13px;
  }

  .nav-link1{
    left: 0.8rem;
  }

  .nav-link2{
    right: 0.8rem;
  }

  .nav-link1.active {
    margin-left: 1rem;
  }

  .nav-link2.active {
    margin-right: 1rem;
  }

  .control-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.95rem;
    min-width: 32px;
  }

  .container {
    padding: 1.5rem 1rem;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  

  .check-form {
    padding: 1.5rem;
  }

  .result-title {
    font-size: 1.6rem;
  }

  .verdict-card,
  .analysis-card,
  .sources-card {
    padding: 1.5rem;
  }

  .verdict-title {
    font-size: 1.2rem;
  }

  .verdict-score {
    font-size: 1.6rem;
  }

  .analysis-title,
  .sources-title {
    font-size: 1.2rem;
  }

  .sources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .source-card {
    padding: 1.5rem;
    min-height: 180px;
  }

  .source-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .source-card h3 {
    font-size: 1.15rem;
  }

  .source-card p {
    font-size: 0.9rem;
  }

  .tips-section {
    padding: 2rem 1.5rem;
  }

  .tips-title {
    font-size: 1.8rem;
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .main-title {
    font-size: 1.8rem;
  }

  .tips-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }


  .subtitle {
    font-size: 1rem;
  }

  .mode-selector {
    display: grid;
    grid-template-columns: repeat(2, auto); /* две колонки под контент */
    gap: 0.75rem;
    
    justify-content: center; /* центрируем весь блок */
    margin: 0 auto 2rem auto; /* чтобы блок не лип к краям */
  }

  .mode-option {
    display: flex;
    align-items: center;
    justify-content: center; /* кружок + текст по центру */
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .mode-option:last-child {
    grid-column: 1 / -1; /* третья кнопка на всю ширину */
    justify-content: center; /* по центру */
  }

  .mode-option input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  .mode-label {
    font-size: 0.9rem;
  }

  .sources-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .source-card {
    min-height: 160px;
  }

}

@media (max-width: 590px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;                /* сразу под шапкой */
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    width: 80%;              
    max-width: 250px;        
  }

  .nav-links.show {
    display: flex;
  }

  .nav-link {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem 0.8rem;
    width: 100%;             /* на всю ширину блока */
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
  }

  .nav-link:hover {
    background: rgba(37, 117, 252, 0.1); /* легкий hover */
  }

  /* ===== навбар ===== */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    order: 1;                /* лого всегда слева */
    text-align: left;
  }

  .nav-controls {
    order: 2;                /* вся группа справа */
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .burger-menu {
    display: flex;          
  }

  /* отступы для ссылок */
  .nav-link1 {
    margin-right: 2.4rem;
  }

  .nav-link2 {
    margin-left: 1.75rem;
  }

  .nav-link2.active {
    margin-left: 2.6rem;
  }
}



@media (max-width: 570px) {

  .navbar {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    min-height: 48px;
    gap: 0;
  }

  .logo {
    flex: 0 0 auto;
  }

  .nav-controls {
    order: 3;
    gap: 0.5rem;
    flex: 0 0 auto;
  }
  

  .control-btn {
    padding: 0.35rem 0.45rem;
    font-size: 0.85rem;
    min-width: 32px;
  }

}


@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0.75rem;
    min-height: 44px;
  }

  .logo{
    font-size: 1rem;
  }


  .burger-line {
    width: 20px;
  }

  .control-btn {
    padding: 0.3rem 0.4rem;
    font-size: 0.9rem;
    min-width: 30px;
  }

  .container {
    padding: 1rem 0.75rem;
  }

  .header {
    margin-bottom: 2rem;
  }

  .main-title {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .mode-option {
    font-size: 0.85rem;
  }

  .mode-option:last-child {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .mode-option input[type="radio"] {
    width: 16px;
    height: 16px;
  }

  .check-form {
    padding: 1.25rem;
  }

  textarea,
  input[type="url"] {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  .check-btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }

  .result-title {
    font-size: 1.4rem;
  }

  .verdict-card,
  .analysis-card,
  .sources-card {
    padding: 1.25rem;
  }

  .verdict-title {
    font-size: 1.1rem;
  }

  .verdict-score {
    font-size: 1.4rem;
  }

  .analysis-title,
  .sources-title {
    font-size: 1.1rem;
  }

  .source-card {
    padding: 1.25rem;
    min-height: 160px;
  }

  .source-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .source-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .source-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .source-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .tips-section {
    padding: 1.5rem 1rem;
  }

  .tips-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .tip-number {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
  }

  .tip-content h4 {
    font-size: 0.95rem;
  }

  .tip-content p {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  
.tip-content h4 {
  font-weight: 600;
    font-size: 0.75rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.tip-content p {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.5;
}

  .main-title {
    font-size: 1.4rem;
  }

  .subtitle {
    font-size: 0.9rem;
  }

 

  .mode-option {
    justify-content: center;
  }

  .mode-option:last-child {
    grid-column: 1 / -1;
  }
}