/* ===== Кольский Арктический гид — Высококонтрастный дизайн ===== */
:root {
  --bg-deep: #0b1420;
  --bg-card: #121e2e;
  --bg-soft: #1a2a3f;
  --text-primary: #f0f6fc;
  --text-secondary: #b8c9db;
  --text-muted: #8a9bb0;
  --accent: #4db8ff;
  --accent-hover: #7cc9ff;
  --accent-soft: rgba(77, 184, 255, 0.15);
  --green: #3dd68c;
  --orange: #ff9f43;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Header & Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 20, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 0.3rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.3rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(160deg, #0b1420 0%, #15253a 40%, #0d1c2d 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(77, 184, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(61, 214, 140, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: #0b1420;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(77, 184, 255, 0.35);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(77, 184, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Sections ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* ===== Cards Grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(77, 184, 255, 0.3);
}

.card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,20,32,0.7) 0%, transparent 50%);
}

.card-body {
  padding: 1.4rem 1.5rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  flex: 1;
  margin-bottom: 1.2rem;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

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

/* ===== Content Pages ===== */
.page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  background: linear-gradient(180deg, #121e2e 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 700px;
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.content h2 {
  font-size: 1.55rem;
  color: #ffffff;
  margin: 2.2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent-soft);
}

.content h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 1.6rem 0 0.7rem;
}

.content p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
}

.content ul, .content ol {
  color: var(--text-secondary);
  margin: 0 0 1.3rem 1.4rem;
}

.content li {
  margin-bottom: 0.5rem;
}

.content strong {
  color: var(--text-primary);
}

/* ===== Image Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== Info boxes ===== */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.info-box.warning {
  border-left-color: var(--orange);
}

.info-box.success {
  border-left-color: var(--green);
}

.info-box h4 {
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.info-box p {
  margin: 0;
  font-size: 0.98rem;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.feature h4 {
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  background: #070e17;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Download notice ===== */
.download-box {
  background: linear-gradient(135deg, #15253a, #1a3048);
  border: 1px solid rgba(77, 184, 255, 0.3);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.download-box h3 {
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.download-box p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 0.2rem;
  }

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

  .nav-links a {
    padding: 0.8rem 1rem;
  }

  .hero {
    min-height: 65vh;
    padding: 3rem 1.2rem;
  }

  .section {
    padding: 3rem 1.2rem;
  }
}

/* High contrast text guarantees */
a, button, .btn {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: #0b1420;
}
