@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* ==========================================
   1. КОЛЬОРОВІ ПАЛІТРИ (DARK / LIGHT THEMES)
   ========================================== */

/* Темна тема за замовчуванням (darc-color.jpg) */
:root {
  --bg: #110f16;
  --panel: #191522;
  --card: #1e1928;

  --text: #f3efe8;
  --muted: #b9b0c4;

  --gold: #dfa755;
  --gold-hover: #f4c875;
  --violet: #9f38b8;

  --line: #5b4a36;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.6);

  --hero-gradient:
    radial-gradient(ellipse at 78% 42%, rgba(159, 56, 184, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse at 25% 20%, rgba(223, 167, 85, 0.1) 0%, transparent 45%),
    linear-gradient(95deg, #110f16 0%, #191522 58%, #110f16 100%);

  --about-gradient:
    radial-gradient(circle at 82% 45%, rgba(159, 56, 184, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 15% 25%, rgba(223, 167, 85, 0.08) 0%, transparent 45%),
    linear-gradient(90deg, #101714 0%, #15141c 52%, #181222 100%);

  --btn-bg: linear-gradient(110deg, #f4c875, #c18b3d);
  --btn-text: #1d170d;
  --btn-border: #e8bd6b;

  color-scheme: dark;
}

/* Світла люкс-тема (color-light.jpg: перламутр, золота стрічка, шампань) */
html[data-theme="light"] {
  --bg: #f9f5f0;
  --panel: #f2eae0;
  --card: #f0f0f0;

  --text: #2b2219;
  --muted: #7d6e5d;

  --gold: #b8860b;
  --gold-hover: #966b04;
  --violet: #8e44ad;

  --line: #d8c7b3;
  --shadow: 0 14px 40px rgba(138, 109, 59, 0.12);

  --hero-gradient:
    radial-gradient(ellipse at 80% 30%, rgba(244, 230, 210, 0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(235, 218, 192, 0.5) 0%, transparent 50%),
    linear-gradient(95deg, #f9f5f0 0%, #f2eae0 55%, #f9f5f0 100%);

  --about-gradient:
    radial-gradient(circle at 85% 50%, rgba(238, 224, 204, 0.8) 0%, transparent 50%),
    linear-gradient(90deg, #f5edd6 0%, #f2eae0 50%, #f9f5f0 100%);

  --btn-bg: linear-gradient(110deg, #d4af37, #aa7c11);
  --btn-text: #ffffff;
  --btn-border: #c59b27;

  color-scheme: light;
}

/* ==========================================
   2. БАЗОВІ СТИЛІ ТА ТИПОГРАФІКА
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, .brand b {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  margin: 0.15em 0 0.35em;
  color: var(--gold);
}
/* Золоті H2 з обох боків заголовків секцій */
.section-heading h2
{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  text-align: center;
}

.section-heading h2::before,
.section-heading h2::after
 {
  content: '';
  flex: 0 1 clamp(48px, 11vw, 150px);
  height: 1.5px;
  border-radius: 999px;
  background-repeat: no-repeat;
  animation: goldHeadingLinePulse 4.5s ease-in-out infinite;
}

/* Ліва полоска: плавно наростає до центру (до заголовка) */
.section-heading h2::before
 {
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--gold) 35%, transparent) 35%,
    var(--gold) 100%
  );
  transform-origin: right center;
}

/* Права полоска: яскрава біля заголовка і плавно згасає вправо */
.section-heading h2::after
{
  background-image: linear-gradient(
    90deg,
    var(--gold) 0%,
    color-mix(in srgb, var(--gold) 35%, transparent) 65%,
    transparent 100%
  );
  transform-origin: left center;
  animation-delay: -2.25s;
}

@keyframes goldHeadingLinePulse {
  0%, 100% {
    opacity: 0.72;
    transform: scaleX(0.92);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-heading h2::before,
  .section-heading h2::after
 {
    animation: none;
    transform: none;
  }
}

/* Адаптація на мобільних екранах, щоб заголовок не стискався */
@media (max-width: 760px) {
  .section-heading h2::before,
  .section-heading h2::after
 {
    flex: 0 1 clamp(22px, 7vw, 48px);
  }
}
p {
  margin: 0.55em 0;
}

/* ==========================================
   3. ШАПКА САЙТУ (HEADER)
   ========================================== */

/* Десктоп: бургер завжди прихований */
.site-header {
  max-width: 100vw;
  min-height: 78px;
  height: auto;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 76px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
  color: var(--gold);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: auto;
  height: 44px;
  max-width: 60px;
  object-fit: contain;
}

.brand b {
  display: block;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.05;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: var(--muted);
  white-space: nowrap;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.8vw, 28px);
  flex: 1 1 auto;
  min-width: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.2;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}
.theme-toggle,
.menu-toggle {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 8px;
  color: var(--gold);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: transparent;
  color: var(--gold-2, var(--gold));
  transform: scale(1.06);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
}
.menu-toggle {
  display: none;
}
.languages {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.languages a + a:before {
  content: '|';
  margin-right: 4px;
  color: var(--muted);
}
/* Планшети та вузькі десктопи: ховаємо горизонтальне меню в бургер */
@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 18px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    font-size: 15px;
    z-index: 30;
  }
.main-nav a {
    white-space: normal;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
  }
}

/* Мобільна версія: 2 ряди + помітний логотип */
@media (max-width: 760px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 14px 12px;
    min-height: auto;
  }

  /* 1-й ряд: логотип по центру або зліва */
  .brand {
    justify-content: center;
    gap: 10px;
    padding-bottom: 2px;
  }

  .brand-mark img {
    height: 44px;
    max-width: 58px;
  }

  .brand b {
    font-size: 21px;
  }

  .brand small {
    font-size: 8.5px;
    letter-spacing: 1.5px;
  }

  /* 2-й ряд: мови + тема + кнопка запису + бургер */
  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  }

  .languages {
    gap: 4px;
    font-size: 11.5px;
  }

  .languages a + a:before {
    margin-right: 4px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .header-actions .button.small {
    padding: 8px 12px;
    font-size: 12px;
    height: 34px;
    gap: 5px;
  }

  .header-actions .button span {
    display: inline;
  }

  .main-nav.open {
    top: 108px;
  }
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 99px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 700;
  border: 1px solid var(--btn-border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.button-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: none;
}

.button.small {
  padding: 8px 16px;
  font-size: 12px;
}

/* ==========================================
   4. ПЕРШИЙ ЕКРАН (HERO)
   ========================================== */

.hero {
  min-height: min(76vh, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--hero-gradient);
}

.hero-copy {
  padding: clamp(44px, 6vw, 76px) clamp(24px, 5vw, 84px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.3rem);
  color: var(--gold);
  max-width: 14ch;
  margin: 0.2em 0 0.25em;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  color: var(--text);
  max-width: 42ch;
  margin: 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  max-width: 520px;
}

.hero-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}

.hero-point-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: 22px;
  color: var(--gold);
}

.hero-point small {
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-media {
  position: relative;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}

/* ==========================================
   5. СЕКЦІЇ ТА БЛОК "ПРО МЕНЕ" (ABOUT)
   ========================================== */

.section {
  padding: 64px clamp(20px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  text-align: center;
  margin: 0 auto 30px;
}

.section-heading p {
  color: var(--muted);
}

/* Новий макет "Про мене" під darc-color та color-light */
.about-section {
  max-width: 100%;
  overflow-x: clip;
  background: var(--about-gradient);
}

.about-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  min-width: 0;
}

.about-copy {
  min-width: 0;
  border-left: 2px solid var(--gold);
  padding-left: clamp(18px, 2.5vw, 28px);
}

.about-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--gold);
  font-weight: 600;
}

.about-copy p {
  margin: 0 0 14px;
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.62;
  color: var(--text);
  max-width: 56ch;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-media {
  min-width: 0;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  box-shadow: var(--shadow);
}

.about-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(240px, 34vw, 360px);
  object-fit: cover;
  object-position: 50% 20%;
}

/* ==========================================
   6. ПЕРЕВАГИ (ADVANTAGES)
   ========================================== */

.advantages-section {
  background: var(--panel);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.advantage-card {
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid var(--line);
}

.advantage-card:last-child {
  border-right: 0;
}

.advantage-card img,
.line-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.advantage-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--gold);
}

.advantage-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================
   7. ГАЛЕРЕЯ ТА ВІДЕО (ATMOSPHERE)
   ========================================== */

.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 28px;
}

