/* =========================================================
   CHATS — полный CSS
   Порядок: переменные → каркас → левая колонка → правая колонка
            → сообщения → input → скроллбары → утилиты
   ========================================================= */

/* ---------- Переменные ---------- */
:root {
    --chat-bg:              #0f0a1a;
    --chat-side-bg:         #211a35;
    --chat-side-border:     #3c305d;
    --chat-side-hover:      #3c305d;

    --bubble-in-bg:         #2b2b38;
    --bubble-in-text:       #e8e8ee;
    --bubble-out-bg:        #6c5ce7;
    --bubble-out-hover:     #7d6df0;
    --bubble-out-text:      #ffffff;

    --text-muted:           #8b8b9b;
    --text-soft:            #b8b8c8;
    --text-strong:          #e8e8ee;

    --tick-read:            #4fc3f7;
    --tick-sent:            rgba(255, 255, 255, .55);

    --header-bg:            rgba(20, 14, 34, .85);
    --input-bar-bg:         rgba(20, 14, 34, .90);
    --input-bg:             #2b2b38;

    --radius-bubble:        16px;
    --radius-bubble-tail:   4px;
    --radius-input:         22px;

    /* сколько «съедает» шапка MoonShine над чатом */
    --chat-viewport-offset: 120px;
}

/* =========================================================
   1. КАРКАС ГРИДА
   ========================================================= */

.chats-session {
    height: calc(95dvh - var(--chat-viewport-offset));
    overflow: hidden;
    background-image: url('../../public/images/pattern.svg');
    background-size: 350px;
    background-repeat: repeat;
    background-blend-mode: soft-light;
    background-color: var(--chat-bg);
}

.grid-no-gap {
    gap: 0 !important;
}

.layout-page {
    padding-inline: unset;
}

.breadcrumbs,
.tabs-list,
.layout-navigation {
    padding-inline: var(--ms-layout-page-padding-x, calc(var(--spacing) * 4));
}

.text-xl{
    display: none;
}

.tabs-content {
    margin-top: 0;
    min-height: 0;
}

/* =========================================================
   2. ЛЕВАЯ КОЛОНКА — список чатов
   ========================================================= */

.block-client {
    background-color: var(--chat-side-bg);
    border-right: 1px solid var(--chat-side-border);

    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* строка поиска */
.search-block {
    margin: 5px 2px;
    flex-shrink: 0;
}

.search-wrapper {
    width: 99% !important;
}

/* скролл-список карточек */
.h-70 {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* карточка чата */
.card-user {
    padding: 5px;
    border-radius: 3px;
    transition: background-color .15s;
}

.card-user:hover {
    cursor: pointer;
    background-color: var(--chat-side-hover);
}

.search-card-user {
    padding: 5px;
    border-radius: 3px;
    transition: background-color .15s;
}

.search-card-user:hover {
    cursor: pointer;
    background-color: var(--chat-side-hover);
}

/* аватар */
.avatar-icon {
    width: 50px;
    height: 50px;
}

.w-100 {
    width: 100%;
}

/* =========================================================
   3. ПРАВАЯ КОЛОНКА — экран чата
   ========================================================= */

.active-chats {
    position: relative;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(90deg,rgba(54, 71, 99, 1) 0%, rgba(33, 26, 53, 1) 100%);
}

.chat-screen {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background-image: url('../../public/images/pattern.svg');
    background-size: 300px;
    background-repeat: repeat;
    background-blend-mode: soft-light;

    color: var(--text-strong);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Шапка чата ---------- */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;

    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .05);

    position: sticky;
    top: 0;
    z-index: 5;
    flex-shrink: 0;
}

.chat-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-header__info {
    flex: 1;
    min-width: 0;
}

.chat-header__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-strong);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header__status {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-header__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.chat-header__actions button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;

    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-soft);
    cursor: pointer;
    transition: background .15s;
}

.chat-header__actions button:hover {
    background: rgba(255, 255, 255, .08);
}

/* ---------- Лента сообщений ---------- */
.chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;

    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
}

/* =========================================================
   4. СООБЩЕНИЯ
   ========================================================= */

.msg {
    display: flex;
    max-width: 100%;
}

.msg--in  { justify-content: flex-start; }
.msg--out { justify-content: flex-end; }

.msg__bubble {
    max-width: min(75%, 560px);
    padding: 8px 12px 6px;
    border-radius: var(--radius-bubble);

    background: var(--bubble-in-bg);
    color: var(--bubble-in-text);
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    position: relative;
}

/* хвостики */
.msg--in  .msg__bubble { border-bottom-left-radius:  var(--radius-bubble-tail); }
.msg--out .msg__bubble { border-bottom-right-radius: var(--radius-bubble-tail); }

/* исходящее */
.msg--out .msg__bubble {
    background: var(--bubble-out-bg);
    color: var(--bubble-out-text);
}

/* media-бабл */
.msg__bubble--media {
    padding: 0;
    background: transparent !important;
    overflow: hidden;
    border-radius: 14px;
}

.msg__bubble--media img {
    display: block;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
}

/* ---------- Текст и код ---------- */
.msg__text + .msg__text { margin-top: 4px; }

