* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2933;
  background: #f3f5f7;
  line-height: 1.35;
  font-size: 14px;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1400px, calc(100% - 24px));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #d9dee5;
}

.site-header-inner {
  padding: 10px 0;
}

.site-title {
  font-size: 22px;
  font-weight: 700;
}

.site-subtitle {
  margin-top: 2px;
  font-size: 13px;
  color: #667085;
}

.section {
  padding: 18px 0 26px;
}

.section-head {
  margin-bottom: 14px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 24px;
}

.section-head p {
  margin: 4px 0 0;
  color: #667085;
}

.home-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.home-count {
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}

.home-tools {
  margin-bottom: 14px;
}

.search-input {
  width: 100%;
  max-width: 420px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #cfd6de;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: #667085;
}

.obhlidky-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: stretch;
}

.obhlidka-row {
  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #ffffff;
  border: 1px solid #d9dee5;
  border-radius: 10px;

  text-decoration: none;
}

.obhlidka-row:hover {
  background: #f8fafc;
}

.obhlidka-thumb {
  width: 100%;
  height: 245px;

  overflow: hidden;

  background: #d9dee5;
}

.obhlidka-thumb img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center top;

  display: block;
}

.obhlidka-main {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 10px;
}

.obhlidka-top {
  display: block;
}

.obhlidka-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.obhlidka-date {
  margin-top: 4px;
  font-size: 13px;
  color: #667085;
}

.obhlidka-meta {
  margin-top: 6px;
  color: #475467;
  font-size: 13px;
}

.obhlidka-address {
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
}

.obhlidka-description {
  margin-top: 8px;
  color: #374151;
  font-size: 14px;
}

.empty-state {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d9dee5;
  border-radius: 10px;
}

.detail-header {
  padding: 14px 0 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #475467;
  text-decoration: none;
  font-size: 13px;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-title {
  margin: 0;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.05;
}

.detail-meta {
  margin-top: 6px;
  color: #667085;
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 12px;
  padding: 12px 0 34px;
  align-items: start;
}

.content-main,
.content-side {
  display: grid;
  gap: 12px;
}

.content-card {
  background: #ffffff;
  border: 1px solid #d9dee5;
  border-radius: 10px;
  padding: 12px;
}

.content-card h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.15;
}

.content-card p {
  margin: 0 0 7px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  margin: 0;
  padding-left: 18px;
}

.content-card li {
  margin: 3px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #d9dee5;
}

.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
  margin-bottom: 8px;
}

.video-wrap iframe,
.video-wrap video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.site-footer {
  padding: 12px 0;
  color: #667085;
  background: #ffffff;
  border-top: 1px solid #d9dee5;
  font-size: 13px;
}

@media (max-width: 1200px) {
  .obhlidky-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .obhlidky-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100%, calc(100% - 14px));
  }

  .home-head {
    flex-direction: column;
    align-items: start;
  }

  .obhlidky-list {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}