:root {
  /* Backgrounds */
  --bg-main: #f4efe9; /* теплий кремово-бежевий */
  --bg-card: #eee7df; /* світлий беж для карток */
  --bg-footer: #e9e1d8; /* секції / блоки */

  /* Text */
  --text-main: #2f2a36; /* глибокий темний (не чорний) */
  --text-secondary: #6b647a; /* пилово-лавандовий */

  /* Accents (lavender) */
  --accent-light: #b9aacd; /* ніжна лаванда */
  --accent-warm: #a08fc1; /* трохи глибша */
  --accent-soft: #d8cfe6; /* дуже м’яка */
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.ua .about,
body.ua .history,
body.ua .products,
body.ua .contact {
  font-family: "Montserrat", sans-serif;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  padding-top: 72px; /* висота хедера на десктопі */
}

img {
  display: block;
  max-width: 100%;
}

/* Header */
.top-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(244, 239, 233, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 12px 20px;
}

.top-header::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(160, 143, 193, 0.35),
    transparent
  );
}

.top-header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.top-header-content > * {
  min-width: 0; /* ВАЖЛИВО */
}

.top-logo {
  font-family: "Pacifico", cursive;
  font-size: 46px;
  color: var(--accent-warm);
  text-decoration: none;
  animation: glow 4s infinite ease-in-out;
}

/* Logo animation */
@keyframes glow {
  0%,
  100% {
    text-shadow: 0 2px 6px rgba(216, 207, 238, 0.25);
  }
  50% {
    text-shadow: 0 2px 6px rgba(216, 207, 238, 0.35);
    transform: scale(1.05);
  }
}

.logo {
  font-family: "Pacifico", cursive;
  font-size: 22px;
  color: var(--accent-warm);
  text-decoration: none;
  flex: 1 1 auto; /* дозволяє стискатись */
}

/* Socials */
.socials {
  display: flex;
  gap: 16px;
  flex: 0 0 auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 22px;
  height: 22px;
  fill: var(--accent-warm);
  transition: all 0.3s ease;
}

.social-link:hover .icon {
  fill: var(--accent-warm);
  transform: scale(1.1);
}

/* Language */
.lang-switcher {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-right: 14px;
}

.lang-btn {
  border: 1px solid var(--accent-warm);
  background: transparent;
  color: var(--accent-warm);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: var(--accent-light);
  color: #2a2438;
}

.top-header .logo {
  justify-self: start;
  text-align: left;
}

.top-header .lang-switcher {
  justify-self: center;
}

.top-header .socials {
  justify-self: end;
}

/* =====================
   HEADER – TABLET
===================== */
@media (max-width: 1024px) {
  body {
    padding-top: 64px;
  }

  .top-header {
    padding: 10px 16px;
  }

  .top-header-content {
    gap: 14px;
  }

  .logo {
    font-size: 28px;
  }

  .socials {
    gap: 12px;
  }
}

/* =====================
   HEADER – MOBILE
===================== */
@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .top-header {
    padding: 6px 8px;
  }

  .top-header-content {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .logo {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .socials {
    gap: 2px;
  }

  .icon {
    width: 18px;
    height: 18px;
  }

  .lang-btn {
    font-size: 8px;
  }

  .lang-switcher {
    gap: 4px;
  }

  .lang-btn {
    padding: 4px 6px;
  }
}

/* Hero Section */
.section-one {
  position: relative;
  padding: 140px 20px 120px;
  text-align: center;
  background: url("../image/dresses.png") center/cover no-repeat;
}
.section-one::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(227, 222, 238, 0.2);
  z-index: 1;
}
.section-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.subtitle {
  font-family: "Dancing Script", cursive;
  font-size: 26px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-buttons {
  min-width: 148px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
/* Hero image */
.hero-img {
  max-width: 140px;
  display: block;
  margin: 20px auto 0;
  border-radius: 12px;
}
/* Buttons */
.button {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-warm));
  color: rgb(42, 36, 56);
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(216, 207, 238, 0.8);
}

.button-secondary {
  background: transparent;
  border: 2px solid var(--accent-light);
  color: var(--accent-light);
  transition: all 0.3s ease;
}

.button-secondary:hover {
  background: var(--accent-light);
  color: #2a2438;
  box-shadow: 0 0 20px rgba(216, 207, 238, 0.7);
  transform: translateY(-2px);
}

/* Sections */
.about,
.history,
.products,
.contact {
  text-align: center;
}

.about {
  margin-top: 60px;
}

/* =====================
   SECTIONS – TABLET
===================== */
@media (max-width: 1024px) {
  .about,
  .history,
  .products,
  .contact {
    padding: 8px 16px; /* зменшений внутрішній відступ */
    margin-bottom: 50px; /* відступ між секціями на планшеті */
  }
}

