/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #021526;
  --bg2: #03223f;
  --surface: #0a3a5c;
  --surface2: #0d4a73;
  --accent: #00b4d8;
  --accent2: #90e0ef;
  --gold: #f4a261;
  --gold-light: #fcd16c;
  --text: #e0f2fe;
  --text2: #7ec8e3;
  --sand: #e6c9a8;
  --wood: #8b6914;
  --wood-dark: #5c4a0e;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(0,20,40,.5);
  --glow: 0 0 30px rgba(0,180,216,.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(0,180,216,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(144,224,239,.06) 0%, transparent 50%);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    linear-gradient(180deg, 
      #021526 0%, 
      #042a52 30%, 
      #06467a 50%, 
      #0a6faa 70%, 
      #0d8bc4 85%, 
      #10a3d4 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 250px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,180 C240,220 480,120 720,180 C960,240 1200,140 1440,180 L1440,250 L0,250Z' fill='%23021526' opacity='.6'/%3E%3Cpath d='M0,200 C360,250 720,150 1080,200 C1260,225 1380,175 1440,200 L1440,250 L0,250Z' fill='%23021526'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}

/* Световые блики на воде */
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(144,224,239,.15) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(0,180,216,.1) 0%, transparent 35%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
  animation: float 3s ease-in-out infinite;
  text-shadow: 0 0 60px rgba(0,180,216,.3);
  filter: drop-shadow(0 4px 20px rgba(0,180,216,.4));
}

.hero p {
  font-size: 1.35rem;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-fish {
  font-size: 3rem;
  animation: swim 5s ease-in-out infinite;
  letter-spacing: .75rem;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,.4));
}

/* Декоративная удочка */
.hero-rod {
  position: absolute;
  top: 15%;
  right: 10%;
  font-size: 4rem;
  transform: rotate(-30deg);
  animation: bob 2s ease-in-out infinite;
  z-index: 3;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.4));
}

.hero-hook {
  position: absolute;
  bottom: 35%;
  right: 8%;
  font-size: 2.5rem;
  animation: hookSwing 3s ease-in-out infinite;
  z-index: 3;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes swim {
  0%,100% { transform: translateX(0) scaleX(1); }
  25% { transform: translateX(15px) scaleX(1.02); }
  50% { transform: translateX(30px) scaleX(1); }
  75% { transform: translateX(15px) scaleX(0.98); }
}

@keyframes bob {
  0%,100% { transform: rotate(-30deg) translateY(0); }
  50% { transform: rotate(-25deg) translateY(-10px); }
}

@keyframes hookSwing {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(15deg); }
}

/* === Bubbles === */
.hero-bubbles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.bubble {
  position: absolute;
  bottom: -40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(144,224,239,.3), rgba(0,180,216,.08));
  border: 1px solid rgba(144,224,239,.2);
  animation: rise linear infinite;
  box-shadow: inset 0 0 10px rgba(255,255,255,.1);
}

.bubble::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 20%;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  transform: rotate(-30deg);
}

@keyframes rise {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: .8; }
  50% { transform: translateY(-50vh) scale(.7) rotate(10deg); opacity: .5; }
  100% { transform: translateY(-110vh) scale(.3) rotate(-5deg); opacity: 0; }
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2,21,38,.88);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(0,180,216,.2);
  padding: .85rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding: 0 1.5rem;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
  white-space: nowrap;
  padding: .6rem 1.25rem;
  border-radius: 999px;
  color: var(--accent2);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  transition: all .3s;
  border: 1px solid transparent;
  position: relative;
}
.nav-link:hover { 
  color: #fff; 
  background: rgba(0,180,216,.15); 
  border-color: rgba(0,180,216,.3);
}
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 4px 20px rgba(0,180,216,.4);
}

/* === Main === */
.main { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* === Section === */
.section { 
  margin-bottom: 4.5rem; 
  scroll-margin-top: 80px;
  background: rgba(10,58,92,.15);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(0,180,216,.1);
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0,180,216,.15);
}

.section-icon { 
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 10px rgba(0,180,216,.3));
}

.section-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0,180,216,.2);
}

/* === Card Grid (About) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(145deg, rgba(10,58,92,.4), rgba(13,74,115,.3));
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(0,180,216,.15);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}

.card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 15px 50px rgba(0,180,216,.25);
  border-color: rgba(0,180,216,.3);
}

.card:hover::before { opacity: 1; }

.card-icon { 
  font-size: 2.5rem; 
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.card h3 { 
  font-family: 'Fredoka', sans-serif; 
  margin-bottom: .6rem; 
  font-size: 1.25rem;
  color: #fff;
}

.card p { color: var(--text2); font-size: .95rem; line-height: 1.7; }

/* === Steps === */
.steps { display: flex; flex-direction: column; gap: 1.25rem; }

