/* ============================ ROOT & RESET ============================= */

/* Змінні (кольори та ефекти для плашок) */
:root {
  --light-bg: rgb(241, 238, 234);
  --dark-bg: rgb(236, 233, 229);

  --block-bg-color: 231, 228, 223;
  --block-opacity: 0.6;
  --block-blur: 10px;
}

/* Базовий reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Базові стилі сторінки */
body {
  font-family: "TT Commons", sans-serif;
  background: #f4f1ec;
  color: #111;
}

/* Контейнер обмеження ширини */
.container {
  max-width: 1200px;
  margin: 0 auto;
}


/* =============================== HEADER ================================ */

/* Загальна структура header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 40px 0;
}

/* Ліва частина header */
.header-left {
  display: flex;
  flex-direction: column;
  gap: 29px;
}

/* Логотип */
.logo {
  font-size: 1.6rem;
  font-weight: 600;
  margin-left: 28px;
}


/* ================================ NAV ================================= */

/* Контейнер навігації */
.nav {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 26px;
  margin-top: 2px;

  background: rgba(var(--block-bg-color), var(--block-opacity));
  backdrop-filter: blur(var(--block-blur));
  -webkit-backdrop-filter: blur(var(--block-blur));

  padding: 7px;
  border-radius: 50px;

  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 -1px 3px rgba(255, 255, 255, 0.6);
}

/* Індикатор активної вкладки */
.nav-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0px;
  width: 160px;
  border-radius: 40px;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.1)
  );

  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: transform 0.35s ease, width 0.35s ease;
  z-index: 0;
}

/* Вимкнення анімації (для переходу між сторінками) */
.nav-indicator.no-transition {
  transition: none;
}

/* Пункти меню */
.nav-item {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  color: #111;
  padding: 20px 20px;
  border-radius: 40px;

  transition: transform 0.1s ease;
}

.nav-item.active {
  font-weight: 600;
}

.nav-item:active {
  transform: scale(0.97);
}


/* ================================ ICONS ================================ */

/* Контейнер іконок */
.icons {
  position: relative;
  overflow: hidden;

  display: flex;
  gap: 6px;

  background: rgba(var(--block-bg-color), var(--block-opacity));
  backdrop-filter: blur(var(--block-blur));
  -webkit-backdrop-filter: blur(var(--block-blur));

  padding: 9px;
  border-radius: 50px;

  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.06),
    inset 0 -2px 6px rgba(255, 255, 255, 0.4);
}

/* Рухомий індикатор для іконок */
.icons-indicator {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 0px;
  opacity: 0;
  border-radius: 40px;

  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.1)
  );

  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.4);

  box-shadow:
    0 8px 32px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transition: transform 0.35s ease;
  z-index: 0;
}

/* Кнопки-іконки */
.icon-btn {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 60px;
  height: 60px;
  border-radius: 40px;
  text-decoration: none;

  transition: transform 0.2s ease;
}

.icon-btn img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.icon-btn:hover {
  transform: scale(1.05);
}

.icon-btn:active {
  transform: scale(0.96);
}


/* ================================ HERO ================================= */

/* Основна hero-секція */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 5%;
  margin-top: 40px;
  position: relative;
}

/* Зображення hero */
.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Контент hero */
.hero-content {
  max-width: 1000px;
}

.hero-content h1 {
  font-size: 4.2rem;
  font-weight: 600;
  margin-bottom: 25px;
}

.hero-content p {
  font-size: 1.9rem;
  margin-bottom: 90px;
}


/* ====================== Кнопка в hero ====================== */

.btn {
  display: inline-block;
  padding: 45px 45px;

  background: linear-gradient(
    145deg,
    rgba(206, 222, 241, 0.9),
    rgba(206, 222, 241, 0.6)
  );

  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);

  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  text-decoration: none;
  color: #111;
  font-size: 2.4rem;
  font-weight: 600;

  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: scale(0.97);
}


/* ====================== Плаваюча кнопка (пошта / чат) ====================== */

.floating-mail {
  position: absolute;
  right: 30px;
  top: 100%;
  transform: translateY(-50%);

  width: 72px;
  height: 72px;
  border-radius: 50%;

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.1)
  );

  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.4);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-mail img {
  width: 24px;
  height: 24px;
}

.floating-mail:hover {
  transform: translateY(-50%) scale(1.05);
}


/* ============================== RESPONSIVE ============================= */

