:root {
    --color-bg: #570009;
    --color-text: #f8f8f6;
    --color-accent-1: #886b5f;
    --color-accent-2: #ccc0b2;
    --color-accent-nav: #886D5F;
    --color-brand-gradient: linear-gradient(45deg, var(--color-bg), rgba(87, 0, 9, 0.8));
    --color-accent-gradient: linear-gradient(45deg, var(--color-accent-1), var(--color-accent-2));
    --color-background: #570009;
    --color-text-white: #f8f8f6;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --speed-hover: 0.3s;
    --speed-appear: 0.4s;
    --speed-intro: 0.6s;
    --ease-rhythm: cubic-bezier(0.2, 0.6, 0.4, 1);
    --transition-speed: var(--speed-hover);
    --border-radius-soft: 12px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================================== */
/* 1. УНІФІКОВАНА ШКАЛА ТИПОГРАФІКИ (H1-H5, 1.25x)            */
/* ========================================================== */

/* ОСНОВНИЙ ТЕКСТ ТА ДОПОМІЖНІ ЕЛЕМЕНТИ */
body, p {
    font-size: 1.1rem;       /* 16px - Основний розмір */
    line-height: 1.6;      /* Комфортна висота рядка */
}

/* МАЛИЙ ТЕКСТ (Футер, теги) */
small, .tag, .footer-legal p {
    font-size: 0.8rem;     /* 12.8px */
    line-height: 1.5;
}

/* ЗАГОЛОВКИ (DESKTOP) - ШКАЛА 1.25x */
h1 {
    font-family: var(--font-serif);
    font-size: 3.8rem;     /* 60.8px */
    line-height: 1.1;
}

h2 {
    font-family: var(--font-serif);
    font-size: 2.8rem;    /* 48.8px */
    line-height: 1.2;
}

h3 {
    font-family: var(--font-serif);
    font-size: 1.14rem;    /* 39px */
    line-height: 1.25;
}

h4 {
    font-family: var(--font-serif);
    font-size: 1.95rem;    /* 31.2px */
    line-height: 1.3;
}

h5 {
    font-family: var(--font-sans);
    font-size: 1.56rem;    /* 25px */
    line-height: 1.4;
}

/* АДАПТИВНІСТЬ (ЗМЕНШЕННЯ НА МОБІЛЬНИХ) */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.4rem; }
    h5 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1.2rem; }
}

/* Мобільні корекції для HERO (менші зсуви і затримки) */
@media (max-width: 768px) {
    /* Перевизначення keyframes під мобільні значення */
    @keyframes heroTitleIn {
        0% { opacity: 0; transform: translateY(20px) scale(0.98); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    @keyframes heroSubIn {
        0% { opacity: 0; transform: translateY(20px); }
        100% { opacity: 1; transform: translateY(0); }
    }

    .hero-section.animate .hero-subtitle { animation-delay: 100ms; }
    .hero-section.animate + .selection-section .cta-button:nth-child(1) { animation-delay: 200ms; }
    .hero-section.animate + .selection-section .cta-button:nth-child(2) { animation-delay: 260ms; }
    .hero-section.animate + .selection-section .cta-button:nth-child(3) { animation-delay: 320ms; }
}

/* ========================================================================= */
/* ========================================================================= */
/* 2. БАЗОВИЙ СКИН — ФОН ПРАЦЮЄ */
/* ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* ФІКС ДЛЯ МОБІЛКИ — ФОН ПО ЦЕНТРУ */
@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-position: center center !important;
        background-size: cover !important;
    }
}

body.menu-open {
    overflow: hidden;
    padding-right: 0 !important;
}

a {
    color: var(--color-accent-1);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--color-accent-1);
}

button, input, textarea, .main-nav a, .logo {
    font-family: var(--font-sans);
}

input, select, textarea, .form-group input, .form-group select, .form-group textarea {
    font-size: 16px;
}
/* ========================================================================= */
/* 3. HEADER & НАВІГАЦІЯ */
/* КОМПЛЕКСНЕ ВИПРАВЛЕННЯ: МОБІЛЬНЕ МЕНЮ + АДАПТИВНІСТЬ + АНІМАЦІЯ */

/* 1. ХЕДЕР: фіксований, центрований, прозорий */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 32px;
    background: rgba(255, 255, 255, 0.08); /* Прозорий фон з ефектом розмиття */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Логотип */
.logo-link { display: block; flex-shrink: 0; }
.logo { height: 38px; width: auto; transition: transform 0.3s ease; }
.logo-link:hover .logo { transform: scale(1.08); }


/*  ДЕСКТОПНА НАВІГАЦІЯ (.main-nav) */
.main-nav {
    /* На десктопі: звичайний flex */
    display: flex; 
    align-items: center;
    gap: 24px;
    margin-left: auto; 
    margin-right: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.main-nav a,
.main-nav button {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 6px 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.main-nav a:hover,
.favorites-button:hover {
    color: var(--color-accent-2); /* Використовуйте вашу змінну */
    text-shadow: 0 0 8px rgba(204, 192, 178, 0.4);
}


/*  МОБІЛЬНІ ЕЛЕМЕНТИ (Гамбургер та Дзвінок) - Приховані за замовчуванням */
/* Цей підхід забезпечує, що вони не з'являться на desktop випадково */

/* Гамбургер */
.hamburger-btn {
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}
.hamburger-btn__line {
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background-color: var(--color-text);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: center;
    will-change: transform, opacity;
}

/* Кнопка Дзвінок */
.header-call-btn {
    display: none; /* Прихована на десктопі */
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    line-height: 0;
    text-decoration: none;
    z-index: 1001;
}

/* Анімація The X-Out */
.hamburger-btn.is-active .hamburger-btn__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-active .hamburger-btn__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.is-active .hamburger-btn__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ========================================================================= */
/* ДЕСКТОПНИЙ В'ЮПОРТ (min-width: 769px) */
/* ========================================================================= */

@media (min-width: 769px) {
    /* 1. Навігація: ПОКАЗУЄМО (Вона вже display: flex за замовчуванням) */
    .main-nav {
        display: flex !important; /* На всяк випадок */
        /* Налаштування позиції вже в загальному блоці */
    }

    /* 2. Мобільні елементи: ПОВНІСТЮ ХОВАЄМО */
    .hamburger-btn, 
    .mobile-menu, 
    .header-call-btn { 
        display: none !important; 
    }
    
    /* Додатково: видаліть усі старі .nav-toggle стилі, якщо вони залишились у вашому коді */
}


/* ========================================================================= */
/* МОБІЛЬНИЙ В'ЮПОРТ (max-width: 768px) */
/* ========================================================================= */

@media (max-width: 768px) {
    
    /*  Десктопна навігація: ПРИХОВУЄМО */
    .main-nav {
        display: none; 
    }

    /*  Мобільний Гамбургер: ПОКАЗУЄМО */
    .hamburger-btn {
        display: flex; /* Показуємо */
        margin-left: 0;
        margin-right: 2px;
        order: 2;
    }
    
    /* . Кнопка Дзвінок (Contrast Badge): ПОКАЗУЄМО */
   /* . Кнопка Дзвінок (Contrast Badge): ПОКАЗУЄМО */
.header-call-btn {
    display: flex; /* Показуємо як flex для центрування SVG */
    align-items: center;
    justify-content: center;
    
    /* Позиціонування */
    position: absolute;
    top: 50%;
    right: 85px;
    transform: translateY(-50%);
    
    /* Дизайн: Contrast Badge */
    background-color: #F8F8F6; 
    border-radius: 50%;
    width: 44px;
    height: 44px;
    
    /* Естетика */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-call-btn svg {
    fill: #570009; /* Темна іконка на світлому бейджі */
    width: 26px;
    height: 26px;
    display: block;

    /* Анімація пульсації іконки */
    animation: pulse-icon 1.5s infinite ease-in-out;
}

/* 4. Анімація кнопки Дзвінок (Touch Feedback) */
.header-call-btn:active {
    /* Ефект 1: Tactile Press */
    transform: translateY(-50%) scale(0.9); 
    
    /* Ефект 2: Subtle Glow */
    box-shadow: 0 0 10px rgba(248, 248, 246, 0.8), 0 0 15px rgba(248, 248, 246, 0.5); 
}

/* 6. ДЕСКТОПНА ВЕРСІЯ кнопки Сердечко */
@media (min-width: 769px) {
    .selection-heart-btn {
        display: flex !important;
    }
}

/* 7. МОБІЛЬНА ВЕРСІЯ кнопки Сердечко */
@media (max-width: 768px) {
    .selection-heart-btn {
        display: flex !important;
    }
}

@keyframes pulse-icon {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}



    /* . СТИЛІ SLIDE-OVER МЕНЮ */
    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh; /* Змінено з 60vh на 100vh для покриття всього екрана */
        width: 100%;
        max-width: 360px;
        background: #ccc0b2d4; 
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -9px 0 32px var(--color-accent-nav);
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        z-index: 1000;
        padding: 90px 20px 32px;
        display: flex;
        flex-direction: column;
        will-change: transform;
    }
    body.menu-open .mobile-menu { transform: translateX(0); }

    /* Staggered Fade-in (ЗАЛИШАЄМО БЕЗ ЗМІН) */
    .mobile-menu__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
    .mobile-menu__item { opacity: 0; transform: translateY(15px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
    .mobile-menu__link {
        display: block; width: 100%; padding: 12px 20px; border-radius: 12px; 
        border: 3px solid var(--color-accent-nav); /* #886d5f */
        color: #000000;
        background: #ccc0b2; text-align: center; font-weight: 600; font-size: 1.125rem; text-decoration: none; letter-spacing: 0.02em;
    }
    .mobile-menu__link:active {
        /* Зворотний зв'язок при натисканні */
        background: var(--color-accent-nav);
        color: var(--color-primary); /* Інверсія кольору тексту */
    }

    /* Staggered transition delays */
    body.menu-open .mobile-menu__item { opacity: 1; transform: translateY(0); }
    body.menu-open .mobile-menu__item:nth-child(1) { transition-delay: 0.05s; }
    body.menu-open .mobile-menu__item:nth-child(2) { transition-delay: 0.10s; }
    body.menu-open .mobile-menu__item:nth-child(3) { transition-delay: 0.15s; }
    body.menu-open .mobile-menu__item:nth-child(4) { transition-delay: 0.20s; }
    body.menu-open .mobile-menu__item:nth-child(5) { transition-delay: 0.25s; }
    body.menu-open .mobile-menu__item:nth-child(6) { transition-delay: 0.30s; }
}

/* ФІКС: фон не "стрибає" при відкритті меню (ЗАЛИШАЄМО БЕЗ ЗМІН) */
body.menu-open {
    overflow: hidden; 
    padding-right: 0 !important;
}


/* New base styles for hero titles */

/* Keyframes for hiding container */
@keyframes introContainerHide {
    0% { 
        opacity: 1; 
        visibility: visible; 
    }
    100% { 
        opacity: 0; 
        visibility: hidden; 
        z-index: -1; 
    }
}

/* Текст логотипу "TICKET_2_LOVE" - TYPEWRITER EFFECT + ЦЕНТРУВАННЯ */
.hero-logo-text {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 8vw, 6rem); 
    color: var(--color-text); 
    text-shadow: none; 
    white-space: nowrap; 
    overflow: hidden; 
    width: 0; 
    border-right: 0.15em solid var(--color-text); /* Курсор */
    
    /* НОВЕ: Центрування Typewriter елемента */
    max-width: fit-content; 
    margin: 0 auto; 
    
    /* Комбінована анімація, узгоджена з ціллю 1.8с:
       1. typing: 0.8s
       2. fadeOut: 0.3s з затримкою 1.2s
    */
    animation: typing 0.8s steps(14, end) forwards,
               blink 0.75s step-end infinite,
               fadeOut 0.3s ease-out 1.2s forwards; 
}

/* 1. Анімація набору тексту */
@keyframes typing {
    from { width: 0 }
    to { width: 100% } 
}

/* 2. Анімація миготіння курсора (без змін) */
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--color-text); }
}

