:root {
  --bg: #0b1120;
  --bg-elevated: #111a2f;
  --surface: #182440;
  --surface-soft: #21325a;
  --text: #e2e8f0;
  --muted: #a8b3c7;
  --accent: #f59e0b;
  --accent-strong: #f97316;
  --border: #2f436f;
  --success: #22c55e;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #16274f 0%, var(--bg) 55%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background: rgba(11, 17, 32, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.page-main {
  padding: 48px 0 72px;
}

.hero {
  display: grid;
  gap: 26px;
  align-items: center;
  margin-bottom: 40px;
}

.hero h1,
.hero h2 {
  margin: 0;
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 72ch;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.card {
  background: linear-gradient(150deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.art-card {
  overflow: hidden;
}

.art-card button {
  all: unset;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.art-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.art-card:hover img {
  transform: scale(1.05);
}

.art-meta {
  padding: 12px 14px 14px;
}

.art-meta h3 {
  margin: 0;
  font-size: 1rem;
}

.art-meta p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.art-shop-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.art-shop-link:hover {
  color: var(--accent-strong);
}

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: stretch;
}

.about-grid .portrait {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-grid .bio {
  padding: 24px;
}

.about-grid .bio p {
  color: var(--muted);
  line-height: 1.75;
}

.shop-list {
  display: grid;
  gap: 12px;
}

.shop-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
}

.shop-item h3 {
  margin: 0;
  font-size: 1rem;
}

.shop-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-card {
  padding: 24px;
}

.contact-card p {
  color: var(--muted);
  line-height: 1.65;
}

form {
  display: grid;
  gap: 14px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0e1730;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(245, 158, 11, 0.25);
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

button[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #111827;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
}

.form-status {
  margin: 0;
  min-height: 22px;
  font-weight: 600;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #f87171;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  width: min(980px, 92vw);
  max-height: 90vh;
  position: relative;
}

.lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #334155;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 860px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .page-main {
    padding-top: 34px;
  }
}