@media (max-width: 900px) {

  /* Hero переходить у колонку */
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

}


/* ============================================================================================================================================================================================= */
/* ============================================================ Сторінка каталогу ============================================================================================================== */
/* ============================================================================================================================================================================================= */

.catalog-container { 
  padding-left: 0;
  padding-right: 0;
}


/* ====================== Загальний layout каталогу ===================== */

.catalog {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 60px;
  margin-top: 40px;
  align-items: start;
}


/* ====================== Сітка товарів ================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 18px; /* row-gap column-gap */
  justify-content: start;
  min-height:350px; /* тимчасова висота */
}

/* ============= Назва Фільтр =============== */

.filters-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
  margin-top: -15px;
  margin-left: 30px;
}

/* ======== Тимчасова відладка фільтра ===== */

.filters {
  width: 235px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* відстань між плашками */
  
}


/* ============================= Фільтр Ціни ============================ */


/* ============ Основна плашка ============ */

.price-filter {
  width: 235px;
  height: 183.2px;

  background: rgb(241, 238, 234);
  border-radius: 50px;
  position: relative;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}


/* ====== Капсула з назвою "Ціна" ======= */

.price-title {
  position: absolute;
  top: 16px;
  left: 19px;

  width: 74.8px;
  height: 44.9px;
  background: rgb(236, 233, 229);
  border-radius: 50px;
  
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}


/* ====================== Капсули зі значеннями мін/макс ====================== */

.price-values {
  position: absolute;
  top: 78px;
  left: 19px;
  right: 20px;

  display: flex;
  justify-content: space-between;
}

.price-value {
  width: 74.8px;
  height: 44.5px;
  background: rgb(248, 247, 245);
  border-radius: 50px;

  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255,255,255,0.7);

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 700;
}

/* ============================= Слайдер ================================ */

/* ====================== Контейнер слайдера ====================== */

.range-wrapper {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  width: 193.5px;
  height: 25.4px;
}


/* ====================== Загальна сіра доріжка ====================== */

.range-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6.6px;
  background: rgb(233, 230, 228);
  border-radius: 50px;
}


/* ====================== Активна синя частина ====================== */

.range-progress {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6.6px;
  background: rgb(60, 148, 250);
  border-radius: 50px;
}


/* ====================== Два input[type="range"] поверх ====================== */

.range-wrapper input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  width: 100%;
  height: 25.4px;
  background: none;
  pointer-events: none;
}


/* ====================== Бігунки ====================== */

.range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 38.8px;
  height: 25.4px;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  transition: transform 0.15s ease;
}

.range-wrapper input[type="range"]::-webkit-slider-runnable-track {
  background: none;
}


/* ====================== Анімація бігунка ====================== */

.range-wrapper input[type="range"]:hover::-webkit-slider-thumb {
  transform: scale(1.08);
}

.range-wrapper input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
}

/* ============================= Плашка Категорій ============================ */