.msg__text code {
    background: rgba(0, 0, 0, .25);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
}

/* ---------- Время и галочки ---------- */
.msg__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;

    font-size: 11px;
    color: rgba(255, 255, 255, .55);
    margin-top: 2px;
    margin-left: 8px;
    float: right;
    position: relative;
    top: 2px;
}

.msg--out .msg__meta {
    color: rgba(255, 255, 255, .85);
}

.msg__ticks svg {
    width: 14px;
    height: 14px;
}

.msg__ticks--read { color: var(--tick-read); }
.msg__ticks--sent { color: var(--tick-sent); }

/* ---------- Стикер ---------- */
.msg--sticker .msg__sticker {
    font-size: 56px;
    line-height: 1;
    user-select: none;
}

.msg__meta--outside {
    float: none;
    display: inline-flex;
    margin-left: 6px;
    vertical-align: bottom;
}

/* ---------- Разделитель даты ---------- */
.chat-date {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

.chat-date span {
    background: rgba(255, 255, 255, .08);
    color: #cfcfdd;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
}

/* ---------- Цитата ---------- */
.msg__quote {
    border-left: 3px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .12);
    padding: 4px 8px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 13px;
}

.msg__quote-author {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.msg__quote-text {
    color: rgba(255, 255, 255, .85);
}

/* =========================================================
   5. ПАНЕЛЬ ВВОДА
   ========================================================= */

.chat-input-area {
    padding: 10px 16px 16px;
    flex-shrink: 0;
}



.input-container {
    display: flex;
    align-items: flex-end;
    gap: 6px;

    background: var(--input-bg);
    border-radius: var(--radius-input);
    padding: 6px 6px 6px 10px;

    max-width: 900px;
    margin: 0 auto;
}

.chat-input {
    flex: 1;
    min-width: 0;

    background: transparent;
    border: none;
    outline: none;
    resize: none;

    color: var(--text-strong);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;

    padding: 8px 4px;
    min-height: 36px;
    max-height: 160px;
    overflow-y: auto;
    box-sizing: border-box;

    field-sizing: content;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-input::placeholder {
    color: rgba(236, 237, 245, .35);
    font-weight: 400;
}

.chat-input::-webkit-scrollbar {
    display: none;
}

.chat-input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

/* кнопки внутри input-контейнера */
.input-container button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;

    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--text-soft);
    cursor: pointer;
    transition: background .15s, color .15s;
}

.input-container button:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* кнопка отправки */
.send-btn {
    width: 40px !important;
    height: 40px !important;

    color: #ffffff !important;
    border-radius: 40px !important;
    opacity: .7;
    transition: opacity .2s, box-shadow .2s, transform .1s;
}

.send-btn svg {
    width: 18px;
    height: 18px;
}

.send-btn:hover {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(102, 126, 234, .3);
}

.send-btn:active {
    transform: scale(.95);
}

.send-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    box-shadow: none;
}

.emoji-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
    box-shadow: none;
}

.chat-input:disabled{
    opacity: .3;
    cursor: not-allowed;
    box-shadow: none;
}


/* =========================================================
   6. СКРОЛЛБАРЫ
   ========================================================= */

.chat-body::-webkit-scrollbar,
.h-70::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb,
.h-70::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .15);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-track,
.h-70::-webkit-scrollbar-track {
    background: transparent;
}

/* =========================================================
   7. ВСПОМОГАТЕЛЬНОЕ
   ========================================================= */

/* чтобы MoonShine-контейнеры не мешали тянуть высоту */
.layout-page,
.tabs-content,
.layout-content {
    min-height: 0;
}


.active{
    background-color: #3a2f58;
}

.tab{
    display: flex;
    padding-inline: var(--ms-layout-page-padding-x, calc(var(--spacing) * 4));
}

.elem{
    padding: 4px;
    width: 100px;
    text-align: center;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid transparent;
    margin-right: 5px;
}

.elem:hover{
    cursor: pointer;
    border-bottom-color: #3a2f58;
    background-color: #2c2b37;
    border-radius: var(--radius-input);
}

.elem.active{
    border-bottom-color: #3a2f58;
    background-color: #2c2b37;
    border-radius: var(--radius-input);
}


.custom-footer-wrapper{
    display: flex;
    width: 500px;
    margin-left: 10px;
}
.images-conn{
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    margin: 0 5px;
    background-color: #2b2b38;
    border-radius: 50%;
    width: 35px;
    height: 35px;
}

