@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #f6f7f2;
  --bg-soft: #eef1e6;
  --text: #000000;
  --card: #ffffff;
  --muted: #000000;
  --border: rgba(20, 24, 22, 0.1);
  --accent: #e8ecdf;
  --lime: #1f6b3a;
  --lime-deep: #16522c;
  --lime-glow: rgba(31, 107, 58, 0.35);
  --coral: #ff6b4a;
  --violet: #8b7cf6;
  --gold: #f0b429;
  --dark: #121612;
  --shadow: 0 10px 24px rgba(92, 55, 30, 0.5);
  --shadow-lg: 0 16px 34px rgba(92, 55, 30, 0.58);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --radius: 18px;
  --radius-sm: 14px;
}

[data-theme="dark"] {
  --bg: #241a15;
  --bg-soft: #2e221c;
  --text: #ffffff;
  --card: #2f241e;
  --muted: #ffffff;
  --border: rgba(247, 241, 234, 0.14);
  --accent: #352a23;
  --lime: #1f6b3a;
  --lime-deep: #1a5c32;
  --lime-glow: rgba(31, 107, 58, 0.24);
  --shadow: 0 10px 24px rgba(155, 220, 55, 0.56);
  --shadow-lg: 0 16px 34px rgba(155, 220, 55, 0.66);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  background:
    radial-gradient(900px 420px at 12% -8%, var(--lime-glow), transparent 55%),
    radial-gradient(
      700px 380px at 92% 8%,
      rgba(139, 124, 246, 0.12),
      transparent 50%
    ),
    var(--bg);
  color: var(--text);
  transition:
    background 0.35s ease,
    color 0.35s ease;
  overflow-x: hidden;
}
button,
a,
input {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 0 36px;
}

/* ---------- Topline ---------- */
.topline {
  min-height: 34px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--lime) 18%, var(--accent)),
    var(--accent)
  );
  color: var(--muted);
  font: 600 11px Montserrat;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.live-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--lime-glow);
  animation: pulse 1.8s ease-out infinite;
}
.topline-divider {
  width: 1px;
  height: 12px;
  background: currentColor;
  opacity: 0.35;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--lime-glow);
  }
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ---------- Header ---------- */
.site-header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s,
    background 0.25s;
}
body.scrolled .site-header {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
  max-width: 340px;
  line-height: 1;
}
.brand > span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  line-height: 1;
  min-width: 0;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  border-radius: 12px 12px 12px 5px;
  transform: rotate(-7deg);
  font: 800 22px Montserrat;
  box-shadow: 0 8px 20px var(--lime-glow);
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.05);
}