.categories-filter {
  width: 212.3px;
  height: 340px;
  background: rgb(241, 238, 234);
  border-radius: 50px;
  position: relative;
  margin-top: 20px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.categories-title {
  position: absolute;
  top: 21px;
  left: 19px;

  width: 117.2px;
  height: 45px;

  background: rgb(236, 233, 229);
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: 600;
}

.categories-list {
  position: absolute;
  top: 85px;
  left: 24px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===================== Фільтр Виробник ===================== */

.manufacturer-filter {
  width: 238.8px;
  height: 210px;
  background: rgb(241, 238, 234);
  border-radius: 50px;
  position: relative;
  margin-top: 20px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.manufacturer-title {
  position: absolute;
  top: 18px;
  left: 20px;

  padding: 10px 18px;
  background: rgb(236, 233, 229);
  border-radius: 50px;

  font-size: 22px;
  font-weight: 600;
}

.manufacturer-list {
  position: absolute;
  top: 80px;
  left: 24px;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===================== Галочка біленька в кружочку синенькому ===================== */

.category-item,
.manufacturer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 500;
}

/* Ховаємо справжній input */
.category-item input[type="radio"],
.manufacturer-item input[type="radio"] {
  display: none;
}

/* Коло */
.custom-radio {
  --size: 20px;
  --stroke: 3;
  --checked-bg: rgb(0, 117, 255);
  --checked-border: rgb(0, 117, 255);
  --checked-check: #fff;

  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: 2px solid #9c9c9c;
  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.2s ease;
}

/* SVG галочка */
.custom-radio svg {
  width: 75%;
  height: 75%;
}

.custom-radio path {
  fill: none;
  stroke: var(--checked-check);
  stroke-width: var(--stroke);
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 30;
  stroke-dashoffset: 30;

  transition: stroke-dashoffset 0.3s ease;
}

/* Стан Сhecked */
.category-item input[type="checkbox"],
.manufacturer-item input[type="checkbox"] {
  display: none;
}

.category-item input[type="checkbox"]:checked + .custom-radio,
.manufacturer-item input[type="checkbox"]:checked + .custom-radio {
  background: var(--checked-bg);
  border-color: var(--checked-border);
}

.category-item input[type="checkbox"]:checked + .custom-radio path,
.manufacturer-item input[type="checkbox"]:checked + .custom-radio path {
  stroke-dashoffset: 0;
}

/* ============================= Карточка товару ====================*/

.product-card {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.product-body {
  background: rgb(240, 236, 233);
  border-radius: 50px;
  padding: 30px;

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ====================== Блок з фотографією ====================== */

.product-image {
  width: 200px;
  height: 200px;
  background: rgb(255, 255, 255);
  border-radius: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
   width: 180px;
   height: 180px;
   object-fit: contain;
   
}

/* ====================== Назва бренду ====================== */
.product-brand {
  font-size: 1.2rem;
  opacity: 0.6;
  margin-bottom: 9px;
  margin-top: 18px;
}

/* ====================== Назва товару ====================== */
.product-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: -5px;
}

/* ====================== Капсула з ціною карточки ====================== */

.product-price {
  background: rgb(221, 229, 238);
  border-radius: 50px;
  padding: 8px 18px;

  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 17px;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ====== Зміна кольору посилання на карточці товару ====== */

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ====== Збільшення карточки при наведенні ====== */
.product-link:hover .product-body {
  transform: translateY(-5px);
  transition: 0.2s ease;
}

/* ================================== Пагінація ============================== */

.pagination {
  max-width: 100%;
  margin-left: 440px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  margin-bottom: 60px;
}

/* Загальна плашка для цифр */
.pagination-group {
  display: flex;
  gap: 15px;
  padding: 10px 14px;
  background: rgb(241, 238, 234);
  border-radius: 50px;

     box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255,255,255,0.6);
    }

/* Кружочки */
.page-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgb(236, 233, 229);

  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  text-decoration: none;
  color: #111;
  font-weight: 400;
  font-size: 22px; 
  transition: all 0.2s ease;
}

.page-item.active {
  font-weight: 600;
}

/* Стрілочка */
.page-item.next {
  background: rgb(236, 233, 229);
  margin-left: -3px;

    box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255,255,255,0.6);
}

.page-item svg {
  width: 22px;
  height: 22px;
}

/* Іконка кнопки для переходу на іншу сторінку ( > ) */
.page-item svg {
  width: 22px;
  height: 22px;
}

/* Активна сторінка */
.page-item.active {
  background: rgb(221, 229, 238);

}

/* Hover */
.page-item:hover {
  transform: translateY(-3px);
}

/* ============================================================================================================================================================================================= */
/* =========================================================Сторінка калькулятора ============================================================================================================== */
/* ============================================================================================================================================================================================= */


.calculator-page {
  margin-top: -40px;
}

/* ====================== Основна сітка =================== */

.calculator-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 60px;
  align-items: start;
}


/* ======================== Заголовки =================== */

.calculator-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-left: 19px;
}

.result-title {
  font-size: 2.4rem;
  font-weight: 600;
  margin-left: 35px;
}


/* ======================== Колонки =================== */

.calculator-area {
  min-height: 725px;
}

.result-area {
  min-height: 602px;
}

/* ============= БЛОК СТАТІ =============== */