.text-conn{
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.images-conn img{
    width: 20px;
}

.msg__head{
    font-size: 12px;
    color: var(--text-muted);
}

.preview{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    white-space: normal;      /* ← явно вернуть */
    word-break: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
    width: 100%;
    max-width: 250px;
    line-height: 1.25;
}

.name{
    font-size: 14px;
}

.bot_text{
    color: chocolate;
}

.time{
    font-size: 11px;
}

.layout-content{
    padding-bottom: 10px;
}

.layout-footer{
    padding-top: 0;
}

.btn.is-active {
    background: #594191;
}
.join-button {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Всплывающая подпись */
.join-button::after {
    content: "Присоединиться";
    position: absolute;
    top: 112%;              /* над кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 8px;
}

/* Стрелочка */
.join-button::before {
    content: "";
    position: absolute;
    top: 100%;              /* над кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0;
}

.join-button:hover::after,
.join-button:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.search {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Всплывающая подпись */
.search::after {
    content: "Поиск";
    position: absolute;
    top: 112%;              /* над кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 8px;
}

/* Стрелочка */
.search::before {
    content: "";
    position: absolute;
    top: 100%;              /* над кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0;
}

.search:hover::after,
.search:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



.still {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* Всплывающая подпись */
.still::after {
    content: "Еще";
    position: absolute;
    top: 112%;              /* над кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1f2937;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 8px;
}

/* Стрелочка */
.still::before {
    content: "";
    position: absolute;
    top: 100%;              /* над кнопкой */
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    margin-bottom: 0;
}

.still:hover::after,
.still:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6b7280;
    font-family: system-ui, -apple-system, sans-serif;
    user-select: none;
}

.typing-text {
    line-height: 1;
}

.typing-dots {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 1em;
    padding-bottom: 2px;
}

.typing-dots .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dots .dot:nth-child(1) { animation-delay: 0s; }
.typing-dots .dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dots .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

.count_messages{
    background-color: #2b2b38;
    width: 25px;
    height: 25px;
}

.search-block{
    position: relative;
}

.x-mark{
    position: absolute;
    top: 7px;
    right: 10px;
}

.x-mark svg{
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}
.x-mark svg:hover{
    cursor: pointer;
    color: whitesmoke;
}
.search_no-result{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.search-empty__title {
    font-size: 12px;
    font-weight: 300;
    margin: 0 auto;

}

.msg--highlight .msg__bubble {
    animation: highlightFlash 1.5s ease;
}

@keyframes highlightFlash {
    0%, 100% { box-shadow: none; }
    30% { box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.6); }
}

.hidden{
    display: none !important;
}



/* =========================================
   KORSTON RESTAURANT — ISOLATED STYLES
   Все стили работают только внутри .details_rest
   ========================================= */

.details_rest {
    --aquamarine: #81D8D0;
    --aquamarine-light: #C8E9E6;
    --graphite: #2A303E;
    --white: #FFFFFF;
    --grey-neutral: #A0A2AF;
    --pastel-blue: #DCF9EF;
    --pastel-peach: #F4E0CE;
    --pastel-pink: #FFDEEB;

    --font-main: 'Open Sans', 'Myriad Pro', Arial, sans-serif;
    --font-accent: 'Montserrat', 'Gotham Pro', Arial, sans-serif;
    --font-logo: 'Playfair Display', serif;
    --font-contacts: 'Myriad Pro', 'MyriadPro', 'Open Sans', 'Segoe UI', Arial, sans-serif;

    font-family: var(--font-main);
    font-weight: 300;
    background-color: var(--white);
    color: var(--graphite);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.details_rest *,
.details_rest *::before,
.details_rest *::after {
    box-sizing: border-box;
}

/* =========================================
   BASE STYLES
   ========================================= */

.details_rest h1,
.details_rest h2,
.details_rest h3,
.details_rest h4 {
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details_rest h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
}

.details_rest h2 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.details_rest p {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 16px;
}

.details_rest a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

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

.details_rest ul {
    list-style: none;
}

.details_rest .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   BUTTONS
   ========================================= */

.details_rest .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--graphite);
    background: transparent;
    color: var(--graphite);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
    white-space: nowrap;
}

.details_rest .btn:hover {
    background: var(--graphite);
    color: var(--white);
}

.details_rest .btn-primary {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
}

.details_rest .btn-primary:hover {
    background: var(--graphite);
    border-color: var(--graphite);
    color: var(--aquamarine);
}

.details_rest .btn-white {
    border-color: var(--white);
    color: var(--white);
}

.details_rest .btn-white:hover {
    background: var(--white);
    color: var(--graphite);
}

.details_rest .kicker {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--grey-neutral);
    display: block;
    margin-bottom: 16px;
}

/* =========================================
   TOP BAR
   ========================================= */

.details_rest .top-bar {
    background: var(--aquamarine);
    color: var(--graphite);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    font-family: var(--font-accent);
    font-size: 14px;
    position: relative;
    z-index: 101;
}

.details_rest .top-bar-left,
.details_rest .top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.details_rest .top-bar-right {
    justify-content: flex-end;
}

.details_rest .burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.details_rest .burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--graphite);
    transition: 0.3s;
}

.details_rest .phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--graphite);
}

.details_rest .phone-link:hover {
    opacity: 0.7;
}

.details_rest .logo-center {
    text-align: center;
    flex: 0 0 auto;
    padding: 0 20px;
}

.details_rest .logo-center .logo-main {
    font-family: var(--font-logo);
    font-style: italic;
    font-weight: 700;
    font-size: 32px;
    color: var(--graphite);
    letter-spacing: 1px;
    line-height: 1;
}

.details_rest .logo-center .logo-sub {
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--graphite);
    margin-top: 4px;
}