/* 3. Анімація зникнення тексту та курсора (без змін) */
@keyframes fadeOut {
    0% {
        opacity: 1;
        border-color: var(--color-text); 
    }
    100% {
        opacity: 0;
        border-color: transparent; 
    }
}


/* ПОЧАТКОВІ СТАНИ ДЛЯ ЗАГОЛОВКІВ (СХОВАНІ) */

/* Початкові стани для герою (керуються класом .animate) */
.hero-title, .hero-subtitle { opacity: 0; }

/* Нові keyframes для HERO */
@keyframes heroTitleIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroSubIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ctaIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ========================================================================= */
/* 4.1.1 заголовки ефекти HERO СЕКЦІЯ */
/* ========================================================================= */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
  overflow-y: visible;
  max-width: 100vw;
  margin: 0 auto;
  box-sizing: border-box;
  padding-top: 60px; /* Відступ для фіксованого хедера */
}

.hero-background {
  display: none; /* Прибираємо, оскільки фон тепер на body */
}

.hero-content {
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  margin: 0 auto;
  background: transparent;
  pointer-events: auto;
  position: relative;
}


.hero-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #f8f8f6;
  margin-bottom: 60px;
  word-break: break-word;
  opacity: 0;
    transform: translateY(40px) scale(0.96);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 165px;
  word-break: break-word;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Тригер анімацій HERO при завантаженні */
.hero-section.animate .hero-title {
    animation: heroTitleIn 800ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-section.animate .hero-subtitle {
    animation: heroSubIn 700ms cubic-bezier(0.16, 1, 0.3, 1) 150ms forwards;
}



/* ========================================================================= */
/* Адаптивність HERO */
/* ========================================================================= */

/* 4.1 кнопки на каталог SELECTION СЕКЦІЯ */
/* ======================================== */
.selection-section {
    padding: 60px 20px 20px 20px;
    margin-top: -80px;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
}

.selection-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 780px;
    width: 100%;
    margin: 0 auto;
    background: #886b5f0d;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid #ccc0b233;
}

/* CTA-КНОПКИ — ФІОЛЕТОВИЙ + ЗОЛОТИСТИЙ HOVER */
.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    transition: all var(--speed-hover) cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--color-text);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px #ccc0b285;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    min-width: 200px;
    max-width: 260px;
    width: 220px;
    background: var(--color-accent-1); /* Основний акцент */
    text-align: center;
    flex: 1 1 auto;
    cursor: pointer;
    outline: none;
    font-family: var(--font-sans);
}


.cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left var(--speed-hover) ease;
    z-index: 0;
}

.cta-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(204, 192, 178, 0.4); /* #ccc0b2 */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--speed-hover) ease, height var(--speed-hover) ease;
    z-index: 1;
}

.cta-button:hover::before,
.cta-button:focus::before {
    left: 100%;
}

.cta-button:hover::after,
.cta-button:focus::after,
.cta-button:active::after {
    width: 200%;
    height: 200%;
}

.cta-button:hover,
.cta-button:focus,
.cta-button:active {
    background: var(--color-accent-2); /* Акцент 2 при hover */
    color: var(--color-bg);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(204, 192, 178, 0.4);
    border: 1px solid rgba(204, 192, 178, 0.2);
}

/* Активний стан для головних CTA-кнопок */
.cta-button:active {
    transform: translateY(1px);
    box-shadow: none;
    opacity: 0.95;
    transition-duration: 0.1s;
}

/* Заблокований стан кнопок дій */
.cta-button.access-restricted,
.cta-button.disabled,
.favorite-toggle.access-restricted {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto;
    background: #999 !important;
    box-shadow: none !important;
}

.cta-button.access-restricted:hover,
.cta-button.disabled:hover,
.favorite-toggle.access-restricted:hover {
    transform: none !important;
    background: #999 !important;
    color: var(--color-text) !important;
}

/* СПЕЦІАЛЬНІ КЛАСИ ДЛЯ ЧОЛОВІКІВ/ЖІНОК */
.cta-him { 
    background: var(--color-accent-1); 
    color: var(--color-text);
}
.cta-her { 
    background: var(--color-accent-1); 
    color: var(--color-text);
}
.cta-create {
    background: var(--color-accent-1);
    color: var(--color-text);
}

.cta-him:hover { 
    background: var(--color-accent-2); 
    color: var(--color-bg);
}
.cta-her:hover { 
    background: var(--color-accent-2); 
    color: var(--color-bg);
}
.cta-create:hover {
    background: var(--color-accent-2);
    color: var(--color-bg);
}

/* МОБІЛЬНА АДАПТАЦІЯ */
@media (max-width: 480px) {
    .selection-section {
        margin-top: -60px;
        padding: 40px 20px 20px;
    }
    .selection-block {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        border-radius: 14px;
    }
    .cta-button {
        width: 100%;
        max-width: 280px;
        font-size: 1.05rem;
        padding: 16px 20px;
    }
}

