/* --- БАЗА / ТЕМЫ --- */
:root {
  --bg: #faf9f6;
  --paper: #ffffff;
  --ink: #1f1f1f;
  --muted: #666666;
  --line: #e9e6e2;
  --accent: #7a8f72; /* мягкий зелёный */
  --accent-2: #c7d1c2;
  --danger: #b95555;
  --shadow: 0 8px 28px rgba(0,0,0,.06);
  --radius: 14px;
  --radius-sm: 10px;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; }
.container { width: min(1100px, 92%); margin: 0 auto; }

/* --- ШАПКА --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }

/* Лого слева (плейсхолдер под картинку) */
.logo-box {
  width: 42px; height: 42px; border: 1px dashed var(--line); border-radius: 10px; background: #f4f3f0;
  display: grid; place-items: center; font-size: 10px; color: var(--muted);
}
/* Замените этот DIV на <img src="photos/logo.png" alt="Lunro"> */

/* >>> ДОБАВЛЕНО: реальные стили логотипа изображением <<< */
.brand-link { display: grid; place-items: center; width: 42px; height: 42px; }

.logo {
  width: 42px;    /* сделаем логотип маленьким */
  height: 42px;
  object-fit: contain;
  display: block;
  border-radius: 10px; /* если хочешь скругление как было */
}

/* скрыть старый плейсхолдер, если он остался в разметке */
.logo-box { display: none; }
/* >>> КОНЕЦ ВСТАВКИ <<< */

.brand-name { font-weight: 700; letter-spacing: 0.3px; }

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

.main-nav { display: none; gap: 18px; }
.main-nav a { padding: 8px 10px; border-radius: 10px; }
.main-nav a.active { background: var(--accent-2); }

/* Кнопка справа, открывающая выезжающую панель */
.drawer-toggle {
  border: 1px solid var(--line); background: var(--paper);
  padding: 8px 12px; border-radius: 10px; box-shadow: var(--shadow);
}

@media (min-width: 860px) {
  .main-nav { display: flex; }
}

/* --- ВЫЕЗЖАЮЩЕЕ МЕНЮ СПРАВА --- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: .25s;
}
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(360px, 90%);
  background: var(--paper); box-shadow: -20px 0 40px rgba(0,0,0,.10);
  transform: translateX(100%); transition: transform .28s ease;
  padding: 18px; display: flex; flex-direction: column; gap: 16px; z-index: 60;
  border-left: 1px solid var(--line);
}
.drawer.open { transform: translateX(0%); }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; align-items: center; justify-content: space-between; }
.drawer .close { font-size: 22px; background: #f6f5f3; border: 1px solid var(--line); width: 36px; height: 36px; border-radius: 10px; }
.drawer nav a { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; }
.drawer .card { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; background: #fbfbfa; }

/* --- ГЛАВНАЯ/ХЕРО --- */
.hero { padding: clamp(36px, 6vw, 64px) 0; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.hero .visual {
  min-height: 180px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg,#f7f6f3 0 12px,#f0efeb 12px 24px);
  display: grid; place-items: center; color: var(--muted);
}
.hero h1 { margin: 0; font-size: clamp(28px, 4.6vw, 42px); }
.hero p { color: var(--muted); }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--paper); padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); color: white; border-color: color-mix(in oklab, var(--accent) 84%, black); }

@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; }
}