.gallery-tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  padding: 9px 22px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-tabs button.active {
  background: var(--gold);
  color: #1a140b;
  border-color: var(--gold);
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-item {
  border: 1px solid var(--line);
  padding: 0;
  background: none;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}

.hidden {
  display: none !important;
}

/* Лайтбокс */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  right: 24px;
  top: 18px;
  background: none;
  border: 0;
  color: #ffffff;
  font-size: 38px;
  cursor: pointer;
}

/* ==========================================
   8. СЕКЦІЯ ВІДГУКІВ (REVIEWS)
   ========================================== */

.reviews-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 36px;
  align-items: center;
}

.reviews-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px;
  width: 100%;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-slide-card {
  border-radius: 16px;
  border: 1.5px solid var(--gold);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
}

.review-shot-btn {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  padding: 0;
  border: 0;
  background: #09080c;
  cursor: zoom-in;
}

.review-shot-btn img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

.review-text-card {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  height: 100%;
}

.review-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
}

.review-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  flex: 1;
}

.review-author {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
  padding-top: 10px;
}

.carousel-arrow {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--card);
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.carousel-arrow:hover {
  background: var(--gold);
  color: #19140b;
}

.reviews-cta-box {
  text-align: center;
  padding: 24px 20px;
  border-left: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}