.details_rest .top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.details_rest .top-city,
.details_rest .top-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.details_rest .top-divider {
    width: 1px;
    height: 24px;
    background: var(--graphite);
    opacity: 0.3;
}

.details_rest .flag-ru {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    overflow: hidden;
    display: inline-flex;
    flex-direction: column;
}

.details_rest .flag-ru span {
    flex: 1;
    display: block;
}

.details_rest .flag-ru .f-white {
    background: #fff;
}

.details_rest .flag-ru .f-blue {
    background: #0039A6;
}

.details_rest .flag-ru .f-red {
    background: #D52B1E;
}

/* =========================================
   HERO SLIDER
   ========================================= */

.details_rest .hero-slider {
    position: relative;
    height: 90vh;
    min-height: 620px;
    overflow: hidden;
    color: var(--white);
}

.details_rest .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.details_rest .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.details_rest .slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: scale(1.05);
    transition: transform 7s ease;
}

.details_rest .slide.active .slide-bg {
    transform: scale(1);
}

.details_rest .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(42,48,62,0.55),
        rgba(42,48,62,0.85)
    );
    z-index: -1;
}

.details_rest .slide-inner {
    max-width: 900px;
    padding: 0 24px;
    animation: detailsRestFadeUp 1s ease;
}

.details_rest .slide .kicker {
    color: var(--aquamarine);
}

.details_rest .slide h1 {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.details_rest .slide p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    max-width: 620px;
    margin: 0 auto 40px;
}

@keyframes detailsRestFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.details_rest .slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.details_rest .slider-dots button {
    width: 40px;
    height: 3px;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.4);
    transition: 0.3s;
    padding: 0;
}

.details_rest .slider-dots button.active {
    background: var(--aquamarine);
    width: 60px;
}

.details_rest .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.details_rest .slider-arrow:hover {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
}

.details_rest .slider-arrow.prev {
    left: 30px;
}

.details_rest .slider-arrow.next {
    right: 30px;
}

/* =========================================
   SECTIONS
   ========================================= */

.details_rest section {
    padding: 96px 5%;
}

/* =========================================
   EVENTS
   ========================================= */

.details_rest .events {
    background: var(--graphite);
    color: var(--white);
}

.details_rest .events .kicker {
    color: var(--aquamarine);
}

.details_rest .events h2 {
    color: var(--white);
}

.details_rest .events-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.details_rest .events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.details_rest .event-card {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    color: var(--white);
}

.details_rest .event-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 0;
}

.details_rest .event-card:hover .event-card-bg {
    transform: scale(1.08);
}

.details_rest .event-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(42,48,62,0.15) 40%,
        rgba(42,48,62,0.92) 100%
    );
    z-index: 1;
    transition: 0.4s;
}

.details_rest .event-card:hover::after {
    background: linear-gradient(
        180deg,
        rgba(42,48,62,0.05) 30%,
        rgba(42,48,62,0.95) 100%
    );
}

.details_rest .event-card-inner {
    position: relative;
    z-index: 2;
    padding: 36px 32px;
}

.details_rest .event-restaurant {
    font-family: var(--font-accent);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--aquamarine);
    font-weight: 600;
    margin-bottom: 8px;
}

.details_rest .event-date {
    font-family: var(--font-accent);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.details_rest .event-card h3 {
    font-size: 26px;
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1.2;
}

.details_rest .event-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

.details_rest .event-actions {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.details_rest .event-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--aquamarine);
    color: var(--graphite);
    border: 2px solid var(--aquamarine);
    border-radius: 2px;
    font-family: var(--font-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.details_rest .event-buy-btn:hover {
    background: var(--graphite);
    border-color: var(--graphite);
    color: var(--aquamarine);
    transform: translateY(-2px);
}

.details_rest .event-arrow {
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: rgba(129, 216, 208, 0);
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
}

.details_rest .event-card:hover .event-arrow {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
    transform: rotate(-45deg);
}

/* =========================================
   MENU PREVIEW
   ========================================= */

.details_rest .menu-preview {
    position: relative;
    padding: 96px 0;
    background: var(--white);
    overflow: hidden;
}

.details_rest .menu-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    width: 64px;
    height: 3px;
    background: var(--aquamarine);
}

.details_rest .menu-preview-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.details_rest .menu-preview-content {
    max-width: 560px;
}

.details_rest .menu-preview-eyebrow {
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--aquamarine);
    display: inline-block;
    margin-bottom: 20px;
}

.details_rest .menu-preview-title {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--graphite);
    margin-bottom: 24px;
    white-space: nowrap;
}

.details_rest .menu-preview-title em {
    font-style: normal;
    font-family: var(--font-logo);
    font-weight: 400;
    color: var(--aquamarine);
    font-size: 0.85em;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.details_rest .menu-preview-text {
    font-size: 17px;
    line-height: 1.75;
    color: var(--grey-neutral);
    margin-bottom: 36px;
    max-width: 480px;
}

.details_rest .menu-preview-cta {
    display: flex;
    width: 100%;
}

.details_rest .menu-preview-cta .btn {
    width: 100%;
    padding: 18px 40px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.details_rest .menu-preview-cta .btn svg {
    transition: transform 0.3s;
}

.details_rest .menu-preview-cta .btn:hover svg {
    transform: translateX(4px);
}

.details_rest .menu-preview-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 460px;
}

.details_rest .menu-preview-photo {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #f2f2f2;
}

.details_rest .menu-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.details_rest .menu-preview-photo:hover img {
    transform: scale(1.06);
}

.details_rest .menu-preview-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(42,48,62,0.05) 0%,
        rgba(42,48,62,0.25) 100%
    );
    pointer-events: none;
}