/* Анімація появи */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Початковий стан CTA та їх стагерована поява після HERO */
.selection-section .cta-button {
    opacity: 0;
    transform: translateY(20px);
}
.hero-section.animate + .selection-section .cta-button {
    animation: ctaIn 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-section.animate + .selection-section .cta-button:nth-child(1) { animation-delay: 300ms; }
.hero-section.animate + .selection-section .cta-button:nth-child(2) { animation-delay: 380ms; }
.hero-section.animate + .selection-section .cta-button:nth-child(3) { animation-delay: 460ms; }
/* ========================================================================= */
/* 5. МЕДІА-ЗАПИТИ (АДАПТАЦІЯ ДЛЯ ДЕСКТОПА - MOBILE FIRST) */
/* ========================================================================= */
@media (min-width: 768px) {
    /* HERO СЕКЦІЯ */
    .selection-block {
        flex-direction: row; /* Горизонтально на десктопі */
        max-width: 780px;
        margin: 0 auto;
    }
    
    .cta-button {
        width: 220px;
    }
}

@media (max-width: 480px) {
    .selection-block {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        min-width: 0;
        margin: 10px 0;
    }

    .main-header {
        padding: 10px 15px; /* Менше відступів */
    }
}

@media (max-width: 768px) {
    .selection-block {
        flex-direction: column;
        gap: 24px;
        padding: 32px 24px;
    }
    .cta-button {
        width: 100%;
    }
}

/* ======================================== */
/* 6. БЛОК: ТРИ КРОКИ ДО ЗУСТРІЧІ — GLASSMORPHISM */
/* ======================================== */
/* ========================================================================= */
/* БЛОК: ТРИ КРОКИ ДО ЗУСТРІЧІ — САПФІРОВИЙ GLASSMORPHISM (ФІНАЛЬНИЙ) */
/* ========================================================================= */
.steps-section {
    max-width: 1100px;
    margin: 100px auto 50px;
    padding: 0 15px;
    text-align: center;
}

/* Мобільна адаптація для steps-section */
@media (max-width: 768px) {
  .steps-section {
    margin-top: 50px;
    margin-bottom: 0px !important;
  }
}

#how-it-works {
    padding-top: 100px; 
    margin-top: 0px;  
    scroll-margin-top: 100px; 
}


/* ЗАГОЛОВОК СЕКЦІЇ */
.steps-title {
    text-align: center;
    color: #f8f8f6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 80px;
}

.steps-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    /* АКЦЕНТ: Акцент 2 для підкреслення */
    background: var(--color-accent-2);
    margin: 20px auto 0;
    border-radius: 2px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* GLASSMORPHISM КАРТКА — АКЦЕНТНА ГАММА */
.step-card {
    background: #886b5f;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 32px 24px;
    
    /* Бордер з 20% opacity */
    border: 2px solid #ccc0b2; 
    
    /* Тінь/Світіння тепер СРІБЛЯСТЕ */
    box-shadow: 0 8px 32px #ccc0b285;
    transition: all var(--speed-hover) ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Hover фон з 10% opacity */
    background: #886b5f1a;
    opacity: 0;
    transition: opacity var(--speed-hover) ease;
    pointer-events: none;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    /* Hover фон */
    background: #886b5f1a;
    /* Бордер на hover */
    border-color: #ccc0b233;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    /* АКЦЕНТ: Акцент 2 для іконок */
    color: var(--color-accent-2); 
    stroke-width: 1.8;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.15) rotate(5deg);
}

.step-title {
    font-weight: 600;
    color: #f8f8f6;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
}

.step-text {
    font-size: 1.1rem;
    color: #f8f8f6;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

.accent {
    /* АКЦЕНТ: Акцент 2 для виділеного тексту */
    color: var(--color-accent-2);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ======================================== */
/* АДАПТИВНІСТЬ */
/* ======================================== */
@media (max-width: 992px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    
    .step-card {
        padding: 28px 20px;
    }
}

@media (max-width: 576px) {
    
    .step-card {
        padding: 24px 16px;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .steps-container {
        gap: 24px;
    }
    
    .step-card {
        padding: 16px 20px;
    }
}

/* ========================================================================= */
/* 7. АНІМАЦІЯ FADE-IN (СТИЛЬ VDCOM + ПЛАВНІСТЬ) */
/* ========================================================================= */

/* Початковий стан: прихований */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--speed-appear) var(--ease-rhythm),
                transform var(--speed-appear) var(--ease-rhythm);
}

/* Кінцевий стан: видимий */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Затримка для послідовного появи карток */
.step-card[data-delay="100"] { transition-delay: 0.1s; }
.step-card[data-delay="200"] { transition-delay: 0.2s; }

/* Staggered анімаційні затримки для трьох кроків */
.step-card:nth-child(1) { animation-delay: 0.1s; }
.step-card:nth-child(2) { animation-delay: 0.2s; }
.step-card:nth-child(3) { animation-delay: 0.3s; }

/* ========================================================================= */
/* 8. КАТАЛОГ ПРОФІЛІВ */
/* 8. КАТАЛОГ ПРОФІЛІВ */
/* ========================================================================= */
.catalogue-section {
    padding: 30px 20px 80px;
}

/* === Catalogue Header (back + age filter) === */
.catalogue-header {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    background: rgba(136, 107, 95, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(136, 107, 95, 0.25);
    border-radius: 18px;
    margin: 0 16px 24px;
    position: relative;
    z-index: 10;
}

/* Catalog header specific adjustments */
.catalogue-header .back-link {
    pointer-events: auto;
    margin-bottom: 0; /* Override profile page margin */
}

/* Make filter expand to fill remaining space */
.catalogue-header .age-filter-container {
    flex: 1;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .catalogue-header {
        flex-direction: column;
        gap: 12px;
        margin: 0 16px 20px;
    }

    .catalogue-header .back-link {
        width: fit-content;
    }
}

.catalogue-back {
    display: none;
}

/* === КОНТРОЛІ ФІЛЬТРАЦІЇ (Вік + Кнопка заявки) === */
.catalogue-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    background: #886b5f0d;
    backdrop-filter: blur(10px);
    margin: 0 0 30px;
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out 0.1s forwards;
    position: relative;
    z-index: 10;
    border: 1px solid #ccc0b233;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== AGE FILTER (GLASSMORPHISM) ========== */
.age-filter-container {
    width: 100%;
    padding: 0 16px;
}

.age-filter-wrapper {
    background: rgba(204, 192, 178, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(204, 192, 178, 0.15);
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transition: all 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
}

.age-filter-wrapper:hover {
    background: rgba(204, 192, 178, 0.12);
    border-color: rgba(204, 192, 178, 0.25);
}

.age-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.age-filter-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ccc0b2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    white-space: nowrap;
}

.age-filter-value {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 50px;
    flex-shrink: 0;
}

.age-min,
.age-max {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: #ccc0b2;
    transition: color 0.25s ease, transform 0.25s ease;
}

.age-max {
    animation: ageValuePulse 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-separator {
    color: #f8f8f6;
    opacity: 0.7;
    margin: 0 2px;
}

@keyframes ageValuePulse {
    0% {
        transform: scale(1);
        color: #f8f8f6;
    }
    50% {
        transform: scale(1.12);
        color: #886b5f;
    }
    100% {
        transform: scale(1);
        color: #f8f8f6;
    }
}

.age-slider-container {
    position: relative;
    width: 100%;
    flex: 1;
    height: 32px;
    margin: 0;
}

/* Dual range input (both sliders overlay) */
.age-slider-input {
    position: absolute;
    width: 100%;
    height: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
}

/* Allow interaction with thumbs */
.age-slider-input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    pointer-events: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ccc0b2;
    border: 2px solid #a89c94;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(136, 107, 95, 0.2);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.age-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #d4ccc4;
    border-color: #9e9694;
    box-shadow: 0 6px 20px rgba(136, 107, 95, 0.25);
}

.age-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.15);
    cursor: grabbing;
}

.age-slider-input::-moz-range-thumb {
    pointer-events: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ccc0b2;
    border: 2px solid #a89c94;
    cursor: grab;
    box-shadow: 0 4px 12px rgba(136, 107, 95, 0.2);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.age-slider-input::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #d4ccc4;
    border-color: #9e9694;
    box-shadow: 0 6px 20px rgba(136, 107, 95, 0.25);
}

.age-slider-input::-moz-range-thumb:active {
    cursor: grabbing;
}

.age-slider-input::-moz-range-track {
    background: transparent;
    border: none;
}

/* Min slider z-index management */
.age-slider-min {
    z-index: 4;
}

.age-slider-max {
    z-index: 5;
}

/* Background track (inactive areas) */
.age-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    border-radius: 8px;
    background: #ccc0b2;
    opacity: 0.15;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Active track (between min and max) */
