:root {
      --paper: #fbf7ef;
      --cream: #f0e6d7;
      --ink: #201713;
      --muted: #70645c;
      --line: rgba(32, 23, 19, 0.14);
      --wine: #651319;
      --gold: #b08a4c;
      --cellar: #2a1715;
      --night: #17110f;
      --white: #fffaf2;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif;
      letter-spacing: 0;
    }
    img { display: block; width: 100%; height: auto; }
    a { color: inherit; text-decoration: none; }
    .wrap { width: min(calc(100% - 64px), 1200px); margin-inline: auto; }

    .topbar {
      position: absolute;
      inset: 0 0 auto;
      z-index: 10;
      padding: 28px 0;
      color: var(--white);
    }
    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
      width: min(calc(100% - 64px), 1200px);
      margin-inline: auto;
    }
    .brand { display: grid; gap: 4px; min-width: max-content; }
    .brand strong { font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-size: 26px; font-weight: 500; line-height: 1; }
    .brand span { color: rgba(255, 250, 242, 0.72); font-size: 13px; }
    .menu { display: flex; align-items: center; gap: 24px; color: rgba(255, 250, 242, 0.84); font-size: 14px; font-weight: 650; }
    .menu a { padding: 8px 0; border-bottom: 1px solid transparent; }
    .menu a:hover, .menu a.active { color: var(--white); border-color: var(--gold); }

    .mobile-menu { display: none; position: relative; }
    .mobile-menu input { position: absolute; opacity: 0; pointer-events: none; }
    .menu-toggle {
      display: inline-grid;
      place-items: center;
      width: 46px;
      height: 46px;
      border: 1px solid rgba(255, 250, 242, 0.36);
      border-radius: 4px;
      background: rgba(255, 250, 242, 0.06);
      cursor: pointer;
    }
    .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--white);
      content: "";
    }
    .menu-toggle span { position: relative; }
    .menu-toggle span::before { position: absolute; top: -7px; }
    .menu-toggle span::after { position: absolute; top: 7px; }
    .mobile-panel {
      position: absolute;
      top: 58px;
      right: 0;
      width: min(320px, calc(100vw - 32px));
      display: grid;
      gap: 2px;
      padding: 12px;
      border: 1px solid rgba(255, 250, 242, 0.16);
      border-radius: 8px;
      background: rgba(23, 17, 15, 0.96);
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
      opacity: 0;
      transform: translateY(-8px);
      pointer-events: none;
      transition: opacity 180ms ease, transform 180ms ease;
    }
    .mobile-panel a { padding: 13px 12px; border-radius: 4px; color: rgba(255, 250, 242, 0.84); font-weight: 700; }
    .mobile-menu input:checked ~ .mobile-panel { opacity: 1; transform: translateY(0); pointer-events: auto; }

    .hero {
      position: relative;
      min-height: 28svh;
      display: grid;
      align-items: end;
      padding: 132px 0 28px;
      color: var(--white);
      isolation: isolate;
    }
    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background:
        linear-gradient(90deg, rgba(17, 11, 9, 0.9), rgba(17, 11, 9, 0.56), rgba(17, 11, 9, 0.18)),
        url("../images/archeus-vinna-pivnica-interier-atmosfera.webp") center / cover;
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: clamp(24px, 4vw, 48px);
      align-items: end;
    }
    .hero-grid > div:first-child {
      max-width: 640px;
    }
    .eyebrow {
      margin: 0 0 16px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }
    h1, h2, h3 { margin: 0; font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-weight: 500; line-height: 1.06; letter-spacing: 0; }
    h1 { font-size: clamp(34px, 4vw, 52px); }
    h2 { color: var(--wine); font-size: clamp(26px, 3vw, 38px); }
    h3 { font-size: 24px; }
    .lead { max-width: 600px; margin: 16px 0 0; color: rgba(255, 250, 242, 0.82); font-size: 17px; line-height: 1.55; }
    .wine-return-link {
      display: inline-flex;
      align-items: center;
      width: fit-content;
      max-width: 100%;
      margin-top: 20px;
      padding: 10px 12px;
      border: 1px solid rgba(255, 250, 242, 0.22);
      border-radius: 4px;
      color: var(--white);
      font-size: 14px;
      font-weight: 800;
      line-height: 1.25;
      overflow-wrap: anywhere;
      transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    }
    .wine-return-link:hover {
      background: rgba(255, 250, 242, 0.08);
      border-color: rgba(176, 138, 76, 0.5);
      color: var(--white);
    }

    .section { padding: clamp(56px, 6vw, 84px) 0; }
    .cream { background: var(--cream); }
    .detail-layout {
      display: grid;
      grid-template-columns: minmax(0, 0.64fr) minmax(320px, 0.36fr);
      gap: clamp(36px, 6vw, 82px);
      align-items: start;
    }
    .content p { color: var(--muted); font-size: 16px; line-height: 1.68; }
    .detail-wine-photo {
      margin: 26px 0 28px;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--white);
      max-width: 560px;
      padding: clamp(18px, 3vw, 34px);
      display: flex;
      justify-content: center;
    }
    .detail-wine-photo img {
      width: auto;
      max-width: 100%;
      max-height: 560px;
      object-fit: contain;
      background: transparent;
    }
    .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
    .tag { display: inline-flex; padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 13px; font-weight: 750; }
    .spec-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 9px;
      margin-top: 28px;
    }
    .spec {
      padding: 13px 14px;
      border: 1px solid var(--line);
      border-radius: 6px;
      background: var(--paper);
    }
    .spec span { display: block; color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
    .spec strong { display: block; margin-top: 6px; font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.26; }

    .aside-card {
      position: sticky;
      top: 24px;
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--cellar);
      color: var(--white);
    }
    .aside-card h2 { color: var(--white); font-size: 30px; }
    .aside-card p { color: rgba(255, 250, 242, 0.72); line-height: 1.58; }
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 12px 18px;
      border: 1px solid transparent;
      border-radius: 4px;
      font-size: 14px;
      font-weight: 700;
    }
    .button.primary { color: var(--white); background: var(--wine); }
    .button.secondary { color: var(--white); border-color: rgba(255, 250, 242, 0.32); background: rgba(255, 250, 242, 0.06); }
    .button.light { color: var(--wine); border-color: var(--line); background: transparent; }
    .selected-wine {
      display: flex;
      justify-content: space-between;
      gap: 18px;
      margin: 22px 0 0;
      padding: 16px 0 0;
      border-top: 1px solid rgba(255, 250, 242, 0.14);
      color: rgba(255, 250, 242, 0.82);
    }
    .selected-wine--name {
      display: block;
    }
    .selected-wine span {
      min-width: 0;
      overflow-wrap: anywhere;
    }
    .selected-wine strong { color: var(--white); }
    .order-wine-facts {
      display: grid;
      margin: 10px 0 22px;
      border-top: 1px solid rgba(255, 250, 242, 0.14);
    }
    .order-wine-facts div {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 250, 242, 0.14);
      color: rgba(255, 250, 242, 0.72);
      font-size: 15px;
      line-height: 1.35;
    }
    .order-wine-facts span {
      flex: 0 0 auto;
    }
    .order-wine-facts strong {
      min-width: 0;
      color: var(--white);
      font-weight: 500;
      overflow-wrap: anywhere;
      text-align: right;
    }
    .aside-card a.wine-return-link--aside,
    .aside-card a.wine-return-link--aside:visited {
      color: rgba(255, 250, 242, 0.9) !important;
      border-color: rgba(255, 250, 242, 0.24);
      margin-top: 0;
    }
    .aside-card a.wine-return-link--aside:hover,
    .aside-card a.wine-return-link--aside:focus-visible {
      background: rgba(255, 250, 242, 0.08);
      border-color: rgba(176, 138, 76, 0.5);
      color: var(--white) !important;
    }
    .share {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 24px;
      padding-top: 18px;
      border-top: 1px solid rgba(255, 250, 242, 0.14);
    }
    .share span { color: rgba(255, 250, 242, 0.62); font-size: 13px; font-weight: 800; text-transform: uppercase; }
    .share a {
      display: inline-grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border: 1px solid rgba(255, 250, 242, 0.22);
      border-radius: 4px;
      color: var(--white);
      transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
    }
    .share a:hover { border-color: var(--gold); color: var(--night); background: var(--gold); transform: translateY(-1px); }

    .winery {
      display: grid;
      grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
      gap: clamp(30px, 5vw, 70px);
      align-items: center;
    }
    .winery img { min-height: 430px; border-radius: 8px; object-fit: cover; }
    .winery p { color: var(--muted); font-size: 17px; line-height: 1.7; }
    .event-link {
      display: grid;
      grid-template-columns: 160px minmax(0, 1fr) auto;
      gap: 22px;
      align-items: center;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
    }
    .event-link strong { color: var(--wine); font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-size: 26px; font-weight: 500; }
    .event-link span, .event-link p { color: var(--muted); }

    .footer { padding: 0; color: rgba(255, 250, 242, 0.68); background: var(--night); font-size: 14px; }
    .footer-main { display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(230px, 1fr) minmax(260px, 1fr); gap: clamp(30px, 5vw, 70px); padding: 44px 0 30px; }
    .footer-brand { display: grid; align-content: start; gap: 10px; }
    .footer-brand strong { color: var(--white); font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif; font-size: 23px; font-weight: 500; }
    .footer-brand span, .footer-bottom { color: rgba(255, 250, 242, 0.56); }
    .footer-title { display: block; margin-bottom: 14px; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; }
    .footer-contact, .footer-links, .footer-nav { display: grid; align-content: start; }
    .footer-contact { gap: 10px; }
    .footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
    .footer-contact i { width: 16px; color: var(--gold); font-size: 13px; text-align: center; }
    .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
    .footer a:hover { color: var(--white); }
    .footer-social { display: flex; gap: 8px; margin-top: 18px; }
    .footer-social a { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 250, 242, 0.16); border-radius: 4px; color: rgba(255, 250, 242, 0.72); transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease; }
    .footer-social a:hover { color: var(--white); border-color: rgba(176, 138, 76, 0.48); background: rgba(255, 250, 242, 0.06); transform: translateY(-1px); }
    .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 17px 0 20px; border-top: 1px solid rgba(255, 250, 242, 0.1); font-size: 13px; }
    .footer-credit a { color: rgba(255, 250, 242, 0.78); font-weight: 750; }

    @media (min-width: 981px) {
      .hero-grid > div:first-child {
        margin-left: clamp(72px, 10vw, 180px);
      }
    }
    @media (max-width: 980px) {
      .menu { display: none; }
      .mobile-menu { display: block; }
      .hero-grid, .detail-layout, .winery, .event-link { grid-template-columns: 1fr; }
      .hero-grid > div:first-child { max-width: 680px; margin-left: 0; }
      .footer-main { grid-template-columns: 1fr; }
      .aside-card { position: static; }
    }
    @media (max-width: 680px) {
      .wrap, .topbar-inner { width: min(calc(100% - 32px), 1200px); }
      .hero { min-height: 32svh; padding: 118px 0 28px; }
      .spec-grid { grid-template-columns: 1fr; }
      .detail-wine-photo {
        max-width: 100%;
        padding: 16px;
      }
      .order-wine-facts div {
        display: grid;
        gap: 4px;
      }
      .order-wine-facts strong {
        text-align: left;
      }
      .button { width: 100%; }
    }

body.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .topbar { top: 46px; } }
