body {
  background-color: black;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}


.guides-container {
  padding-top: 120px;
  display: flex;
  justify-content: center;
}


/* Стилі для картки з коноплею */
#cannabis-image {
  margin-top: -60px;
  z-index: -1;
  width: 90px;
  height: 170px;
  right: 720px;
  cursor: pointer;
  vertical-align: middle;
  position: absolute;
  transition: transform 0.2s ease-in-out;
  pointer-events: auto;
}

/* Для лінка, щоб не було підкреслення */
#image-link {
  text-decoration: none;
  position: relative;
  z-index: 0;
}

/* Ефект при наведенні на картинку */
#cannabis-image:hover {
  transform: scale(1.1);
}


@media (max-width: 425px) {

  #cannabis-image {
    display: none;
  }

}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1000px;
  width: 100%;
}

.guide-card {
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s, opacity 0.3s;
}

.guide-card img {
  border-radius: 10px;
  width: 300px;
  height: 300px;
  transition: transform 0.3s;
}

.guide-card p {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.guide-card:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

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


@media (max-width: 1024px) {
  .guide-grid {
    width: 70%;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .guide-grid img {
    width: 200px;
    height: 200px;

  }

}


@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);

    gap: 40px;
  }

  .guide-card img {
    width: 250px;
    height: 250px;

  }

  .guide-card p {
    font-size: 16px;
  }
}


@media (max-width: 480px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .guide-card img {
    width: 200px;

    height: 200px;
  }

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

.footer {
  background-color: #000000;
  /* Темний фон по всьому екрану */
  padding: 40px 0 30px 0;
  /* Вертикальні відступи */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__container {
  background-color: rgba(68, 34, 71, 0.9);
  /* Темно-фіолетовий напівпрозорий фон */
  max-width: 840px;
  width: 100%;
  padding: 20px 30px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(224, 126, 228, 0.7);
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__logo {
  width: 46px;
  height: 46px;
  filter: none;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #fff1cc;
}

.footer__center {
  margin-left: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

.footer__icon-link img {
  width: 24px;
  height: 24px;
  filter: brightness(1) saturate(1);
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.footer__icon-link:hover img {
  filter: brightness(1.3) saturate(1.5);
  transform: scale(1.1);
}

.footer__right {
  font-size: 13px;
  text-align: right;
  color: #fff1cc;
  user-select: none;
  white-space: nowrap;
}

.footer__right strong {
  font-weight: 600;
  cursor: default;
}

.footer__separator {
  max-width: 840px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(224, 126, 228, 0.7), rgba(179, 108, 11, 0.9), rgba(224, 126, 228, 0.7));
  margin: 20px auto 10px auto;
  border-radius: 2px;
  width: 100%;
}

.footer__note {
  max-width: 840px;
  margin: 0 auto 30px auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-style: italic;
  font-family: 'Segoe UI', sans-serif;
  user-select: none;
}

/* Адаптивність */

@media (max-width: 768px) {
  .footer__container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 0px;
  }

  .footer__center {
    margin-left: 5px;
    gap: 15px;
  }

  .footer__right {
    text-align: center;
    white-space: normal;
  }

  .footer__left {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer__icon-link img {
    width: 28px;
    height: 28px;
  }
}


/* Контейнер сторінки гайдів: футер нижче фолду */
.guides-shell {
  --gap: 16px;
  margin-top: var(--head, 0px);
  /* тепер НЕ віднімаємо висоту футера: */
  min-height: calc(100vh - var(--head, 0px));
  /* трішки "повітря" знизу, щоб футер точно вимагав скрол: */
  padding-bottom: clamp(24px, 6vh, 120px);

  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: var(--gap);
  padding-left: clamp(8px, 2vw, 16px);
  padding-right: clamp(8px, 2vw, 16px);
  padding-top: clamp(8px, 2vw, 16px);
}

/* важливо для незалежної прокрутки колонок */
.left-pane,
.right-pane {
  min-height: 0;
}


.left-pane {
  overflow: auto;
  border-radius: 14px;
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(6px);
  padding: 12px;
}




/* Перетворюємо твої квадратні картки у "кнопки-рядки" тільки в лівій панелі */
.left-pane .guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.left-pane .guide-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  transition: transform .08s ease, background .2s ease, outline-color .2s;
}

.left-pane .guide-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.left-pane .guide-card p {
  margin: 0;
  font-weight: 600;
  letter-spacing: .2px;
}

.left-pane .guide-card:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

.left-pane .guide-card.active {
  outline: 2px solid #74c7ec;
  background: rgba(116, 199, 236, .15);
}


.right-pane {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(20, 20, 20, .35);
}

#guide-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* тонка лінія-завантажувач зверху контенту */
.loader-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #74c7ec, #cba6f7, #f5c2e7);
  transition: width .4s ease;
}

/* Мобіла: одна колонка; права панель отримує фіксовану висоту зі скролом всередині */
@media (max-width: 960px) {
  .guides-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .right-pane {
    height: 70vh;
  }
}

/* guides-mode = спец-режим тільки для сторінки гайдів */
body.guides-mode {
  /* не блокуємо скрол повністю, але нічого не лізе під хедер */
  background-attachment: fixed;
}

header {
  z-index: 100;
}

/* на всяк випадок поверх усього */

/* основна сітка + фікс для "їде під header" */
.guides-shell {
  --gap: 16px;
  margin-top: var(--head, 0px);
  /* <- відступ під хедер */
  height: calc(100vh - var(--head, 0px) - var(--foot, 0px));
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: var(--gap);
  padding: clamp(8px, 2vw, 16px);
  min-height: 0;
  /* важливо для прокрутки всередині grid */
}

.left-pane,
.right-pane {
  min-height: 0;
}

/* щоб працював overflow:auto у дочірніх */

/* далі — як було раніше */
.left-pane {
  overflow: auto;
  border-radius: 14px;
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(6px);
  padding: 12px;
}

.left-pane .guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.left-pane .guide-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  transition: transform .08s ease, background .2s ease, outline-color .2s;
}

.left-pane .guide-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.left-pane .guide-card p {
  margin: 0;
  font-weight: 600;
  letter-spacing: .2px;
}

.left-pane .guide-card:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

.left-pane .guide-card.active {
  outline: 2px solid #74c7ec;
  background: rgba(116, 199, 236, .15);
}

.right-pane {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(20, 20, 20, .35);
}

#guide-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.loader-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #74c7ec, #cba6f7, #f5c2e7);
  transition: width .4s ease;
}

