/* Основні змінні кольорів */
:root {
  --primary-text: #1a1a1a;
  --secondary-text: #666666;
  --background: #f8f5f0;
  --white: #ffffff;
  --accent-brown: #8b4513;
  --accent-gold: #d4a574;
  --border: #e5e0d8;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary-text);
  background: var(--background);
  line-height: 1.7;
}

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 50;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-img {
  width: 48px;
  height: 48px;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--primary-text);
}

.brand-name strong {
  color: var(--accent-brown);
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s;
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger-menu div {
  width: 30px;
  height: 3px;
  background: var(--primary-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* Головний банер */
.hero-banner {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #fff 0%, var(--background) 100%);
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-heading i {
  color: var(--accent-brown);
  font-style: italic;
}

.hero-description {
  font-size: 18px;
  color: var(--secondary-text);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.btn-main, .btn-outline {
  padding: 16px 36px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-main {
  background: var(--accent-brown);
  color: white;
  border: 2px solid var(--accent-brown);
}

.btn-main:hover {
  background: #6d3410;
  border-color: #6d3410;
}

.btn-outline {
  background: transparent;
  color: var(--accent-brown);
  border: 2px solid var(--accent-brown);
}

.btn-outline:hover {
  background: var(--accent-brown);
  color: white;
}

.partners-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.partners-strip img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  opacity: 0.5;
  filter: sepia(1) saturate(0.5);
  transition: 0.3s;
}

.partners-strip img:hover {
  opacity: 0.8;
  filter: none;
}

/* Секції */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--secondary-text);
  font-size: 18px;
}

/* Меню категорії */
.menu-categories {
  padding: 80px 0 60px;
}

.menu-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.menu-link {
  padding: 14px 28px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--primary-text);
  font-weight: 500;
  transition: 0.3s;
}

.menu-link:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold);
  color: white;
}

/* Бестселери */
.bestsellers-section {
  padding: 80px 0 100px;
}

.drinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 36px;
}

.drink-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.drink-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.drink-details {
  padding: 28px;
}

.drink-details h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.drink-details p {
  color: var(--secondary-text);
  line-height: 1.6;
}

/* Про нас */
.about-section {
  background: var(--white);
  padding: 100px 0;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  margin-bottom: 20px;
}

.about-content > p {
  color: var(--secondary-text);
  font-size: 18px;
  margin-bottom: 36px;
}

.benefits {
  list-style: none;
}

.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.benefit-icon {
  font-size: 24px;
  color: var(--accent-brown);
}

.barista-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.barista-card {
  text-align: center;
}

.barista-card img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.barista-card figcaption {
  font-weight: 500;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--accent-brown), var(--accent-gold));
  padding: 80px 0;
}

.cta-wrapper {
  text-align: center;
}

.cta-wrapper h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: white;
  color: var(--accent-brown);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.cta-button:hover {
  transform: scale(1.08);
}

/* Журнал */
.journal-section {
  padding: 100px 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.post-content {
  padding: 28px;
}

.post-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.post-content p {
  color: var(--secondary-text);
  margin-bottom: 16px;
}

.post-content time {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 600;
}

/* FAQ */
.faq-section {
  background: var(--white);
  padding: 80px 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}

.faq-item summary {
  padding: 24px 28px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 18px;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  transition: 0.3s;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px;
  color: var(--secondary-text);
}

/* Підвал */
.site-footer {
  background: var(--accent-brown);
  color: white;
  padding: 80px 0 32px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-block h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-block a {
  display: block;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  margin-bottom: 12px;
  transition: 0.3s;
}

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

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icons a {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.social-icons a:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-4px);
}

.social-icons svg {
  fill: white;
}

.footer-copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.footer-copyright a {
  color: var(--accent-gold);
  text-decoration: none;
}

/* Адаптив */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 88px;
    left: -100%;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 32px 20px;
    box-shadow: var(--shadow-lg);
    transition: 0.3s;
  }

  .main-nav.active {
    left: 0;
  }

  .burger-menu {
    display: flex;
  }

  .hero-wrapper,
  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .partners-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .barista-gallery {
    justify-content: center;
  }
}