/* --- СЕКЦИИ --- */
section { padding: 36px 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* --- МЕНЮ + ПОИСК --- */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
.filters .row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; background: #fff; }
.chip input { accent-color: var(--accent); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 660px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.item { overflow: hidden; display: grid; gap: 10px; padding: 12px; }
/* Картинка в карточке меню */
.item-visual {
  display: block;
  width: 100%;
  height: 210px;          /* можно 200–220, как тебе по вкусу */
  object-fit: cover;      /* обрезать по краям, но без искажений */
  border-radius: 18px;
  margin-bottom: 12px;
}

.item h4 { margin: 0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #eef1ed; border: 1px solid var(--line); font-size: 12px; }
.muted { color: var(--muted); }

/* --- О НАС / КАРТА --- */
.map-placeholder { height: 240px; border: 1px dashed var(--line); border-radius: var(--radius); background: #f2f1ef; display: grid; place-items: center; color: var(--muted); }

/* --- АВТОРИЗАЦИЯ --- */
form { display: grid; gap: 10px; }
label { font-size: 14px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"] {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.form-row { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.note { font-size: 13px; color: var(--muted); }
.error { color: var(--danger); font-size: 14px; }
.ok { color: var(--accent); font-size: 14px; }

/* --- ФУТЕР --- */
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); }

/* --- SPA-переходы --- */
[data-view] { display: none; }
[data-view].active { display: block; }
/* Левая зона — авто, центр — тянется, правая — авто (под кнопку) */
.header-inner.header-center-only {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* Поместить кнопку в край правого столбца */
.header-inner.header-center-only > #drawerToggle {
  justify-self: end;   /* прижим к правому краю ячейки */
  margin-left: auto;   /* на всякий случай, если где-то останется flex */
}

/* Центровка одного пункта меню */
.main-nav.center-only { display: flex !important; justify-content: center; }

/* Стиль гамбургера (как раньше) — можно оставить */
.drawer-toggle {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid var(--line); background: var(--paper);
}
.drawer-toggle .burger,
.drawer-toggle .burger::before,
.drawer-toggle .burger::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.drawer-toggle .burger::before { transform: translateY(-6px); }
.drawer-toggle .burger::after  { transform: translateY( 6px); }

/* “Hjem” без рамки/фона */
.main-nav.center-only .nav-link { padding: 0; background: transparent !important; box-shadow: none; }
.main-nav.center-only .nav-link:hover { text-decoration: underline; }

/* Убираем пузырь активного пункта */
.main-nav a.active { background: transparent !important; }
/* Hjem как брендовая подпись Lunro */
.main-nav.center-only .home-link {
  font-weight: 700;         /* как .brand-name */
  letter-spacing: 0.3px;    /* как .brand-name */
  font-size: 1.125rem;      /* чуть крупнее, чтобы совпадало визуально */
  line-height: 1;
  color: var(--ink);
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* по желанию: убери подчёркивание при наведении, как у Lunro */
.main-nav.center-only .home-link:hover {
  text-decoration: none; /* или оставь underline, если хочешь подсказку клика */
}
/* --- HERO VIDEO --- */
.hero-video {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  /* карточный вид как у макета */
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

/* сам видео-элемент адаптивный */
.hero-video .video-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;      /* заполняет блок без искажений */
  aspect-ratio: 16 / 9;   /* базовая пропорция; можно поменять */
  /* если предпочитаешь фиксированную высоту: закомментируй aspect-ratio и раскомментируй height */
  /* height: 280px; */
}

/* на больших экранах чуть выше */
@media (min-width: 1100px) {
}
/* Правый блок в шапке (аккаунт + гамбургер) */
.right{ display:flex; align-items:center; gap:12px; justify-self:end; }
.account-btn{
  display:flex; align-items:center; gap:8px;
  padding:6px 10px; background:var(--paper);
  border:1px solid var(--line); border-radius:999px; box-shadow:var(--shadow);
}
.account-btn .avatar{
  width:28px; height:28px; display:grid; place-items:center;
  background:#f4f3f0; border:1px solid var(--line); border-radius:50%; font-size:14px;
}
.account-label{ font-size:14px; color:var(--ink); }
@media (max-width:640px){ .account-label{ display:none; } }

/* --- Полнэкранная страница авторизации --- */
.auth-page{ padding:0; }
.auth-overlay{
  min-height: calc(100dvh - 80px); /* прилипает под шапкой */
  display:grid; place-items:center;
  background: color-mix(in oklab, var(--paper) 75%, transparent);
  padding: 28px 16px;
}
.auth-card{
  width:min(720px, 96vw);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px 20px 16px;
  position: relative;
}
.auth-close{
  position:absolute; top:10px; right:10px;
  width:36px; height:36px; border-radius:10px;
  border:1px solid var(--line); background:#f6f5f3;
  font-size:20px; line-height:1;
}
.auth-head{ text-align:center; margin-top:6px; }
.auth-logo{ width:42px; height:42px; object-fit:contain; margin: 0 auto 6px; border-radius:10px; }
.auth-head h2{ margin:6px 0 4px; }
.auth-social{ display:grid; gap:10px; margin-top:12px; }
.auth-social .social{
  text-align:left; padding:12px 14px; border:1px solid var(--line);
  border-radius:14px; background:#fff; font:inherit;
}
.auth-divider{ display:flex; align-items:center; gap:10px; margin:14px 0; color:var(--muted);}
.auth-divider::before,.auth-divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.auth-form{ display:none; gap:8px; }
.auth-form.active{ display:grid; }
.auth-form input{ padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.auth-switch a{ text-decoration:underline; }
.demo-note{ text-align:center; margin-top:8px; }
/* --- MENY LAYOUT + CART --- */
.menu-layout{ display:grid; grid-template-columns:1fr; gap:16px; }
@media (min-width: 1080px){ .menu-layout{ grid-template-columns: 1fr 340px; align-items:start; } }

.cart{ padding:16px; position:sticky; top:84px; }
.cart-h{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.btn.small{ padding:6px 10px; border-radius:8px; }
.cart-items{ display:grid; gap:10px; max-height:60vh; overflow:auto; padding-right:2px; }
.cart-line{ display:grid; grid-template-columns: 1fr auto; gap:8px; }
.cart-title{ font-weight:600; }
.cart-meta{ color:var(--muted); font-size:13px; }
.cart-ctrl{ display:flex; align-items:center; gap:6px; }
.qty{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:10px; padding:4px 8px; }
.qty button{ border:none; background:#f5f4f2; padding:4px 8px; border-radius:8px; }
.cart-total{ display:flex; justify-content:space-between; margin:12px 0; padding-top:10px; border-top:1px solid var(--line); }

.item .price{ font-weight:600; }
.item .add{ width:100%; margin-top:8px; }
/* Компактная строка покупки в карточке */
.buy-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.item .price{
  font-weight:700;
  font-size:16px;
  white-space:nowrap;     /* не переносим 60 kron */
}

/* компактная кнопка: не на всю ширину */
.item .add{
  width:auto;             /* раньше 100% — убираем */
  margin-top:0;           /* чтобы выровняться по одной линии с ценой */
  padding:6px 10px;       /* меньше, чтобы влезало в ряд */
  border-radius:8px;
  white-space:nowrap;
}
/* Простой центрированный навбар: Hjem | Om oss */
.header-center-only .main-nav.center-only { flex: 1; display:flex; justify-content:center; }

.simple-nav { display:flex; align-items:center; gap:10px; }
.simple-link{
  font-weight:700;           /* как у .brand-name */
  letter-spacing:.3px;       /* как у Lunro */
  color:var(--ink);
  text-decoration:none;
  padding:4px 6px;           /* без обводки/фона */
}
.simple-link:hover{ text-decoration:underline; }
.simple-link.active{ text-decoration:underline; }

.sep{
  color:#bdbab6;             /* мягкий разделитель */
  user-select:none; pointer-events:none;
}
/* --- Даем боковой панели собственный скролл, чтобы ничего не обрезалось --- */
.drawer{ overflow:auto; }

/* --- Контакты: стиль как "раньше" — метка + значение в одну строку --- */
.drawer .contact-card{ padding:12px; }
.drawer .contact{ margin: 8px 0 14px; }
.drawer .contact .row{
  display:flex; align-items:baseline; gap:10px; margin:4px 0;
}
.drawer .contact dt{
  font-weight:700; color:var(--ink);
  min-width:auto;       /* больше не фиксируем ширину */
}
.drawer .contact dd{ margin:0; }   /* на одной линии, без переноса */

/* --- Расписание: показываем ВСЕ дни без внутреннего скролла --- */
.drawer .hours-box{
  border:1px solid var(--line);
  border-radius:10px;
  background:#fbfbfa;
  padding:10px;
}
.drawer .hours-title{
  font-weight:700; font-size:14px; margin:0 0 6px;
}
.drawer .hours{
  list-style:none; margin:0; padding:0;
  display:grid; gap:4px;
  max-height:none;          /* ВАЖНО: убрали ограничение по высоте */
  overflow:visible;         /* без внутреннего скролла */
  font-size:14px; line-height:1.2;
}
.drawer .hours li{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  padding:4px 8px; border-radius:8px;
}
.drawer .hours li:nth-child(odd){ background:#f6f5f3; }
.drawer .hours .day{ font-weight:600; }
.drawer .hours .time{ font-variant-numeric:tabular-nums; }
/* ================== PROFILE SETTINGS (DESKTOP) ================== */

.profile-page {
  background: #f0f3ff;
  min-height: calc(100vh - 60px);
  padding: 40px 16px;
}

/* Сам контейнер с карточкой – строго по центру */
.profile-wrapper {
  max-width: 520px;
  margin: 0 auto;   /* центр по горизонтали */
}

.profile-card-settings {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  padding: 18px 20px 20px;
}

/* Шапка карточки */
.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.profile-card-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.profile-close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* Верхняя часть: аватар слева, инфо справа */
.profile-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.profile-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.profile-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: #ff9faa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-help {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.profile-avatar-text {
  margin-bottom: 4px;
}

/* Инфо справа от аватара */
.profile-main-info {
  flex: 1;
}

.profile-main-info .pf-name {
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-main-info .pf-email {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Поля */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.86rem;
}

.field-label {
  color: var(--muted);
}

.profile-input {
  border-radius: 8px;
  border: 1px solid #d7dde9;
  padding: 7px 10px;
  font: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-input:focus {
  border-color: #2f80ff;
  box-shadow: 0 0 0 1px rgba(47,128,255,0.35);
}

/* Ряды с "изменить email/пароль" */
.profile-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.profile-row .grow {
  flex: 1;
}

/* Ссылочные кнопки справа */
.link-button {
  border: none;
  background: none;
  color: #2f80ff;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px 0;
}

.link-button:hover {
  text-decoration: underline;
}

.action-link {
  white-space: nowrap;
}

/* Кнопки внизу */
.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn.outline {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}

/* Небольшая адаптивность */
@media (max-width: 640px) {
  .profile-page {
    padding: 24px 8px;
  }
  .profile-row {
    flex-direction: column;
    align-items: stretch;
  }
  .action-link {
    align-self: flex-start;
  }
}
.delete-photo {
  color: #d9534f;
}
.delete-photo:hover {
  text-decoration: underline;
}
.account-btn .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-btn .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ================== NOE ANNET + PROMO TIMER ================== */

.promo-page {
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 18px;
}

.promo-intro {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.promo-small {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted, #666);
}

/* Сам блок таймера */
.promo-timer {
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f2ff, #fdf6e9);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.promo-countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.promo-unit {
  min-width: 72px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ffffffcc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.04);
}

.promo-unit span {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
}

.promo-unit small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #666);
}

.promo-footnote {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--muted, #555);
}

@media (max-width: 600px) {
  .promo-page {
    padding: 14px 12px;
  }
  .promo-unit {
    flex: 1 1 calc(50% - 10px);
  }
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #faf8f6;
  border: 1px solid #ddd;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  border-color: #c49b63;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.social-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.about-photos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
}

.about-photo-block {
  flex: 1 1 240px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

.about-photo-block img {
  width: 100%;
  height: 260px;      /* одинаковая высота */
  object-fit: cover;  /* красиво обрезает, чтобы без искажений */
  display: block;
}

@media (max-width: 700px) {
  .about-photo-block img {
    height: 200px;
  }
}
/* ===== KOMMENTARER – TELEGRAM-STIL ===== */

.comments-card {
  padding: 16px 18px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comments-header-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 4px;
}

/* Rating-stjerner */

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.rating-label {
  font-size: 0.9rem;
  color: #444;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse; /* så høyre stjerne er 5 som i mange UI */
  gap: 2px;
}

.rating-stars input {
  display: none;
}

.rating-stars label {
  cursor: pointer;
  font-size: 1.4rem;
  color: #ccc;
  transition: color 0.15s ease;
}

/* hover + valgt */

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
  color: #f5b400;
}

/* Liste med kommentarer */

.comments-list {
  flex: 1;
  max-height: 350px;
  overflow-y: auto;
  padding: 8px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Один «баббл» комментария – если ты уже стилизовал, можно не использовать */

.comment-item {
  align-self: flex-start;
  max-width: 80%;
  background: #f4f4f4;
  border-radius: 16px 16px 16px 4px;
  padding: 8px 11px;
  font-size: 0.9rem;
}

.comment-item-header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  font-size: 0.78rem;
  color: #777;
}

.comment-item-text {
  white-space: pre-wrap;
}

/* Форма имени */

.comment-name-input {
  width: 100%;
  margin: 10px 0;              /* красивый отступ сверху и снизу */
  border-radius: 999px;
  border: 1px solid #e4e4e4;
  padding: 9px 16px;
  font-size: 0.9rem;
  background: #ffffff;         /* белая «таблетка» как в макете */
  color: #444;
}

/* Нижняя панель как в Telegram */

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f3f3;
  border-radius: 999px;
  padding: 6px 8px 6px 10px;
}

/* скрепка слева */

.attach-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #666;
  transition: background 0.15s ease, color 0.15s ease;
}

.attach-btn:hover {
  background: #e4e4e4;
  color: #333;
}

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

.comment-file-input {
  display: none;
}

/* текстовое поле */

.comment-text-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-size: 0.95rem;
  padding: 4px 2px;
  max-height: 100px;
}

.comment-text-input:focus {
  outline: none;
}

/* кнопка отправки справа */

.comment-send-btn {
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #7b9c7b;           /* зелёный в стиле Lunro */
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.05s ease;
}

.comment-send-btn:hover {
  background: #6b8c6b;
}

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

.comment-send-btn svg {
  width: 18px;
  height: 18px;
}
/* ====== THREAD KOMMENTARER (MED LIKES / SVAR) ====== */

.threads-list {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* обёртка ветки (комментарий + ответы) */
.comment-thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* основной блок комментария */
.comment-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* аватар с первой буквой имени */
.comment-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  color: #666;
  overflow: hidden;
}

/* текстовая часть */
.comment-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 0.86rem;
}

.comment-author {
  font-weight: 600;
}

.comment-date {
  color: #999;
  font-size: 0.8rem;
}

.comment-rating-stars {
  margin-left: auto;
  font-size: 0.85rem;
  color: #f5b400;
}

.comment-text {
  font-size: 0.9rem;
  white-space: pre-wrap;
}

/* низ: лайки / дизлайки / ответить */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.82rem;
  color: #777;
}

.comment-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 999px;
  padding: 3px 8px;
  border: 1px solid transparent;
}

.comment-vote-btn:hover {
  background: #f5f5f5;
  border-color: #e2e2e2;
}

.comment-vote-btn span {
  font-size: 0.9rem;
}

.comment-reply-btn {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  color: #2f80ff;
  padding: 3px 0;
}

.comment-reply-btn:hover {
  text-decoration: underline;
}

/* блок с ответами */
.comment-children {
  margin-left: 60px;        /* смещение вправо, как в скрине */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-toggle-replies {
  margin-left: 60px;
  margin-top: 2px;
  margin-bottom: 4px;
  font-size: 0.8rem;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.comment-toggle-replies:hover {
  text-decoration: underline;
}

.comment-toggle-replies span {
  font-weight: 600;
}

.comment-children.hidden {
  display: none;
}

