/* Home-only styles. Everything is scoped under body.home so other pages won't be affected. */

body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.home #site-main {
  margin-top: 4.5em; /* pull content up a bit */
  flex: 1;
}

body.home .home-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 18px 70px;
}

body.home .home-hero {
  padding: 18px 16px 10px;
}

body.home .home-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

body.home .home-subtitle {
  margin: 0 0 14px;
  color: #6c6c6c;
  line-height: 1.5;
}

body.home .home-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  padding: 2px 6px;
  border-radius: 8px;
}

body.home .home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

body.home .home-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #111;
  border-radius: 999px;
  text-decoration: none;
  color: #111;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.home .home-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

body.home .home-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 980px) {
  body.home .home-grid {
    grid-template-columns: 1fr;
  }
}

body.home .home-card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

body.home .home-card__head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

body.home .home-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

body.home .home-card__meta {
  margin: 6px 0 0;
  color: #7a7a7a;
  font-size: 0.95rem;
}

body.home .home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 2px solid #111;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

body.home .home-card__body {
  padding: 14px 16px 16px;
}

body.home .home-list {
  display: grid;
  gap: 12px;
}

body.home .home-item {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.home .home-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

body.home .home-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

body.home .home-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  background: #f3f3f3;
  border: 1px solid #e5e5e5;
  padding: 4px 8px;
  border-radius: 999px;
}

body.home .home-date {
  font-size: 0.85rem;
  color: #777;
  white-space: nowrap;
}

body.home .home-item__title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}

body.home .home-item__text {
  margin: 0;
  color: #555;
  line-height: 1.45;
}

body.home .home-link {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
  font-weight: 700;
}

body.home .home-table {
  display: grid;
  gap: 10px;
}

body.home .home-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 14px;
}

@media (max-width: 520px) {
  body.home .home-row {
    grid-template-columns: 1fr;
  }
}

body.home .home-row strong {
  display: block;
  font-size: 0.95rem;
}

body.home .home-row span {
  color: #666;
  font-size: 0.92rem;
}

body.home .home-row .home-status {
  justify-self: end;
  align-self: start;
}

@media (max-width: 520px) {
  body.home .home-row .home-status {
    justify-self: start;
  }
}

body.home .home-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 2px solid #111;
  font-weight: 700;
  font-size: 0.85rem;
}

body.home .home-empty {
  color: #777;
  background: #fafafa;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 14px;
  padding: 14px;
}

/* Simple reveal animation */
body.home .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

body.home .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  body.home .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer (home only) */
body.home .home-footer {
  margin-top: auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.home .home-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.home .home-footer__brand {
  color: #666;
  font-size: 14px;
}

/* Home-only About + Location (won't touch other pages) */
.page-home .home-about .home-about__grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:stretch;
  margin-top:18px;
}

.page-home .home-about .home-card{
  border:2px solid #000;
  border-radius:18px;
  background:#fff;
  padding:18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}

.page-home .home-about .home-card__kicker{
  font-family:"Roboto",sans-serif;
  font-weight:800;
  opacity:.65;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:6px;
  font-size:12px;
}

.page-home .home-about .home-card__title{
  font-family:"DM Sans",sans-serif;
  font-weight:900;
  margin:0 0 10px 0;
  font-size:28px;
}

.page-home .home-about .home-card__text{
  font-family:"Roboto",sans-serif;
  opacity:.82;
  line-height:1.55;
  margin:0 0 12px 0;
}

.page-home .home-about .home-bullets{
  margin:0 0 14px 0;
  padding-left:18px;
  font-family:"Roboto",sans-serif;
  line-height:1.55;
}

.page-home .home-about .home-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:10px;
}

.page-home .home-about .btn-ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:999px;
  border:2px solid #000;
  background:#fff;
  color:#000;
  font-family:"Roboto",sans-serif;
  font-weight:800;
  text-decoration:none;
}

/* =====================================================
   HOME — ABOUT US (6 cards, alternating) + MAP
   (Scoped to body.home so other pages stay untouched)
   ===================================================== */

body.home .home-about{
  padding: 70px 0 40px;
}

body.home .about-card{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  margin: 0 0 72px;
}

body.home .about-card--reverse{
  grid-template-columns: 0.95fr 1.05fr;
}

body.home .about-card--reverse .about-card__media{ order: -1; }

body.home .about-kicker{
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  margin-bottom: 10px;
}

body.home .about-title{
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

body.home .about-subtitle{
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

body.home .about-lead,
body.home .about-text{
  font-size: 16px;
  line-height: 1.8;
  color: rgba(0,0,0,0.75);
  margin: 0 0 16px;
  max-width: 62ch;
}

body.home .about-text{ margin-bottom: 0; }

body.home .about-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 18px;
}

body.home .about-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.82);
}

body.home .about-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

body.home .about-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  color: rgba(0,0,0,0.88);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

body.home .about-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

body.home .about-btn--dark{
  background: #111;
  color: #fff;
  border-color: #111;
}

body.home .about-card__media{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: radial-gradient(1200px 600px at 20% 20%, rgba(0,0,0,0.06), transparent 60%),
              linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.03));
  box-shadow: 0 24px 60px rgba(0,0,0,0.10);
}

body.home .about-media-placeholder{
  min-height: 320px;
}

body.home .about-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* MAP (Kakao / Google) */
body.home .home-map{
  padding: 10px 0 60px;
}

body.home .map-title{
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.02em;
}

body.home .map-subtitle{
  font-weight: 700;
  margin: 6px 0 10px;
  color: rgba(0,0,0,0.75);
}

body.home .map-text{
  font-size: 15px;
  line-height: 1.6;
  color: rgba(0,0,0,0.72);
  margin-bottom: 14px;
}

body.home .map-embed{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.10);
  background: #fff;
}

body.home .kakao-map-link,
body.home .google-map-iframe{
  display: block;
}

/* Keep the map premium + not too tall */
body.home .kakao-map-link{
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

body.home .kakao-map-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.home .kakao-map-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.08);
}

body.home .kakao-map-logo img{
  display: block;
}

body.home .kakao-map-route{
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: rgba(0,0,0,0.85);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
}

body.home .kakao-map-route:hover{
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Responsive */
@media (max-width: 920px){
  body.home .about-card,
  body.home .about-card--reverse{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  body.home .about-card--reverse .about-card__media{ order: 0; }
  body.home .about-media-placeholder{ min-height: 240px; }
  body.home .map-title{ font-size: 34px; }
}


/* media box */
.about-card__media{
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;   /* держит форму всегда */
}

/* image */
.about-media-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* красиво обрезает */
}