.step {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(10,58,92,.5), rgba(13,74,115,.35));
  border-radius: 18px;
  padding: 1.75rem;
  border-left: 5px solid var(--accent);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent);
}

.step:hover { 
  transform: translateX(10px); 
  box-shadow: 0 10px 40px rgba(0,180,216,.2);
  border-left-color: var(--accent2);
}

.step-num {
  min-width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0,180,216,.4);
}

.step-content h3 {
  font-family: 'Fredoka', sans-serif;
  margin-bottom: .5rem;
  font-size: 1.15rem;
  color: #fff;
}
.step-content p { color: var(--text2); font-size: .95rem; line-height: 1.7; }

kbd {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(145deg, rgba(0,180,216,.2), rgba(144,224,239,.1));
  border: 1px solid rgba(0,180,216,.4);
  border-radius: 8px;
  font-size: .85rem;
  font-family: monospace;
  color: var(--accent2);
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

/* === Filter === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: rgba(10,58,92,.3);
  border-radius: 14px;
}

.filter-btn {
  padding: .55rem 1.25rem;
  border-radius: 999px;
  border: 2px solid rgba(0,180,216,.2);
  background: rgba(10,58,92,.5);
  color: var(--accent2);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  transition: all .3s;
}
.filter-btn:hover { 
  border-color: var(--accent); 
  color: #fff; 
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,180,216,.3);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 6px 25px rgba(0,180,216,.4);
}

/* === Fish Grid === */
.fish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.fish-card {
  background: linear-gradient(145deg, rgba(10,58,92,.5), rgba(13,74,115,.35));
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  border: 2px solid rgba(0,180,216,.1);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.fish-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .3s;
}

.fish-card:hover { 
  transform: translateY(-8px) scale(1.03); 
  box-shadow: 0 20px 50px rgba(0,180,216,.2);
  border-color: rgba(0,180,216,.3);
}
.fish-card:hover::before { opacity: 1; }

.fish-emoji { 
  font-size: 3rem; 
  margin-bottom: .75rem;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,.4));
  animation: fishBob 3s ease-in-out infinite;
}

@keyframes fishBob {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(3deg); }
  75% { transform: translateY(5px) rotate(-3deg); }
}

.fish-name { 
  font-family: 'Fredoka', sans-serif; 
  font-size: 1.15rem; 
  margin-bottom: .4rem;
  color: #fff;
}

.fish-weight { 
  font-size: .85rem; 
  color: var(--text2); 
  margin-bottom: .5rem;
}

.fish-price { 
  font-size: .95rem; 
  color: var(--gold-light); 
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(244,162,97,.3);
}

.fish-rarity {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: .6rem;
  box-shadow: 0 4px 15px rgba(0,0,0,.2);
}