.brand-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
  flex-shrink: 0;
  display: block;
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand-logo {
  transform: scale(1.06) rotate(-3deg);
}
.footer-inner .brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}
.site-header {
  height: 120px;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* hide old mark if present */
.brand-mark {
  display: none;
}

.brand strong {
  display: block;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111111;
  text-transform: lowercase;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.brand small {
  display: block;
  margin: 0;
  padding: 0;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.2em;
  color: #9a9f96;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .brand > span {
    min-width: 0;
    overflow: hidden;
  }
  .brand strong {
    font-size: 36px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: visible;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-top: 4px;
    white-space: nowrap;
  }
  .site-header {
    height: auto;
    min-height: 72px;
    padding: 10px 0;
    gap: 8px;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .icon-button,
  .menu-button {
    width: 36px;
    height: 36px;
  }
}
.site-header nav {
  display: flex;
  gap: 14px;
  position: relative;
  left: 0;
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: nowrap;
  min-width: 0;
  align-items: center;
}
.site-header nav a,
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--lime), var(--lime-deep));
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
  transform-origin: left;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text);
}
.site-header nav a.active {
  padding: 6px 8px;
  border-radius: 5px;
  background: var(--lime);
  color: #f5f8f4;
}
.footer-links a:hover {
  color: var(--lime);
}
.site-header nav a:hover::after,
.site-header nav a.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 50%;
  transition: 0.2s var(--ease);
}
.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--lime);
  box-shadow: 0 8px 18px var(--lime-glow);
}
[data-theme-toggle] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 8px 18px var(--lime-glow);
}
[data-theme-toggle]:hover {
  border-color: transparent;
  box-shadow: 0 12px 24px var(--lime-glow);
}
.header-cta,
.primary-cta,
.dark-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 15px;
  border: 0;
  border-radius: 80px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px var(--lime-glow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s;
}
.header-cta:hover,
.primary-cta:hover,
.dark-cta:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  box-shadow: 0 16px 34px rgba(232, 106, 18, 0.4);
  color: #fff;
}
.menu-button {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
}
.hero-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 70px;
}
.hero-copy {
  padding-left: 4%;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 700 12px Montserrat;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.eyebrow i {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  border-radius: 2px;
}
h1,
h2,
h3 {
  font-family: Montserrat;
  letter-spacing: -0.06em;
}
h1 {
  margin: 22px 0 18px;
  font-size: clamp(52px, 7vw, 90px);
  line-height: 0.9;
  font-weight: 900;
}
h1 em,
h2 em {
  font-style: normal;
  background: linear-gradient(
    120deg,
    var(--lime),
    #3d9a5c 50%,
    var(--lime-deep)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px var(--lime-glow));
}
p {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}
.hero-copy > p {
  max-width: 430px;
}
.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: wrap;
}
.text-cta {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  position: relative;
}
.text-cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0.4);
  transition: transform 0.25s;
  transform-origin: left;
}
.text-cta:hover::after {
  transform: scaleX(1);
}
.proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
}
.avatar-stack {
  display: flex;
  padding-left: 8px;
}
.avatar-stack span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-left: -8px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: #eee8d9;
  color: #17200f;
  font-size: 9px;
  font-weight: 800;
  transition: transform 0.2s;
}
.avatar-stack:hover span {
  transform: translateY(-2px);
}
.avatar-stack span:nth-child(2) {
  background: #c8ddf0;
}
.avatar-stack span:nth-child(3) {
  background: #d8c1ec;
}
.avatar-stack span:nth-child(4) {
  background: var(--lime);
}
.proof b {
  display: block;
  font: 700 13px Montserrat;
}
.proof small {
  font: 600 10px Montserrat;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-visual {
  min-height: 460px;
  position: relative;
  display: grid;
  place-items: center;
}
.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(40px);
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0.7;
  animation: glowPulse 5s ease-in-out infinite;
}
.hero-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite;
}
.hero-ring::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px dashed color-mix(in srgb, var(--lime) 40%, transparent);
  border-radius: 50%;
}
.hero-card {
  z-index: 1;
  width: 300px;
  padding: 8px;
  transform: rotate(5deg);
  border-radius: 150px 150px 18px 18px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  border: 1px solid var(--border);
}
.hero-photo {
  height: 365px;
  overflow: hidden;
  position: relative;
  border-radius: 140px 140px 13px 13px;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65));
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.hero-card:hover .hero-photo img {
  transform: scale(1.06);
}
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font: 700 10px Montserrat;
  text-transform: uppercase;
  box-shadow: 0 4px 12px var(--lime-glow);
}
.hero-photo .badge {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
}
.hero-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 13px 10px 6px;
}
.hero-caption small {
  display: block;
  color: var(--muted);
  font: 600 10px Montserrat;
  text-transform: uppercase;
}
.hero-caption b {
  display: block;
  margin-top: 5px;
  font: 800 18px Montserrat;
}
.hero-caption em {
  color: var(--lime-deep);
  font-style: normal;
}
[data-theme="dark"] .hero-caption em {
  color: var(--lime);
}
.round-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  transition: transform 0.25s;
}
.hero-card:hover .round-arrow {
  transform: rotate(45deg);
}
.floating-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(12, 14, 12, 0.85);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  font-size: 14px;
  animation: floatNote 5.5s ease-in-out infinite;
}
.floating-note span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #b8e986, #8fd14a);
  border-radius: 9px;
  color: #1a3d12;
}
.floating-note small {
  display: block;
  margin-top: 3px;
  color: #ffffff !important;
  font: 600 10px Montserrat;
  text-transform: uppercase;
  opacity: 1;
}
.floating-note b {
  color: #ffffff !important;
  font-weight: 800;
}
.note-top {
  top: 90px;
  right: 2%;
}
.note-bottom {
  bottom: 85px;
  left: 2%;
  animation-delay: -2s;
}
.note-bottom span {
  background: linear-gradient(135deg, #b8e986, #8fd14a);
  color: #1a3d12;
}

.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 90%, var(--lime) 10%);
  overflow: hidden;
}
.ticker-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  color: var(--muted);
  font: 600 11px Montserrat;
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
  width: max-content;
  padding-right: 40px;
}
.ticker-inner b {
  color: var(--text);
  font-weight: 600;
}
.ticker-inner i {
  color: var(--lime-deep);
  font-style: normal;
}
[data-theme="dark"] .ticker-inner i {
  color: var(--lime);
}

@keyframes float {
  0%,
  100% {
    transform: rotate(5deg) translateY(0);
  }
  50% {
    transform: rotate(3.5deg) translateY(-10px);
  }
}
@keyframes floatNote {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}
@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-top: 100px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding-bottom: 35px;
}
.intro h2,
.values h2,
.article-section h2 {
  margin: 20px 0 0;
  font-size: clamp(44px, 5.5vw, 70px);
  font-weight: 800;
  line-height: 0.94;
}
.intro > p {
  text-align: right;
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 110px;
}
.feature-card {
  min-height: 250px;
  padding: 28px;
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s;
}
.feature-card:hover::before {
  transform: translateX(120%);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.feature-card > span {
  font: 700 11px Montserrat;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.feature-card h3 {
  margin-top: 70px;
  font-size: 38px;
  line-height: 0.95;
  font-weight: 800;
}
.feature-card h3 em {
  font-style: normal;
}
.feature-card > b {
  display: block;
  margin-top: 20px;
  font-size: 14px;
}
.feature-dark {
  background: linear-gradient(145deg, #1f1612, #2c2018);
  color: #f5efe8;
}
.feature-light {
  background: linear-gradient(145deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.3fr) minmax(160px, 0.9fr);
  align-items: center;
  gap: 24px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  justify-self: center;
  text-align: center;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  justify-self: end;
  text-align: right;
  font-size: 13px;
  line-height: 1.45;
}
.footer-contacts strong {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
  color: var(--text);
}
.footer-contacts a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.footer-contacts a:hover {
  color: var(--lime);
}
.footer-contacts span {
  color: var(--muted);
  font-weight: 600;
}
.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: #f5f8f4;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px var(--lime-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s;
}
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: scrollTopBlink 1.6s ease-in-out infinite;
}
.scroll-top:hover {
  background: var(--lime-deep);
  box-shadow: 0 14px 28px var(--lime-glow);
  transform: translateY(-3px);
}
@keyframes scrollTopBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.58;
  }
}