.reviews-cta-box h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--gold);
  margin: 0 0 10px;
}

.reviews-cta-lead {
  color: var(--text);
  font-size: 15px;
  max-width: 30ch;
  margin: 0 auto 20px;
}

.reviews-decorative-stars {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 24px;
  color: var(--gold);
}

.review-form-collapse {
  margin-top: 20px;
  text-align: left;
}

.review-form {
  display: grid;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.review-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.review-form input,
.review-form textarea,
.review-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.reviews-footer-note {
  text-align: center;
  color: var(--gold);
  font-size: 15px;
  margin: 28px 0 0;
}
.review-alert {
  margin: 0 auto 20px;
  max-width: 780px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.review-alert--success {
  border-color: color-mix(in srgb, var(--gold) 75%, transparent);
  background: color-mix(in srgb, var(--gold) 18%, var(--panel));
  color: var(--text);
}

.review-alert--error {
  border-color: rgba(224, 92, 92, 0.75);
  background: rgba(224, 92, 92, 0.16);
  color: var(--text);
}

/* ==========================================
   9. ПОДАРУНКОВІ СЕРТИФІКАТИ (CERTIFICATES)
   ========================================== */

.certificate-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 450px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg);
}

.certificate-section::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: url('/assets/img/certificate-bg.jpg') center / cover no-repeat;
  opacity: 0.68;
  transform-origin: center;
  animation: certificateBgDrift 24s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.certificate-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 75% 50%,
    color-mix(in srgb, var(--bg) 55%, transparent) 0%,
    color-mix(in srgb, var(--bg) 55%, transparent) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.certificate-section > * {
  position: relative;
  z-index: 2;
}