.rarity-common .fish-rarity { background: linear-gradient(135deg, #2d7a2d, #3b9a3b); color: #e0ffe0; }
.rarity-uncommon .fish-rarity { background: linear-gradient(135deg, #1a7a4a, #28a068); color: #d0ffd8; }
.rarity-rare .fish-rarity { background: linear-gradient(135deg, #1565c0, #2196f3); color: #d0eaff; }
.rarity-epic .fish-rarity { background: linear-gradient(135deg, #6a1b9a, #9c27b0); color: #f0d0ff; }
.rarity-legendary .fish-rarity { background: linear-gradient(135deg, #e65100, #ff9800); color: #fff3d0; }
.rarity-mythic .fish-rarity { background: linear-gradient(135deg, #b71c1c, #f44336); color: #ffe0e0; }

.fish-card.hidden { display: none; }

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

.location-card {
  background: linear-gradient(145deg, rgba(10,58,92,.5), rgba(13,74,115,.35));
  border-radius: 20px;
  padding: 1.75rem;
  border: 2px solid rgba(0,180,216,.1);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
}

.location-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 50px rgba(0,180,216,.2);
  border-color: rgba(0,180,216,.3);
}
.location-card:hover::before { opacity: 1; }

.location-header { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  margin-bottom: 1rem; 
}

.location-icon { 
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.location-name { 
  font-family: 'Fredoka', sans-serif; 
  font-size: 1.25rem;
  color: #fff;
}

.location-desc { 
  color: var(--text2); 
  font-size: .95rem; 
  margin-bottom: 1rem;
  line-height: 1.7;
}

.location-fish-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.location-fish-tag {
  padding: 5px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(0,180,216,.15), rgba(144,224,239,.08));
  color: var(--accent2);
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid rgba(0,180,216,.2);
  transition: all .2s;
}
.location-fish-tag:hover {
  background: rgba(0,180,216,.25);
  transform: scale(1.05);
}

.location-unlock {
  display: inline-block;
  margin-top: 1rem;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(244,162,97,.2), rgba(252,209,108,.1));
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid rgba(244,162,97,.3);
  box-shadow: 0 4px 15px rgba(244,162,97,.15);
}

/* === Gear Tabs === */
.gear-tabs {
  display: flex;
  gap: .6rem;
  margin-bottom: 1.75rem;
  padding: 1rem;
  background: rgba(10,58,92,.3);
  border-radius: 14px;
}

.gear-tab {
  padding: .6rem 1.5rem;
  border-radius: 999px;
  border: 2px solid rgba(0,180,216,.2);
  background: rgba(10,58,92,.5);
  color: var(--accent2);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .3s;
}
.gear-tab:hover { 
  border-color: var(--accent); 
  color: #fff;
  transform: translateY(-2px);
}
.gear-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 6px 25px rgba(0,180,216,.4);
}

.gear-list { display: flex; flex-direction: column; gap: 1rem; }

.gear-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(145deg, rgba(10,58,92,.5), rgba(13,74,115,.35));
  border-radius: 18px;
  padding: 1.5rem;
  border: 2px solid rgba(0,180,216,.1);
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.gear-item:hover { 
  transform: translateX(8px); 
  box-shadow: 0 12px 40px rgba(0,180,216,.2);
  border-color: rgba(0,180,216,.25);
}

.gear-icon { 
  font-size: 2.5rem; 
  min-width: 52px; 
  text-align: center;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.gear-info { flex: 1; }
.gear-info h4 { 
  font-family: 'Fredoka', sans-serif; 
  margin-bottom: .4rem;
  font-size: 1.15rem;
  color: #fff;
}
.gear-info p { font-size: .9rem; color: var(--text2); line-height: 1.6; }

.gear-price {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(244,162,97,.3);
}

.gear-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.gear-stat {
  font-size: .8rem;
  color: var(--accent2);
  font-weight: 700;
  padding: 3px 10px;
  background: rgba(0,180,216,.1);
  border-radius: 999px;
  border: 1px solid rgba(0,180,216,.2);
}

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

.tip-card {
  background: linear-gradient(145deg, rgba(10,58,92,.5), rgba(13,74,115,.35));
  border-radius: 20px;
  padding: 1.75rem;
  border: 2px solid rgba(0,180,216,.1);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  position: relative;
}

.tip-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .3s;
  border-radius: 20px 20px 0 0;
}

.tip-card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 50px rgba(0,180,216,.2);
  border-color: rgba(0,180,216,.3);
}
.tip-card:hover::before { opacity: 1; }

.tip-icon { 
  font-size: 2.5rem; 
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.tip-card h3 { 
  font-family: 'Fredoka', sans-serif; 
  margin-bottom: .6rem;
  font-size: 1.2rem;
  color: #fff;
}
.tip-card p { 
  color: var(--text2); 
  font-size: .95rem;
  line-height: 1.7;
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text2);
  font-size: .9rem;
  border-top: 2px solid rgba(0,180,216,.15);
  background: linear-gradient(180deg, transparent, rgba(10,58,92,.2));
  margin-top: 2rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2.5rem; }
  .hero-rod { right: 5%; font-size: 3rem; }
  .hero-hook { right: 3%; font-size: 2rem; }
  .card-grid, .fish-grid, .location-grid, .tips-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; text-align: center; }
  .step::before { display: none; }
  .gear-item { flex-direction: column; text-align: center; }
  .section { padding: 1.75rem 1.25rem; }
  .filter-bar, .gear-tabs { padding: .75rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-fish { font-size: 2rem; letter-spacing: .5rem; }
  .nav-link { padding: .4rem .8rem; font-size: .8rem; }
}

/* === Scroll reveal === */
.section { 
  opacity: 0; 
  transform: translateY(40px); 
  transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); 
}
.section.visible { 
  opacity: 1; 
  transform: translateY(0); 
}

/* === Wave decoration === */
.wave-deco {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,20 1440,40 L1440,80 L0,80Z' fill='%23021526' opacity='.5'/%3E%3Cpath d='M0,50 C360,80 720,20 1080,50 C1260,65 1380,35 1440,50 L1440,80 L0,80Z' fill='%23021526' opacity='.7'/%3E%3Cpath d='M0,60 C360,80 720,40 1080,60 C1260,70 1380,50 1440,60 L1440,80 L0,80Z' fill='%23021526'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
  pointer-events: none;
  z-index: 1000;
}