/* Style for Контракт-ГЛК.рф - Recreating контракт-мо.рф structure */
:root {
  --red-primary: #e73838;
  --red-hover: #c92a2a;
  --red-glow: rgba(231, 56, 56, 0.4);
  
  --bg-main: #ffffff;
  --bg-card: #ffffff;
  --bg-light-calc: #ffffff;
  
  --text-dark: #121212;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --yellow-banner: #fff705;
  --border-color: #e2e8f0;
  
  --font-arimo: 'Arimo', sans-serif;
  --font-inter: 'Inter', sans-serif;
  --font-chakra: 'Chakra Petch', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-inter);
  background-color: var(--bg-main);
  color: var(--text-dark);
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.gov-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

.gov-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.gov-emblem-light {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red-primary);
  box-shadow: 0 0 12px rgba(231, 56, 56, 0.25);
  background: #ffffff;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.gov-title {
  font-family: var(--font-arimo);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  line-height: 1.2;
}

.gov-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red-primary);
  letter-spacing: 0.5px;
}

.gov-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: var(--red-primary);
}

/* Yellow Banner (High Placement directly under Navbar) */
.gov-banner-yellow {
  background: var(--yellow-banner);
  padding: 14px 0;
  border-bottom: 1px solid #eab308;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.banner-yellow-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.05rem;
  color: #121212;
}

.banner-icon {
  font-size: 1.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-arimo);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-transform: uppercase;
}

.btn-red {
  background: var(--red-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(231, 56, 56, 0.3);
}

.btn-red:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 56, 56, 0.5);
  color: #ffffff;
}

.btn-glow {
  animation: redPulse 3s infinite;
}

@keyframes redPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(231, 56, 56, 0.4); }
  50% { box-shadow: 0 0 30px rgba(231, 56, 56, 0.8); }
}

.btn-gov-header {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.discord-svg {
  width: 20px;
  height: 20px;
}

.btn-hero-gov {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-gov-outline {
  padding: 18px 30px;
  font-size: 1rem;
  background: #ffffff;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-gov-outline:hover {
  background: var(--text-dark);
  color: #ffffff;
}

.btn-dark-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  background: #121212;
  color: #fff;
  border-radius: 4px;
}

.btn-dark-sm:hover {
  background: #333;
}

.btn-lg-gov {
  padding: 22px 44px;
  font-size: 1.25rem;
}

/* Hero Section */
.hero-gov {
  padding: 60px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-gov-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.gov-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #fee2e2;
  color: var(--red-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-gov-title {
  font-family: var(--font-arimo);
  font-size: 3.2rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.title-highlight {
  color: var(--red-primary);
}

.hero-gov-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-gov-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.gov-highlights {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.highlight-item {
  display: flex;
  flex-direction: column;
}

.hl-num {
  font-family: var(--font-arimo);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red-primary);
}

.hl-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hl-sep {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Media */
.gov-card-photo {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 4px solid #ffffff;
}

.photo-img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 100%);
  color: #ffffff;
}

.photo-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow-banner);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.photo-title {
  font-family: var(--font-arimo);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Section Title Block */
.text-center { text-align: center; }
.text-left { text-align: left; }

.section-title-block {
  margin-bottom: 48px;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.gov-sec-title {
  font-family: var(--font-arimo);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.gov-sec-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Calculator Section (FULL LIGHT THEME) */
.calc-section {
  padding: 90px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.calc-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #f8fafc;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.calc-badge {
  background: #fee2e2;
  color: var(--red-primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.gov-range {
  width: 100%;
  accent-color: var(--red-primary);
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gov-select {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  font-family: var(--font-inter);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.gov-select:focus {
  border-color: var(--red-primary);
}

/* Calculator Display Card (PURE LIGHT THEME) */
.calc-display-light {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 2px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.calc-display-light.is-calc-active {
  border-color: var(--red-primary);
  box-shadow: 0 0 30px rgba(231, 56, 56, 0.3);
  animation: calcShake 0.15s infinite;
}

@keyframes calcShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 1px); }
  75% { transform: translate(1px, 2px); }
  100% { transform: translate(0, 0); }
}

.calc-header-badge-light {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-primary);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  text-align: center;
}

.big-counter-box-light {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 28px 0;
  background: #fee2e2;
  border-radius: 12px;
  border: 1px solid rgba(231, 56, 56, 0.3);
  margin-bottom: 24px;
  position: relative;
}

.currency-symbol-light {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red-primary);
}

.counter-number-light {
  font-family: var(--font-arimo);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red-primary);
  text-shadow: 0 0 10px rgba(231, 56, 56, 0.2);
  transition: transform 0.05s ease, color 0.1s ease;
}

.currency-sub-light {
  font-size: 1.5rem;
  font-weight: 700;
  color: #991b1b;
}

.calc-breakdown-light {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.bd-row-light {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.bd-row-light strong {
  color: var(--text-dark);
}

.bd-highlight-light {
  color: #b45309;
  font-weight: 700;
}

.btn-calc-cta {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* Benefits Section */
.benefits-gov-section {
  padding: 90px 0;
  background: #f8fafc;
}

.gov-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.gov-card {
  padding: 32px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gcard-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #fee2e2;
  color: var(--red-primary);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  margin-bottom: 16px;
}

.gcard-title {
  font-family: var(--font-arimo);
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.gcard-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Steps Section */
.steps-gov-section {
  padding: 90px 0;
  background: #ffffff;
}

.steps-gov-box {
  background: #f8fafc;
  border-radius: 20px;
  padding: 48px;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.gov-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
  margin-bottom: 44px;
}

.gstep-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  border-left: 4px solid var(--red-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.gstep-num {
  font-family: var(--font-arimo);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-primary);
  line-height: 1;
}

.gstep-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.gstep-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Ad Popups Styling */
.glk-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 380px;
  width: 90%;
  background: #ffffff;
  border: 3px solid var(--red-primary);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  z-index: 999;
  overflow: hidden;
  animation: popupSlideIn 0.4s ease forwards;
}

@keyframes popupSlideIn {
  from { transform: translateY(100px) scale(0.8); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.popup-header {
  background: var(--red-primary);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-arimo);
  font-weight: 700;
  font-size: 0.9rem;
}

.popup-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.popup-close-btn:hover {
  color: var(--yellow-banner);
}

.popup-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.popup-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-icon {
  font-size: 1.8rem;
}

.popup-title {
  font-family: var(--font-arimo);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.popup-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.popup-cta-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--red-primary);
  color: #ffffff;
  font-family: var(--font-arimo);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(231, 56, 56, 0.4);
  transition: transform 0.2s ease;
}

.popup-cta-btn:hover {
  transform: translateY(-2px);
  background: var(--red-hover);
}

/* Footer */
.gov-footer {
  background: #0f172a;
  color: #ffffff;
  padding: 48px 0;
  border-top: 1px solid #1e293b;
}

.footer-gov-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand-title {
  font-family: var(--font-arimo);
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  max-width: 550px;
  line-height: 1.5;
}

.footer-btn-dc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}

.footer-btn-dc:hover {
  background: var(--red-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-gov-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-box {
    grid-template-columns: 1fr;
  }

  .gov-nav {
    display: none;
  }

  .banner-yellow-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-gov-title {
    font-size: 2.2rem;
  }

  .btn-hero-gov {
    width: 100%;
  }

  .gov-highlights {
    flex-direction: column;
    gap: 12px;
  }

  .hl-sep {
    width: 80%;
    height: 1px;
  }
}