/* ---------- Inner pages ---------- */
.inner-page {
  min-height: calc(100vh - 150px);
}
.page-hero,
.about-hero,
.journal-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: 90px 0 70px;
}
.page-hero h1,
.about-hero h1,
.journal-hero h1 {
  margin-top: 20px;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 900;
  line-height: 0.91;
}
.page-hero > p {
  max-width: 280px;
}

.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  flex-wrap: wrap;
}
.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pills button {
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 50px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  transition: 0.2s;
}
.filter-pills button:hover {
  border-color: var(--lime);
  color: var(--text);
}
.filter-pills button.active {
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  border-color: transparent;
  box-shadow: 0 6px 16px var(--lime-glow);
}
.filter-pills small {
  font: 600 11px Montserrat;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--card);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.search:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

/* ---------- Cards ---------- */
.bird-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 30px;
  padding-bottom: 100px;
}
.bird-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition: 0.3s var(--ease);
}
.bird-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--lime) 40%, var(--border));
}
.card-photo {
  height: 230px;
  position: relative;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.bird-card:hover .card-photo img {
  transform: scale(1.08);
}
.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.card-photo .badge {
  position: absolute;
  z-index: 1;
  top: 13px;
  left: 13px;
}
.favorite {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(15, 20, 14, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: 0.2s;
}
.favorite:hover,
.favorite.liked {
  background: rgba(255, 107, 74, 0.9);
  border-color: transparent;
  color: #fff;
  transform: scale(1.08);
}
.score {
  position: absolute;
  z-index: 1;
  right: 13px;
  bottom: 12px;
  color: #ffffff;
  font: 700 11px Montserrat;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.card-body {
  padding: 16px 18px 18px;
}
.card-body h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}
.card-body p {
  margin: 7px 0 16px;
  font-size: 14px;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font: 600 12px Montserrat;
}
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  font-size: 12px;
  font-weight: 700;
}
.card-foot button {
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition: color 0.2s;
}
.card-foot button:hover {
  color: var(--lime-deep);
}
[data-theme="dark"] .card-foot button:hover {
  color: var(--lime);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}
.empty-state h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ---------- About ---------- */
.about-hero {
  display: block;
  padding-bottom: 100px;
}
.about-hero p {
  max-width: 540px;
  margin: 28px 0;
}
.about-marquee {
  background: linear-gradient(90deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
}
.marquee-inner {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 11px Montserrat;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 120px;
}
.story-image {
  height: 465px;
  overflow: hidden;
  border-radius: 180px 180px 18px 18px;
  transform: rotate(-3deg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.story-image:hover img {
  transform: scale(1.05);
}
.about-story h2 {
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 800;
  line-height: 0.95;
}
.about-story p {
  max-width: 480px;
  margin-top: 22px;
}
.stats {
  display: flex;
  gap: 42px;
  margin-top: 42px;
  flex-wrap: wrap;
}
.stats span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stats b {
  font: 800 24px Montserrat;
}
.stats small {
  font: 600 11px Montserrat;
  color: var(--muted);
  text-transform: uppercase;
}

.values {
  padding: 95px 0;
  background: var(--accent);
}
.value-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.value-cards article {
  min-height: 200px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.value-cards article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.value-cards strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 18px;
}
.value-cards h3 {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 800;
}
.value-cards p {
  font-size: 14px;
  line-height: 1.65;
  margin-top: 10px;
}

/* ---------- Journal ---------- */
.journal-hero {
  align-items: stretch;
}
.journal-hero > div:first-child {
  padding-top: 30px;
}
.journal-hero p {
  max-width: 460px;
  margin-top: 25px;
}
.journal-art {
  position: relative;
  width: 42%;
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(145deg, #5c4a3a, #3a2d26);
  color: #f5efe8;
}
.journal-art div {
  position: absolute;
  width: 410px;
  height: 410px;
  right: -70px;
  top: -35px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  opacity: 0.85;
}
.journal-art > span {
  z-index: 1;
  font-size: 110px;
  transform: rotate(30deg);
}
.journal-art small {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 22px;
  color: #f3f8e9;
  font: 700 10px/1.5 Montserrat;
}
.journal-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  min-height: 360px;
  border-radius: var(--radius);
  background: var(--accent);
  border: 1px solid var(--border);
}
.journal-feature > div {
  min-height: 360px;
}
.journal-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.journal-feature article {
  padding: 48px;
  align-self: center;
}
.journal-feature article > small {
  color: var(--muted);
  font: 600 12px Montserrat;
}
.journal-feature h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 0.96;
}
.journal-feature p {
  font-size: 15px;
}
.journal-feature .primary-cta {
  margin-top: 20px;
}
.article-section {
  padding-top: 100px;
  padding-bottom: 110px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 45px;
}
.article-grid article {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.article-grid article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.article-grid img {
  display: block;
  width: 100%;
  height: 215px;
  object-fit: cover;
}
.article-grid article small {
  display: block;
  margin: 17px 18px 0;
  color: var(--muted);
  font: 600 11px Montserrat;
  text-transform: uppercase;
}
.article-grid h3 {
  min-height: 48px;
  margin: 13px 18px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}
.article-grid button {
  margin: 0 18px 17px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.subscribe {
  padding: 75px 0;
  background: linear-gradient(120deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
}
.subscribe-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.subscribe h2 {
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.95;
}
.subscribe p {
  max-width: 350px;
  color: #eef5ef;
  font-size: 15px;
}
.dark-cta {
  margin-top: 18px;
  background: #15200f;
  color: #f5f5ed;
  box-shadow: none;
}

/* ---------- Modal / Toast ---------- */
.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}
.modal.open {
  display: grid;
  animation: fadeIn 0.25s var(--ease);
}
.modal-box {
  position: relative;
  width: min(740px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.modal-box > img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}
.modal-box > div {
  padding: 42px 36px;
}
.modal-box h2 {
  font-size: 42px;
  margin: 12px 0;
}
.modal-box p {
  font-size: 14px;
  margin: 16px 0 24px;
  white-space: pre-line;
}
.modal-close {
  position: absolute;
  z-index: 1;
  right: 14px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 20, 14, 0.8);
  color: #fff;
  font-size: 20px;
  transition: transform 0.2s;
}
.modal-close:hover {
  transform: scale(1.08);
}
.toast {
  position: fixed;
  z-index: 120;
  right: 20px;
  top: 190px;
  display: none;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.toast.show {
  display: block;
  animation: toastIn 0.3s var(--ease);
}

@media (max-width: 680px) {
  .toast {
    top: 90px;
    right: 14px;
    left: 14px;
  }
}

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

/* ---------- Category ---------- */
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.category-links a {
  padding: 12px 17px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.category-links a:hover,
.category-links a.active {
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  border-color: transparent;
  color: #f5f8f4;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px var(--lime-glow);
}
.category-page .page-hero {
  padding-bottom: 50px;
}
.category-grid {
  padding-top: 30px;
}

/* ---------- Tips ---------- */
.tips-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-top: 90px;
  padding-bottom: 80px;
}
.tips-hero h1 {
  max-width: 800px;
}
.tips-hero p {
  max-width: 560px;
  margin-top: 24px;
}
.tips-hero-mark {
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 120px;
  transform: rotate(12deg);
  box-shadow: 0 24px 60px var(--lime-glow);
}
.tips-hero-mark small {
  position: absolute;
  left: 36px;
  bottom: 38px;
  font: 800 11px/1.45 Montserrat;
  letter-spacing: 0.08em;
  transform: rotate(-12deg);
}
.tips-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
  align-items: end;
  padding-bottom: 45px;
}
.tips-intro .eyebrow {
  grid-column: 1 / -1;
}
.tips-intro h2 {
  margin-top: 18px;
  font-size: clamp(42px, 5.5vw, 70px);
  line-height: 0.94;
  font-weight: 800;
}
.tips-intro > p {
  max-width: 420px;
  margin-bottom: 5px;
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 100px;
}
.tip-card {
  position: relative;
  min-height: 300px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.tip-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.tip-card-accent {
  background: linear-gradient(145deg, var(--lime), var(--lime-deep));
  color: #ffffff;
}
.tip-card-accent h3,
.tip-card-accent p,
.tip-card-accent button,
.tip-card-accent .tip-number {
  color: #ffffff !important;
}
.tip-card-accent .tip-icon {
  background: #0d1a12;
  color: #7dce9a;
}

.tip-number {
  position: absolute;
  top: 25px;
  right: 25px;
  font: 700 12px Montserrat;
  color: var(--muted);
}

.tip-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 22px;
}

.tip-card h3 {
  margin-top: 36px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
}
.tip-card p {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.65;
}
.tip-card button {
  position: absolute;
  bottom: 22px;
  left: 25px;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.seasonal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 100px;
  border-top: 1px solid var(--border);
}
.seasonal h2 {
  margin-top: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 800;
}
.seasonal-copy > p {
  max-width: 500px;
  margin: 24px 0 25px;
}
.season-list {
  border-top: 1px solid var(--border);
}
.season-list > div {
  display: grid;
  grid-template-columns: 38px 1fr 25px;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.season-list b {
  font-size: 12px;
  color: var(--muted);
}
.season-list i {
  font-style: normal;
  color: var(--lime-deep);
  font-weight: 800;
}
[data-theme="dark"] .season-list i {
  color: var(--lime);
}
.tips-warning {
  background: var(--accent);
}
.warning-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 95px;
}
.warning-inner > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #edb45c, #e89a2e);
  color: #15200f;
  font-weight: 900;
  flex-shrink: 0;
}
.warning-inner p {
  margin: 0;
  font-size: 14px;
}
.warning-inner strong {
  color: var(--text);
}

/* Favorites bar */
.fav-bar {
  position: relative;
  width: fit-content;
  max-width: 100%;
  display: none;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0 260px;
  padding: 11px 17px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--lime) 35%, var(--border));
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--lime) 12%, var(--card)),
    var(--card)
  );
  box-shadow: 0 8px 22px color-mix(in srgb, var(--lime) 18%, transparent);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.fav-bar.show {
  display: flex;
  animation: favBarReveal 0.35s var(--ease);
}
.fav-bar b {
  color: var(--lime);
  font-size: 15px;
}
.fav-heart {
  color: var(--coral);
  font-size: 24px;
  line-height: 1;
  text-shadow:
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}
@keyframes favBarReveal {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Sort control */
.sort-select {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}
.sort-select:focus {
  border-color: var(--lime);
}

/* Mobile nav open */
@media (max-width: 680px) {
  .site-header nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px 16px;
    box-shadow: var(--shadow);
  }
  .site-header nav.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .site-header nav.open a::after {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr 0.9fr;
  }
  .hero-copy {
    padding-left: 0;
  }
  .bird-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-story {
    gap: 45px;
  }
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .tips-hero-mark {
    width: 220px;
    height: 220px;
    font-size: 95px;
  }
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .seasonal {
    gap: 40px;
  }
}
@media (max-width: 680px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }
  .topline-divider {
    display: none;
  }
  .site-header {
    height: auto;
    min-height: 72px;
    padding: 10px 0;
    gap: 8px;
  }
  .site-header nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .menu-button {
    display: grid;
    place-items: center;
  }
  .brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: visible;
    max-width: none;
  }
  .brand > span {
    min-width: 0;
  }
  .brand strong {
    font-size: 36px !important;
    letter-spacing: -0.03em;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
  .brand small {
    font-size: 7px !important;
    letter-spacing: 0.06em;
    margin-top: 3px;
    white-space: nowrap;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .icon-button {
    width: 36px;
    height: 36px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 48px;
    padding-bottom: 380px;
  }
  .hero-copy h1 {
    font-size: 56px;
  }
  .hero-visual {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    min-height: 320px;
  }
  .hero-card {
    width: 210px;
  }
  .hero-photo {
    height: 270px;
  }
  .hero-ring {
    width: 340px;
    height: 340px;
  }
  .note-top {
    top: 24px;
    right: 4%;
  }
  .note-bottom {
    left: 4%;
    bottom: 20px;
  }
  .intro,
  .page-hero,
  .journal-hero {
    display: block;
    padding-top: 70px;
    padding-bottom: 48px;
  }
  .intro > p {
    margin-top: 18px;
    text-align: left;
  }
  .quick-grid {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
  }
  .feature-card h3 {
    margin-top: 48px;
  }
  .catalog-controls {
    display: block;
  }
  .search {
    width: 100%;
    margin-top: 14px;
  }
  .bird-grid {
    grid-template-columns: 1fr;
  }
  .about-hero h1,
  .journal-hero h1,
  .page-hero h1 {
    font-size: 52px;
  }
  .about-story {
    grid-template-columns: 1fr;
    gap: 50px;
    padding-top: 70px;
    padding-bottom: 80px;
  }
  .story-image {
    height: 340px;
    width: 88%;
    margin: auto;
  }
  .value-cards {
    grid-template-columns: 1fr 1fr;
  }
  .journal-art {
    width: 100%;
    min-height: 240px;
    margin-top: 30px;
  }
  .journal-feature {
    grid-template-columns: 1fr;
  }
  .journal-feature > div {
    min-height: 250px;
  }
  .journal-feature article {
    padding: 32px 24px;
  }
  .article-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }
  .subscribe-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 18px;
  }
  .footer-links {
    gap: 10px 14px;
    justify-content: center;
    justify-self: center;
  }
  .footer-links a {
    font-size: 13px;
  }
  .footer-contacts {
    align-items: center;
    text-align: center;
    justify-self: center;
  }
  .modal-box {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow: auto;
  }
  .modal-box > img {
    height: 220px;
    min-height: 220px;
  }
  .modal-box > div {
    padding: 28px 22px;
  }
  .tips-hero {
    display: block;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .tips-hero-mark {
    width: 180px;
    height: 180px;
    margin: 40px auto 0;
    font-size: 80px;
  }
  .tips-intro {
    display: block;
    padding-bottom: 30px;
  }
  .tips-intro > p {
    margin-top: 20px;
  }
  .tips-grid {
    grid-template-columns: 1fr;
    padding-bottom: 70px;
  }
  .seasonal {
    display: block;
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .season-list {
    margin-top: 40px;
  }
  .category-links a {
    font-size: 13px;
    padding: 10px 13px;
  }
}

[data-theme="dark"] .brand strong {
  color: #ffffff;
}
[data-theme="dark"] .brand small {
  color: #c4b8ac;
}

/* mobile brand final */
@media (max-width: 680px) {
  .brand-logo {
    width: 52px !important;
    height: 52px !important;
    flex-shrink: 0;
  }
  .brand {
    gap: 10px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
  }
  .brand > span {
    gap: 6px !important;
  }
  .brand strong {
    font-size: 36px !important;
    letter-spacing: -0.035em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    color: #111111;
  }
  .brand small {
    font-size: 9px !important;
    letter-spacing: 0.16em !important;
    margin: 0 !important;
    color: #9a9f96 !important;
    white-space: nowrap !important;
  }
  .site-header {
    height: auto !important;
    min-height: 68px !important;
    padding: 12px 0 !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .header-actions {
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  .icon-button,
  .menu-button {
    width: 36px !important;
    height: 36px !important;
  }
  [data-theme="dark"] .brand strong {
    color: #ffffff !important;
  }
  [data-theme="dark"] .brand small {
    color: #c4b8ac !important;
  }
}

/* ---------- Auth ---------- */
.auth-section {
  padding: 60px 0 100px;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: min(480px, 100%);
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.auth-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1;
}
.auth-lead {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
}
.auth-errors {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 107, 74, 0.12);
  border: 1px solid rgba(255, 107, 74, 0.35);
}
.auth-errors p {
  margin: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #ff8a70;
}
.auth-form {
  display: grid;
  gap: 14px;
}
.auth-form label {
  display: grid;
  gap: 6px;
}
.auth-form label span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
}
.auth-form .primary-cta {
  margin-top: 8px;
  width: 100%;
  border: 0;
  cursor: pointer;
}
.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: 14px;
}
.auth-switch a {
  color: var(--lime);
  font-weight: 800;
  text-decoration: none;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.header-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.header-link:hover {
  color: var(--lime);
}
.user-chip {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.header-cta-ghost {
  background: #ffd1a3;
  color: #000000;
  border: 1px solid #ffb875;
  box-shadow: 0 8px 18px rgba(180, 95, 25, 0.2);
  text-decoration: none;
}
.header-cta-ghost:hover {
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  border-color: var(--lime);
  color: #f5f8f4;
  box-shadow: 0 12px 24px var(--lime-glow);
}
@media (max-width: 680px) {
  .user-chip,
  .header-link {
    display: none;
  }
  .auth-card {
    padding: 28px 20px;
  }
}

.page-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  max-width: 360px;
}
.page-hero-actions p {
  margin: 0;
  text-align: right;
}
.page-hero-actions .primary-cta {
  text-decoration: none;
}
@media (max-width: 680px) {
  .page-hero-actions {
    align-items: flex-start;
    max-width: none;
    margin-top: 18px;
  }
  .page-hero-actions p {
    text-align: left;
  }
}

.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
}
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
}
.auth-success {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(31, 107, 58, 0.15);
  border: 1px solid rgba(31, 107, 58, 0.35);
  font-weight: 600;
}
.auth-success a {
  color: var(--lime);
  font-weight: 800;
}

