/* ============================================
   NOVATEK Moscow Region — New Design
   ============================================ */

:root {
  --primary: #0a6ebd;
  --primary-dark: #084f8a;
  --primary-light: #1a8fd8;
  --accent: #2ba4e8;
  --text: #1a2b42;
  --text-secondary: #5a6b7f;
  --bg: #ffffff;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1200px;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  max-width: var(--max-width);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

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

.logo svg, .logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.logo-text .name {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.logo-text .sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  background: #f0f4f8;
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

/* Search - restored in header */
.header-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  height: 38px;
  width: 200px;
  transition: all var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(10,110,189,0.1);
}

.search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  padding: 0 8px 0 0;
}

.search-box input::placeholder { color: #94a3b8; }

.search-box button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #94a3b8;
}

.header-novatek {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.header-novatek:hover {
  background: #f0f4f8;
  color: var(--primary);
}

.header-novatek svg {
  width: 14px;
  height: 14px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.1) brightness(1.05) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,40,80,0.85) 0%, rgba(8,40,80,0.5) 50%, rgba(8,40,80,0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.hero-breadcrumb a:hover {
  color: white;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  width: fit-content;
}

.hero-btn:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(10,110,189,0.4);
}

.hero-tagline {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 2;
  color: white;
  font-size: 16px;
  font-weight: 500;
  text-align: right;
  max-width: 260px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ============================================
   SECTION CARDS (3 cards)
   ============================================ */
.section-cards {
  max-width: var(--max-width);
  margin: -40px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

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

.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.card-bg-icon {
  position: absolute;
  right: -35px;
  bottom: -20px;
  width: 140px;
  height: 140px;
  color: var(--primary);
  opacity: 0.03;
  pointer-events: none;
}

.card-bg-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.card-1 .card-bg-icon {
  right: -50px;
  bottom: -25px;
}

.card-3 .card-bg-icon {
  right: -50px;
  bottom: -25px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.card-link:hover {
  gap: 10px;
}

.card-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   TWO-COLUMN SECTION
   ============================================ */
.section-about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 20px;
  position: relative;
  overflow: visible;
}

.section-about > * {
  position: relative;
  z-index: 1;
}

.deco-dots {
  position: absolute;
  bottom: 20px;
  left: -20px;
  width: 450px;
  height: 450px;
  background-image: radial-gradient(circle, rgba(10,110,189,0.1) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 80% at 40% 60%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 40% 60%, black 40%, transparent 70%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left: Map */
.regions-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.map-wrapper {
  display: flex;
  gap: 20px;
  align-items: start;
}

.map-image {
  flex: 1;
}

.map-image img {
  width: 100%;
  height: auto;
}

.map-info {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.map-info-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.map-info-title::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.map-info p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.map-info .link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.map-info .link-more svg {
  width: 16px;
  height: 16px;
}

/* Right: About text */
.about-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-text a {
  font-weight: 600;
}

.about-list {
  padding-left: 20px;
  margin-bottom: 14px;
}

.about-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
  list-style: disc;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.stat-card-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(10,110,189,0.1);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  color: var(--primary);
  opacity: 0.5;
}

.stat-card-icon svg {
  width: 100%;
  height: 100%;
}

.stat-card-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */
.footer { background: #0f1724; color: rgba(255,255,255,0.7); padding: 32px 0; margin-top: auto; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.footer-logo svg, .footer-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo-text .name {
  font-size: 16px;
  font-weight: 800;
  color: white;
}

.footer-logo-text .sub {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-info {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-info a {
  color: rgba(255,255,255,0.6);
}

.footer-info a:hover {
  color: white;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-credits {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-align: right;
  white-space: nowrap;
}

.footer-credits a {
  color: rgba(255,255,255,0.5);
}

.footer-search {
  display: flex;
  margin-top: 12px;
  max-width: 300px;
}

.footer-search input {
  flex: 1;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: 6px 0 0 6px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 13px;
  outline: none;
}

.footer-search input::placeholder { color: rgba(255,255,255,0.4); }

.footer-search button {
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.footer-search button:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .map-center img {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .hero {
    height: 300px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-tagline {
    display: none;
  }

  .stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border);
    z-index: 999;
  }

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

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: 8px;
  }

  .header-search {
    display: none;
  }

  .header-novatek {
    display: none;
  }

  .hero {
    height: 240px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .hero-tagline {
    display: none;
  }

  .section-cards {
    margin-top: -20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card {
    padding: 20px;
  }

  .section-about {
    padding: 30px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map-center {
    max-width: 100%;
  }

  .map-center img {
    max-width: 300px;
    margin: 0 auto;
  }

  .stats-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer {
    padding: 24px 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 200px;
  }

  .hero-title {
    font-size: 22px;
  }

  .page-hero-content h1 {
    font-size: 28px;
  }

  .inner-layout {
    padding: 20px 16px 40px;
  }

  .inner-content {
    padding: 20px;
  }

  .cg3 {
    grid-template-columns: 1fr;
  }
}