.about h2,
.history h2,
.products h2,
.contact h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--accent-light);
}

.about p,
.history p,
.products p,
.contact p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about p {
  background: rgba(216, 207, 238, 0.08);
  padding: 36px 32px;
  border-radius: 18px;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.9;
  position: relative;
}

.about p::before {
  content: "“";
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 60px;
  color: var(--accent-soft);
  opacity: 0.4;
}

/* Cards */
.cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-main));
  padding: 32px 24px;
  border-radius: 18px;
  width: 280px;
  text-align: center;
  overflow: hidden;
}

.card h3 {
  font-size: 24px;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Footer */
.footer {
  padding: 32px 20px;
  text-align: center;
  background-color: var(--bg-footer);
  color: var(--text-secondary);
  font-size: 14px;
}

.footer .socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer .icon {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.footer .social-link:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

/* =====================
   WHY US – CARDS (DESKTOP + MOBILE)
===================== */

.card-hover {
  position: relative;
  overflow: hidden;
}

/* IMAGE */
.card-hover img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* DESKTOP hover zoom */
.card-hover:hover img {
  transform: scale(1.05);
}

/* OVERLAY – BASE */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(216, 207, 230, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;

  opacity: 0;
  transition: opacity 0.35s ease;
}

/* DESKTOP hover overlay */
.card-hover:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* TEXT */
.card-overlay h3 {
  color: #2f2a36;
  font-size: 26px;
  margin-bottom: 10px;
}

.card-overlay p {
  color: #3e3356;
  font-size: 16px;
  max-width: 260px;
}

/* .card.visible .card-overlay {
  opacity: 1;
  transform: translateY(0);
} */

/* =====================
   MOBILE LAYOUT + ANIMATION
===================== */
@media (max-width: 768px) {
  .card-overlay {
    position: static;
    background: transparent;
    padding: 12px 8px;

    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 2s ease,
      transform 2s ease;
    pointer-events: none;
  }

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

  .card-hover {
    overflow: visible;
  }

  .card-hover img {
    transform: none !important;
  }

  .card-overlay h3 {
    color: var(--accent-light);
    font-size: 20px;
  }

  .card-overlay p {
    color: var(--text-secondary);
    font-size: 14px;
  }

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

/* =====================
   KEYFRAMES
===================== */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  width: 100%;
  padding-bottom: 10px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.candle-card {
  min-width: 260px;
  flex-shrink: 0;
  text-align: center;
  background: var(--bg-card);
  border-radius: 18px;
  padding: 16px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.candle-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(168, 155, 195, 0.25);
}

.candle-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 14px;
}

.candle-card h3 {
  font-size: 1.1rem;
  color: var(--accent-warm);
}

/* Buttons */
.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 26px;
  cursor: pointer;
  color: var(--bg-main);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

@media (max-width: 1024px) {
  .carousel-btn {
    display: flex;
    font-size: 22px;
    padding: 8px 12px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .carousel-btn {
    display: flex;
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 10px;
  }
}

.carousel-btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
  /* Header */
  .top-logo {
    font-size: 24px;
  }

  .top-header-content {
    gap: 8px;
  }

  /* Hero */
  .section-one {
    padding: 80px 16px 60px;
  }

  .subtitle {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .button {
    max-width: 260px;
    padding: 14px 28px;
  }

  .about {
    padding-top: 30px;
  }
  .about h2,
  .products h2,
  .contact h2 {
    font-size: 26px;
  }

  .about p,
  .products p,
  .contact p {
    font-size: 16px;
  }

  /* Cards */
  .cards {
    margin-top: 20px;
    gap: 16px;
  }

  .card {
    width: 100%;
    max-width: 320px;
    padding: 20px 16px;
  }

  .card h3 {
    font-size: 20px;
  }

  /* WHY US hover cards */
  .card-hover img {
    height: 200px;
  }

  .card-overlay h3 {
    font-size: 18px;
  }

  .card-overlay p {
    font-size: 14px;
  }

  /* Carousel */
  .carousel {
    gap: 0;
  }

  .carousel-track {
    gap: 16px;
    padding-bottom: 6px;
  }

  .candle-card {
    min-width: 240px;
    padding: 14px;
  }

  .candle-card h3 {
    font-size: 16px;
  }

  .candle-desc {
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 24px 16px;
  }

  .footer p {
    font-size: 12px;
  }

  .footer .socials {
    gap: 20px;
  }
}
/* Контейнер секції */
.scents {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.scents h2 {
  font-size: 36px;
  color: var(--accent-light);
  margin-bottom: 40px;
}

/* Карточки */
.scents .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

/* Перспектива для 3D */
.candle-card {
  width: 260px;
  height: 340px;
  perspective: 1000px;
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
  border-radius: 12px;
  cursor: pointer;
}

/* Переворот тільки для карточок у секції scents */
.scents .candle-card.active .card-inner,
.scents .candle-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Лицева і зворотня сторона */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

/* Лицева сторона з легким лавандовим відтінком */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

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

/* Зворотня сторона */
.card-back {
  background: var(--bg-card);
  color: var(--text-main);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card-back h3 {
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.card-back p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  .candle-card {
    width: 90%;
    height: 320px;
  }
}

/* === WORKSHOPS CARDS === */
#workshops .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.workshop-card {
  background: var(--bg-card);
  border-radius: 18px;
  width: 260px;
  padding: 16px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* щоб картинка і текст були вертикально */
  overflow: hidden; /* щоб hover тінь не розривала контент */
}

/* Hover effect: плавання тільки картки */
.workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(168, 155, 195, 0.25);
}

/* Картинка */
.workshop-card img {
  width: 100%;
  height: auto; /* висота під контент */
  border-radius: 14px;
  margin-bottom: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.workshop-card:hover img {
  transform: scale(1.05); /* легке збільшення при ховері */
}

/* Текст під картинкою */
.workshop-card h3 {
  font-size: 1.1rem;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.workshop-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0; /* щоб не було додаткових відступів */
  word-break: break-word; /* перенос слів, якщо дуже довгі */
}

/* Мобільна адаптація */
@media (max-width: 768px) {
  #workshops .cards {
    gap: 16px;
  }

  .workshop-card {
    width: 90%;
    padding: 14px;
  }

  .workshop-card img {
    margin-bottom: 10px;
  }

  .workshop-card h3 {
    font-size: 1rem;
  }

  .workshop-card p {
    font-size: 0.85rem;
  }
}

/* ======================
   SECTION LAYOUT SYSTEM
   ====================== */

.section {
  padding: 32px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Unified section titles */
.section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--accent-light);
  text-align: center;
}

/* Cards spacing only via gap */
.cards {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ======================
   MOBILE
   ====================== */
@media (max-width: 768px) {
  .section {
    padding: 40px 16px;
  }

  .section h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .cards {
    gap: 16px;
  }
}

/* ======================
   FAQ Accordion Styling
====================== */
.faq-accordion {
  margin: 40px auto; /* зверху/знизу відступ, по центру горизонтально */
  max-width: 700px; /* обмеження ширини для десктопу */
  width: 90%; /* адаптивна ширина на мобільних */
}
.faq-item {
  border-bottom: 1px solid var(--bg-card);
  margin-bottom: 10px;
}

.faq-question {
  width: 100%;
  background-color: var(--bg-card); /* світлий фон секції */
  border: none;
  text-align: left;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary); /* основний текст */
  border-radius: 10px;
  transition:
    background 0.3s,
    color 0.3s;
}

.faq-question:hover {
  background-color: var(--bg-card); /* легкий лавандовий ховер */
}

.faq-question[aria-expanded="true"] {
  background-color: rgba(216, 207, 230, 0.55); /* акцент на відкритий елемент */
  color: var(--text-main);
}

.arrow {
  font-weight: bold;
  transition: transform 0.3s;
  color: #a494cc; /* м’який лавандовий колір стрілки */
}

.faq-question[aria-expanded="true"] .arrow {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  text-align: left;

  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s ease;
  padding: 0 20px;
  background-color: var(--bg-card); /* легкий фон відповіді */
  border-radius: 0 0 10px 10px;
}

.faq-answer p {
  margin: 12px 0;
  line-height: 1.6;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
}

/* ======================
   HOW IT’S MADE
====================== */

.process-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.process-text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 16px;
}

.step-number {
  font-size: 1.4rem;
  font-weight: 600;
  color: #a494cc; /* лавандовий акцент */
  min-width: 40px;
}

.process-step p {
  font-size: 1.05rem;
  color: #6b647a;
  margin: 0;
}

.process-video video {
  width: 100%;
  max-height: 480px; /* ⬅️ тут контролюємо висоту */
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {
  .process-content {
    grid-template-columns: 1fr;
  }

  .process-video {
    order: -1; /* відео зверху на мобілці */
  }

  /* Відцентрувати список кроків */
  .process-steps {
    text-align: center;
    padding-left: 0; /* прибрати відступ для кружечків */
  }

  .process-steps li {
    padding-left: 0;
  }

  .process-steps li::before {
    display: none; /* сховати кружечки на мобілці */
  }
}