@media (max-width:960px) {
  .guides-shell {
    grid-template-columns: 1fr;
  }

  .right-pane {
    height: 70vh;
  }
}

/* вимикаємо скрол у всій сторінці гайдів */
html,
body {
  height: 100%;
}

body.guides-mode {
  overflow: hidden;
}



/* контейнер займає всю область під хедером, без впливу на розмір body */
.guides-shell {
  position: fixed;
  inset: var(--head, 0px) 0 0 0;
  /* top right bottom left */
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 16px;
  padding: 12px 16px;
}

/* незалежні прокрутки всередині колонок */
.left-pane,
.right-pane {
  min-height: 0;
}

.left-pane {
  overflow: auto;
}

.right-pane {
  position: relative;
  overflow: hidden;
}

#guide-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ——— Непомітні скролбари ——— */
:root {
  --scroll-thumb: rgba(255, 255, 255, .16);
  --scroll-thumb-hover: rgba(255, 255, 255, .28);
  --scroll-thumb-active: rgba(255, 255, 255, .38);
}

/* Firefox */
.left-pane {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) transparent;
}

/* Chromium/WebKit */
.left-pane::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.left-pane::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
  /* невеликий відступ зверху/знизу */
}

.left-pane::-webkit-scrollbar-thumb {
  background-clip: padding-box;
  border: 3px solid transparent;
  /* робить «тоншу» доріжку без темного треку */
  border-radius: 999px;
  background-color: var(--scroll-thumb);
}

.left-pane::-webkit-scrollbar {
  width: 6px;
}

.left-pane:hover::-webkit-scrollbar {
  width: 10px;
}

/* Правий контейнер і шари */
.right-pane {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

#guide-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.loader-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  z-index: 3;
  background: linear-gradient(90deg, #74c7ec, #cba6f7, #f5c2e7);
  transition: width .4s ease;
}

/* Напівпрозора “шторка” на час завантаження */
.pane-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
}

