:root {
  --wood-dark: #3d2a18;
  --wood-mid: #7a5a38;
  --wood-light: #c9a877;
  --cream: #faf4e8;
  --linen: #f0e5d0;
  --accent: #a67c52;
  --accent-soft: #c9a06a;
  --text: #3a2e20;
}

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

html, body { height: 100%; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  background-color: var(--cream);
  background-image:
    url('/pattern.svg'),
    radial-gradient(circle at 15% 20%, rgba(201, 168, 119, 0.35), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(166, 124, 82, 0.22), transparent 50%),
    radial-gradient(circle at 75% 90%, rgba(201, 168, 119, 0.30), transparent 55%),
    radial-gradient(circle at 10% 85%, rgba(122, 90, 56, 0.18), transparent 50%),
    linear-gradient(160deg, #faf4e8 0%, #f2e6d0 55%, #ecdcbe 100%);
  background-attachment: fixed;
  background-size: 120px 120px, cover, cover, cover, cover, cover;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  position: relative;
  animation: breathe 40s ease-in-out infinite;
}

@keyframes breathe {
  0% {
    background-position: 0 0, 15% 20%, 85% 15%, 75% 90%, 10% 85%, 0 0;
  }
  25% {
    background-position: 30px 15px, 18% 22%, 82% 18%, 72% 88%, 13% 82%, 0 0;
  }
  50% {
    background-position: 60px 0, 15% 25%, 88% 12%, 78% 92%, 8% 88%, 0 0;
  }
  75% {
    background-position: 30px -15px, 12% 18%, 83% 17%, 73% 87%, 12% 83%, 0 0;
  }
  100% {
    background-position: 0 0, 15% 20%, 85% 15%, 75% 90%, 10% 85%, 0 0;
  }
}

/* Лёгкая текстура «льна» поверх фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(0deg, rgba(122, 90, 56, 0.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(122, 90, 56, 0.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* Мягкое свечение сверху, как от окна мастерской */
body::after {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(255, 245, 220, 0.6), transparent 70%);
  filter: blur(20px);
}

header {
  background: linear-gradient(180deg, #4a3520 0%, #3d2a18 100%);
  color: var(--cream);
  padding: 1.5rem 2rem;
  border-bottom: 4px solid var(--wood-light);
  box-shadow: 0 4px 20px rgba(61, 42, 24, 0.25);
  position: relative;
  z-index: 2;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  font-weight: normal;
}

.logo span { color: var(--wood-light); }

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

nav a:hover {
  border-bottom-color: var(--wood-light);
  color: #fff;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero {
  max-width: 760px;
  background: rgba(255, 252, 245, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 168, 119, 0.5);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow:
    0 10px 30px rgba(61, 42, 24, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--wood-dark);
  margin-bottom: 1rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--wood-mid);
  margin-bottom: 2rem;
  font-style: italic;
}

.divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--wood-light), transparent);
  margin: 2rem auto;
  border: none;
}

.hero p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.crafts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2.5rem 0;
}

.craft {
  background: linear-gradient(160deg, #fffaf0 0%, var(--linen) 100%);
  border: 1px solid var(--wood-light);
  padding: 1.5rem;
  border-radius: 6px;
  width: 220px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(122, 90, 56, 0.10);
  transition: transform 0.2s, box-shadow 0.2s;
}

.craft:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(122, 90, 56, 0.18);
}

.craft h3 {
  font-size: 1.05rem;
  color: var(--wood-dark);
  margin-bottom: 0.5rem;
  font-weight: normal;
}

.craft p {
  font-size: 0.9rem;
  color: var(--wood-mid);
  margin: 0;
}

.notice {
  background: linear-gradient(160deg, rgba(255, 250, 240, 0.9), rgba(240, 229, 208, 0.9));
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin-top: 2rem;
  text-align: left;
  font-size: 0.95rem;
  border-radius: 0 6px 6px 0;
}

footer {
  background: linear-gradient(180deg, #3d2a18 0%, #2e1f12 100%);
  color: var(--wood-light);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 600px) {
  .hero { padding: 1.8rem 1.2rem; }
  .hero h1 { font-size: 1.8rem; }
  nav ul { gap: 1rem; }
  .header-inner { justify-content: center; text-align: center; }
}

.craft-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 0.8rem;
}

.craft {
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.craft:hover {
  border-color: var(--accent);
}

.craft:hover .craft-icon {
  transform: rotate(-4deg);
  transition: transform 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}