.age-slider-track-active {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(to right, #ccc0b2, #a89c94);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(136, 107, 95, 0.15);
}

.age-filter-loading {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
}

.age-filter-loading.active {
    display: flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(136, 107, 95, 0.2);
    border-top-color: #886b5f;
    border-right-color: #886b5f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.age-filter-hint {
    display: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #ccc0b2;
    opacity: 0.8;
    text-align: center;
    margin-top: 4px;
}

.hint-max {
    font-weight: 700;
    color: #f8f8f6;
}

/* ========== MOBILE RESPONSIVE FOR AGE FILTER ========== */
@media (max-width: 768px) {
    .age-filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        gap: 12px;
    }

    .age-filter-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-shrink: unset;
    }

    .age-filter-value {
        width: 100%;
        justify-content: flex-start;
        min-width: unset;
    }

    .age-slider-container {
        width: 100%;
        flex: unset;
    }

    .age-filter-hint {
        display: block;
        width: 100%;
    }

    .age-min,
    .age-max,
    .hint-min,
    .hint-max {
        font-size: 1.2rem;
    }

    /* Mobile-optimized slider thumbs */
    .age-slider-input::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
    }

    .age-slider-input::-moz-range-thumb {
        width: 32px;
        height: 32px;
    }

    .age-slider-container {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .age-filter-wrapper {
        padding: 12px;
    }

    .age-filter-label {
        font-size: 0.9rem;
    }

    .age-min,
    .age-max {
        font-size: 1rem;
    }

    .age-filter-hint {
        font-size: 0.75rem;
    }
}

/* КНОПКА "ПЕРЕЙТИ ДО ЗАЯВКИ" */
#proceed-to-application {
    min-width: 200px;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: center;
    background: #886b5f;
    color: #f8f8f6;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#proceed-to-application:hover:not(.disabled) {
    background: #ccc0b2;
    color: #570009;
    transform: translateY(-2px);
}

#proceed-to-application.disabled {
    opacity: 0.5;
    pointer-events: none;
    background: rgba(136, 107, 95, 0.3) !important;
    cursor: not-allowed;
}

#select-count {
    font-weight: 700;
    color: #f8f8f6;
    margin-left: 6px;
}

/* ПАГІНАЦІЯ — ВЖЕ Є, АЛЕ ОНОВЛЕНО */
.pagination {
    display: flex !important;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
}

.page-btn {
    width: 44px;
    height: 44px;
    background: rgba(136, 107, 95, 0.15);
    color: #f8f8f6;
    border: 1.5px solid rgba(136, 107, 95, 0.4);
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--speed-hover) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Для посилань */
}

/* Для WordPress пагінації (a.page-btn) */
a.page-btn {
    display: inline-flex;
}

.page-btn:hover:not(:disabled),
.page-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.page-btn.active {
    background: #ccc0b2;
    color: #570009;
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(204, 192, 178, 0.5);
}

/* Для WordPress active класу */
.page-btn.active,
a.page-btn.active {
    background: var(--color-accent-1, #886b5f);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: none; /* Вимикаємо клік на активній сторінці */
}

.pagination .current {
    background: var(--color-accent-1, #886b5f);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-dots {
    color: #ccc0b2;
    font-size: 1.1rem;
    padding: 0 4px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .pagination {
        gap: 16px;
        margin: 32px 0 50px;
    }
    .page-btn {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

/* СІТКА ПРОФІЛІВ */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.profile-card {
    background: #886b5f0d;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all var(--speed-hover) ease;
    position: relative;
    border: 1px solid #ccc0b233;
}

.profile-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: #886b5f1a;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.card-header-wrapper {
    position: relative;
    overflow: hidden;
}

.profile-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.profile-card:hover .profile-photo {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .profile-photo {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        height: 200px;
    }
}

.favorite-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.favorite-toggle.is-favorite {
    background: #ccc0b2;
}

.favorite-toggle svg {
    width: 20px;
    height: 20px;
    fill: #886b5f;
    stroke: #886b5f;
    transition: fill 0.3s ease;
}

.favorite-toggle.is-favorite svg {
    fill: #570009;
}

.card-content {
    padding: 16px;
    text-align: center;
}

.profile-name {
    font-family: var(--font-serif);
    color: #f8f8f6;
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-city {
    color: #ccc0b2;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.profile-description {
    color: #f8f8f6;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.view-profile-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #886b5f;
    color: #f8f8f6;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--speed-hover) ease;
}

.view-profile-btn:hover {
    background: #ccc0b2;
    color: #570009;
    transform: translateY(-2px);
}

/* АДАПТИВНІСТЬ */
@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1200px) {
    .profile-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 576px) {
    .catalogue-controls {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .age-filter {
        width: 100%;
    }
    #proceed-to-application {
        width: 100%;
    }
    .pagination {
        gap: 10px;
    }
    .page-btn {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }
}
/* ========================================================================= */
/* 9. СТОРІНКА ДЕТАЛЬНОГО ПРОФІЛЮ (Profile Detail) */
/* ========================================================================= */
/* ===== MODERN 2025-2026 PROFILE REDESIGN ===== */

.profile-detail-section {
    padding: 80px 32px 100px;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible !important;
}

/* Back link styling — unified for both catalog and profile pages */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #f8f8f6;
    text-decoration: none;
    background: rgba(136, 107, 95, 0.25);
    border: 1px solid rgba(136, 107, 95, 0.35);
    box-shadow: 0 6px 16px rgba(87, 0, 9, 0.25);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    margin-bottom: 32px;
}

.back-link:hover {
    background: rgba(87, 0, 9, 0.35);
    box-shadow: 0 8px 20px rgba(87, 0, 9, 0.35);
    transform: translateY(-1px);
}

/* DESKTOP LAYOUT: 40-50% Photo (Sticky) + 50-60% Content (Scroll) */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
    overflow: visible !important;
}

/* LEFT SIDEBAR: Photo Gallery — Clean, no unnecessary background */
.profile-gallery-column {
    position: sticky;
    top: 120px;
}

/* Photo gallery with glass-card class — profile-specific overrides */
.photo-gallery.glass-card {
    padding: 12px;
}

.main-photo-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    border-radius: 20px;
    overflow: hidden;
}

.main-profile-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.main-profile-photo:hover {
    transform: scale(1.02);
}

/* Gallery index badge — minimal */
.gallery-index-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.4);
    color: #F8F8F6;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Horizontal thumbnail gallery — strip below main photo */
.thumbnail-gallery-wrapper {
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}

.thumbnail-gallery {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.thumbnail:hover {
    border-color: #886b5f;
}

.thumbnail.active {
    border-color: #886b5f;
}

/* Focus visibility for keyboard users */
.back-link:focus-visible,
.thumbnail:focus-visible,
#main-profile-photo:focus-visible,
.cta-profile-wrapper .cta-button:focus-visible {
    outline: 2px solid #886b5f;
    outline-offset: 3px;
}

/* RIGHT COLUMN: Profile Content */
.profile-content-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: visible !important;
}

/* Name & Location Block with Button (Variant 2) */
.name-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(136, 107, 95, 0.15);
    position: relative;
}

.name-block-info {
    flex: 1;
    min-width: 0;
}

.profile-name-detail {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: #F8F8F6;
    margin: 0 0 8px;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.profile-city-detail {
    font-family: var(--font-sans);
    font-size: 18px;
    color: #ccc0b2;
    margin: 0;
    font-weight: 400;
}

/* Info Blocks — Modern Left Border Accent (2025-2026 Trend) */
.info-block {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-left: 3px solid #886b5f;
    border-radius: 0;
    padding: 32px 0 32px 16px;
    box-shadow: none;
    margin: 0;
    border-top: none;
    border-bottom: none;
    transition: outline 0.2s ease;
}

.info-block:focus-visible {
    outline: 2px solid #886b5f;
    outline-offset: 4px;
    border-radius: 4px;
}

.info-block:first-of-type {
    border-top: none;
    padding-top: 24px;
}

.block-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    color: #ccc0b2;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    text-transform: none;
    letter-spacing: 0;
}

.block-text {
    font-family: var(--font-sans);
    font-size: 16px;
    color: #F8F8F6;
    line-height: 1.6;
}

.character-text {
    font-style: italic;
    opacity: 0.95;
    margin-top: 8px;
    font-size: 16px;
}

.block-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    font-size: 16px;
    color: #F8F8F6;
    line-height: 1.5;
}

.info-item strong {
    color: #F8F8F6;
    font-weight: 600;
    margin-right: 8px;
}

/* Tags Block */
.tags-wrapper {
    margin-top: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
}

.tag {
    font-family: var(--font-sans);
    font-size: 16px;
    background: transparent;
    color: #F8F8F6;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: color 0.3s ease;
    cursor: default;
    display: inline-block;
}

.tag:hover {
    background: transparent;
    color: #ccc0b2;
    border: none;
}

/* CTA Button - Variant 2: Near Name (Right Side on Desktop) */
.cta-profile-wrapper {
    flex-shrink: 0;
    display: block;
    visibility: visible;
    opacity: 1;
}