.photo-upload input[type="file"] {
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.photo-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.gallery-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover {
  transform: scale(1.05);
}
.gallery-thumb.active {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px var(--lime-glow);
}
.modal-box > img {
  object-fit: cover;
  background: var(--bg-soft);
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-contacts {
  margin: 16px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.modal-contacts h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.modal-contacts p {
  margin: 6px 0;
  font-size: 14px;
  line-height: 1.4;
}
.modal-contacts a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
}
.modal-contacts a:hover {
  text-decoration: underline;
}
.modal-contacts:not([hidden]) {
  animation: contactsReveal 0.3s ease;
}
@keyframes contactsReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.header-user-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  align-self: center;
  margin-top: -18px;
}
.header-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--lime) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--lime) 40%, var(--border));
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.header-admin-link:hover {
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  border-color: var(--lime);
}
.header-user-stack .header-cta-ghost {
  width: 100%;
  justify-content: center;
  padding: 8px 14px;
  font-size: 12px;
}
@media (max-width: 680px) {
  .header-user-stack {
    display: none;
  }
}


/* ---------- Topline auth bar ---------- */
.topline {
  min-height: 42px;
  padding: 0;
  display: block;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--lime) 18%, var(--accent)),
    var(--accent)
  );
  color: var(--muted);
  font: 600 11px Montserrat;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}