/* =========================================
   GALLERY
   ========================================= */

.details_rest .restaurant-gallery {
    background: var(--white);
}

.details_rest .gal-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
}

.details_rest .gal-grid .item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f2f2f2;
    border-radius: 2px;
}

.details_rest .gal-grid .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease, filter 0.4s ease;
}

.details_rest .gal-grid .item:hover img {
    transform: scale(1.1);
    filter: brightness(1.08);
}

.details_rest .gal-grid .item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(42,48,62,0.75)
    );
    opacity: 0;
    transition: 0.4s;
}

.details_rest .gal-grid .item:hover::after {
    opacity: 1;
}

.details_rest .gal-grid .item .item-label {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.4s;
}

.details_rest .gal-grid .item:hover .item-label {
    opacity: 1;
    transform: translateY(0);
}

.details_rest .gal-grid .span-2 {
    grid-column: span 2;
}

.details_rest .gal-grid .span-3 {
    grid-column: span 3;
}

.details_rest .gal-grid .row-2 {
    grid-row: span 2;
}

/* =========================================
   LIGHTBOX
   ========================================= */

.details_rest .lightbox {
    position: fixed;
    inset: 0;
    background: rgba(42,48,62,0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.details_rest .lightbox.open {
    display: flex;
    opacity: 1;
}

.details_rest .lightbox-content {
    position: relative;
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.details_rest .lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: detailsRestLightboxZoom 0.35s ease;
}

@keyframes detailsRestLightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.94);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.details_rest .lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--white);
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.details_rest .lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 1001;
}

.details_rest .lightbox-close:hover {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
}

.details_rest .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 1001;
}

.details_rest .lightbox-nav:hover {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
}

.details_rest .lightbox-nav.prev {
    left: 24px;
}

.details_rest .lightbox-nav.next {
    right: 24px;
}

/* =========================================
   CHEF
   ========================================= */

.details_rest .chef {
    background: var(--graphite);
    color: var(--white);
    padding: 64px 5%;
}

.details_rest .chef-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
    max-width: 920px;
    margin: 0 auto;
}

.details_rest .chef .kicker {
    color: var(--aquamarine);
}

.details_rest .chef h2 {
    font-size: clamp(22px, 2.2vw, 30px);
    margin-bottom: 14px;
}

.details_rest .chef blockquote {
    font-family: var(--font-main);
    font-size: clamp(15px, 1.4vw, 18px);
    font-style: italic;
    line-height: 1.55;
    color: var(--aquamarine);
    margin: 12px 0 0;
    font-weight: 300;
}

.details_rest .chef p {
    color: rgba(255,255,255,0.8);
}

.details_rest .chef-img {
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 380px;
    overflow: hidden;
    border-radius: 2px;
    margin: 0 auto;
    width: 100%;
}

.details_rest .chef-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   REVIEWS
   ========================================= */

.details_rest .reviews {
    background: var(--white);
}

.details_rest .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.details_rest .review {
    padding: 40px;
    background: var(--pastel-blue);
    border-top: 4px solid var(--aquamarine);
}

.details_rest .review .stars {
    color: var(--graphite);
    letter-spacing: 4px;
    margin-bottom: 16px;
    font-size: 18px;
}

.details_rest .review p {
    font-style: italic;
    margin-bottom: 20px;
}

.details_rest .review .author {
    font-family: var(--font-accent);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--grey-neutral);
}

/* =========================================
   RESTAURANTS
   ========================================= */

.details_rest .restaurants-section {
    background: var(--white);
    padding: 80px 0;
}

.details_rest .restaurants-intro {
    text-align: center;
    margin-bottom: 20px;
}

.details_rest .restaurants-intro .kicker {
    display: block;
}

.details_rest .restaurants-list {
    padding: 20px 0 0;
}

.details_rest .restaurant {
    position: relative;
    padding: 64px 0;
    border-top: 1px solid rgba(42,48,62,0.12);
}

.details_rest .restaurant:last-child {
    border-bottom: 1px solid rgba(42,48,62,0.12);
}

.details_rest .restaurant::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--aquamarine);
}

.details_rest .restaurant__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.details_rest .restaurant--reverse .restaurant__media {
    order: 2;
}

.details_rest .restaurant--reverse .restaurant__content {
    order: 1;
}

.details_rest .restaurant__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 2px;
}

.details_rest .restaurant__media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(42,48,62,0.05) 0%,
        rgba(42,48,62,0.35) 100%
    );
    z-index: 1;
}

.details_rest .restaurant__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}

.details_rest .restaurant:hover .restaurant__media::after {
    transform: scale(1.05);
}

.details_rest .restaurant--nebo .restaurant__media::after {
    background-image: url('https://static.tildacdn.com/tild6635-3336-4364-b661-303635326331/gallery-2.jpg');
}

