:root{
  --primary:#00BCD4;
  --primary-dark:#0097A7;
  --primary-light:#B2EBF2;
  --bg:#f5f7fa;
  --card:#fff;
  --text:#333;
  --text-light:#666;
  --border:#e0e0e0;
  --shadow:0 2px 12px rgba(0,0,0,.08);
  --shadow-hover:0 6px 24px rgba(0,0,0,.12);
  --radius:12px;
  --max-width:1200px;
  --nav-height:64px;
}
body{
  font-family:'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px}

/* NAV */
.nav{
  position:sticky;top:0;z-index:100;
  background:var(--card);
  box-shadow:var(--shadow);
  height:var(--nav-height);
  display:flex;align-items:center;
}
.nav .container{display:flex;align-items:center;width:100%;justify-content:space-between}
.nav__logo{display:flex;align-items:center;gap:10px;font-size:1.4rem;font-weight:700;color:var(--primary-dark)}
.nav__logo svg{width:36px;height:36px}
.nav__links{display:flex;gap:28px}
.nav__links a{font-size:.95rem;font-weight:500;color:var(--text-light);transition:color .2s}
.nav__links a:hover,.nav__links a.active{color:var(--primary-dark)}
.nav__burger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px}
.nav__burger span{width:24px;height:2px;background:var(--text);transition:.3s}

/* HERO */
.hero{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  padding:80px 20px;
  text-align:center;
}
.hero h1{font-size:2.6rem;margin-bottom:12px}
.hero p{font-size:1.15rem;opacity:.9;max-width:600px;margin:0 auto}

/* SECTION */
.section{padding:60px 0}
.section__title{
  font-size:1.8rem;
  text-align:center;
  margin-bottom:40px;
  color:var(--primary-dark);
}

/* VK POSTS */
.posts{display:flex;flex-direction:column;gap:24px}
.post{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:box-shadow .3s;
}
.post:hover{box-shadow:var(--shadow-hover)}
.post__header{display:flex;align-items:center;gap:12px;padding:16px 20px}
.post__avatar{width:48px;height:48px;border-radius:50%;object-fit:cover}
.post__group{font-weight:600;font-size:1rem}
.post__date{font-size:.85rem;color:var(--text-light)}
.post__text{padding:0 20px 16px;font-size:.95rem;line-height:1.7}
.post__text a{color:var(--primary-dark);font-weight:500}
.post__attachments{display:flex;flex-wrap:wrap;gap:4px;padding:0 0 16px}
.post__attachments img{
  max-height:400px;width:100%;object-fit:cover;cursor:pointer;
  transition:opacity .2s;
}
.post__attachments img:hover{opacity:.92}
.post__likes{
  display:flex;align-items:center;gap:6px;
  padding:12px 20px;
  border-top:1px solid var(--border);
  font-size:.9rem;color:var(--text-light);
}
.post__likes svg{width:18px;height:18px}

.load-more{
  display:block;
  margin:32px auto 0;
  padding:12px 36px;
  background:var(--primary);
  color:#fff;
  border:none;border-radius:var(--radius);
  font-size:1rem;font-weight:600;
  cursor:pointer;
  transition:background .2s;
}
.load-more:hover{background:var(--primary-dark)}
.load-more:disabled{opacity:.5;cursor:default}

/* CATALOG */
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:24px;
}
.fish-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .3s,box-shadow .3s;
}
.fish-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.fish-card__img{
  width:100%;height:200px;object-fit:cover;
  background:var(--primary-light);
}
.fish-card__body{padding:16px}
.fish-card__name{font-size:1.1rem;font-weight:700;margin-bottom:6px;color:var(--primary-dark)}
.fish-card__latin{font-size:.8rem;color:var(--text-light);font-style:italic;margin-bottom:10px}
.fish-card__desc{font-size:.9rem;color:var(--text-light);line-height:1.6;margin-bottom:12px}
.fish-card__params{display:flex;flex-wrap:wrap;gap:8px}
.fish-card__tag{
  display:inline-block;
  padding:4px 10px;
  background:var(--primary-light);
  color:var(--primary-dark);
  border-radius:20px;
  font-size:.78rem;
  font-weight:500;
}

/* TIPS */
.tips-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
  gap:24px;
}
.tip-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
  transition:transform .3s;
}
.tip-card:hover{transform:translateY(-3px)}
.tip-card__icon{font-size:2rem;margin-bottom:12px}
.tip-card__title{font-size:1.15rem;font-weight:700;margin-bottom:10px;color:var(--primary-dark)}
.tip-card__text{font-size:.92rem;color:var(--text-light);line-height:1.7}

/* GALLERY */
.gallery-grid{
  columns:3;
  column-gap:16px;
}
.gallery-item{
  break-inside:avoid;
  margin-bottom:16px;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  cursor:pointer;
  transition:transform .3s;
}
.gallery-item:hover{transform:scale(1.02)}
.gallery-item img{width:100%;display:block}

/* CONTACTS */
.contacts-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:40px;
  max-width:700px;
  margin:0 auto;
}
.contacts-card h2{font-size:1.5rem;color:var(--primary-dark);margin-bottom:24px;text-align:center}
.contacts-row{
  display:flex;align-items:center;gap:16px;
  padding:16px 0;
  border-bottom:1px solid var(--border);
  font-size:1rem;
}
.contacts-row:last-child{border-bottom:none}
.contacts-row svg{width:24px;height:24px;color:var(--primary);flex-shrink:0}

/* FOOTER */
.footer{
  background:var(--primary-dark);
  color:#fff;
  text-align:center;
  padding:24px 20px;
  font-size:.9rem;
  margin-top:60px;
}

/* LIGHTBOX */
.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(0,0,0,.85);
  display:flex;align-items:center;justify-content:center;
  opacity:0;pointer-events:none;
  transition:opacity .3s;
}
.lightbox.active{opacity:1;pointer-events:all}
.lightbox img{max-width:90vw;max-height:90vh;border-radius:8px}
.lightbox__close{
  position:absolute;top:16px;right:24px;
  font-size:2rem;color:#fff;cursor:pointer;
  background:none;border:none;
}

/* SPINNER */
.spinner{
  width:40px;height:40px;
  border:4px solid var(--border);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:spin .8s linear infinite;
  margin:40px auto;
}
@keyframes spin{to{transform:rotate(360deg)}}

/* RESPONSIVE */
@media(max-width:768px){
  .nav__links{
    display:none;
    position:absolute;top:var(--nav-height);left:0;right:0;
    background:var(--card);flex-direction:column;
    padding:20px;gap:16px;
    box-shadow:var(--shadow);
  }
  .nav__links.open{display:flex}
  .nav__burger{display:flex}
  .hero h1{font-size:1.8rem}
  .hero p{font-size:1rem}
  .gallery-grid{columns:2}
  .tips-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .gallery-grid{columns:1}
  .catalog-grid{grid-template-columns:1fr}
  .hero{padding:50px 16px}
}