.gender-block {
  margin-top: 45px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.gender-label {
  font-size: 1.8rem;
  font-weight: 600;
  margin-left: 19px;
}


/* Перемикач статі */

.gender-toggle {
  --scale: 1.15;

  position: relative;
  width: calc(275px * var(--scale));
  height: calc(73px * var(--scale));
  background: rgb(241, 238, 234);
  border-radius: calc(56px * var(--scale));
  display: flex;
  align-items: center;
}

.gender-indicator {
  position: absolute;
  width: calc(126px * var(--scale));
  height: calc(59px * var(--scale));
  top: calc(7px * var(--scale));
  left: calc(7px * var(--scale));
  border-radius: calc(56px * var(--scale));

  background: rgb(219, 229, 239);

  backdrop-filter: blur(25px) saturate(160%);
  -webkit-backdrop-filter: blur(25px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.6);

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  transition: all 0.35s ease;
}


/* ========== Стан Жінка - рожевий ================*/

.gender-toggle.female .gender-indicator {
  left: calc(100% - (126px * var(--scale)) - (7px * var(--scale)));

  background:rgb(255, 209, 220);
}

.gender-option {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 100%;
  border: none;
  background: none;
  font-size: calc(1.4rem * var(--scale));
  font-weight: 500;
  cursor: pointer;
}

.gender-option.active {
  font-weight: 600;
}


/* ======================= Блок повзунків =================== */

.sliders-block {
  width: 100%;
  max-width: 672px;
  height: 325px;

  background: rgb(241, 238, 234);
  border-radius: 40px;

  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  margin-top: 40px;
  padding-top: 33px;
}


/* =========== Рядки (Віг Вага Зріст) =========*/

.slider-row {
  display: flex;
  align-items: center;
  margin-bottom: 53px;
}

.slider-row:last-child {
  margin-bottom: 0;
}


/* Налаштування тексту */

.slider-label {
  font-size: 1.7rem;
  font-weight: 600;
  margin-left: 24px;
  width: 172px;
}


/* ================== Контейнер повзунка==================*/

.slider-wrapper {
  width: 339.5px;
  margin-left: 12px;
  margin-right: 40px; 
  position: relative;
}


/* ================== Доріжка слайдера ==================*/

.slider-wrapper input[type="range"] {
  width: 100%;
  height: 12px;
  appearance: none;
  border-radius: 50px;
  background: rgb(233, 230, 228);
  outline: none;
}


/* =========== Повзунок ====================== */

/* Базовий стан повзунка (білий)*/
.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 38.8px;
  height: 25.4px;
  border-radius: 14px;

  background: #ffffff;

  border: none;

  box-shadow:
    0 3px 8px rgba(0,0,0,0.08);

  cursor: pointer;
  transition: all 0.25s ease;
}

/* Скло */

.slider-wrapper input[type="range"]:hover::-webkit-slider-thumb {
  background: rgba(255,255,255,0.28);

  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);

  border: 1px solid rgba(255,255,255,0.65);

  box-shadow:
    0 8px 20px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.9);

  transform: scale(1.08);
}


/* Активний стан повзунка у слайдері з прозорістю*/
.slider-wrapper input[type="range"]:active::-webkit-slider-thumb {
  background: rgba(255,255,255,0.18);

  backdrop-filter: blur(40px) saturate(170%);
  -webkit-backdrop-filter: blur(40px) saturate(170%);

  border: 1px solid rgba(255,255,255,0.8);

  box-shadow:
    0 14px 30px rgba(0,0,0,0.18),
    inset 0 2px 4px rgba(255,255,255,0.95),
    inset 0 -4px 8px rgba(0,0,0,0.08);

  transform: scale(1.18);
}

/* Біла подложка під повзунком для зменшення синього відтінку*/
.slider-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;

  height: 25.4px;
  width: 0px;
  border-radius: 14px;

  background: rgba(255,255,255,0.9);

  pointer-events: none;
  transition: width 0.15s ease;
}

.thumb-bg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 25.4px;
  width: 38.8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.95);
  pointer-events: none;
  transition: opacity 0.2s ease;
  opacity: 0;
}

/*  Капсули зі значеннями (Віку Ваги Зросту)  */

.slider-value {
  width: 74.8px;
  height: 52.5px;
  background: rgb(255,255,255);
  border-radius: 26px;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
}

/* =================== Блок Мета + Активність =================== */

.goal-activity-block {
  width: 642.4px;
  background: rgb(241, 238, 234);
  border-radius: 50px;

  border: 1px solid rgba(255, 255, 255, 0.6);

  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  margin-top: 25px;
  margin-bottom: 50px;

  padding: 46px 27px 22px 27px;

  display: flex;
  flex-direction: column;
  gap: 35px;
}


/* ============== Блок Мета ==============*/

.goal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goal-label {
  font-size: 1.7rem;
  font-weight: 600;
}