.details_rest .restaurant--shvili .restaurant__media::after {
    background-image: url('https://static.tildacdn.com/tild6161-6461-4134-b534-353262346638/gallery-4.jpg');
}

.details_rest .restaurant--mario .restaurant__media::after {
    background-image: url('https://static.tildacdn.com/tild3733-3139-4765-a635-366432356435/chef.jpg');
}

.details_rest .restaurant__tag {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    font-family: var(--font-accent);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    padding: 10px 16px;
    background: rgba(42,48,62,0.55);
    backdrop-filter: blur(8px);
    border-radius: 2px;
}

.details_rest .restaurant__content {
    max-width: 520px;
}

.details_rest .restaurant__title {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--graphite);
    margin-bottom: 12px;
}

.details_rest .restaurant__cuisine {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-neutral);
    margin-bottom: 24px;
}

.details_rest .restaurant__desc {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    color: var(--graphite);
    margin-bottom: 28px;
}

.details_rest .restaurant__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.details_rest .feature {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--graphite);
    padding: 8px 14px;
    border: 1px solid rgba(42,48,62,0.18);
    border-radius: 100px;
    transition: 0.25s ease;
}

.details_rest .feature:hover {
    background: var(--graphite);
    color: var(--white);
    border-color: var(--graphite);
}

.details_rest .restaurant__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.details_rest .restaurant__actions .btn {
    padding: 16px 32px;
    font-size: 13px;
}

.details_rest .restaurant__actions .btn-outline {
    background: transparent;
    color: var(--graphite);
    border: 2px solid var(--graphite);
}

.details_rest .restaurant__actions .btn-outline:hover {
    background: var(--graphite);
    color: var(--white);
}

.details_rest .restaurant__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(42,48,62,0.12);
    font-size: 14px;
    color: var(--graphite);
    font-weight: 400;
}

.details_rest .restaurant__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.details_rest .restaurant__meta-item svg {
    color: var(--aquamarine);
    flex-shrink: 0;
}

.details_rest .restaurant__meta-item small {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-neutral);
    margin-bottom: 2px;
}

/* =========================================
   CONTACTS
   ========================================= */

.details_rest .contacts {
    background: var(--white);
    padding: 96px 5%;
}

.details_rest .contacts__inner {
    max-width: 1100px;
    margin: 0 auto;
    font-family: var(--font-contacts);
}

.details_rest .contacts__head {
    text-align: center;
    margin-bottom: 56px;
}

.details_rest .contacts__head .kicker {
    font-family: var(--font-contacts);
    color: var(--aquamarine);
    letter-spacing: 4px;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.details_rest .contacts__head h2 {
    font-family: var(--font-contacts);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--graphite);
    margin-bottom: 16px;
}

.details_rest .contacts__head p {
    font-family: var(--font-contacts);
    font-size: 16px;
    line-height: 1.6;
    color: var(--grey-neutral);
    max-width: 560px;
    margin: 0 auto;
}

.details_rest .contacts__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.details_rest .contacts__card {
    background: var(--graphite);
    border: 1px solid var(--graphite);
    border-top: 3px solid var(--aquamarine);
    border-radius: 2px;
    padding: 40px 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: var(--white);
}

.details_rest .contacts__block {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.details_rest .contacts__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--aquamarine);
}

.details_rest .contacts__icon svg {
    width: 20px;
    height: 20px;
}

.details_rest .contacts__block h3 {
    font-family: var(--font-contacts);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aquamarine);
    margin-bottom: 6px;
}

.details_rest .contacts__block .contacts__value {
    font-family: var(--font-contacts);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
}

.details_rest .contacts__block .contacts__value a {
    color: var(--white);
    border-bottom: 1px solid var(--aquamarine);
}

.details_rest .contacts__block .contacts__value a:hover {
    color: var(--aquamarine);
}

.details_rest .contacts__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.details_rest .contacts__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    transition: all 0.3s ease;
}

.details_rest .contacts__link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.details_rest .contacts__link:hover {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(129, 216, 208, 0.35);
}

.details_rest .contacts__aside {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.details_rest .contacts__card--aside {
    background: var(--graphite);
    border: 1px solid var(--graphite);
    border-top: 3px solid var(--aquamarine);
    color: var(--white);
    gap: 28px;
    height: 100%;
}

.details_rest .contacts__card--aside h3 {
    font-family: var(--font-contacts);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--aquamarine);
    margin-bottom: 4px;
}

.details_rest .contacts__card--aside .contacts__aside-text {
    font-family: var(--font-contacts);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.72);
}

.details_rest .socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.details_rest .socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    transition: all 0.3s ease;
}

.details_rest .socials a:hover {
    background: var(--aquamarine);
    border-color: var(--aquamarine);
    color: var(--graphite);
    transform: translateY(-3px);
}

.details_rest .socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.details_rest .contacts__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

.details_rest .contacts__actions .btn {
    width: 100%;
    font-family: var(--font-contacts);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    padding: 16px 24px;
    border-radius: 2px;
}

