body {
  font-family: 'Inter', Arial, sans-serif;
  background: #fafaf7;
  color: #222;
  margin: 0;
  padding: 0;
}

header {
  text-align: center;
  margin-top: 40px;
}

h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.filters button {
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border 0.2s;
}
.filters button.active,
.filters button:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

main {
  display: flex;
  justify-content: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 31px;
  width: 80vw;
  max-width: 100%;
  margin-bottom: 60px;
  margin-top: 30px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; max-width: 98vw; }
}

.card {
  border: solid 1px;
  border-radius: 11px;
  box-shadow: inset 4px 3px 20px 2px #0000004f;
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.22s, transform 0.18s;
  cursor: pointer;
  min-width: 0;
  display: flex;
  flex-direction: column;
  aspect-ratio: 16 / 13;
  margin: 0;
  max-height: 422px;
  width: 100%;
}
.card:hover {
  box-shadow: 0 12px 36px #0003, 0 2px 12px #0002;
  transform: translateY(-3px) scale(1.018);
}
.card .category {
  font-size: 0.95rem;
  color: #666;
  margin: 16px 0 0 16px;
  font-weight: 500;
}
.card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}
.card iframe {
  width: 100%;
  height: 343px;
  border: none;
  border-radius: 12px 12px 0 0;
  background: #f5f5f5;
  display: block;
  margin-bottom: 0;
  flex-shrink: 0;
}
.iframe-separator {
  width: 100%;
  height: 0;
  border-top: 1.5px solid #ececec;
  margin: 0;
  box-sizing: border-box;
}
.card .content {
  background: #e4e4e4;
  padding: 18px 20px 16px 20px;
  border-top: solid 1px;
  border-radius: 0 0 18px 18px;
  box-sizing: border-box;
  min-height: 60px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  box-shadow: 0 1px 0 #eaeaea inset;
}
.card .cta-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  margin-top: 6px;
  gap: 18px;
}
.card .title {
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: #1b1e28;
  letter-spacing: 0.01em;
  word-break: break-all;
  text-shadow: 0 1px 0 #fff8;
}
.card .desc {
  font-size: 0.97rem;
  color: #6b7280;
  margin-bottom: 7px;
  font-style: italic;
  line-height: 1.3;
  max-width: 95%;
  white-space: pre-line;
}
.card .visit-btn {
  display: inline-block;
  margin-top: 0;
  background: linear-gradient(90deg,#222 80%,#2b3442 100%);
  color: #fff;
  border-radius: 7px;
  padding: 7px 22px;
  text-decoration: none;
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 1.5px 6px #0001;
  transition: background 0.18s, box-shadow 0.18s;
}
.card .visit-btn:hover {
  background: linear-gradient(90deg,#444 80%,#222 100%);
  box-shadow: 0 3px 12px #0002;
}
.card .hover-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(245,245,245,0.88);
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  color: #222;
  pointer-events: none;
}
.card:hover .hover-overlay {
  display: flex;
}
.card .hover-overlay .icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.card .preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  font-size: 1.5rem;
  border: none;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  text-decoration: none;
}
.card .preview-btn:hover {
  background: #FFA500;
  color: #222;
  box-shadow: 0 4px 14px #FFA50044;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}
.logo img {
  height: 48px;
}

.contact-form {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #fff;
  border: 1.5px solid #eaeaea;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0002;
  padding: 24px 20px 16px 20px;
  z-index: 100;
  width: 320px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #222;
  font-weight: 600;
}
.contact-form label {
  font-size: 1rem;
  color: #222;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 1rem;
  resize: none;
}
.contact-form button {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 0;
  font-size: 1rem;
  margin-top: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: #444;
}

.preview-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10010;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30,30,30,0.62);
  z-index: 1;
}
.preview-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px #0005;
  width: 98vw;
  max-width: 1600px;
  height: 92vh;
  max-height: 950px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.preview-modal-close {
  position: fixed;
  top: 32px;
  right: 40px;
  width: 50px;
  height: 50px;
  font-size: 2.7rem;
  background: #fff;
  border: 2px solid #ff2222;
  color: #ff2222;
  cursor: pointer;
  z-index: 10020;
  transition: color 0.16s, background 0.16s, border 0.16s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 18px #0003;
}
.preview-modal-close:hover {
  color: #fff;
  border: 2px solid #ff2222;
  background: #ff2222;
}
@media (max-width: 700px) {
  .preview-modal-close {
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    font-size: 2rem;
  }
}
#preview-iframe {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .card, .card .content { height: 270px; max-height: 270px; }
  .card iframe { height: 180px; }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card iframe {
    height: 463px;
  }
  .card, .card .content {
    height: 550px;
    max-height: 550px;
  }
  h1 { font-size: 2rem; }
  .contact-form {
    right: 8px;
    bottom: 8px;
    padding: 14px 8px 8px 8px;
    width: 96vw;
    max-width: 96vw;
  }
  .preview-modal-content {
    width: 91vw;
    max-width: 91vw;
    height: 78vh;
    max-height: 78vh;
    border-radius: 10px;
    padding: 0;
  }
}

.main-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 18px 0 24px 0;
  line-height: 1.25;
  color: #181818;
}
.main-title-highlight {
  color: #FFA500;
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: inline-block;
  margin-bottom: 2px;
}
.main-title-price {
  color: #1b7b3a;
  font-size: 1.45em;
  font-weight: 700;
  display: inline-block;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .main-title {
    font-size: 1.25rem;
  }
  .main-title-highlight {
    font-size: 1.5rem;
  }
  .main-title-price {
    font-size: 1.1em;
  }
}

html {
  scroll-behavior: smooth;
}
