:root {
  --bg: #edf5ee;
  --panel: #fdfefc;
  --panel-soft: #edf3ec;
  --line: rgba(91, 126, 102, 0.14);
  --text: #2d3b31;
  --muted: #5f6f63;
  --accent: #a8c7a3;
  --gold: #b7c9a9;
  --button: #7fa27d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Kaku Gothic Pro", "Yu Gothic", sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

.horse-page {
  min-height: 100vh;
  padding-bottom: 40px;
}

.container {
  max-width: 1200px;
}

.brand-row {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-block {
  background: linear-gradient(180deg, #fdfefc 0%, #edf5ee 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.2rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-block h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.meta-row span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.05rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--muted);
}

.featured-note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
}

.featured-note small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-note strong {
  display: block;
  margin-top: 0.45rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.05em;
}

.gallery-section {
  margin-bottom: 1.5rem;
}

.gallery-shell {
  display: grid;
  gap: 1rem;
}

.main-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.main-image-wrap img,
.main-image-wrap video {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
  background: #f6f6f4;
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.thumb-item {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: rgba(17, 17, 17, 0.35);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.thumb-item img,
.thumb-item video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #f6f6f4;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
}

.main-column,
.side-column {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.2rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.02);
  height: 100%;
}

.panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  letter-spacing: -0.05em;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 170px;
  color: var(--muted);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.01);
}

.highlight-panel {
  background: linear-gradient(180deg, #fdfefc 0%, #eef6f0 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.highlight-panel p,
.highlight-panel li,
.contact-panel p,
.notes-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.highlight-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.9;
  color: var(--muted);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #a9c9a7 0%, #8eb28d 100%);
  color: #f8fbf8;
}

.btn-secondary {
  background: transparent;
  color: var(--button);
  border: 1px solid var(--line);
}

.notes-panel {
  margin-top: 1.6rem;
}

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

@media (max-width: 767.98px) {
  .hero-block,
  .panel {
    border-radius: 14px;
  }

  .main-image-wrap img {
    height: 360px;
  }

  .thumb-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thumb-item img {
    height: 110px;
  }

  .info-table th {
    width: 120px;
  }
}