.details_rest .contacts__actions .btn--primary {
    background: var(--aquamarine);
    border: 2px solid var(--aquamarine);
    color: var(--graphite);
}

.details_rest .contacts__actions .btn--primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--graphite);
}

.details_rest .contacts__actions .btn--ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(129, 216, 208, 0.55);
}

.details_rest .contacts__actions .btn--ghost:hover {
    background: rgba(129, 216, 208, 0.12);
    border-color: var(--aquamarine);
    color: var(--aquamarine);
}

.details_rest .contacts__note {
    font-family: var(--font-contacts);
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   FOOTER
   ========================================= */

.details_rest footer {
    background: var(--aquamarine);
    color: var(--graphite);
    padding: 64px 5% 36px;
}

.details_rest .foot-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 48px;
}

.details_rest .foot-col h4 {
    font-family: var(--font-accent);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--graphite);
    margin-bottom: 24px;
}

.details_rest .foot-col ul li {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--graphite);
    font-weight: 400;
    cursor: pointer;
    transition: 0.3s;
}

.details_rest .foot-col ul li:hover {
    opacity: 0.65;
}

.details_rest .foot-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(42,48,62,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--graphite);
    font-weight: 400;
}

.details_rest .foot-socials {
    display: flex;
    gap: 24px;
    align-items: center;
}

.details_rest .foot-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: 0.3s;
}

.details_rest .foot-socials a:hover {
    transform: translateY(-3px);
    opacity: 0.7;
}

.details_rest .foot-socials svg {
    width: 22px;
    height: 22px;
    fill: var(--graphite);
}

/* =========================================
   RESPONSIVE — 1100px
   ========================================= */

