.btn {
  display: inline-block;         /* чтобы <a> выглядел как кнопка */
  padding: 12px 24px;            /* внутренние отступы */
  background-color: #008000;     /* фон (синий) */
  color: #fff;                   /* цвет текста */
  font-size: 16px;               /* размер шрифта */
  font-weight: 500;              /* полужирный */
  border: none;                  /* без рамки */
  border-radius: 8px;            /* скруглённые углы */
  text-decoration: none;         /* убрать подчёркивание */
  transition: background-color 0.3s ease;
  cursor: pointer;
  margin: 5px;                   /* небольшой отступ между кнопками */
}

/* Эффект при наведении */
.btn:hover {
  background-color: #0056b3;     /* более тёмный синий */
}
:root {
  --green: #1f7a3f;
  --light: #f5fff7;
  --dark: #0f3d20;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:#ffffff; color:#111; }
header {
  position: sticky; top:0; z-index:10;
  background: #fff; border-bottom: 1px solid #e7e7e7;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.navbar { display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:12px;}
.brand { display:flex; align-items:center; gap:12px; font-weight:700; color:var(--green); text-decoration:none; }
.brand img { height:36px; width:auto; border-radius:6px; }
nav a { color:#222; text-decoration:none; margin:0 10px; font-weight:600; }
nav a.active { color: var(--green); }
.lang-switch { display:flex; gap:6px; align-items:center; }
.lang-switch button {
  border:1px solid #d0d0d0; background:#fff; border-radius:8px; padding:8px 10px; cursor:pointer; font-weight:600;
}
.lang-switch button.active { border-color: var(--green); color: var(--green); }
.hero {
  background: linear-gradient(180deg, #eaf8ee, #ffffff);
  border-bottom:1px solid #e7e7e7;
}
.hero-inner { display:grid; grid-template-columns: 1.2fr 1fr; gap:24px; padding:34px 0; align-items:center; }
.hero h1 { margin:0 0 10px; font-size: clamp(28px, 4vw, 40px); color: var(--dark); }
.hero p.lead { font-size: clamp(16px, 2.2vw, 18px); color:#2f2f2f; }
.hero .card {
  background:#fff; border:1px solid #e7e7e7; border-radius:14px; padding:16px;
}
.hero img { width:100%; height:auto; border-radius:14px; border:1px solid #e6e6e6; }
.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}
.section { padding: 40px 0; }
.card { background:#fff; border:1px solid #e7e7e7; border-radius:14px; padding:18px; }
.badge { display:inline-block; padding:6px 10px; background: var(--green); color:#fff; border-radius:999px; font-size:12px; }
ul.clean { margin:12px 0 0 18px; padding:0; }
.timegrid { display:grid; grid-template-columns: 150px 1fr; gap:12px; align-items:start; }
.timegrid .row { display:contents; }
footer { border-top:1px solid #e7e7e7; padding:22px 0; color:#555; background:#fafafa; }
.button {
  display:inline-block; padding:12px 16px; border-radius:10px; background:var(--green); color:#fff; text-decoration:none; font-weight:700;
}
.button.secondary { background:#fff; color:var(--green); border:1px solid var(--green); }
.kv { display:grid; grid-template-columns: 1fr 2fr; gap:10px; }
.kv div { padding:3px 0; }
.gallery { display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
.gallery img { width:100%; height:auto; border-radius:12px; border:1px solid #e7e7e7; }
.note { font-size: 14px; color:#666; }


/* === Fix for insect décor visibility === */
.section-about, .section-program, .section-gallery,
.section-sponsors-top, .section-sponsors-grid {
  position: relative;
  overflow: hidden;
}

.section-about::after,
.section-program::before,
.section-gallery::after,
.section-program::after,
.section-sponsors-top::after,
.section-sponsors-grid::before {
  opacity: 0.35 !important; /* Make more visible */
  z-index: 0;
}

/* Insect décor (read-only content unaffected) */
.section { position: relative; overflow: hidden; }
.section-about::after { content:""; position:absolute; top:-8px; right:-8px; width:120px; height:120px; opacity:.18;
  background-image:url("assets/decor_bug.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none; }
.section-program::before { content:""; position:absolute; left:-18px; top:24px; width:150px; height:130px; opacity:.14;
  background-image:url("assets/decor_scale.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none; }
.section-gallery::after { content:""; position:absolute; right:8px; bottom:-14px; width:160px; height:140px; opacity:.16;
  background-image:url("assets/decor_bug.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none; }
.section-program::after { content:""; position:absolute; right:10px; bottom:-10px; width:100px; height:90px; opacity:.12;
  background-image:url("assets/decor_bug.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none; }
.section-sponsors-top::after { content:""; position:absolute; right:-12px; top:-16px; width:140px; height:120px; opacity:.15;
  background-image:url("assets/decor_moth.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none; }
.section-sponsors-grid::before { content:""; position:absolute; left:-14px; bottom:-14px; width:140px; height:110px; opacity:.13;
  background-image:url("assets/decor_scale.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none; }


/* === Smooth transitions === */
html { scroll-behavior: smooth; }
body { animation: siteFade 300ms ease-in; }
@keyframes siteFade { from { opacity: 0 } to { opacity: 1 } }
a, .button { transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease; }
a:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }

/* === Extra insect décor from new images === */
.hero { position: relative; }
.hero::after {
  content:""; position:absolute; left:-12px; top:-16px; width:140px; height:120px; opacity:.18;
  background-image: url("assets/decor_moth_dark.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none;
}

/* Orange fly near contacts */
.section-contacts::after {
  content:""; position:absolute; right:-8px; top:-10px; width:110px; height:110px; opacity:.16;
  background-image:url("assets/decor_orange_fly.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none;
}

/* Light moth duplicated on sponsors grid */
.section-sponsors-grid::after {
  content:""; position:absolute; right:-10px; bottom:-12px; width:130px; height:110px; opacity:.14;
  background-image:url("assets/decor_moth_light.png"); background-size:contain; background-repeat:no-repeat; pointer-events:none;
}


/* Objects grid in hero */
.objects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.objects-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  transition: transform .2s ease, box-shadow .2s ease, opacity .3s ease;
  opacity: 0; animation: fadeIn .6s ease forwards;
}
.objects-grid a:nth-child(1) img { animation-delay: .05s; }
.objects-grid a:nth-child(2) img { animation-delay: .1s; }
.objects-grid a:nth-child(3) img { animation-delay: .15s; }
.objects-grid a:nth-child(4) img { animation-delay: .2s; }
.objects-grid a:nth-child(5) img { animation-delay: .25s; }
.objects-grid img:hover { transform: scale(1.02); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
@keyframes fadeIn { from { opacity:0; transform: translateY(4px);} to { opacity:1; transform: translateY(0);} }

@media (max-width: 900px) {
  .objects-grid { grid-template-columns: 1fr 1fr; }
  .objects-grid img { height: 100px; }
}


/* ===== Enhanced animations ===== */

/* Staggered pop-in for objects */
.objects-grid img {
  opacity: 0;
  transform: translateY(6px) scale(.98);
  animation: objIn .5s ease forwards;
}
.objects-grid a:nth-child(1) img { animation-delay: .05s; }
.objects-grid a:nth-child(2) img { animation-delay: .12s; }
.objects-grid a:nth-child(3) img { animation-delay: .19s; }
.objects-grid a:nth-child(4) img { animation-delay: .26s; }
.objects-grid a:nth-child(5) img { animation-delay: .33s; }

@keyframes objIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.objects-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.objects-grid a::after {
  content: "Просмотреть";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,0));
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
}
.objects-grid a:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle floating for insect décor */
@keyframes floaty { 
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(0.2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}
.section-about::after,
.section-program::before,
.section-gallery::after,
.section-program::after,
.section-sponsors-top::after,
.section-sponsors-grid::before {
  animation: floaty 6s ease-in-out infinite;
  will-change: transform;
}

/* Smooth page appear */
body { animation: siteFade 320ms ease-in; }
@keyframes siteFade { from { opacity: 0 } to { opacity: 1 } }