.cta-profile-wrapper .cta-button {
    animation: none;
    opacity: 1;
    transform: none;
}

/* Текст кнопки має бути поверх псевдоелементів */
#select-profile-btn {
    position: relative;
    z-index: 10;
}

/* Force base button styles for profile CTA */
#select-profile-btn.cta-button {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    transition: all var(--speed-hover) cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--color-text);
    overflow: hidden;
    box-shadow: 0 6px 20px #ccc0b285;
    backdrop-filter: blur(8px);
    white-space: nowrap;
    min-width: 200px;
    max-width: 260px;
    width: 220px;
    background: var(--color-accent-1);
    text-align: center;
    cursor: pointer;
    outline: none;
    font-family: var(--font-sans);
}

#select-profile-btn.cta-her:hover {
    background: var(--color-accent-2);
    color: var(--color-bg);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(204, 192, 178, 0.4);
}

#select-profile-btn.is-favorite {
    background: #ccc0b2;
    color: #570009;
    cursor: default;
    pointer-events: none;
}

#select-profile-btn.is-favorite:hover {
    background: #ccc0b2;
    transform: none;
}



/* ========================================================================= */
/* 9.1. СТАН ЗАВАНТАЖЕННЯ ТА ПОМИЛОК ПРОФІЛЮ */
/* ========================================================================= */
.profile-loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text);
    font-size: 1.2rem;
}

.profile-not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text);
}

.profile-not-found h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

.profile-not-found p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--color-accent-2);
}

/* ========================================================================= */
/* 9.2. СПОВІЩЕННЯ (ЗАМІСТЬ ALERT) */
/* ========================================================================= */
.profile-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    background: var(--color-bg);
    border: 2px solid var(--color-accent-1);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 3000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 320px;
}

.profile-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.profile-notification-success {
    border-color: var(--color-accent-2);
    background: rgba(204, 192, 178, 0.1);
}

.profile-notification-error {
    border-color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
}

.profile-notification-info {
    border-color: var(--color-accent-1);
    background: rgba(136, 107, 95, 0.1);
}

@media (max-width: 768px) {
    .profile-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .profile-notification.show {
        transform: translateY(0);
    }
}


/* ========================================================================= */

/* ========================================================================= */
/* 11. БЛОК "ПРО НАС" - ЧИСТИЙ + ТРЕНДОВИЙ 2025 */
/* ========================================================================= */
/* ======================================== */
/* ======================================== */
/* 13. ОРГАНІЗАТОР — ФІНАЛЬНИЙ СТРИМАНИЙ BLUEMORPHISM "РУБІН" */
/* ======================================== */
.organizer-section {
    max-width: 1000px;
    margin: 80px auto 80px auto; 
    padding: 0 15px;
}

