/* ===== БАЗОВАЯ СТИЛИЗАЦИЯ ===== */
:root {
  --primary: #3E2723;
  --accent: #FFB300;
  --bg: #FAFAFA;
  --text: #212121;
  --light: #FFF;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,0.1);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-title { font-size: 1.4rem; margin: 0; color: var(--primary); }

.nav-toggle { display: none; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.nav-list {
  display: flex; gap: 1.5rem; list-style: none;
}
.nav-list a {
  text-decoration: none; color: var(--text);
  font-weight: 500; padding: 0.5rem 0;
  position: relative; transition: color var(--transition);
}
.nav-list a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-list a:hover { color: var(--primary); }
.nav-list a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--light); flex-direction: column;
    padding: 1rem; gap: 0.5rem;
    border-bottom: 1px solid #eee;
    transform: translateY(-120%); transition: transform var(--transition);
  }
  .nav-list.open { transform: translateY(0); }
}

.hero {
  text-align: center; padding: 4rem 1rem;
  background: linear-gradient(180deg, #fff 0%, #f0f0f0 100%);
}
.hero h1 {
  font-size: 2.5rem; margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.hero p { color: #666; margin-bottom: 1.5rem; }
.cta-btn {
  display: inline-block; padding: 0.75rem 2rem;
  background: var(--primary); color: var(--light);
  text-decoration: none; border-radius: 30px;
  font-weight: 600; transition: transform var(--transition), box-shadow var(--transition);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 39, 35, 0.3);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; padding: 2rem 1rem; max-width: 1400px; margin: 0 auto;
}
.category-card {
  background: var(--light); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.card-image {
  width: 100%; height: 200px; object-fit: cover;
  background: #eee; transition: filter var(--transition);
}
.category-card:hover .card-image { filter: brightness(1.05); }
.card-title {
  padding: 1rem; font-size: 1.1rem; font-weight: 600;
  color: var(--primary);
}

.category-view-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.category-view-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
}
.back-to-categories {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.thumb-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.thumb-card {
  border: none;
  padding: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}
.thumb-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.contacts {
  padding: 3rem 1rem; background: var(--light);
}
.contacts-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}
.contacts-info h2 { margin-bottom: 1rem; color: var(--primary); }
.contacts-info p { margin-bottom: 0.8rem; }
.contacts-info a { color: var(--primary); text-decoration: none; }
.contact-form {
  display: grid;
  gap: 1rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 0.45rem;
  text-align: left;
}
.contact-form span {
  font-weight: 600;
  color: var(--primary);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  background: #fff;
}
.contact-form textarea {
  resize: vertical;
}
.contact-submit {
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: 0.95rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
}

.site-footer {
  text-align: center; padding: 1.5rem; background: var(--primary); color: var(--light);
  font-size: 0.9rem;
}

.modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.9); padding: 2rem;
  animation: fadeIn var(--transition);
}
.modal.active { display: flex; align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  position: relative; max-width: 90vw; max-height: 90vh;
}
#modal-img {
  max-width: 100%; max-height: 85vh;
  border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  animation: zoomIn var(--transition);
}
@keyframes zoomIn { from { transform: scale(0.9); } to { transform: scale(1); } }

.modal-close, .modal-prev, .modal-next {
  position: absolute; background: rgba(255,255,255,0.9);
  border: none; border-radius: 50%; width: 44px; height: 44px;
  font-size: 1.5rem; cursor: pointer; transition: background var(--transition);
}
.modal-close { top: -22px; right: -22px; }
.modal-prev { top: 50%; left: -66px; transform: translateY(-50%); }
.modal-next { top: 50%; right: -66px; transform: translateY(-50%); }
.modal-close:hover, .modal-prev:hover, .modal-next:hover {
  background: var(--light); box-shadow: var(--shadow);
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.category-card, .thumb-card { animation: cardFadeIn 0.6s ease-out backwards; }
.categories-grid .category-card:nth-child(1) { animation-delay: 0.1s; }
.categories-grid .category-card:nth-child(2) { animation-delay: 0.2s; }
.categories-grid .category-card:nth-child(3) { animation-delay: 0.3s; }
.categories-grid .category-card:nth-child(4) { animation-delay: 0.4s; }
.categories-grid .category-card:nth-child(5) { animation-delay: 0.5s; }
.categories-grid .category-card:nth-child(6) { animation-delay: 0.6s; }

@media (max-width: 768px) {
  .category-view-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .thumb-card img {
    height: 180px;
  }
  .contacts-wrap {
    grid-template-columns: 1fr;
  }
  .modal-prev { left: 8px; }
  .modal-next { right: 8px; }
  .modal-close { top: 8px; right: 8px; }
}


body { letter-spacing: 0.01em; }

h1, h2, h3, .logo-title, .card-title, .category-view-header h2, .contacts-info h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.03em;
}

.logo-title {
  font-weight: 700;
  font-style: italic;
}

.nav-list a, .contact-form span, .contact-submit, .back-to-categories, .cta-btn {
  font-family: "Inter", sans-serif;
}

.card-title, .category-view-header h2 {
  font-weight: 700;
}

.contacts-info p, .contact-form input, .contact-form textarea, body {
  font-family: "Inter", sans-serif;
}


.site-header, .site-header * { font-family: "Inter", sans-serif; }
.logo-title { font-family: "Cormorant Garamond", Georgia, serif !important; }
.contacts, .contacts * { font-family: "Inter", sans-serif; }
.contacts-info h2, .contact-form span { font-family: "Cormorant Garamond", Georgia, serif !important; }
.contact-form button, .contact-form input, .contact-form textarea { font-family: "Inter", sans-serif !important; }


.hero-refined {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  border-radius: 24px;
  padding: 3.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(62,39,35,0.06), rgba(255,179,0,0.10));
}
.hero-kicker {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.hero-refined h1 {
  max-width: 920px;
  margin: 0 auto 1rem;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.05;
}
.hero-lead {
  max-width: 820px;
  margin: 0 auto 1.6rem;
  font-size: 1.05rem;
  color: #4f4f4f;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(62,39,35,0.15);
}
@media (max-width: 768px) {
  .hero-refined {
    margin-top: 0.75rem;
    padding: 2.3rem 1rem;
    border-radius: 18px;
  }
  .hero-kicker {
    font-size: 1.15rem;
  }
}


.lead-success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lead-success-modal.active {
  display: flex;
}
.lead-success-card {
  width: min(92vw, 520px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  padding: 2rem 1.4rem;
  text-align: center;
}
.lead-success-card h3 {
  margin-bottom: 0.8rem;
  color: var(--primary);
}
.lead-success-card p {
  margin-bottom: 1.2rem;
  color: #444;
}


.lead-success-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 700;
}
.lead-success-card p {
  font-family: "Inter", sans-serif;
}
.lead-success-card .contact-submit {
  font-family: "Inter", sans-serif;
}
