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

body, html {
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
}

/* =====================
   NAVBAR  — Wix-style button bar
   ===================== */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  height: 70px;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.navbar::-webkit-scrollbar {
  display: none;
}

.navbar a {
  color: #222;
  text-decoration: none;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 4px;
  scroll-snap-align: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.navbar a:hover {
  background-color: #f0f0f0;
  color: #111;
}

.navbar a.active {
  background-color: #222;
  color: #fff;
}

@media (max-width: 600px) {
  .navbar {
    justify-content: flex-start;
    padding-left: 12px;
    gap: 4px;
  }

  .navbar a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* =====================
   HERO  (index.html)
   ===================== */
.hero {
  height: calc(100vh - 70px);
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* =====================
   ABOUT / MOBOLENSKY  (two-column layout)
   ===================== */
.about-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 40px;
}

.about-photo {
  flex: 1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.about-text h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

@media (max-width: 900px) {
  .about-container {
    flex-direction: column;
  }

  .about-photo img {
    height: 300px;
    object-fit: cover;
  }
}

/* =====================
   AT STUD  (photo grid)
   ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: block;
}

/* =====================
   MOBOLENSKY OFFSPRING  (4-column card grid)
   ===================== */
.offspring-page {
  max-width: 1280px;
  margin: 40px auto;
  padding: 0 20px;
}

.offspring-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.horse-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.horse-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.horse-info {
  padding: 14px 16px;
}

.horse-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111;
}

.horse-info p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .offspring-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .offspring-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-container {
  display: flex;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  gap: 40px;
}

.contact-photo {
  flex: 1;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.contact-form .intro {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.55;
  color: #444;
}

.contact-form .contact-info {
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.02em;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.contact-form button {
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form button:hover {
  background: #444;
}

@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-photo img {
    height: 300px;
    object-fit: cover;
  }
}
