:root {
  --sepia: #c9a66b;
  --dark-sepia: #8b6f47;
  --deep-brown: #3c2f2f;
  --paper: #f7f1e3;
  --cream: #fffdf7;
  --ink: #2c1e0f;
  --shadow: rgba(60, 30, 20, 0.22);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--deep-brown);
  line-height: 1.7;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(247,241,227,0.82), rgba(247,241,227,0.90)),
    url("../img/piano-7.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

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

a { color: var(--dark-sepia); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #2c1e0f;
  background:
    linear-gradient(180deg, rgba(247,241,227,0.28) 0%, rgba(44,30,15,0.28) 100%),
    url("../img/piano-6.jpg") center/cover no-repeat;
  border-bottom: 14px solid var(--sepia);
}

.site-header.compact {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(247,241,227,0.35), rgba(44,30,15,0.35)),
    url("../img/vanity-1.jpg") center/cover no-repeat;
}

.site-header.boxes {
  min-height: 52vh;
  background:
    linear-gradient(180deg, rgba(247,241,227,0.22), rgba(44,30,15,0.42)),
    url("../img/shkatulka-closed.jpg") center 60%/cover no-repeat;
}

.header-inner { padding: 90px 20px 70px; }

.stars { letter-spacing: 18px; opacity: 0.45; margin-bottom: 10px; font-size: 1.2rem; }

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 3px;
  text-shadow: 2px 2px 12px rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

.subtitle {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
}

nav {
  background: rgba(139, 111, 71, 0.97);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--sepia);
  box-shadow: 0 6px 20px var(--shadow);
}

nav .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 14px 16px;
}

nav a {
  color: var(--paper);
  text-decoration: none;
  font-size: 1.08rem;
}

nav a:hover, nav a.active { color: #ffe7b8; }

section { padding: 64px 0; }

h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

h2::after {
  content: "❧";
  display: block;
  color: var(--sepia);
  margin-top: 4px;
  font-size: 1.4rem;
}

.lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
}

.made-note {
  max-width: 820px;
  margin: 0 auto 32px;
  background: rgba(255,253,247,0.94);
  border: 1px solid #d4c4a8;
  padding: 18px 22px;
  text-align: center;
  font-size: 1.02rem;
}
.made-note strong { color: var(--dark-sepia); }
.craft {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  color: #6b4c3b;
  font-style: italic;
}

.box {
  background: rgba(255,253,247,0.94);
  border: 1px solid #d4c4a8;
  box-shadow: 0 12px 32px var(--shadow);
  padding: 36px 28px;
  position: relative;
}

.box::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed #c9a66b;
  pointer-events: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}

.feature {
  background: var(--cream);
  border: 1px solid #e0d0b8;
  padding: 24px 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.feature img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  margin-bottom: 12px;
  border: 1px solid #d4c4a8;
}

/* Products */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.card {
  background: var(--cream);
  border: 1px solid #d4c4a8;
  box-shadow: 0 10px 24px var(--shadow);
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-body { padding: 16px 18px 20px; }

.card h3 { color: var(--dark-sepia); margin-bottom: 6px; font-style: italic; }

.card p { font-size: 1.02rem; }

.badge {
  display: inline-block;
  font-size: 0.85rem;
  background: rgba(201,166,107,0.18);
  color: #6b4c3b;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* Showcase */
.showcase { display: grid; gap: 48px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
.row.reverse { direction: rtl; }
.row.reverse > * { direction: ltr; }

.frame {
  padding: 12px;
  background: #f0e6d2;
  box-shadow: 0 0 0 6px #e8d5b5, 0 0 0 10px #c9a66b, 0 16px 30px var(--shadow);
}
.frame img { width: 100%; height: 320px; object-fit: cover; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.thumbs img { height: 90px; object-fit: cover; border: 1px solid #d4c4a8; }

.review {
  background: var(--cream);
  border-left: 6px solid var(--sepia);
  padding: 18px 22px;
  margin: 14px 0;
  box-shadow: 4px 6px 16px rgba(0,0,0,0.08);
}

form { display: grid; gap: 12px; max-width: 540px; margin: 20px auto 0; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #d4b896;
  background: #fffef9;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--deep-brown);
}
button, .btn {
  display: inline-block;
  background: linear-gradient(to right, var(--sepia), var(--dark-sepia));
  color: #fff;
  border: 0;
  padding: 13px 22px;
  font-size: 1.1rem;
  font-family: Georgia, serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
button:hover, .btn:hover { filter: brightness(1.05); }

.tiktok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25F4EE, #FE2C55, #000);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
}

footer {
  background: linear-gradient(to top, #6e5436, #8b6f47);
  color: var(--paper);
  text-align: center;
  padding: 36px 16px;
  margin-top: 30px;
}
footer a { color: #ffe7b8; text-decoration: none; margin: 0 8px; }

.gallery-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin: 12px 0 40px;
}
.gallery-duo .frame img { height: 420px; object-fit: cover; }
.caption {
  text-align: center;
  font-style: italic;
  margin-top: 12px;
  color: var(--dark-sepia);
}
.detail-list {
  list-style: none;
  max-width: 640px;
  margin: 0 auto 28px;
}
.detail-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #d4c4a8;
}
.detail-list strong { color: var(--dark-sepia); }

@media (max-width: 850px) {
  .gallery-duo { grid-template-columns: 1fr; }
  .gallery-duo .frame img { height: 280px; }
}

@media (max-width: 850px) {
  .row, .row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .frame img { height: 240px; }
  .site-header { min-height: 58vh; }
}
