:root {
  /* Основні кольори */
  --color-cream: #fdfbf9;
  --color-warm-white: #ffffff;
  --color-light-gray: #f5f3f0;
  --color-border: #e8e4df;

  /* Акцентний колір (темний шоколад) */
  --color-accent: #4a2c2a;
  --color-accent-dark: #3a1f1d;
  --color-accent-light: #5d3a36;

  /* Текст */
  --color-charcoal: #2d2d2d;
  --color-gray: #6b6b6b;

  /* Шрифти */
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Comforter", cursive;
  --font-sans: "Mulish", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  line-height: 1.6;
}

.script-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 249, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: transform 0.3s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(74, 44, 42, 0.3);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(74, 44, 42, 0.4);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 1.5;
  fill: none;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-script);
  font-size: 4rem;
  font-weight: 500;
  color: var(--color-charcoal);
  text-decoration: none;
  line-height: 1;
}

.logo span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-top: -4px;
}
h1 span {
  display: block;
  font-size: clamp(0.4rem, 3vw, 1.2rem);

  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-gray);
  margin-top: clamp(-1.2rem, -1.2vw, -0.2rem);
  margin-bottom: 2rem;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-charcoal);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-charcoal);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

@keyframes heroZoom {
  0% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  animation: heroZoom 12s ease-out forwards;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  margin-top: 7rem;
  width: 100%;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* @keyframes heroTitleZoom {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
} */

.hero-title {
  font-family: var(--font-script);
  font-size: clamp(5.6rem, 14vw, 9.8rem);
  font-weight: 500;
  line-height: 1;
  color: var(--color-charcoal);
  /* animation: heroTitleZoom 12s ease-out forwards; */
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--color-gray);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: 6rem 2rem;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-script);
  font-size: clamp(3rem, 3vw, 4rem);
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--color-gray);
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: var(--color-border);
}

.divider-icon {
  color: var(--color-accent);
  font-size: 0.75rem;
}

/* Assortment Section */
.assortment {
  background: var(--color-warm-white);
}

.assortment .section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--color-cream);
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.6s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(74, 44, 42, 0.6) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
}

.product-card:hover .product-image-overlay {
  opacity: 1;
}

.product-image-overlay span {
  color: white;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.85rem;
  color: var(--color-gray);
  font-weight: 300;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Product Modal */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--color-cream);
  border-radius: 8px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
}

.product-modal.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Modal Gallery */
.modal-gallery {
  flex: 0 0 50%;
  min-height: 450px;
  position: relative;
  background: var(--color-light-gray);
  overflow: hidden;
}

.gallery-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-height: 450px;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(74, 44, 42, 0.8);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.gallery-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.gallery-btn:hover {
  background: var(--color-accent);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--color-accent);
}

/* Modal Info */
.modal-info {
  flex: 0 0 50%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-product-name {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.modal-product-tagline {
  font-size: 0.95rem;
  color: var(--color-gray);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.modal-section {
  margin-bottom: 1.5rem;
}

.modal-section-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-title svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  stroke-width: 2;
  fill: none;
}

.modal-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-ingredient {
  background: var(--color-light-gray);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--color-gray);
  font-weight: 400;
}

.modal-price-box {
  background: var(--color-warm-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: auto;
}

.modal-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-price-value {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-accent);
}

.modal-price-unit {
  font-size: 0.9rem;
  color: var(--color-gray);
  font-weight: 300;
}

.modal-price-note {
  font-size: 0.8rem;
  color: var(--color-gray);
  font-weight: 300;
  line-height: 1.5;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--color-border);
}

.modal-price-note strong {
  color: var(--color-charcoal);
  font-weight: 500;
}

.modal-order-btn {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
}

/* About Section */
.about {
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  min-height: 450px;
}

.about-image-wrapper {
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.about-image-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-image-wrapper:first-child {
  grid-row: span 2;
}

.about-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  font-family: var(--font-script);
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--color-gray);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about-signature {
  font-family: var(--font-script);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-charcoal);
  margin-top: 2rem;
}

/* Gallery Section */
.gallery {
  background: var(--color-light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* Contact Section */
.contact {
  background: var(--color-warm-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-icon {
  width: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-text {
  font-weight: 300;
  color: var(--color-gray);
}

.contact-text strong {
  display: block;
  color: var(--color-charcoal);
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-social {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.contact-social span {
  display: block;
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.contact-social-links {
  display: flex;
  gap: 1rem;
}

.contact-social-links a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-charcoal);
  transition: all 0.3s ease;
}

.contact-social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.contact-form {
  background: var(--color-cream);
  padding: 3rem;
  border-radius: 4px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-warm-white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-script);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--color-warm-white);
  line-height: 1;
}

.footer-logo span {
  display: block;
  font-size: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 2px;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.footer-bottom {
  text-align: center;
}

.footer-thanks {
  font-family: var(--font-script);
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    background-position: center center;
    padding-top: 8rem;
  }
  .hero-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 6rem;
    width: 100%;
    text-align: center;
  }
  .hero-tagline {
    display: none;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-images {
    max-width: 500px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .modal-content {
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-gallery {
    flex: 0 0 auto;
    min-height: 280px;
  }

  .gallery-slide {
    min-height: 280px;
  }

  .modal-info {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .logo {
    font-size: 2.5rem;
  }

  .logo span {
    margin-top: -2px;
  }

  .nav-container {
    padding: 0.75rem 1.5rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: 80vh;
  }

  .hero-title {
    font-size: clamp(4rem, 16vw, 6rem);
  }

  section {
    padding: 4rem 1.5rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-images {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    min-height: auto;
    order: -1;
  }

  .about-image-wrapper:first-child {
    grid-column: span 2;
    grid-row: auto;
    height: 180px;
  }

  .about-image-wrapper:nth-child(2),
  .about-image-wrapper:nth-child(3) {
    height: 140px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .gallery-item {
    aspect-ratio: 1;
  }

  .gallery-item:first-child {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-info {
    padding: 1.5rem;
  }

  .modal-product-name {
    font-size: 2rem;
  }

  .modal-gallery {
    min-height: 220px;
  }

  .gallery-slide {
    min-height: 220px;
  }

  .gallery-btn {
    width: 36px;
    height: 36px;
  }

  .gallery-btn svg {
    width: 20px;
    height: 20px;
  }
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;

  background: var(--color-charcoal);
  color: var(--color-cream);

  padding: 16px 24px;
  border-radius: 12px;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
}

.toast.show {
  opacity: 1;
}