@media (max-width: 1100px) {
    .details_rest .restaurant__body {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details_rest .restaurant--reverse .restaurant__media {
        order: 0;
    }

    .details_rest .restaurant--reverse .restaurant__content {
        order: 0;
    }

    .details_rest .restaurant__content {
        max-width: 100%;
    }

    .details_rest .contacts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .details_rest .menu-preview-inner {
        gap: 48px;
    }
}

/* =========================================
   RESPONSIVE — 1024px
   ========================================= */

@media (max-width: 1024px) {
    .details_rest .gal-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .details_rest .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details_rest .menu-preview-gallery {
        height: 400px;
    }

    .details_rest .chef {
        padding: 56px 5%;
    }

    .details_rest .chef-grid {
        gap: 40px;
    }

    .details_rest .chef-img {
        max-height: 340px;
    }
}

/* =========================================
   RESPONSIVE — 900px
   ========================================= */

@media (max-width: 900px) {
    .details_rest .top-bar {
        padding: 12px 16px;
        font-size: 12px;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .details_rest .top-bar-left,
    .details_rest .top-bar-right {
        flex: 0 0 auto;
        gap: 14px;
    }

    .details_rest .logo-center .logo-main {
        font-size: 24px;
    }

    .details_rest .logo-center .logo-sub {
        font-size: 9px;
        letter-spacing: 4px;
    }

    .details_rest .phone-link span {
        display: none;
    }

    .details_rest .top-search span,
    .details_rest .top-city span {
        display: none;
    }

    .details_rest .hero-slider {
        height: auto;
        min-height: 560px;
    }

    .details_rest .slide-inner {
        padding: 110px 70px 90px;
    }

    .details_rest .slider-arrow {
        width: 38px;
        height: 38px;
        background: rgba(42,48,62,0.35);
        backdrop-filter: blur(6px);
    }

    .details_rest .slider-arrow.prev {
        left: 8px;
    }

    .details_rest .slider-arrow.next {
        right: 8px;
    }

    .details_rest .slider-dots {
        bottom: 24px;
    }

    .details_rest .slider-dots button {
        width: 28px;
    }

    .details_rest .slider-dots button.active {
        width: 44px;
    }

    .details_rest section {
        padding: 72px 5%;
    }

    .details_rest .events-grid {
        grid-template-columns: 1fr;
    }

    .details_rest .event-card {
        min-height: 340px;
    }

    .details_rest .event-card h3 {
        font-size: 22px;
    }

    .details_rest .event-actions {
        top: 16px;
        right: 16px;
        gap: 8px;
    }

    .details_rest .event-buy-btn {
        padding: 12px 20px;
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .details_rest .event-arrow {
        width: 38px;
        height: 38px;
        border-radius: 2px;
    }

    .details_rest .event-restaurant {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .details_rest .event-date {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .details_rest .menu-preview {
        padding: 72px 0;
    }

    .details_rest .menu-preview-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details_rest .menu-preview-content {
        max-width: 100%;
    }

    .details_rest .menu-preview-text {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .details_rest .menu-preview-gallery {
        height: 360px;
        gap: 12px;
    }

    .details_rest .chef {
        padding: 56px 5%;
    }

    .details_rest .chef-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .details_rest .chef-img {
        max-height: 420px;
        aspect-ratio: 4 / 3;
    }

    .details_rest .chef h2 {
        font-size: 26px;
    }

    .details_rest .contacts {
        padding: 72px 5%;
    }

    .details_rest .contacts__head {
        margin-bottom: 40px;
    }

    .details_rest .contacts__card {
        padding: 32px 28px;
        gap: 26px;
    }

    .details_rest .reviews-grid {
        grid-template-columns: 1fr;
    }

    .details_rest .booking-form {
        grid-template-columns: 1fr;
    }

    .details_rest .booking-type {
        grid-template-columns: 1fr;
    }

    .details_rest .gal-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 110px;
    }

    .details_rest .gal-grid .span-2,
    .details_rest .gal-grid .span-3 {
        grid-column: span 2;
    }

    .details_rest .lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .details_rest .lightbox-nav.prev {
        left: 12px;
    }

    .details_rest .lightbox-nav.next {
        right: 12px;
    }

    .details_rest .lightbox-close {
        width: 40px;
        height: 40px;
        top: 16px;
        right: 16px;
    }

    .details_rest .foot-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .details_rest .foot-bottom {
        flex-direction: column;
        text-align: center;
    }

    .details_rest .restaurants-section {
        padding: 56px 0;
    }

    .details_rest .restaurant {
        padding: 48px 0;
    }

    .details_rest .restaurant:first-child {
        padding-top: 32px;
    }

    .details_rest .restaurant__body {
        gap: 28px;
    }

    .details_rest .restaurant__media {
        aspect-ratio: 4 / 3;
    }

    .details_rest .restaurant__title {
        margin-bottom: 8px;
    }

    .details_rest .restaurant__cuisine {
        margin-bottom: 18px;
    }

    .details_rest .restaurant__desc {
        margin-bottom: 24px;
        font-size: 16px;
    }

    .details_rest .restaurant__features {
        margin-bottom: 26px;
    }

    .details_rest .restaurant__actions {
        flex-direction: column;
        margin-bottom: 26px;
    }

    .details_rest .restaurant__actions .btn {
        width: 100%;
        text-align: center;
    }

    .details_rest .restaurant__meta {
        gap: 16px;
        padding-top: 22px;
    }
}

/* =========================================
   RESPONSIVE — 600px
   ========================================= */

@media (max-width: 600px) {
    .details_rest .contacts {
        padding: 56px 5%;
    }

    .details_rest .contacts__head {
        margin-bottom: 28px;
    }

    .details_rest .contacts__card {
        padding: 24px 20px;
        gap: 22px;
    }

    .details_rest .contacts__block {
        gap: 14px;
    }

    .details_rest .contacts__icon {
        width: 38px;
        height: 38px;
    }

    .details_rest .contacts__icon svg {
        width: 18px;
        height: 18px;
    }

    .details_rest .contacts__block h3 {
        font-size: 11px;
    }

    .details_rest .contacts__block .contacts__value {
        font-size: 15px;
    }

    .details_rest .socials a {
        width: 40px;
        height: 40px;
    }

    .details_rest .socials svg {
        width: 18px;
        height: 18px;
    }

    .details_rest .contacts__link {
        width: 48px;
        height: 48px;
    }

    .details_rest .contacts__link svg {
        width: 20px;
        height: 20px;
    }
}

/* =========================================
   RESPONSIVE — 500px
   ========================================= */

@media (max-width: 500px) {
    .details_rest .slide-inner {
        padding: 100px 56px 80px;
    }

    .details_rest .slider-arrow {
        width: 34px;
        height: 34px;
    }

    .details_rest .gal-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
    }

    .details_rest .gal-grid .span-2,
    .details_rest .gal-grid .span-3 {
        grid-column: span 2;
    }

    .details_rest .gal-grid .row-2 {
        grid-row: span 1;
    }

    .details_rest .event-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .details_rest .event-buy-btn {
        padding: 10px 14px;
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    .details_rest .event-arrow {
        width: 34px;
        height: 34px;
    }

    .details_rest .menu-preview {
        padding: 56px 0;
    }

    .details_rest .menu-preview-title {
        font-size: 24px;
        white-space: normal;
    }

    .details_rest .menu-preview-text {
        font-size: 15px;
    }

    .details_rest .menu-preview-gallery {
        height: 300px;
    }

    .details_rest .chef {
        padding: 56px 5%;
    }

    .details_rest .chef-img {
        max-height: 320px;
        aspect-ratio: 3 / 4;
    }

    .details_rest .chef h2 {
        font-size: 22px;
    }
}

/* =========================================
   RESPONSIVE — 400px
   ========================================= */

@media (max-width: 400px) {
    .details_rest .menu-preview-gallery {
        height: 260px;
    }

    .details_rest .menu-preview-title {
        font-size: 22px;
    }

    .details_rest .contacts__card {
        padding: 20px 16px;
    }

    .details_rest .contacts__actions .btn {
        font-size: 12px;
        padding: 14px 18px;
        letter-spacing: 0.08em;
    }

    .details_rest .contacts__link {
        width: 44px;
        height: 44px;
    }

    .details_rest .contacts__link svg {
        width: 18px;
        height: 18px;
    }
}

.details_rest .contacts {
    background: #2a303e;
    padding: 96px 5%;
}

.booking-rest{
	background: #2a303e;
}

.booking-rest .title {
  text-align: center;
}

.checkbox input{
	-webkit-appearance: auto !important;
}
