/* Матовіша й компактніша версія оформлення. */
:root {
  --bg: #151617;
  --panel: #1b1c1e;
  --line: rgba(255, 255, 255, .09);
  --stream-card-width: clamp(280px, 24vw, 380px);
  --stream-card-ratio: 4 / 7;
}

body {
  background: #151617;
}

.topbar {
  background: rgba(177, 18, 28, .96);
  backdrop-filter: blur(18px) saturate(.8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.intro {
  min-height: 38vh;
  display: flex;
  align-items: center;
  padding-top: clamp(66px, 7vw, 92px);
  padding-bottom: 34px;
}

.intro::after {
  opacity: .45;
}

.intro h1 {
  max-width: 900px;
  font-size: clamp(46px, 7vw, 96px);
}

.intro-copy {
  margin: 26px 0;
}

.photo-section,
.texts {
  padding: 56px 0;
}

.section-heading {
  margin-bottom: 24px;
}

.photo-track {
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 26px;
}

.photo-card {
  flex: 0 0 var(--stream-card-width);
  width: var(--stream-card-width);
  height: auto;
  aspect-ratio: var(--stream-card-ratio);
  border-radius: 18px;
  background: #101112;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255, 255, 255, .09);
  transform: none;
}

.photo-card img {
  object-fit: contain;
  object-position: center;
  background: #101112;
  filter: saturate(.82) contrast(1.02);
}

.photo-card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 25%, transparent 62%, rgba(7, 7, 8, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.glass-glow {
  opacity: .48;
}

.photo-caption {
  left: 22px;
  bottom: 22px;
}

.photo-caption h3 {
  font-size: clamp(22px, 2.5vw, 31px);
}

.comment-chip {
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  font-size: 11px;
  background: rgba(18, 18, 19, .58);
}

.post-card {
  padding: 36px 0;
}

.post-card h3 {
  margin: 14px 0;
}

.post-card footer {
  margin-top: 22px;
}

.blog-track {
  display: flex;
  gap: 16px;
  max-width: none;
  overflow-x: auto;
  padding: 8px max(24px, 8vw) 26px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.texts {
  width: 100%;
  max-width: none;
}

.blog-track::-webkit-scrollbar {
  display: none;
}

.blog-card {
  flex: 0 0 var(--stream-card-width);
  width: var(--stream-card-width);
  min-width: 0;
  height: auto;
  aspect-ratio: var(--stream-card-ratio);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 18px;
  background: #1a1b1d;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .3);
  scroll-snap-align: center;
}

.blog-card[hidden] {
  display: none;
}

.blog-card-category {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(213, 44, 52, .38);
  border-radius: 999px;
  color: #ef7b80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.blog-card .post-meta {
  flex-wrap: wrap;
  gap: 7px 16px;
}

.blog-card h3 {
  margin: 20px 0 15px;
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.08;
}

.blog-card > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
}

.blog-card footer {
  display: grid;
  gap: 17px;
  align-items: start;
  margin-top: auto;
}

.blog-card .post-actions {
  justify-content: flex-start;
}

.blog-category-menu {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px max(24px, 8vw) 12px;
  scrollbar-width: none;
}

.blog-category-menu::-webkit-scrollbar {
  display: none;
}

.blog-category-menu button {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: #1a1b1d;
  color: #8f9297;
  font: 600 12px Manrope, sans-serif;
  cursor: pointer;
}

.blog-category-menu button:hover,
.blog-category-menu button.active {
  border-color: rgba(213, 44, 52, .72);
  background: rgba(167, 25, 32, .2);
  color: #fff;
}

.about {
  margin-top: 52px;
  margin-bottom: 52px;
  padding: clamp(38px, 5vw, 58px);
  border: 1px solid rgba(213, 44, 52, .32);
  background: #1a1b1d;
  box-shadow: none;
}

.about > p:last-child {
  max-width: none;
  font-size: clamp(30px, 4.2vw, 82px);
}

.about .eyebrow {
  color: #e56d73;
}

.phrase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.phrase-heading .eyebrow {
  max-width: 650px;
  margin: 0;
  line-height: 1.7;
}

.phrase-heading .admin-add-button {
  flex: 0 0 auto;
}

.add-phrase-modal textarea {
  min-height: 140px;
  line-height: 1.7;
}

.photo-modal > img {
  object-fit: contain;
  background: #101112;
}

@media (max-width: 700px) {
  .intro {
    min-height: 38svh;
    padding-top: 72px;
    padding-bottom: 26px;
  }

  .intro h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .photo-section,
  .texts {
    padding: 44px 0;
  }

  .photo-card {
    flex-basis: min(78vw, 360px);
    width: min(78vw, 360px);
    height: auto;
    max-height: none;
    aspect-ratio: var(--stream-card-ratio);
    border-radius: 17px;
  }

  .blog-card {
    flex-basis: min(78vw, 360px);
    width: min(78vw, 360px);
    height: auto;
    aspect-ratio: var(--stream-card-ratio);
    padding: 24px;
    border-radius: 17px;
  }

  .blog-card h3 {
    font-size: clamp(27px, 8.5vw, 36px);
  }

  .blog-card > p {
    -webkit-line-clamp: 6;
  }

  .photo-caption {
    left: 18px;
    bottom: 18px;
  }

  .comment-chip {
    right: 12px;
    bottom: 12px;
  }

  .about {
    margin-top: 30px;
    margin-bottom: 40px;
    padding: 34px 24px;
  }

  .phrase-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }
}