.topline-inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 6px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.topline-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.topline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topline-theme {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--lime-glow);
  display: grid;
  place-items: center;
  text-transform: none;
  letter-spacing: 0;
}
.topline-theme:hover {
  transform: scale(1.06);
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  box-shadow: 0 6px 16px rgba(232, 106, 18, 0.4);
}
.topline-user {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}
.topline-link {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.topline-link:hover {
  color: #e86a12;
}
.topline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--lime-glow);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.topline-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  box-shadow: 0 6px 16px rgba(232, 106, 18, 0.4);
  color: #fff;
}
.topline-btn-ghost {
  background: #ffd1a3;
  color: #000;
  border: 1px solid #ffb875;
  box-shadow: 0 4px 12px rgba(180, 95, 25, 0.18);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.topline-btn-ghost:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  color: #fff;
  border-color: #e86a12;
  box-shadow: 0 6px 16px rgba(232, 106, 18, 0.4);
}
@media (max-width: 900px) {
  .topline-inner {
    padding: 6px 24px;
  }
  .topline-updated {
    display: none;
  }
}
@media (max-width: 680px) {
  .topline-inner {
    padding: 8px 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .topline-left {
    justify-content: center;
    font-size: 10px;
  }
  .topline-divider {
    display: none;
  }
  .topline-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 200px;
  max-width: 240px;
  height: 40px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.header-search-icon {
  color: var(--muted);
  font-size: 16px;
  opacity: 0.7;
  flex-shrink: 0;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  padding: 0 8px;
  text-transform: none;
  letter-spacing: 0;
}
.header-search input::placeholder {
  color: var(--muted);
  opacity: 0.7;
  font-weight: 500;
}
.header-search-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.header-search-btn:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  box-shadow: 0 6px 14px rgba(232, 106, 18, 0.4);
  color: #fff;
}
.search-page-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 420px;
}
.search-page-form input {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.search-page-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
}
.search-hint,
.search-meta {
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
}
.search-block-title {
  margin: 36px 0 18px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.search-pages {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.search-page-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.search-page-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}
.search-page-card strong {
  font-size: 15px;
}
.search-page-card span {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
}
.card-foot a {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.card-foot a:hover {
  color: var(--lime);
}
@media (max-width: 900px) {
  .header-search {
    min-width: 160px;
    max-width: 200px;
  }
  .header-search-btn {
    display: none;
  }
}
@media (max-width: 680px) {
  .header-search {
    display: none;
  }
  .search-page-form {
    max-width: none;
  }
}


/* header layout fix */
.site-header.container {
  gap: 18px;
}
.site-header nav a {
  white-space: nowrap;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .site-header nav {
    gap: 10px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .brand strong {
    font-size: 34px !important;
  }
  .brand-logo {
    width: 80px !important;
    height: 80px !important;
  }
  .header-search {
    min-width: 160px;
    max-width: 190px;
  }
}


/* global orange hover buttons */
.header-cta,
.primary-cta,
.dark-cta,
.header-search-btn,
.scroll-top,
.icon-button,
.menu-button,
.filter-pills button,
.category-links a,
.round-arrow,
.card-foot button,
.bird-card .favorite,
.modal-close,
.admin-btn,
.auth-form .primary-cta {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.scroll-top:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  color: #fff !important;
  border-color: #e86a12 !important;
  box-shadow: 0 10px 24px rgba(232, 106, 18, 0.35) !important;
}

.icon-button:hover,
.menu-button:hover {
  border-color: #e86a12 !important;
  color: #e86a12 !important;
  box-shadow: 0 8px 18px rgba(232, 106, 18, 0.25) !important;
}

[data-theme-toggle]:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(232, 106, 18, 0.4) !important;
}

.filter-pills button:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  color: #fff !important;
  border-color: #e86a12 !important;
}

.category-links a:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  color: #fff !important;
  border-color: #e86a12 !important;
}

