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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.container {
  max-width: 640px;
  width: 100%;
}

/* ── Site header ── */
.site-header {
  margin-bottom: 1.5rem;
}
.site-header__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  background: linear-gradient(135deg, #4361ee 0%, #7c3aed 100%);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 16px rgba(67, 97, 238, 0.25);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.site-header__banner:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.35);
}
.site-header__banner:active {
  transform: scale(0.99);
}
.site-header__logo {
  width: 144px;
  height: 144px;
  flex-shrink: 0;
}
.site-header__title {
  font-family: "Pacifico", cursive;
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ── Navigation header ── */
.nav-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
}

.nav-calendar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-arrow {
  background: #fff;
  border: none;
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
  color: #1a1a2e;
}

.nav-arrow:hover {
  background: #e8eaf0;
  transform: scale(1.08);
}

.nav-arrow:active {
  transform: scale(0.95);
}

/* ── Calendar ── */
.calendar-wrapper {
  flex: 1;
  max-width: 340px;
}

.calendar {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.calendar__month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.calendar__month-label {
  font-weight: 700;
  font-size: 1rem;
  text-transform: capitalize;
}

.calendar__month-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  color: #555;
  transition: background 0.2s;
}

.calendar__month-nav:hover {
  background: #f0f2f5;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  margin-bottom: 0.3rem;
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.calendar__day {
  padding: 0.45rem 0;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.12s;
  line-height: 1.4;
}

.calendar__day:hover {
  background: #e8eaf0;
}

.calendar__day--other-month {
  color: #ccc;
}

.calendar__day--today {
  font-weight: 700;
  border: 2px solid #4361ee;
}

.calendar__day--selected {
  background: #4361ee;
  color: #fff;
  font-weight: 700;
  transform: scale(1.15);
  box-shadow: 0 2px 10px rgba(67, 97, 238, 0.4);
}

.calendar__day--has-news {
  position: relative;
}

.calendar__day--has-news::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4361ee;
}

.calendar__day--selected.calendar__day--has-news::after {
  background: #fff;
}

.calendar__day--selected:hover {
  background: #3a56d4;
}

.calendar__day--selected.calendar__day--today {
  border-color: #fff;
}

/* ── Action buttons (submit + random) ── */
.btn-random,
.btn-submit-news {
  flex: 1;
  color: #fff;
  border: none;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  line-height: 1.3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit-news {
  background: #F4A261;
  box-shadow: 0 2px 8px rgba(244, 162, 97, 0.35);
}
.btn-submit-news:hover { background: #E8935A; transform: scale(1.02); }
.btn-submit-news:active { transform: scale(0.97); }

.btn-random {
  background: #74B9FF;
  box-shadow: 0 2px 8px rgba(116, 185, 255, 0.35);
}
.btn-random:hover { background: #5EAAEE; transform: scale(1.02); }
.btn-random:active { transform: scale(0.97); }

/* ── News ── */
.news {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 2.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
  animation: fadeIn 0.3s ease;
}

.news__images {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.news__images:not(:empty) {
  margin-top: 1.2rem;
}

.news__image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.news__title {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news__title::before {
  content: "";
  display: inline-block;
  width: 84px;
  height: 84px;
  background: url("logo-eco.svg") no-repeat center / contain;
  flex-shrink: 0;
}

.news__body {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}
.news__body p { margin-bottom: 0.8em; }
.news__body p:last-child { margin-bottom: 0; }
.news__body h1, .news__body h2, .news__body h3 { color: #1a1a2e; margin: 0.6em 0 0.3em; }
.news__body ul, .news__body ol { margin: 0.5em 0 0.5em 1.5em; }
.news__body a { color: #4361ee; text-decoration: underline; }

.news__share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background: #f0f2f5;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  margin-left: auto;
}

.news__share:hover {
  background: #e0e3e8;
  color: #4361ee;
}

.news__share:active {
  transform: scale(0.95);
}

.news__share--copied {
  background: #d4edda;
  color: #28a745;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 500px) {
  .site-header__banner { padding: 1rem; gap: 0.7rem; }
  .site-header__logo { width: 48px; height: 48px; }
  .site-header__title { font-size: 1.8rem; }

  .nav-buttons {
    gap: 0.5rem;
  }

  .btn-random,
  .btn-submit-news {
    font-size: 0.95rem;
    padding: 0.6rem;
  }

  .nav-calendar-row {
    gap: 0.5rem;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .calendar {
    padding: 0.8rem;
  }

  .news {
    padding: 1.4rem;
  }

  .news__title {
    font-size: 1.2rem;
  }
}
