* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18px;
  color: #222;
  background: #fff;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  text-align: center;
  padding: 44px 24px 48px;
}

.site-title {
  display: inline-block;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.main-nav {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 34px;
}

.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  color: #444;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active { color: #222; border-bottom-color: #222; }

.lang-switch {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #999;
}

.lang-switch a { text-decoration: none; color: #777; }
.lang-switch a.active { color: #222; border-bottom: 1px solid #222; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 78vh;
  min-height: 360px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #444;
  border-radius: 8px 8px 0 0;
}

/* ---------- Titles ---------- */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 56px 24px 32px;
}

.intro { text-align: center; padding: 0 24px 32px; color: #555; }
.empty { text-align: center; padding: 24px; color: #777; }
.center-link { text-align: center; padding: 8px 0 64px; }

/* ---------- Category filters ---------- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 0 24px 32px;
}

.filters a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #666;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.filters a:hover,
.filters a.active { color: #222; border-bottom-color: #222; }

/* ---------- Artwork grid (masonry, no cropping) ---------- */
.masonry {
  column-count: 3;
  column-gap: 24px;
  padding: 0 48px 48px;
}

.card {
  display: block;
  break-inside: avoid;
  margin-bottom: 28px;
  text-decoration: none;
  color: inherit;
}

.card img { width: 100%; display: block; }

.card h3 {
  margin-top: 10px;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.card-price { color: #666; margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid #222;
  background: #222;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn:hover { background: #fff; color: #222; }

.btn-wa { background: #fff; color: #222; }
.btn-wa:hover { background: #222; color: #fff; }

/* ---------- Artwork page ---------- */
.artwork-page { padding: 0 48px 48px; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
  color: #555;
}

.artwork-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.artwork-detail img { width: 100%; display: block; }

.artwork-info h1 { margin-bottom: 16px; font-weight: 400; }
.artwork-desc { margin-bottom: 24px; line-height: 1.6; }
.artwork-meta { list-style: none; margin-bottom: 24px; line-height: 1.9; }
.price { font-size: 1.5rem; margin-bottom: 20px; }
.status.sold { font-weight: 500; color: #a33; }
.artwork-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- About page ---------- */
.about-page { padding: 24px 48px 64px; }

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

.about-intro.no-photo { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.about-intro img { width: 100%; display: block; }
.about-text h1 { font-weight: 400; margin-bottom: 16px; }
.about-text p { line-height: 1.8; }

/* ---------- Contact page ---------- */
.contact-page { padding: 24px 48px 64px; max-width: 720px; margin: 0 auto; }
.contact-page h1 { margin-bottom: 12px; font-weight: 400; }
.contact-intro { margin-bottom: 20px; line-height: 1.6; }

.contact-phone { margin-bottom: 24px; font-size: 1.1rem; }
.contact-phone a { text-decoration: none; border-bottom: 1px solid #222; }

.contact-form label { display: block; margin: 16px 0 6px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  font: inherit;
  border: 1px solid #ccc;
  background: #fff;
}

.contact-form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; }

.notice { padding: 12px 16px; margin-bottom: 16px; }
.notice.success { background: #e6f4ea; color: #1e6b34; }
.notice.error { background: #fdecea; color: #a33; }

/* ---------- 404 page ---------- */
.error-page { text-align: center; padding: 40px 24px 96px; }
.error-page h1 { font-weight: 400; font-size: 2rem; margin-bottom: 12px; }
.error-page p { margin-bottom: 24px; color: #555; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 24px;
  padding: 44px 24px 32px;
  text-align: center;
  color: #777;
  border-top: 1px solid #eee;
}

.footer-phone { margin-bottom: 22px; }

.footer-phone a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #222;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.footer-phone a:hover { color: #666; }

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-bottom: 30px;
}

.social-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  color: #555;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.social-links a:hover { color: #222; border-bottom-color: #222; }

.footer-copy {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #999;
}

/* ---------- Tablet and mobile ---------- */
@media (max-width: 900px) {
  .masonry { column-count: 2; }
}

@media (max-width: 768px) {
  .site-header { padding: 20px 16px 28px; }
  .lang-switch { position: static; margin-bottom: 14px; }
  .site-title { font-size: 1.6rem; }
  .main-nav { gap: 8px 18px; }
  .main-nav a { font-size: 0.9rem; }

  .hero { height: 55vh; }
  .section-title { padding: 36px 16px 20px; }

  .masonry { padding: 0 20px 32px; column-gap: 14px; }

  .artwork-page,
  .about-page,
  .contact-page { padding: 0 20px 40px; }

  .artwork-detail,
  .about-intro { grid-template-columns: 1fr; gap: 24px; }

  .site-footer { padding: 36px 16px 28px; }
}

@media (max-width: 520px) {
  .masonry { column-count: 1; }

.card-price.sold { color: #a33; }

/* ---------- Language switch with flags ---------- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #777;
  opacity: 0.6;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.lang-switch a:hover { opacity: 1; }

.lang-switch a.active {
  opacity: 1;
  color: #222;
  border-bottom-color: #222;
}

.lang-switch img {
  display: block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .lang-switch { justify-content: center; }
}


}