.card-foot button:hover,
.bird-card .favorite:hover {
  color: #e86a12 !important;
}

.bird-card .favorite.liked,
.bird-card .favorite.liked:hover {
  color: #ff6b4a !important;
}

.modal-close:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  color: #fff !important;
  border-color: #e86a12 !important;
}

.admin-btn:hover {
  border-color: #e86a12 !important;
  color: #e86a12 !important;
}

.admin-btn-danger:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  border-color: #e86a12 !important;
  color: #fff !important;
}

.header-cta-ghost:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  border-color: #e86a12 !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(232, 106, 18, 0.35) !important;
}

.text-cta:hover {
  color: #e86a12;
}
.text-cta:hover::after {
  background: #e86a12;
}

.feature-card:hover b,
.feature-card:hover h3 em {
  color: #e86a12;
}

.round-arrow:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
}

.gallery-thumb:hover {
  border-color: #e86a12 !important;
  box-shadow: 0 0 0 2px rgba(232, 106, 18, 0.25) !important;
}

.header-admin-link:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12) !important;
  color: #fff !important;
  border-color: #e86a12 !important;
}

.badge:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--border);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.lang-flag {
  font-size: 14px;
  line-height: 1;
}
.lang-btn:hover {
  background: rgba(232, 106, 18, 0.15);
  color: #e86a12;
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  box-shadow: 0 3px 10px var(--lime-glow);
}
.lang-btn.active:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  color: #fff;
}
@media (max-width: 680px) {
  .lang-code {
    display: none;
  }
  .lang-btn {
    padding: 5px 7px;
  }
}


