/* Кафе «Лакоста» — Art Deco Luxe (шаблон 17 из HTMLDesign) */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #101418;
      --surface: #171d23;
      --text: #ede4d3;
      --muted: #9a917f;
      --gold: #c9a45c;
      --gold-bright: #e3c184;
      --emerald: #1f5c50;
      --line: rgba(201, 164, 92, 0.28);
      --radius: 2px;
      --sidebar-w: 240px;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: "Jost", system-ui, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.65;
      background-image:
        radial-gradient(circle at 50% 0%, rgba(201, 164, 92, 0.06) 0%, transparent 45%);
    }

    ::selection { background: var(--gold); color: var(--bg); }

    a { color: var(--gold); text-decoration: none; }
    a:focus-visible, button:focus-visible {
      outline: none;
      box-shadow: 0 0 0 2px var(--gold);
    }

    /* ---------- Сайдбар ---------- */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: var(--sidebar-w);
      padding: 36px 28px;
      display: flex;
      flex-direction: column;
      gap: 40px;
      background: var(--surface);
      border-right: 1px solid var(--line);
      z-index: 10;
    }

    .sidebar-logo {
      font-family: "Marcellus", serif;
      font-size: 1.3rem;
      color: var(--gold);
      letter-spacing: 0.2em;
      text-transform: uppercase;
      line-height: 1.3;
    }

    .sidebar-logo span {
      display: block;
      font-family: "Jost", sans-serif;
      font-size: 0.625rem;
      letter-spacing: 0.4em;
      color: var(--muted);
      margin-top: 6px;
    }

    .sidebar-nav {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .sidebar-nav a {
      padding: 10px 14px;
      font-size: 0.8125rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--muted);
      border-left: 2px solid transparent;
      transition: color 0.2s, border-color 0.2s;
    }

    .sidebar-nav a:hover { color: var(--gold); }

    .sidebar-nav a.is-active {
      color: var(--gold);
      border-left-color: var(--gold);
    }

    .sidebar-footer {
      margin-top: auto;
      font-size: 0.75rem;
      color: var(--muted);
      letter-spacing: 0.06em;
      line-height: 1.8;
    }

    .sidebar-footer strong {
      display: block;
      color: var(--text);
      font-weight: 500;
    }

    /* ---------- Контент ---------- */
    .content {
      margin-left: var(--sidebar-w);
      min-height: 100vh;
    }

    .section {
      max-width: 860px;
      margin: 0 auto;
      padding: 72px 48px;
      border-bottom: 1px solid var(--line);
    }

    .section:last-of-type { border-bottom: none; }

    .section-label {
      font-size: 0.6875rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 12px;
    }

    .section h2 {
      font-family: "Marcellus", serif;
      font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
      font-weight: 400;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 20px;
    }

    .section p { color: var(--text); margin-bottom: 14px; max-width: 65ch; }
    .section p:last-child { margin-bottom: 0; }

    .deco-line {
      width: 90px;
      height: 1px;
      background: linear-gradient(90deg, var(--gold), transparent);
      margin: 0 0 24px;
    }

    /* Hero */
    .hero {
      padding: 110px 48px 90px;
      text-align: left;
    }

    .hero h1 {
      font-family: "Marcellus", serif;
      font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
      font-weight: 400;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 18px;
      line-height: 1.2;
    }

    .hero .hero-sub {
      color: var(--muted);
      font-size: 1.0625rem;
      max-width: 520px;
      letter-spacing: 0.02em;
    }

    /* Карточки-факты */
    .fact-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 28px;
    }

    .fact-card {
      flex: 1 1 200px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 20px 22px;
      position: relative;
    }

    .fact-card::before {
      content: "";
      position: absolute;
      inset: 5px;
      border: 1px solid rgba(201, 164, 92, 0.12);
      pointer-events: none;
    }

    .fact-card h3 {
      font-size: 0.6875rem;
      font-weight: 500;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 8px;
    }

    .fact-card p {
      font-size: 1rem;
      color: var(--text);
      margin: 0;
    }

    .section-cta {
      margin-top: 26px;
    }

    .btn-link {
      display: inline-block;
      padding: 13px 26px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      color: var(--gold);
      font-size: 0.9375rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: border-color 0.25s ease, background-color 0.25s ease;
    }

    .btn-link:hover {
      border-color: var(--gold);
      background-color: rgba(201, 164, 92, 0.08);
    }

    @media (prefers-reduced-motion: reduce) {
      .btn-link { transition: none; }
    }


    /* ---------- Фото банкета (banquets.html) ---------- */
    .banquet-gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 28px;
    }

    .banquet-photo {
      margin: 0;
      aspect-ratio: 4 / 3;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
      cursor: zoom-in;
      position: relative;
      transition: border-color 0.25s ease;
    }

    .banquet-photo::before {
      content: "";
      position: absolute;
      inset: 6px;
      border: 1px solid rgba(201, 164, 92, 0.18);
      pointer-events: none;
      z-index: 1;
    }

    .banquet-photo:hover {
      border-color: var(--gold);
    }

    .banquet-ph {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--surface);
      color: var(--muted);
      font-size: 0.875rem;
      letter-spacing: 0.08em;
    }

    .banquet-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    /* Лайтбокс */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(10, 13, 16, 0.88);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .lightbox.is-open {
      opacity: 1;
      visibility: visible;
    }

    .lightbox-img {
      max-width: 92vw;
      max-height: 92vh;
      border: 1px solid var(--gold);
      border-radius: var(--radius);
      transform: scale(0.85);
      opacity: 0;
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    }

    .lightbox.is-open .lightbox-img {
      transform: scale(1);
      opacity: 1;
    }

    /* Мобильные: зум отключён (см. lightbox.js) — курсор обычный */
    @media (max-width: 767px) {
      .banquet-photo {
        cursor: default;
      }
    }

    /* Планшет: 3 фото уже плотно */
    @media (max-width: 900px) {
      .banquet-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .lightbox,
      .lightbox-img,
      .banquet-photo {
        transition: none;
      }
      .lightbox-img {
        transform: none;
      }
    }

    .contact-row .phones {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 6px 0;
      align-items: center;
    }

    .contact-row .phones a + a {
      border-left: 1px solid var(--line);
      margin-left: 14px;
      padding-left: 14px;
    }

    /* Меню */
    .menu-group { margin-bottom: 34px; }
    .fact-grid + .menu-group,
    .banquet-gallery + .menu-group { margin-top: 44px; }
    .menu-group:last-child { margin-bottom: 0; }

    .menu-group h3 {
      font-family: "Marcellus", serif;
      font-size: 1.05rem;
      font-weight: 400;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 16px;
    }

    .menu-item {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 16px;
      padding: 9px 0;
      border-bottom: 1px dotted rgba(201, 164, 92, 0.2);
      font-size: 0.9375rem;
    }

    .menu-item:last-child { border-bottom: none; }

    .menu-item .dots {
      flex: 1;
      border-bottom: 1px dotted rgba(201, 164, 92, 0.25);
      transform: translateY(-4px);
    }

    .menu-item .price {
      color: var(--gold);
      font-weight: 500;
      white-space: nowrap;
    }

    .menu-note {
      margin-top: 26px;
      font-size: 0.8125rem;
      color: var(--muted);
      font-style: italic;
    }


    /* Таблица меню: наименование / выход / цена */
    .menu-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 22px;
      font-size: 0.9375rem;
    }

    .menu-table th {
      font-family: "Marcellus", serif;
      font-weight: 400;
      font-size: 0.8125rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold);
      text-align: left;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
    }

    .menu-table th:nth-child(2),
    .menu-table th:nth-child(3),
    .menu-table td:nth-child(2),
    .menu-table td:nth-child(3) {
      width: 110px;
      text-align: right;
      white-space: nowrap;
    }

    .menu-table td {
      padding: 9px 12px;
      border-bottom: 1px dotted rgba(201, 164, 92, 0.2);
    }

    .menu-table tr:hover td {
      background-color: rgba(201, 164, 92, 0.06);
    }

    .table-stub {
      color: var(--muted);
      font-style: italic;
      text-align: center !important;
      padding: 26px 12px !important;
    }

    @media (max-width: 560px) {
      .menu-table th:nth-child(2),
      .menu-table th:nth-child(3),
      .menu-table td:nth-child(2),
      .menu-table td:nth-child(3) {
        width: 80px;
      }

      .menu-table {
        font-size: 0.875rem;
      }

      .menu-table td {
        padding: 8px 8px;
      }
    }

    .back-link {
      margin-top: 40px;
      font-size: 1.05rem;
      font-style: normal;
      letter-spacing: 0.06em;
    }

    .back-link a {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 12px 22px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      color: var(--gold);
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-size: 0.9375rem;
      transition: border-color 0.25s ease, background-color 0.25s ease;
    }

    .back-link a:hover {
      border-color: var(--gold);
      background-color: rgba(201, 164, 92, 0.08);
    }

    @media (prefers-reduced-motion: reduce) {
      .back-link a { transition: none; }
    }

    /* Галерея-заглушка */
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
      gap: 16px;
      margin-top: 24px;
    }

    .gallery-ph {
      aspect-ratio: 4 / 3;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    /* Контакты */
    .contact-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 24px;
    }

    .contact-row {
      display: flex;
      gap: 14px;
      align-items: baseline;
      font-size: 1rem;
    }

    .contact-row .k {
      min-width: 110px;
      font-size: 0.6875rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .map-frame {
      margin-top: 28px;
      aspect-ratio: auto;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .map-fallback {
      padding: 12px 18px;
      font-size: 0.875rem;
      color: var(--muted);
      border-top: 1px solid var(--line);
    }

    .map-frame iframe {
      display: block;
      border: none;
      filter: grayscale(0.35) contrast(1.05);
    }

    @media (prefers-reduced-motion: no-preference) {
      .map-frame iframe { transition: filter 0.25s ease; }
      .map-frame iframe:hover { filter: none; }
    }

    .map-ph {
      margin-top: 28px;
      aspect-ratio: 16 / 7;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }

    .footer {
      margin-left: var(--sidebar-w);
      text-align: center;
      padding: 26px;
      color: var(--muted);
      font-size: 0.75rem;
      border-top: 1px solid var(--line);
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    /* Кнопка-бургер на мобильных */
    .sidebar-toggle {
      display: none;
      position: fixed;
      top: 14px;
      right: 14px;
      z-index: 20;
      width: 44px;
      height: 44px;
      border-radius: var(--radius);
      border: 1px solid var(--gold);
      background: var(--surface);
      color: var(--gold);
      font-size: 1.25rem;
      cursor: pointer;
    }

    /* ---------- Мобильная версия ---------- */
    @media (max-width: 900px) {
      .sidebar {
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: min(var(--sidebar-w), 78vw);
      }

      .sidebar.is-open { transform: translateX(0); }

      .sidebar-toggle { display: block; }

      .content, .footer { margin-left: 0; }

      .section { padding: 52px 20px; }
      .hero { padding: 80px 20px 60px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .sidebar { transition: none; }
    }

    /* ---------- Карточки категорий меню (index) ---------- */
    .page-lead {
      color: var(--muted);
      margin-bottom: 26px;
    }

    .cat-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px;
    }

    .cat-card {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 26px 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      position: relative;
      transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    }

    /* Двойная внутренняя рамка Art Deco */
    .cat-card::before {
      content: "";
      position: absolute;
      inset: 7px;
      border: 1px solid rgba(201, 164, 92, 0.18);
      border-radius: 1px;
      pointer-events: none;
      transition: border-color 0.25s ease;
    }

    .cat-card:hover {
      border-color: var(--gold);
      box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
      transform: translateY(-3px);
    }

    .cat-card:hover::before {
      border-color: rgba(201, 164, 92, 0.4);
    }

    .cat-num {
      font-family: "Marcellus", serif;
      font-size: 0.8125rem;
      letter-spacing: 0.3em;
      color: var(--gold);
    }

    .cat-title {
      font-family: "Marcellus", serif;
      font-size: 1.2rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text);
    }

    .cat-sub {
      font-size: 0.875rem;
      color: var(--muted);
      line-height: 1.55;
    }

    .cat-note {
      font-size: 0.875rem;
      color: var(--muted);
    }

    @media (max-width: 640px) {
      .cat-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .cat-card,
      .cat-card::before {
        transition: none;
      }
      .cat-card:hover {
        transform: none;
      }
    }