/* Мобільна адаптація для organizer-section */
@media (max-width: 768px) {
  .organizer-section {
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* ======================================== */
/* НОВИЙ ЗАГОЛОВОК СЕКЦІЇ "ОРГАНІЗАТОР" (ЗОЛОТИЙ ГРАДІЄНТ) */
/* ======================================== */
.organizer-title {
    font-family: var(--font-serif); 
    font-weight: 700;
    text-align: center;
    margin: 0 auto 40px auto; 
    max-width: 900px;
    
    /* ЗМІНЕНО: СУЦІЛЬНИЙ КОЛІР замість градієнта для контрасту */
    color: #f8f8f6; /* Головний акцент */
    
    /* Видаляємо background-clip та text-fill-color, оскільки колір суцільний */
    
    /* НОВЕ: ПОСИЛЕНА ТІНЬ для максимальної читабельності на бордовому фоні */

    
    display: block; 
}

.organizer-container {
    background: #886b5f0d;
    
    /* GLASSMORPHISM */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    border-radius: 32px;
    padding: 68px 56px;
  

    position: relative;
    overflow: hidden;
    margin-top: 0; 
}

.organizer-container::before {
    content: '';
    position: absolute;
    top: -60%; left: -60%;
    width: 220%; height: 220%;
    background: radial-gradient(circle, #886b5f1a 0%, transparent 65%); 
    animation: velvet-shine 10s ease-in-out infinite;
    pointer-events: none;
}

.organizer-container:hover {
    background: #886b5f1a;
}


@keyframes velvet-shine {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(12%, 12%) rotate(6deg); }
}

/* HEADER */
.organizer-header {
    display: flex;
    align-items: center;
    gap: 44px;
    margin-bottom: 76px;
    flex-wrap: wrap;
    justify-content: center;
}

.organizer-photo-wrapper {
    flex-shrink: 0;
}

.organizer-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 30px;
    /* ОБІДОК ФОТО - ГОЛОВНИЙ АКЦЕНТ */
    border: 2.5px solid #ccc0b2; 
    box-shadow: 0 12px 36px rgba(136, 107, 95, 0.35); 
    transition: all 0.5s ease;
}

.organizer-photo:hover {
    transform: scale(1.08) translateY(-6px);
    box-shadow: 0 24px 56px rgba(136, 107, 95, 0.45);
}

.organizer-info {
    text-align: left;
    flex: 1;
    min-width: 300px;
}

/* ЗМІНА ТЕГУ: БУВ h2, СТАВ p, АЛЕ СТИЛІ ЗБЕРЕЖЕНІ */
.organizer-name {
    font-family: var(--font-serif);
    font-size: 2rem; 
    font-weight: 700;
    color: #f8f8f6;
    margin: 0 0 14px 0; 
    text-align: left; 
}

.organizer-slogan {
    font-size: 1.3rem;
    /* АКЦЕНТНИЙ КОЛІР - ГОЛОВНИЙ АКЦЕНТ */
    color: #f8f8f6; 
    margin: 0;
    font-weight: 300;
    font-style: italic;
    line-height: 1.65;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* ПОСЛУГИ — ПРЕМІУМ SPACING */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px; 
    margin-top: 36px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 12px;
    background: #886b5f;
    border-radius: 12px;
    border: 1px solid #ccc0b2;
    box-shadow:0 12px 30px #ccc0b233 ; 
}

.service-item:hover {
    transform: translateX(14px);
    background: #886b5f1a;
}

.service-icon {
    /* АКЦЕНТНИЙ КОЛІР - ГОЛОВНИЙ АКЦЕНТ */
    color: #ccc0b2; 
    font-size: 1.4rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 3px;
}

.service-title {
    /* КОНТРАСТ: СВІТЛИЙ ТЕКСТ НА ТЕМНОМУ ФОНІ */
    color: var(--color-text); 
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
}

/* ======================================== */
/* АДАПТИВНІСТЬ */
/* ======================================== */
@media (max-width: 768px) {
    
    .organizer-title {
        margin-bottom: 30px;
    }
    
    .organizer-header {
        flex-direction: column;
        text-align: center;
        gap: 36px;
        margin-bottom: 60px;
    }
    
    .organizer-info {
        text-align: center;
    }
    
    .organizer-name {
        font-size: 1.7rem;
        margin-bottom: 28px;
    }
    
    .organizer-photo {
        width: 140px;
        height: 140px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .service-item {
        padding: 12px 16px;
    }
    
    .service-icon {
        font-size: 1.4rem;
    }
    
    
    .organizer-container {
        padding: 52px 36px;
        margin-top: 60px !important;
        margin-bottom: 60px;
        border-radius: 28px;
    }
    
    .organizer-section {
        margin-bottom: 30px !important;
    }
    
    .services-grid {
        margin-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .organizer-title {
        margin-bottom: 20px;
    }
    
    .organizer-name {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }
    
    .organizer-photo {
        width: 130px;
        height: 130px;
    }
    
    .organizer-container {
        margin-top: 40px !important;
        margin-bottom: 40px;
    }
    
    .organizer-section {
        margin-bottom: 20px !important;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .services-grid {
        gap: 36px;
        margin-top: 20px !important;
    }
    
    .steps-section {
        margin-bottom: 0px !important;
        margin-top: 50px !important;
    }
        }


/* ======================================== */
/* 3.1. FAQ — Часті питання */
/* ======================================== */
/* ФІКС: FAQ ВИДИМИЙ НАЗАВЖДИ */
/* ======================================== */
/* ========================================================================= */
/* БЛОК: ЧАСТІ ПИТАННЯ (АКЦЕНТНИЙ GLASSMORPHISM) */
/* ========================================================================= */
/* ФІКС: FAQ ВИДИМИЙ НАЗАВЖДИ */
.faq-section {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    max-width: 900px;
    margin: 60px auto 80px; /* зменшено margin-bottom для десктопу */
    padding: 0 20px;
    text-align: center;
}

.faq-section h2 {
    /* Для заголовка секції використовуємо узгоджений розмір 2.8rem (якщо це H2) */
    font-size: 2.8rem; 
    margin-bottom: 40px;
    color: #f8f8f6;
   
}

/* FAQ-ЕЛЕМЕНТ: АКЦЕНТНА ГАММА */
.faq-item {
    /* ЗМІНЕНО: Фон з 5% opacity */
    background: #886b5f;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
    /* Бордер з 20% opacity */
    border: 1px solid #ccc0b2;
}

/* Staggered анімаційні затримки для FAQ (продовжити за потреби) */
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.faq-question {
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    line-height: 1.65;
    text-align: left;
    color: #f8f8f6;
    position: relative;
    transition: all var(--speed-hover) ease;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* ЗМІНЕНО: Активний елемент стає ГОЛОВНИМ АКЦЕНТОМ */
.faq-item.active .faq-question {
    color: #f8f8f6;
    
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.6;
    transition: all var(--speed-hover) ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    /* ЗМІНЕНО: Прозорий акцентний фон для відповіді */
    background: rgba(136, 107, 95, 0.15); 
}

/* ЕФЕКТ HOVER */
.faq-item:hover {
    /* ЗМІНЕНО: Hover фон з 10% opacity */
    background: #886b5f1a;
}

.faq-question:hover {
    /* ЗМІНЕНО: Hover фон з 10% opacity */
    background: #886b5f1a;
}

/* Мобільна адаптація для FAQ */
@media (max-width: 768px) {
  .faq-section {
    margin-top: 30px !important;
    margin-bottom: 50px !important;
  }
  
  .faq-section h2 {
    margin-bottom: 50px;
    font-size: 1.7rem !important;
  }
  
  .faq-item {
    margin-bottom: 20px;
  }
  
  .faq-question {
    padding: 16px 20px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    margin-top: 20px !important;
    margin-bottom: 50px !important;
  }
  
  .faq-section h2 {
    margin-bottom: 50px;
    font-size: 1.9rem !important;
  }
  
  .faq-item {
    margin-bottom: 20px;
  }
  
  .faq-question {
    padding: 14px 18px;
    font-size: 1.1rem;
  }
}

/* ========================================================================= */
/* 14. ФУТЕР 2025 - АКЦЕНТНА ГАММА */
/* ========================================================================= */

/* Minimal footer for profile pages */
.site-footer--minimal {
    background: transparent;
    color: var(--color-text);
    padding: 40px 20px 20px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(200, 200, 200, 0.1);
}

.site-footer--minimal .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.site-footer--minimal .footer-legal {
    padding-top: 0;
    border-top: none;
}

.site-footer--minimal .footer-legal p {
    font-size: 0.65rem;
    color: #888888;
    margin: 0;
    opacity: 1;
}

/* Full footer for homepage and other pages */
.footer-section {
    background: linear-gradient(135deg, rgba(87, 0, 9, 0.95) 0%, rgba(87, 0, 9, 0.85) 50%, rgba(87, 0, 9, 0.95) 100%);
    color: var(--color-text);
    padding: 40px 20px 48px; /* зменшено padding-top для десктопу */
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 192, 178, 0.5), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.footer-brand {
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-text-light, #ffffff);
    margin: 0 0 16px 0;
    line-height: 1.1;
    background: #f8f8f6;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.4;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    text-decoration: none;
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(136, 107, 95, 0.15);
    background: rgba(248, 248, 246, 0.91);
    transition: all var(--speed-hover) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(204, 192, 178, 0.2), transparent);
    transition: left 0.6s;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    border-color: rgba(204, 192, 178, 0.6);
    background: rgba(204, 192, 178, 0.15);
    box-shadow:
        0 20px 40px rgba(204, 192, 178, 0.25),
        0 0 0 1px rgba(204, 192, 178, 0.6);
}

.social-btn.instagram:hover,
.social-btn.telegram:hover {
    box-shadow:
        0 20px 40px rgba(136, 107, 95, 0.35),
        0 0 0 1px rgba(136, 107, 95, 0.6);
    border-color: rgba(136, 107, 95, 0.6);
    background: rgba(136, 107, 95, 0.15);
}

.social-btn.tiktok:hover {
    box-shadow:
        0 20px 40px rgba(204, 192, 178, 0.35),
        0 0 0 1px rgba(204, 192, 178, 0.6);
    border-color: rgba(204, 192, 178, 0.6);
    background: rgba(204, 192, 178, 0.15);
}

.social-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.footer-legal {
    padding-top: 32px;
    border-top: none;
    text-align: center;
}

.footer-legal p {
    margin: 0;
    opacity: 0.5;
    font-size: 12px;
    line-height: 1.5;
    color: #ccc0b2;
    letter-spacing: 0;
}

.footer-legal a {
    color: #ccc0b2;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    color: #ccc0b2;
    text-shadow: none;
    opacity: 0.8;
}

/* АДАПТИВНІСТЬ: ОПТИМІЗОВАНО ДЛЯ МОБІЛЬНОГО (МАКСИМАЛЬНА КОМПАКТНІСТЬ) */
/* ========================================================================= */

/* Minimal footer responsive styles */
@media (max-width: 768px) {
    .site-footer--minimal {
        padding: 30px 20px 16px;
        border-top: 1px solid rgba(200, 200, 200, 0.1);
    }

    .site-footer--minimal .footer-legal p {
        font-size: 0.6rem;
        color: #999999;
    }
}

/* Full footer responsive styles */
@media (max-width: 768px) {
    
  .footer-section {
    margin-top: 40px !important; /* збільшуємо відступ від FAQ */
  }

  .footer-content {
    padding: 24px 16px 28px; /* зменшуємо padding-top, збільшуємо padding-bottom для балансу */
    gap: 24px; /* більше відстані між блоками */
    text-align: center;
  }

  .footer-brand {
    margin-bottom: 12px; /* трохи більше простору після слогану */
  }

  .footer-logo {
    font-size: 26px; /* помітний, але не великий */
    margin-bottom: 4px;
  }

  .footer-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 8px;
    margin-bottom: 24px; /* збільшуємо відстань від логотипа до іконок */
  }

  .footer-socials a {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .footer-bottom, .copyright, .footer-links {
    font-size: 14px;
    line-height: 1.6;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .footer-legal {
    margin-top: 0;
  }

  .footer-legal p, .footer-legal a {
    font-size: 1rem;
  }
}


@media (max-width: 480px) {
  .footer-section {
    margin-top: 40px !important;
  }
  
  .footer-content {
    padding: 20px 12px 24px;
    gap: 20px;
  }

  .footer-socials a {
    width: 44px;
    height: 44px;
  }

  .footer-logo {
    font-size: 24px;
  }

  .footer-socials {
    gap: 14px;
    margin-bottom: 20px;
  }

  .footer-legal p, .footer-legal a {
    font-size: 1rem;
  }
}

/* ========================================================================= */
/* ПІДТРИМКА КОРИСТУВАЧІВ З ОБМЕЖЕНИМ РУХОМ */
/* ========================================================================= */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-delay: -1ms !important;
    }

    /* Головні елементи мають бути одразу видимі */
    .hero-logo-intro, h1, h2, .selection-block, .selection-section .cta-button {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================================================= */
/* НОВИЙ ЕЛЕМЕНТ: ІКОНКА СЕРЦЕЧКА ДЛЯ ОБРАНИХ ПРОФІЛІВ В ХЕДЕРІ */
/* ========================================================================= */
.selection-heart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all var(--speed-hover) ease;
    position: relative;
    font-family: var(--font-sans);
    color: var(--color-text);
    margin-right: 12px;
    z-index: 1001;
}

.selection-heart-btn:hover {
    background: rgba(136, 107, 95, 0.2);
}

.heart-icon {
    width: 24px;
    height: 24px;
    fill: var(--color-accent-1);
    transition: all var(--speed-hover) ease;
    flex-shrink: 0;
}

.selection-heart-btn:hover .heart-icon {
    fill: var(--color-accent-2);
    transform: scale(1.1);
}

.heart-text {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.selection-count {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-accent-2);
}

/* Бейдж з лічильником (приховано за замовчуванням, активується на мобільних) */
.selection-heart-btn::after {
    content: '';
    display: none;
    position: absolute;
}

/* Анімація пульсації для сердечка */
@keyframes heart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.selection-heart-btn.heart-pulse .heart-icon {
    animation: heart-pulse 1.5s ease-in-out infinite;
}

/* Клас для активації пульсації коли є вибір */
.selection-heart-btn.has-selection .heart-icon {
    animation: heart-pulse 1.5s ease-in-out infinite;
}

/* МОБІЛЬНА ВЕРСІЯ (≤ 768px) */
@media (max-width: 768px) {
    .selection-heart-btn {
        padding: 8px;
        margin-right: 8px;
        margin-left: auto;
        gap: 0;
        order: 1;
        position: relative;
    }
    
    .hamburger-btn {
        order: 2;
        margin-left: 0;
        margin-right: 2px;
    }
    
    .heart-icon {
        width: 28px;
        height: 28px;
    }
    
    .heart-text {
        display: none;
    }
    
    .selection-count {
        display: none;
    }
    
    /* Бейдж для мобільної версії - круглий з лічильником */
    .selection-heart-btn::after {
        content: attr(data-count);
        position: absolute;
        top: -2px;
        right: -2px;
        background: var(--color-accent-2);
        color: var(--color-bg);
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 700;
        opacity: 0;
        transform: scale(0);
        transition: all var(--speed-hover) ease;
        z-index: 10;
    }
    
    /* Показуємо бейдж коли є вибір */
    .selection-heart-btn[data-count]:not([data-count="0"])::after {
        opacity: 1;
        transform: scale(1);
    }
    
    /* Пульсація активна на мобільному коли є вибір */
    .selection-heart-btn[data-count]:not([data-count="0"]) .heart-icon {
        animation: heart-pulse 1.5s ease-in-out infinite;
    }
}

/* ДЕСКТОПНА ВЕРСІЯ (≥ 769px) */
@media (min-width: 769px) {
    .selection-heart-btn {
        padding: 8px 16px;
        margin-right: 0;
        gap: 6px;
    }
    
    .heart-icon {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }
    
    .heart-text {
        display: inline;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .selection-count {
        display: inline;
        font-weight: 700;
        font-size: 0.95rem;
        color: var(--color-accent-2);
    }
    
    /* Прибираємо бейдж на десктопі */
    .selection-heart-btn::after {
        display: none;
    }
    
    /* Мінімальна або відсутня пульсація на десктопі */
    .selection-heart-btn[data-count]:not([data-count="0"]) .heart-icon {
        animation: none;
    }
    
    /* Дозволяємо лише дуже легкий ефект при hover на десктопі */
    .selection-heart-btn:hover .heart-icon {
        transform: scale(1.05);
    }
}

/* ========================================================================= */
/* МОДАЛЬНЕ ВІКНО ДЛЯ ОБРАНИХ ПРОФІЛІВ */
/* ========================================================================= */
.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

.selection-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.selection-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.selection-modal__content {
    position: relative;
    background: var(--color-bg);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(204, 192, 178, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 2001;
}

.selection-modal.is-open .selection-modal__content {
    transform: scale(1) translateY(0);
}

.selection-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(204, 192, 178, 0.2);
}

.selection-modal__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-text);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#modal-select-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-accent);
    white-space: nowrap;
    margin-left: 8px;
    display: inline-block;
}

.selection-modal__close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
    transition: all var(--speed-hover) ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selection-modal__close:hover {
    background: rgba(136, 107, 95, 0.2);
    transform: rotate(90deg);
}

.selection-modal__close svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.selection-modal__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
}

.selected-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.selected-profile-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(136, 107, 95, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(204, 192, 178, 0.2);
    transition: all var(--speed-hover) ease;
}

.selected-profile-item:hover {
    background: rgba(136, 107, 95, 0.2);
    transform: translateX(4px);
}

.selected-profile-item__photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.selected-profile-item__info {
    flex: 1;
}

.selected-profile-item__name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.selected-profile-item__city {
    font-size: 0.9rem;
    color: var(--color-accent-2);
    margin: 0;
}

.selected-profile-item__remove {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text);
    opacity: 0.7;
    transition: all var(--speed-hover) ease;
    border-radius: 8px;
}

.selected-profile-item__remove:hover {
    opacity: 1;
    background: rgba(136, 107, 95, 0.2);
    transform: scale(1.1);
}

.selected-profile-item__remove svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.selection-modal__footer {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(204, 192, 178, 0.2);
    display: flex;
    justify-content: center;
}

#modal-proceed-btn {
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

#modal-proceed-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* АДАПТИВНІСТЬ МОДАЛЬНОГО ВІКНА */
@media (max-width: 768px) {
    .selection-modal__content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px 16px 0 0;
        margin-top: auto;
        margin-bottom: 0;
    }
    
    .selection-modal__header {
        padding: 20px 20px 16px;
    }
    
    .selection-modal__title {
        font-size: 1.5rem;
    }
    
    .selection-modal__body {
        padding: 20px;
    }
    
    .selected-profile-item {
        padding: 12px;
    }
    
    .selected-profile-item__photo {
        width: 60px;
        height: 60px;
    }
    
    .selected-profile-item__name {
        font-size: 1rem;
    }
    
    .selection-modal__footer {
        padding: 16px 20px 20px;
    }
}

