* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1f2933;
  background: #f7f4ef;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5vw;
  background: rgba(247, 244, 239, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e0d3c2;
}

.logo-main {
  display: block;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.logo-sub {
  display: block;
  font-size: 0.75rem;
  color: #7b6a58;
}

.nav a {
  margin-left: 18px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b3f32;
}

.nav a:hover {
  color: #b45326;
}

.section {
  padding: 64px 7vw;
}

.section-alt {
  background: #f0e4d5;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 32px;
  color: #5d5144;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.hero-text p {
  color: #5d5144;
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #b45326;
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #8f3d18;
}

.hero-slider {
  background: #1c1b1a;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.slider-frame {
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  max-height: 70vh;
}

.slider-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #f5e9dd;
  font-size: 0.85rem;
}

.slider-controls button {
  background: none;
  border: 1px solid #f5e9dd;
  color: #f5e9dd;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-controls button:hover {
  background: #f5e9dd;
  color: #111;
}

.grid-opere {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.opera-card {
  margin: 0;
  background: #fdfaf6;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5d7c3;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.opera-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.opera-card figcaption {
  padding: 10px 14px 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b5a47;
}

.text-block {
  max-width: 800px;
  line-height: 1.7;
  color: #3b3026;
}

.text-block p + p {
  margin-top: 14px;
}

.contact-form {
  max-width: 820px;
  background: #fdfaf6;
  padding: 22px 22px 26px;
  border-radius: 18px;
  border: 1px solid #e2d5c4;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.form-row {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
}

.form-row label,
.full-width {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #4b3f32;
}

input, textarea {
  margin-top: 6px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #d3c4b2;
  font: inherit;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #b45326;
  box-shadow: 0 0 0 2px rgba(180,83,38,0.18);
}

.contacts {
  max-width: 640px;
  line-height: 1.7;
}

.footer {
  padding: 18px 7vw 24px;
  border-top: 1px solid #e0d3c2;
  font-size: 0.8rem;
  color: #7b6a58;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
  .topbar {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 6vw;
  }
  .form-row {
    flex-direction: column;
  }
  .opera-card img {
    height: 200px;
  }
}