.certificate-art {
  width: 100%;
  max-width: 450px;
  min-height: 220px;
  padding: 28px 24px;
  border-radius: 16px;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.certificate-art:hover {
  transform: rotate(0deg) translateY(-4px);
}

@keyframes certificateBgDrift {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(1.06); }
  50% { transform: translate3d(1%, 1.2%, 0) scale(1.09); }
  100% { transform: translate3d(1.8%, -1.2%, 0) scale(1.07); }
}

/* ==========================================
   10. ПРАЙС-ЛИСТ (PRICE)
   ========================================== */

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 45px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 65px 100px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  padding: 13px 0;
}

.price-row h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  margin: 0;
}

.price-desc {
  font-size: 0.8em;
  font-style: italic;
  color: var(--muted);
}

.price-row small {
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

.price-row strong {
  white-space: nowrap;
  color: var(--gold);
  text-align: right;
  font-size: 16px;
}

.price-action {
  display: flex;
  justify-content: space-around;
  margin: 36px 0 0;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================
   11. КОНТАКТИ ТА ФУТЕР (FOOTER)
   ========================================== */

.contacts-section {
  position: relative;
  overflow-x: clip;
  background: var(--bg);
}

.contacts-section .section-heading {
  margin: 0 0 28px;
  text-align: center;
}

.contacts-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3.5vw, 48px);
  flex-wrap: wrap;
}

.contact-line {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  color: var(--text);
}

.contact-line > a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-line:not(:has(a)) {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: transform 0.22s ease, filter 0.22s ease, color 0.22s ease;
}

.contact-icon svg,
.btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-line > a:hover {
  color: var(--gold);
  transform: translateY(-1px);
}

.contact-line > a:hover .contact-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--gold) 55%, transparent));
}

.contacts-cta {
  border-radius: 14px;
  padding: 13px 26px;
  white-space: nowrap;
}

.btn-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  display: grid;
  place-items: center;
}

html[data-theme="light"] .contacts-cta {
  background: linear-gradient(110deg, #e5be7b, #cfa052);
  color: #24190c;
  border-color: #d7ab60;
}

@media (min-width: 1051px) {
  .contacts-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 24px;
  }

  .contacts-section .section-heading {
    flex: 0 0 100%;
    margin-bottom: 6px;
  }

  .contacts-list {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .contacts-cta {
    flex: 0 0 auto;
  }
}

@media (max-width: 1050px) {
  .contacts-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .contacts-section .section-heading {
    margin-bottom: 0;
  }

  .contacts-list {
    justify-content: center;
    gap: 16px 28px;
  }
}

@media (max-width: 760px) {
  .contacts-section {
    align-items: flex-start;
  }

  .contacts-section .section-heading {
    width: 100%;
  }

  .contacts-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .contacts-cta {
    width: 100%;
    max-width: 340px;
  }
}

.site-footer {
  text-align: center;
  padding: 25px;
  color: var(--muted);
  font-size: 12px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

/* ==========================================
   12. АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ
   ========================================== */

@media (max-width: 1050px) {
  .main-nav {
    gap: 10px;
    font-size: 11.5px;
  }

  .site-header {
    padding: 0 18px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-showcase {
    grid-template-columns: 1fr;
  }

  .reviews-cta-box {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
    padding-top: 28px;
  }

  .reviews-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 68px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 20px;
    background: var(--panel);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    padding: 44px 20px 24px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .hero-media {
    min-height: 340px;
  }

  .hero-media img {
    min-height: 340px;
  }

  /* Мобільна секція Про мене */
  .about-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .about-copy {
    padding-left: 16px;
  }

  .about-media img {
    height: auto;
    max-height: 320px;
  }

  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-card {
    border-bottom: 1px solid var(--line);
    padding: 18px 10px;
  }

  .advantage-card:nth-child(2) {
    border-right: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .certificate-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .certificate-art {
    max-width: 100%;
    transform: rotate(-1.5deg);
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) 55px 90px;
  }

  .contacts-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .reviews-track {
    grid-auto-columns: 85%;
  }
}