img.lang-flag {
  width: 22px;
  height: 15px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: block;
  flex-shrink: 0;
}
.lang-btn {
  min-height: 28px;
}


/* search form reliability */
.header-search {
  position: relative;
  z-index: 5;
}
.header-search input,
.header-search-btn {
  pointer-events: auto;
}
@media (max-width: 900px) {
  .header-search-btn {
    display: inline-flex !important;
    padding: 8px 10px;
    font-size: 10px;
  }
}
@media (max-width: 680px) {
  .header-search {
    display: flex !important;
    min-width: 0;
    max-width: 140px;
    height: 36px;
  }
  .header-search-btn {
    display: none !important;
  }
}

.btn-delete {
  border: 1px solid rgba(255, 107, 74, 0.45);
  background: rgba(255, 107, 74, 0.12);
  color: #ff8a70;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.btn-delete:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  border-color: #e86a12;
  color: #fff;
}
.card-foot form {
  margin: 0;
}

.cabinet-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding-bottom: 100px;
  align-items: start;
}
.cabinet-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.cabinet-card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 800;
}
.cabinet-card h3 {
  margin: 12px 0 6px;
  font-size: 20px;
}
.cabinet-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--lime-deep));
  color: #f5f8f4;
  font-size: 28px;
  font-weight: 900;
}
.cabinet-muted {
  opacity: 0.65;
  font-size: 13px;
}
.cabinet-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.cabinet-stats > div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}
.cabinet-stats b {
  display: block;
  font-size: 24px;
  font-weight: 900;
}
.cabinet-stats span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.cabinet-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cabinet-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--border);
  background: var(--card);
}
.cabinet-nav a:hover {
  border-color: #e86a12;
  color: #e86a12;
}
.cabinet-main .auth-form {
  max-width: 420px;
}
.auth-form input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
@media (max-width: 800px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
  }
}

