:root {
  --bg-main: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-dark: #0F172A;
  --bg-dark-card: #1E293B;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --accent: #10B981;
  --accent-soft: #D1FAE5;
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-light: #F8FAFC;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(79, 70, 229, 0.15);
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 4px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

.header-cta {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.header-cta:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

/* Burger Menu */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  color: var(--text-light);
  padding: 72px 0;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero .lead-paragraph {
  font-size: 1.12rem;
  color: #CBD5E1;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #064E3B;
}

.btn-primary:hover {
  background: #34D399;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Widget Slot Container */
.widget-slot-wrapper {
  margin: 28px 0;
}

.widget-slot-wrapper:empty {
  display: none;
}

/* Sections & Cards */
.section {
  padding: 64px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 6px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

/* Vacancy Cards */
.vacancy-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #EEF2FF;
  color: var(--primary);
}

.tag-green {
  background: var(--accent-soft);
  color: #065F46;
}

.vacancy-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.vacancy-salary {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.vacancy-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.vacancy-meta {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Filter Bar */
.filter-bar {
  background: var(--bg-surface);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.pill.active,
.pill:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Wiki Longread Article */
.article-layout {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-layout h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article-layout h2 {
  font-size: 1.65rem;
  margin: 36px 0 14px;
  color: var(--text-main);
}

.article-layout h3 {
  font-size: 1.25rem;
  margin: 24px 0 10px;
}

.article-layout p {
  margin-bottom: 18px;
  font-size: 1.06rem;
  color: #1E293B;
}

.article-layout ul {
  margin: 0 0 22px 22px;
}

.article-layout li {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.callout-box {
  background: #F1F5F9;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94A3B8;
  padding: 56px 0 32px;
  margin-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1E293B;
}

.footer-title {
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  margin-top: 24px;
  color: #64748B;
}

/* Modal Window for Offers */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
}

.modal-backdrop.open .modal-window {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--bg-dark);
  color: #FFFFFF;
}

.modal-salary {
  display: inline-block;
  background: var(--accent-soft);
  color: #065F46;
  font-weight: 800;
  font-size: 1rem;
  padding: 6px 12px;
  border-radius: 8px;
  margin: 10px 0 16px;
}

.modal-steps {
  background: var(--bg-main);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.modal-steps p {
  margin-bottom: 8px;
}

.modal-steps p:last-child {
  margin-bottom: 0;
}

.modal-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .burger-btn {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 28px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .article-layout {
    padding: 24px 20px;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 1500;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: var(--transition);
}

.cookie-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner-content {
  pointer-events: auto;
  max-width: 960px;
  width: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  color: #E2E8F0;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 16px 24px;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-banner-text {
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-text strong {
  color: #FFFFFF;
}

.cookie-banner-text a {
  color: #34D399;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-btn {
  background: var(--accent);
  color: #064E3B;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.cookie-banner-btn:hover {
  background: #34D399;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 14px;
  }

  .cookie-banner-btn {
    width: 100%;
    text-align: center;
  }
}

/* App Store Badges (AppGallery & RuStore) */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.app-badge-link {
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-badge-link img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}
