/* Green Card Lottery — state.gov style */
:root {
  --navy: #0c2340;
  --navy-light: #1a3a5c;
  --white: #ffffff;
  --gold: #ffbf00;
  --gold-hover: #ffc933;
  --gray: #5c5c5c;
  --gray-light: #e8e8e8;
  --red: #b22234;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background: var(--white);
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  overflow: visible;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-right: 0;
}

.site-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  cursor: default;
}

/* Burger — скрыт на десктопе */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
}
.burger-btn:hover {
  background: rgba(255,255,255,0.1);
}
.burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.nav-dropdown {
  /* на десктопе просто контейнер */
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.nav-menu a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  border-radius: 4px;
  font-weight: 600;
}

.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.nav-overlay {
  display: none;
}

/* Banner with world map (Asset4.png, transparent) */
.banner-map {
  position: relative;
  height: 140px;
  background: #053a73;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 1.5rem;
}

.banner-map-overlay {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.banner-map-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.banner-seal {
  flex-shrink: 0;
  height: 64px;
  width: auto;
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 1rem 1.5rem 2rem;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  margin: 0 0 0.75rem;
}

.hero .description {
  font-size: 1rem;
  opacity: 0.9;
  margin: 0;
}

/* Main content */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.about-section {
  margin-bottom: 2.5rem;
}

.about-section h2 {
  color: var(--navy);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--gold);
}

.about-section .intro {
  color: var(--gray);
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
}

.powers-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
}

.powers-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.powers-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  border-bottom: 1px solid var(--gray-light);
  color: #444;
}

.powers-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.about-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: block;
}

.about-images .about-image {
  margin: 0;
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--gray-light);
  border-radius: 8px;
  margin: 2rem 0;
}

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cta-btn:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.cta-btn:active {
  transform: translateY(0);
}

.cta-btn-two-lines {
  text-align: center;
  line-height: 1.35;
}

/* Footer — state.gov style */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-block h4 {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.footer-seal {
  margin-top: 0.5rem;
}

.footer-seal img,
.footer-logo {
  height: 64px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.footer-bottom {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.footer-bottom a {
  color: var(--gold);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Apply page */
.apply-page .main.apply-main {
  text-align: left;
  padding: 1rem 1.5rem 3rem;
  max-width: 520px;
  margin: 0 auto;
}

.apply-page h1 {
  color: var(--navy);
  margin-bottom: 1rem;
  text-align: center;
}

.apply-hero-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
}

.apply-notice {
  background: rgba(255, 191, 0, 0.12);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 0.95rem;
}

.apply-form-block .apply-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.apply-form-block .apply-label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.apply-form-block input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  font-size: 1rem;
}

.apply-form-block input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 191, 0, 0.2);
}

.apply-form-block .cta-btn {
  margin-top: 0.5rem;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.apply-loading-block {
  display: none;
  text-align: center;
  padding: 2rem;
}

.apply-loading-block[aria-hidden="false"] {
  display: block;
}

.apply-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 4px solid var(--gray-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: apply-spin 0.8s linear infinite;
}

@keyframes apply-spin {
  to { transform: rotate(360deg); }
}

.apply-loading-text {
  color: var(--gray);
  margin: 0;
}

.apply-success-block {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.apply-success-block[aria-hidden="false"] {
  display: block;
}

.share-page .apply-success-block {
  display: block;
  margin-bottom: 1.5rem;
}

.apply-success-title {
  color: var(--navy);
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.apply-success-text {
  color: var(--gray);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.apply-success-block .cta-btn {
  display: inline-block;
}

/* Share page */
.share-page .main {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.share-page .share-heading {
  color: var(--navy);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  text-align: center;
}

.share-page .share-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.share-page .share-text {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.share-progress-wrap {
  margin-bottom: 1.5rem;
}

.share-progress-label {
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.share-progress-bar {
  height: 24px;
  background: var(--gray-light);
  border-radius: 12px;
  overflow: hidden;
}

.share-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 12px;
  width: 0%;
  transition: width 0.3s ease;
}

.share-progress-count {
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.share-btn-wrap {
  margin-bottom: 1rem;
}

.share-service-btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.share-service-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.share-service-btn:active {
  transform: translateY(0);
}
.share-whatsapp-btn {
  background: #25d366;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.share-telegram-btn {
  display: none; /* временно скрыта */
  background: #0088cc;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.share-max-btn {
  display: none; /* временно скрыта */
  background: #281d39cb;
  margin-bottom: 0.5rem;
}
.share-service-btn .share-btn-icon {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.share-service-btn span {
  vertical-align: middle;
}
@media (max-width: 480px) {
  .share-service-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-right: 0;
    margin-bottom: 0.6rem;
  }
}

.share-page .cta-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
}

.share-confirm-wrap {
  display: none;
  margin-top: 1.5rem;
}

.share-confirm-wrap.visible {
  display: block;
}

.share-done-text {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* Result page */
.result-page .main.result-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.result-congrats {
  margin-bottom: 1.5rem;
}

.result-image {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.result-congrats-title {
  color: var(--navy);
  font-size: 1.75rem;
  margin: 0 0 0.75rem;
}

.result-congrats-text {
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

.result-install {
  background: var(--gray-light);
  border-radius: 10px;
  padding: 3rem 1.25rem 2rem;
  text-align: center;
  margin-top: -60px;
}

.result-install-heading {
  color: var(--navy);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.result-install-text {
  color: var(--gray);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.result-download-label {
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.result-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.result-app-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
}
.result-app-btn:hover {
  background: var(--gold-hover);
  color: var(--navy);
  transform: translateY(-1px);
}

/* Responsive — мобильное меню (бургер) */
@media (max-width: 768px) {
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
  }
  .burger-btn {
    display: flex;
  }
  .nav {
    gap: 0.75rem;
  }
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--navy);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: max-height 0.3s ease;
    z-index: 101;
  }
  .site-header.menu-open .nav-dropdown {
    max-height: 280px;
  }
  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }
  .nav-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-menu a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .site-header.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }
  .banner-map {
    height: 100px;
    padding-left: 1rem;
  }
  .banner-seal {
    height: 44px;
    width: auto;
  }
  .lang-label {
    font-size: 0.85rem;
  }
  .lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero .subtitle {
    font-size: 1.1rem;
  }
}
