* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-dark: #1a1a2e;
  --primary-blue: #003d7c;
  --accent-red: #e42313;
  --accent-blue: #0055a5;
  --light-gray: #f5f5f7;
  --medium-gray: #e0e0e0;
  --dark-gray: #333;
  --text-gray: #666;
  --white: #ffffff;
  --font-main: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

body {
  font-family: var(--font-main);
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-red);
}

/* ===== APP BANNER ===== */
.app-banner {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.app-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.app-banner-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-banner-icon {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.app-banner-text h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.app-banner-text p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
}

.app-banner-btn {
  background: var(--accent-red);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.app-banner-btn:hover {
  background: #c41a0d;
  color: var(--white);
}

.app-banner-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.app-banner-close:hover {
  color: var(--white);
}

/* ===== HEADER ===== */
.header {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-main {
  display: flex;
  align-items: center;
}

.logo-plant-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.header-nav a:hover {
  color: var(--white);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
}

.lang-switch .active {
  color: var(--white);
  font-weight: 600;
}

.search-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
}

.search-btn:hover {
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(15, 52, 96, 0.85) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&h=900&fit=crop') center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-dark);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;
  background: var(--primary-dark);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #000000;
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 8px;
}

/* ===== SECTIONS ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--light-gray);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  padding-left: 20px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-red);
  border-radius: 2px;
}

.section-link {
  color: var(--accent-blue);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-link:hover {
  color: var(--accent-red);
}

/* ===== NEWS SECTION ===== */
.news-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.news-card-featured {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-featured:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.news-card-featured .news-image {
  height: 280px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
}

.news-card-featured .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-featured .news-body {
  padding: 25px;
}

.news-date {
  color: var(--text-gray);
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-source {
  background: #4a76a8;
  color: var(--white);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.news-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.6;
}

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

.news-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.news-card .news-image {
  height: 180px;
  background: linear-gradient(135deg, #2a2a4a, var(--primary-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 36px;
}

.news-card .news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card .news-body {
  padding: 20px;
}

.news-card .news-title {
  font-size: 16px;
  margin-bottom: 10px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.about-card {
  background: var(--white);
  padding: 30px 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: var(--white);
}

.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.about-card p {
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== PRODUCTION SECTION ===== */
.production-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.production-card {
  position: relative;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.production-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
  transition: transform 0.5s ease;
}

.production-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.production-card:hover .production-card-bg {
  transform: scale(1.05);
}

.production-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.production-card-content h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}

.production-card-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 5px;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
  background: var(--primary-dark);
  padding: 60px 0;
}

.social-grid {
  display: flex;
  gap: 30px;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
}

.social-link.vk {
  background: #4a76a8;
}

.social-link.telegram {
  background: #0088cc;
}

.social-text h3 {
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.social-text p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d0d1a;
  padding: 60px 0 30px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-start;
}

.footer-logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.2);
}

.footer-logo-name {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}

.footer-logo-name span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 4px;
}

.footer-logo p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer ul a:hover {
  color: var(--white);
}

.footer-contacts p {
  margin-bottom: 10px;
  font-size: 13px;
}

.footer-contacts a {
  color: var(--white);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.footer-rostech {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-rostech span {
  opacity: 0.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-stats {
    gap: 25px;
  }

  .news-main {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .production-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .app-banner .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .app-banner-content {
    flex-direction: column;
  }

  .app-banner-btn {
    width: 100%;
    text-align: center;
  }

  .hero {
    height: auto;
    padding: 60px 0;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .section-title {
    font-size: 24px;
  }
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-dark);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 80px 30px 30px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu a {
  display: block;
  color: var(--white);
  font-size: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== SEARCH OVERLAY ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 150;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-overlay.active {
  display: flex;
}

.search-overlay-content {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.search-overlay input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--white);
  color: var(--white);
  font-size: 24px;
  padding: 15px 0;
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-overlay-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}