.goal-toggle {
  position: relative;

  width: 388.7px;
  height: 80px;

  background: rgb(236, 232, 229);
  border-radius: 50px;

  display: flex;
  align-items: center;
}

/* ================ Активна капсула ============= */

.goal-indicator {
  position: absolute;
  width: 184.3px;
  height: 63.7px;
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  border-radius: 50px;

  background: rgb(219, 229, 239);
    

  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  border: 1px solid rgba(255,255,255,0.6);

  box-shadow:
    0 4px 12px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.8);

  transition: all 0.35s ease;
}

.goal-toggle.bulk .goal-indicator {
  left: calc(100% - 184.3px - 8px);
}

.goal-option {
  flex: 1;
  height: 100%;
  border: none;
  background: none;

  font-size: 1.6rem;
  font-weight: 500;

  cursor: pointer;
  position: relative;
  z-index: 2;
}

.goal-option.active {
  font-weight: 600;
}


/* ============= Блок Активність ============== */

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.activity-label {
  font-size: 1.7rem;
  font-weight: 600;
}

.activity-select {
  position: relative;

  width: 390px;
  height: 75.9px;

  background: rgb(236, 232, 229);
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: auto; 

  padding-left: 25px;
}

.activity-text {
  font-size: 1.7rem;
  font-weight: 600;
}

/* Кругла кнопка зі стрілкою */

.activity-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);

  background: rgba(255,255,255,0.35); 
  
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

   box-shadow:
    0 6px 16px rgba(0,0,0,0.08),       
    inset 0 1px 0 rgba(255,255,255,0.85),
    inset 0 -3px 6px rgba(0,0,0,0.04);

  margin-right: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -3px 6px rgba(0,0,0,0.05);
}

.activity-btn:active {
  transform: translateY(1px);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.12),
    inset 0 2px 6px rgba(0,0,0,0.1);
}

.activity-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.25s ease;
}

/* Анімація перевороту стрілки при відкритому вікні */
.activity-dropdown.open ~ .activity-btn svg,
.activity-select.open .activity-btn svg {
  transform: rotate(180deg);
}

/* ============ Вспливаюче віконце вибору активності ============== */

:root {
  --dropdown-blur: 28px;
}

.activity-dropdown {
  position: absolute;
  right: 0;
  bottom: 100%;
  z-index: 50;

  width: 354px;

  border-radius: 36px;

  background: rgba(241, 238, 234, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(var(--dropdown-blur)) saturate(160%);

  box-shadow:
    0 20px 60px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.6);

  padding: 23px 26px 26px 26px;  

  height: auto;
  min-height: 170px;
  

  display: flex;
  flex-direction: column;
  gap: 10px;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.25s ease;

  z-index: 50;
}

.activity-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.activity-hover-indicator {
  position: absolute;
  left: 26px;
  height: 60px;
  border-radius: 56px;

  background: rgba(219, 229, 239, 0.85);

  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);

  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);

  z-index: 1; 

  pointer-events: none; 

  transition: top 0.25s ease,
              left 0.25s ease,
              width 0.25s ease;
}

/* Опції у вікні активності */

.activity-option {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 600;

  width: fit-content;
  height: 60px;
  padding: 0 25px;

  display: flex;
  align-items: center;

  border-radius: 56px;
  cursor: pointer;

  transition: background 0.25s ease, transform 0.15s ease;
}

.activity-option.active {
  background: transparent;
}


/* ===== Плашка (Кількість калорій + Зберегти Результат) ===== */

.result-card {
  width: 511.2px;
  height: 104.8px;
  margin-top: 34px;

  background: rgb(241, 238, 234);
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 14px;
}

/* ===== Поле "Кількість калорій" ===== */

.result-value {
  width: 139.6px;
  height: 78.5px;

  background: rgb(255, 255, 255);
  border-radius: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2.2rem;
  font-weight: 600;
}

/* ===== Кнопка "Зберегти результат" ===== */

.result-save-btn { 
  width: 313.5px;
  height: 78.5px;

  border-radius: 50px; 
  border: none;
  cursor: pointer;

  font-size: 1.7rem;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgb(219, 229, 239);
  box-shadow:
  0 6px 14px rgba(0, 0, 0, 0.05), 
  inset 0 1px 0 rgba(255,255,255,0.8); 

  transition: all 0.25s ease;
}

.result-save-btn:hover {
  transform: translateY(-2px); 
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.07), 
    inset 0 1px 0 rgba(255,255,255,0.9); 
}