@media (max-width: 480px) {
    .selection-modal__content {
        width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
    }
    
    .selected-profile-item {
        flex-wrap: wrap;
    }
    
    .selected-profile-item__remove {
        margin-left: auto;
    }
}

/* Порожній стан модального вікна */
.selected-profiles-list:empty::before {
    content: "У вас поки немає обраних профілів";
    display: block;
    text-align: center;
    color: var(--color-accent-2);
    padding: 40px 20px;
    font-style: italic;
}

/* ========================================================================= */
/* 10. СТОРІНКА РЕДАГУВАННЯ ПРОФІЛЮ (Profile Edit) */
/* ========================================================================= */
/* ========================================================== */
/* PROFILE FORM NOTIFICATIONS                                */
/* ========================================================== */
.profile-form-notification {
    padding: 16px 20px;
    margin-bottom: 30px;
    border-radius: var(--border-radius-soft);
    font-size: 1rem;
    line-height: 1.5;
    animation: slideDown 0.3s var(--ease-rhythm);
}

.profile-form-notification p {
    margin: 0;
    font-size: 1rem;
}

.profile-form-notification.notification-info {
    background-color: rgba(100, 149, 237, 0.15);
    border-left: 4px solid #6495ed;
    color: #e8f0ff;
}

.profile-form-notification.notification-warning {
    background-color: rgba(255, 165, 0, 0.15);
    border-left: 4px solid #ffa500;
    color: #ffe8cc;
}

/* ----------------------------
   Sticky profile-action prompt
   ---------------------------- */
.t2l-profile-action {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 1100px;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    border-radius: 8px;
    display: none; /* shown by JS */
}
.t2l-profile-action__inner {
    background: #886b5f; /* бордовий акцент */
    color: #F8F8F6; /* текст */
    padding: 14px 18px; 
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}
.t2l-profile-action__message {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    flex: 1 1 auto;
}
.t2l-profile-action__actions { 
    display: flex;
    align-items: center;
    gap: 8px;
}
.t2l-profile-action__start {
    display: inline-block;
    padding: 8px 14px;
    background: #F8F8F6;
    color: #886b5f;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}
.t2l-profile-action__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #F8F8F6;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}
.t2l-profile-action.show { display: block; }

/* small screens */
@media (max-width: 640px) {
    .t2l-profile-action { top: 12px; width: calc(100% - 24px); }
    .t2l-profile-action__message { font-size: 14px; }
    .t2l-profile-action__start { padding: 8px 12px; }
}

/* end of profile-action styles */
.profile-form-notification.notification-success {
    background-color: rgba(144, 238, 144, 0.15);
    border-left: 4px solid #90ee90;
    color: #e8ffe8;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-edit-section {
    padding: 80px 20px 120px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-edit-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text);
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-button {
    background: var(--color-accent-1);
    color: var(--color-text);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-button:hover:not(:disabled) {
    background: var(--color-accent-2);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.progress-container {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(204, 192, 178, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar::before {
    content: '';
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-1), var(--color-accent-2));
    width: var(--progress-width, 20%);
    transition: width 0.3s ease;
    border-radius: 5px;
}

.progress-text {
    color: var(--color-text);
    font-size: 1rem;
}

/* Кроковий режим форми */
.form-step {
    display: none;
}

.form-step:first-of-type {
    display: block;
}

.form-nav {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    padding-top: 10px;
    padding-bottom: 4px;
    background: linear-gradient(180deg, rgba(87, 0, 9, 0) 0%, rgba(87, 0, 9, 0.85) 40%, rgba(87, 0, 9, 0.95) 100%);
    z-index: 5;
    margin-top: auto;
}

.form-nav__btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-accent-1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-nav__btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
    background: #a07b6b;
}

.form-nav__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.form-nav__btn--ghost {
    background: rgba(136, 107, 95, 0.25);
    color: var(--color-text);
    border: 1px solid rgba(204, 192, 178, 0.4);
}

.form-nav__btn--primary {
    background: var(--color-accent-2);
    color: var(--color-bg);
}

.form-fieldset {
    background: rgba(136, 107, 95, 0.8);
    background: rgba(136, 107, 95, 0.8) blur(14px); /* Fallback */
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 42px 30px 30px;
    margin-bottom: 40px;
    border: 2px solid rgba(204, 192, 178, 0.3);
    box-shadow: 0 8px 32px rgba(204, 192, 178, 0.4);
    position: relative;
}

.form-fieldset:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--color-accent-2);
}