/* коли панель у стані завантаження */
.right-pane.loading .pane-cover {
  opacity: 1;
  pointer-events: auto;
}

/* (опц) для юзерів з reduced-motion робимо миттєво */
@media (prefers-reduced-motion: reduce) {
  .pane-cover {
    transition: none;
  }

  .loader-line {
    transition: none;
  }
}

/* базове — як було: body без скролу, shell fixed під хедером */
html,
body {
  height: 100%;
}

body.guides-mode {
  overflow: hidden;
}

.guides-shell {
  position: fixed;
  inset: var(--head, 0px) 0 0 0;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 16px;
  padding: 12px 16px;
}

.left-pane,
.right-pane {
  min-height: 0;
}

.left-pane {
  overflow: auto;
  border-radius: 14px;
  background: rgba(20, 20, 20, .55);
  backdrop-filter: blur(6px);
  padding: 12px;
}

.right-pane {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(20, 20, 20, .35);
}

#guide-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* —— Мобільний режим: ліва панель як шухляда ——— */
@media (max-width: 960px) {
  .guides-shell {
    grid-template-columns: 1fr;
  }

  .left-pane {
    position: fixed;
    top: var(--head, 0px);
    bottom: 0;
    left: 0;
    width: min(90vw, 380px);
    max-width: 420px;
    transform: translateX(-104%);
    transition: transform .2s ease;
    z-index: 200;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }

  .left-pane.open {
    transform: translateX(0);
  }

  .drawer-scrim {
    position: fixed;
    inset: var(--head, 0px) 0 0 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 190;
  }

  body.drawer-open .drawer-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  body.drawer-open .drawer-scrim[hidden] {
    display: block;
  }

  /* перекриваємо hidden, коли активний */

  .guides-fab {
    position: fixed;
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 210;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
    color: #fff;
    background: rgba(20, 20, 20, .85);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  }

  .guides-fab:active {
    transform: translateY(1px);
  }
}

/* трохи компактніші картки у вузькому режимі */
@media (max-width: 960px) {
  .left-pane .guide-card {
    grid-template-columns: 48px 1fr;
    padding: 8px;
  }

  .left-pane .guide-card img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 960px) {
  .guides-fab {
    position: fixed;
    top: calc(var(--head, 0px) + 8px);
    right: 12px;
    z-index: 220;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(20, 20, 20, .85);
    color: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  }

  .guides-fab svg {
    width: 22px;
    height: 22px;
  }
}

@media (min-width: 961px) {
  .guides-fab {
    display: none;
  }
}

/* На мобі — панель на повну висоту, без штучних обмежень */
@media (max-width: 960px) {
  .right-pane {
    height: auto !important;
    min-height: 0 !important;
  }

  .guides-shell {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 600px) {

  main,
  .content,
  .container {
    max-width: 100%;
    padding-inline: 12px !important;
  }

  h1 {
    font-size: 20px !important;
  }

  h2 {
    font-size: 17px !important;
  }

  p {
    line-height: 1.5 !important;
  }
}

/* Плаваюча кругла кнопка (FAB) — правий нижній кут */
.guides-fab {
  position: fixed !important;
  right: 14px !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 420 !important;
  left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #e9e9ea;
  background: rgba(30, 30, 34, .78);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .36);
  touch-action: manipulation;
  top: auto;
}

.guides-fab:hover {
  background: rgba(30, 30, 34, .88);
}

.guides-fab:active {
  transform: translateY(1px);
}

.guides-fab .icon-menu,
.guides-fab .icon-close {
  width: 22px;
  height: 22px;
}

/* За замовчуванням показуємо меню, а коли шухляда відкрита — хрестик */
.guides-fab .icon-close {
  display: none;
}

body.drawer-open .guides-fab .icon-menu {
  display: none;
}

body.drawer-open .guides-fab .icon-close {
  display: block;
}

/* Показувати тільки на вузьких екранах (як на прикладі).
   Хочеш бачити завжди — прибери обидва медіа-блоки. */
@media (min-width: 961px) {
  .guides-fab {
    display: none;
  }
}