.btn-edit {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--lime) 40%, var(--border));
  background: color-mix(in srgb, var(--lime) 12%, var(--card));
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.btn-edit:hover {
  background: linear-gradient(135deg, #ff8a3d, #e86a12);
  border-color: #e86a12;
  color: #fff;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.card-foot-actions {
  align-items: center;
}


/* search always visible */
.header-search {
  display: flex !important;
  position: relative;
  z-index: 60;
  pointer-events: auto !important;
  min-width: 180px !important;
  max-width: 260px !important;
}
.header-search input,
.header-search-btn,
.header-search-icon {
  pointer-events: auto !important;
}
.header-search-btn {
  display: inline-flex !important;
}
@media (max-width: 680px) {
  .header-search {
    min-width: 120px !important;
    max-width: 150px !important;
    height: 36px !important;
  }
  .header-search-btn {
    display: none !important;
  }
}

.coop-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding-bottom: 100px;
  align-items: start;
}
.coop-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}
.visit-counter {
  margin: 8px 0;
  font-size: 18px;
}
.visit-counter b {
  font-size: 36px;
  font-weight: 900;
  color: var(--lime);
  display: block;
}
.footer-visits {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.8;
}
@media (max-width: 800px) {
  .coop-grid {
    grid-template-columns: 1fr;
  }
}


/* Footer visit counter tile */
.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.footer-brand-block .brand {
  flex: 0 0 auto;
  max-width: none;
}
.footer-brand-block .brand-logo {
  width: 64px !important;
  height: 64px !important;
}
.footer-brand-block .brand strong {
  font-size: 28px !important;
}
.footer-brand-block .brand small {
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
}
.visit-tile {
  position: relative;
  width: auto;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  animation: none;
}
.visit-tile-glow {
  display: none;
}
.visit-tile-inner {
  position: relative;
  z-index: 1;
  width: auto;
  height: 100%;
  border-radius: 10px;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  padding: 0 12px;
  backdrop-filter: none;
}
.visit-tile-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 22%, transparent);
  font-size: 0;
  color: transparent;
  animation: none;
  flex-shrink: 0;
}
.visit-tile-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  text-shadow: none;
  white-space: nowrap;
}
.visit-tile-inner small {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0.85;
}
.visit-tile:hover {
  transform: none;
  border-color: var(--lime);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--lime) 18%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.visit-tile:hover .visit-tile-glow {
  display: none;
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-brand-block {
    align-items: center;
  }
  .footer-links {
    justify-content: center;
    justify-self: center;
  }
  .footer-contacts {
    align-items: center;
    text-align: center;
    justify-self: center;
  }
}
@media (max-width: 680px) {
  .footer-brand-block {
    align-items: center;
    width: 100%;
  }
}


.footer-copy {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copy span {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.dynamic-blocks {
  display: grid;
  gap: 28px;
  padding: 40px 0 80px;
}
.dyn-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.dyn-block.dyn-photo,
.dyn-block.dyn-gallery,
.dyn-block.dyn-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
.dyn-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
}
.dyn-body h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
}
.dyn-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}
.dyn-text {
  line-height: 1.65;
  color: var(--text);
}
.dyn-block.dyn-feature {
  text-align: left;
}
@media (max-width: 800px) {
  .dyn-block.dyn-photo,
  .dyn-block.dyn-gallery,
  .dyn-block.dyn-hero {
    grid-template-columns: 1fr;
  }
  .dyn-photo img { height: 180px; }
}


#heroSlideImg {
  transition: opacity 0.35s ease;
}
.hero-caption .round-arrow {
  text-decoration: none;
}


/* public mobile polish */
@media (max-width: 900px) {
  .site-header {
    height: auto !important;
    min-height: 72px;
    padding: 10px 0;
    flex-wrap: wrap;
  }
  .site-header .brand {
    max-width: none;
  }
  .site-header nav:not(.open) {
    display: none;
  }
  .menu-button {
    display: grid !important;
  }
  .header-search {
    order: 3;
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
    margin-top: 8px;
  }
  .page-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .page-hero h1 {
    font-size: clamp(32px, 10vw, 48px);
  }
  .coop-grid,
  .cabinet-grid,
  .about-grid {
    grid-template-columns: 1fr !important;
  }
  .bird-grid {
    grid-template-columns: 1fr !important;
  }
  .tips-grid {
    grid-template-columns: 1fr !important;
  }
  .auth-section {
    padding: 24px 0 60px;
  }
  .auth-card {
    width: 100% !important;
  }
  .topline-inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .topline-left {
    font-size: 11px;
  }
  .lang-switch {
    order: -1;
  }
}
@media (max-width: 680px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
  }
  .floating-note {
    display: none;
  }
  .footer-inner {
    grid-template-columns: 1fr !important;
  }
}