.last-fieldset {
    margin-bottom: 40px;
}

.form-legend {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8f8f6;;
    display: inline-flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 6px 12px 10px;
    margin-top: -18px;
    background: rgba(136, 107, 95, 0.92);
    border-radius: 14px;
    border: 1px solid rgba(204, 192, 178, 0.35);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(204, 192, 178, 0.3);
    border-radius: 12px;
    background: #a07b6b;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(248, 248, 246, 0.8);
}

.form-group select option {
    color: var(--color-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #886b5f;
    box-shadow: 0 0 0 2px rgba(136, 107, 95, 0.5);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    line-height: 1.4;
    font-size: 1rem;
}

.checkbox-group label a {
    color: var(--color-accent-2);
    text-decoration: underline;
}

/* Кнопка відправки у формах (не впливає на hero CTA) */
.profile-edit-section .cta-button.cta-her {
    background: #886b5f;
    color: #f8f8f6;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background var(--speed-hover);
    display: block;
    margin: 0 auto;
}

.profile-edit-section .cta-button.cta-her:hover {
    background: #a07b6b;
}

/* Особлива кнопка для останнього кроку у формах */
.profile-edit-section .tab-content[data-step="5"] .cta-button.cta-her {
    background: var(--color-accent-2);
    font-weight: bold;
}

.profile-edit-section .tab-content[data-step="5"] .cta-button.cta-her:hover {
    background: #a07b6b;
}

/* Адаптивність */
@media (max-width: 768px) {
    .profile-edit-section {
        padding: 80px 15px 60px;
    }
    
    .form-fieldset {
        padding: 36px 20px 24px;
        margin-bottom: 40px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 90px;
    }
    
    .profile-edit-section {
        padding: 60px 12px 60px;
    }
    
    .form-fieldset {
        padding: 32px 20px 22px;
        margin-bottom: 30px;
    }
    
    .form-legend {
        font-size: 1.3rem;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }

    .form-nav {
        position: sticky;
        bottom: 0;
        padding: 8px 12px 12px;
        gap: 6px;
        backdrop-filter: blur(12px);
        margin-top: 8px;
    }
    
    .form-nav__btn {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        max-width: 300px;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-button {
        width: 100%;
    }
}

@media (max-width: 320px) {
    .tab-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .form-fieldset {
        padding: 20px;
    }
}

/* Анімація появи полів */
.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.animate-fade-up:nth-child(1) { animation-delay: 0.1s; }
.animate-fade-up:nth-child(2) { animation-delay: 0.2s; }
.animate-fade-up:nth-child(3) { animation-delay: 0.3s; }
.animate-fade-up:nth-child(4) { animation-delay: 0.4s; }
.animate-fade-up:nth-child(5) { animation-delay: 0.5s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Прев'ю фото */
.photo-preview {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    text-align: center;
}

.photo-preview img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Обгортка для кожної мініатюри з кнопкою видалення */
.photo-thumb {
    position: relative;
    display: inline-block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.photo-thumb img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* Кнопка видалення (хрестик) */
.photo-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(87, 0, 9, 0.92);
    color: #f8f8f6;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
    z-index: 10;
}

.photo-remove:hover {
    background: #886b5f;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.photo-remove:active {
    transform: scale(1.05) rotate(90deg);
}

/* Повідомлення після submit */
.success-message {
  background: #886b5f;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  font-size: 1.2rem;
  margin: 40px auto;
  max-width: 600px;
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ============================ */
/* Profile Detail & Gallery UI  */
/* ============================ */
/* NOTE: Main profile styles moved to lines 1700-1900 for new modern redesign */
/* These old styles are kept for backwards compatibility but are overridden by newer rules */

/* Generic glass-card (kept for other components) */
.glass-card {
    background: rgba(136, 107, 95, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(204, 192, 178, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(87, 0, 9, 0.08);
}

/* OLD STYLES BELOW - KEPT FOR REFERENCE BUT OVERRIDDEN BY NEW RULES AT LINES 1730-1900 */
/* (Gallery styles consolidated to lines 1788-1820 with FLEX horizontal scroll) */

.name-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* MOBILE RESPONSIVENESS: Profile Page (Modern 2025-2026) */
@media (max-width: 991px) {
    .profile-detail-section {
        padding: 60px 16px 60px;
    }
    
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-gallery-column {
        position: static;
    }
    
    .main-profile-photo {
        aspect-ratio: 3 / 4;
        border-radius: 20px;
        max-width: 520px;
        margin: 0 auto;
    }
    
    .profile-name-detail {
        font-size: 38px;
    }
    
    .profile-city-detail {
        font-size: 16px;
    }
    
    .block-title {
        font-size: 16px;
    }
    
    .block-text {
        font-size: 16px;
    }
    

    
    .thumbnail-gallery {
        gap: 8px;
    }
    
    .thumbnail {
        width: 80px;
        height: 80px;
    }
    
    /* Mobile: Name block stacks vertically */
    .name-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .cta-profile-wrapper {
        width: 100%;
        order: 10;
        display: block;
    }
    
    .cta-profile-wrapper .cta-button {
        width: 100%;
        max-width: none;
        padding: 16px 32px;
        display: flex;
    }
    
    .profile-content-column {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .profile-detail-section {
        padding: 56px 12px 56px;
    }
    
    .back-link {
        margin-bottom: 24px;
        font-size: 0.9rem;
        padding: 10px 14px;
        width: 100%;
        justify-content: center;
        white-space: normal;
        word-break: break-word;
    }
    
    .profile-name-detail {
        font-size: 34px;
    }
    
    .profile-city-detail {
        font-size: 16px;
    }
    
    .block-title {
        font-size: 16px;
    }
    
    .info-item {
        font-size: 16px;
    }
    
    .tag {
        font-size: 16px;
        padding: 0;
    }
    
    #select-profile-btn.cta-button {
        width: 100%;
        max-width: 100%;
        min-width: auto;
        padding: 14px 16px;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .back-link {
        font-size: 0.8rem;
        padding: 8px 10px;
        gap: 4px;
    }
}

@media (max-width: 360px) {
    #select-profile-btn.cta-button {
        width: 100%;
        max-width: none;
        min-width: auto;
        padding: 12px 8px;
        font-size: 0.95rem;
    }
}


/* Modal Gallery */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}
.gallery-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}
.gallery-content {
    position: relative;
    width: min(900px, 92vw);
    margin: 8vh auto;
    background: rgba(24,24,24,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
    padding: 18px 54px;
}
.gallery-stage {
    position: relative;
}
.gallery-image {
    display: block;
    width: 100%;
    height: 70vh;
    max-height: 720px;
    object-fit: contain;
    border-radius: 10px;
}
.gallery-index {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0,0,0,0.45);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.9rem;
}
.gallery-close,
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 8px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(122, 31, 43, 0.9);
    color: var(--color-text-white);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.gallery-close { right: 8px; font-size: 22px; }
.gallery-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.gallery-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover { transform: scale(1.05); }

/* Age Filter Mobile Optimization */
@media (max-width: 768px) {
    .age-slider-input {
        height: 10px;
    }
    
    .age-slider-input::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .age-slider-input::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }
    
    .age-slider-min,
    .age-slider-max {
        touch-action: manipulation;
    }
    
    .age-filter-wrapper {
        padding: 16px 12px;
    }
}

@media (max-width: 480px) {
    .age-slider-input {
        height: 12px;
    }
    
    .age-slider-input::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
        box-shadow: 0 2px 8px rgba(136, 107, 95, 0.3);
    }
    
    .age-slider-input::-moz-range-thumb {
        width: 32px;
        height: 32px;
        box-shadow: 0 2px 8px rgba(136, 107, 95, 0.3);
    }
    
    .age-filter-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .age-filter-wrapper {
        padding: 12px 8px;
    }
}

@media (max-width: 768px) {
    .gallery-content { padding: 14px 44px; margin: 4vh auto; }
    .gallery-image { height: 60vh; }
}

@media (max-width: 480px) {
    .gallery-content { 
        padding: 12px 32px; 
        margin: 2vh auto;
        width: 95vw;
    }
    .gallery-image { 
        height: 50vh;
        max-height: 450px;
    }
    .gallery-close,
    .gallery-prev,
    .gallery-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .gallery-close { right: 6px; top: 6px; }
    .gallery-prev { left: 6px; }
    .gallery-next { right: 6px; }
}
















































