:root {
      --paper: #fbf7ef;
      --cream: #f0e6d7;
      --ink: #201713;
      --muted: #70645c;
      --line: rgba(32, 23, 19, 0.14);
      --wine: #651319;
      --wine-soft: #8a2f2b;
      --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 {
      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-panel a:hover {
      color: var(--white);
      background: rgba(255, 250, 242, 0.08);
    }

    .mobile-menu input:checked ~ .mobile-panel {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .hero {
      position: relative;
      min-height: 88svh;
      display: grid;
      align-items: end;
      padding: 138px 0 64px;
      color: var(--white);
      isolation: isolate;
    }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background:
        linear-gradient(90deg, rgba(17, 11, 9, 0.88) 0%, rgba(17, 11, 9, 0.58) 48%, rgba(17, 11, 9, 0.16) 100%),
        linear-gradient(0deg, rgba(17, 11, 9, 0.58) 0%, rgba(17, 11, 9, 0) 45%),
        url("../images/archeus-vinna-pivnica-interier-klub.webp") center / cover;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: rgba(75, 33, 19, 0.1);
    }

    .hero-content {
      max-width: 720px;
    }

    .eyebrow {
      margin: 0 0 16px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: uppercase;
    }

    h1,
    h2,
    h3 {
      margin: 0;
      font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif;
      font-weight: 500;
      line-height: 1.05;
      letter-spacing: 0;
    }

    h1 {
      font-size: clamp(54px, 8vw, 96px);
    }

    .hero-lead {
      max-width: 620px;
      margin: 24px 0 0;
      color: rgba(255, 250, 242, 0.84);
      font-size: clamp(18px, 2vw, 23px);
      line-height: 1.55;
    }

    .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.44);
      background: rgba(255, 250, 242, 0.06);
    }

    .button.secondary.ghost {
      background: transparent;
    }

    .button.text {
      min-height: auto;
      padding: 0 0 5px;
      color: var(--wine);
      border: 0;
      border-bottom: 1px solid currentColor;
      border-radius: 0;
      background: transparent;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 34px;
    }

    .hero-note {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      max-width: 980px;
      margin-top: 64px;
      padding-top: 24px;
      border-top: 1px solid rgba(255, 250, 242, 0.22);
      color: rgba(255, 250, 242, 0.72);
      font-size: 15px;
      line-height: 1.45;
    }

    .hero-note-card {
      display: block;
      position: relative;
      min-height: 78px;
      padding: 6px 0;
      outline: 0;
      transform-origin: left top;
      backface-visibility: hidden;
      transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform;
    }

    .hero-note strong {
      display: block;
      margin-bottom: 6px;
      color: var(--white);
      font-family: "Tenor Sans", "Helvetica Neue", Arial, sans-serif;
      font-size: 22px;
      font-weight: 500;
      transition: color 220ms ease;
    }

    .hero-note-card span {
      display: block;
      position: absolute;
      top: 42px;
      left: 0;
      width: 100%;
      opacity: 0;
      pointer-events: none;
      transform: translate3d(0, 10px, 0);
      transition:
        opacity 320ms ease,
        transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
      will-change: opacity, transform;
    }

    .hero-note-card:hover,
    .hero-note-card:focus-visible {
      transform: translate3d(0, -3px, 0) scale3d(1.018, 1.018, 1);
    }

    .hero-note-card:hover span,
    .hero-note-card:focus-visible span {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    .hero-note-card:hover strong,
    .hero-note-card:focus-visible strong {
      color: var(--gold);
    }

    .hero-note-card:focus-visible {
      outline: 1px solid rgba(255, 250, 242, 0.5);
      outline-offset: 8px;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-note-card,
      .hero-note-card span,
      .hero-note strong {
        transition: none;
      }
    }

    .section {
      padding: clamp(72px, 8vw, 118px) 0;
    }

    .section.cream {
      background: var(--cream);
    }

    .section.dark {
      color: var(--white);
      background: var(--cellar);
    }

    .section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 32px;
      margin-bottom: 34px;
    }

    .section-head h2 {
      max-width: 690px;
      color: var(--wine);
      font-size: clamp(38px, 5vw, 62px);
    }

    .section-head p {
      max-width: 380px;
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.6;
    }

    .section.dark .section-head h2,
    .section.dark .section-head p {
      color: var(--white);
    }

    .feature {
      display: grid;
      grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
      gap: clamp(32px, 6vw, 76px);
      align-items: center;
    }

    .feature.reverse {
      grid-template-columns: minmax(320px, 0.38fr) minmax(0, 0.62fr);
    }

    .feature-media {
      min-height: 500px;
      overflow: hidden;
      border-radius: 8px;
      background: var(--cream);
    }

    .feature-media img {
      width: 100%;
      height: 100%;
      min-height: inherit;
      object-fit: cover;
    }

    #degustacie .feature {
      grid-template-columns: minmax(0, 0.52fr) minmax(320px, 0.48fr);
    }

    #degustacie .feature-media {
      aspect-ratio: 4 / 3;
      align-self: center;
      min-height: 0;
    }

    #degustacie .feature-media img {
      min-height: 0;
    }

    .feature-media.tasting-media {
      aspect-ratio: 4 / 3;
      min-height: 0;
      border: 1px solid var(--line);
      background: rgba(255, 250, 242, 0.5);
    }

    .feature-media.tasting-media img {
      min-height: 0;
      object-fit: contain;
      object-position: center;
    }

    .feature-copy {
      max-width: 460px;
    }

    .feature-copy h2 {
      color: var(--wine);
      font-size: clamp(38px, 5vw, 62px);
    }

    .feature-copy .event-date {
      margin: 0 0 14px;
      color: var(--wine);
      font-size: 17px;
      font-weight: 700;
      line-height: 1.4;
    }

    .feature-copy p {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.65;
    }

    .feature-copy .button {
      margin-top: 28px;
    }

    .kicker {
      display: inline-flex;
      margin-bottom: 14px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .highlight-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

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

    .highlight-grid.four {
      grid-template-columns: repeat(4, 1fr);
    }

    .highlight-card {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
    }

    .highlight-card img {
      height: 275px;
      object-fit: cover;
    }

    .winery-card-bona img {
      object-position: center 18%;
    }

    .wine-highlight-card img {
      background: #fff;
      object-fit: contain;
      object-position: center;
    }

    .highlight-card .body {
      padding: 24px;
    }

    .highlight-card h3 {
      color: var(--ink);
      font-size: 28px;
    }

    .highlight-card p {
      min-height: 54px;
      margin: 12px 0 22px;
      color: var(--muted);
      line-height: 1.55;
    }

    .wine-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }

    .wine-row-controls {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }

    .wine-row-control {
      display: inline-grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--paper);
      color: var(--wine);
      cursor: pointer;
    }

    .wine-row-control:hover:not(:disabled) {
      border-color: rgba(101, 19, 25, 0.38);
      background: var(--cream);
    }

    .wine-row-control:disabled {
      opacity: 0.36;
      cursor: default;
    }

    .wine-row--new {
      --new-wine-card-width: calc((100% - 48px) / 4);
    }

    .wine-row--new.is-centered {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }

    .wine-row--new.is-centered .wine-mini {
      flex: 0 1 var(--new-wine-card-width);
      width: var(--new-wine-card-width);
    }

    .wine-row--new.is-scrollable {
      display: flex;
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      padding-bottom: 10px;
      scroll-snap-type: x proximity;
      scrollbar-color: rgba(101, 19, 25, 0.5) rgba(32, 23, 19, 0.1);
      scrollbar-width: thin;
      -webkit-overflow-scrolling: touch;
    }

    .wine-row--new.is-scrollable .wine-mini {
      flex: 0 0 var(--new-wine-card-width);
      scroll-snap-align: start;
    }

    .wine-row--new.is-scrollable::-webkit-scrollbar {
      height: 8px;
    }

    .wine-row--new.is-scrollable::-webkit-scrollbar-track {
      background: rgba(32, 23, 19, 0.1);
      border-radius: 999px;
    }

    .wine-row--new.is-scrollable::-webkit-scrollbar-thumb {
      background: rgba(101, 19, 25, 0.5);
      border-radius: 999px;
    }

    .wine-mini {
      display: grid;
      grid-template-rows: 220px auto;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
    }

    .wine-mini img {
      height: 100%;
      padding: 14px;
      background: #fff;
      object-fit: contain;
      object-position: center;
    }

    .wine-mini .body {
      padding: 20px;
    }

    .wine-mini h3 {
      font-size: 24px;
    }

    .wine-mini p {
      margin: 9px 0 18px;
      color: var(--muted);
      line-height: 1.45;
    }

    .story-pair {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 22px;
    }

    .story-tile {
      position: relative;
      min-height: 460px;
      display: grid;
      align-items: end;
      overflow: hidden;
      padding: 34px;
      border-radius: 8px;
      color: var(--white);
      isolation: isolate;
    }

    .story-tile::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      background: var(--night) center / cover;
    }

    .story-tile.pivnica::before {
      background-image:
        linear-gradient(0deg, rgba(17, 11, 9, 0.86) 0%, rgba(17, 11, 9, 0.18) 72%),
        url("../images/archeus-vinna-pivnica-interier-plastika-anjeli-na-stene.webp");
    }

    .story-tile.onas::before {
      background-image:
        linear-gradient(0deg, rgba(17, 11, 9, 0.86) 0%, rgba(17, 11, 9, 0.18) 72%),
        url("../images/archeus-vinna-pivnica-interier-vinoteka.webp");
    }

    .story-tile h2 {
      font-size: clamp(34px, 4vw, 52px);
    }

    .story-tile p {
      max-width: 420px;
      margin: 13px 0 24px;
      color: rgba(255, 250, 242, 0.78);
      line-height: 1.55;
    }

    .story-tile .button.text {
      color: var(--white);
    }

    .latest-article {
      display: grid;
      grid-template-columns: minmax(0, 0.48fr) minmax(320px, 0.52fr);
      gap: clamp(32px, 6vw, 76px);
      align-items: center;
      padding-top: 34px;
      border-top: 1px solid var(--line);
    }

    .latest-article-copy h2 {
      color: var(--wine);
      font-size: 35px;
      line-height: 1.18;
    }

    .latest-article-copy p:not(.eyebrow) {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 18px;
      line-height: 1.68;
    }

    .article-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      margin-top: 16px;
      color: var(--gold);
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }

    .article-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 28px;
    }

    .latest-article-media {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--cream);
    }

    .latest-article-media img {
      height: 390px;
      object-fit: cover;
      transition: transform 260ms ease;
    }

    .latest-article-media:hover img {
      transform: scale(1.025);
    }

    .contact {
      padding: 70px 0;
      color: var(--white);
      background: var(--wine);
    }

    .contact-inner {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 32px;
      align-items: center;
    }

    .contact h2 {
      max-width: 760px;
      font-size: clamp(34px, 4.5vw, 62px);
    }

    .contact p {
      max-width: 620px;
      margin: 14px 0 0;
      color: rgba(255, 250, 242, 0.78);
      font-size: 17px;
      line-height: 1.6;
    }

    .contact-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 12px;
    }

    .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 (max-width: 980px) {
      .menu {
        display: none;
      }

      .mobile-menu {
        display: block;
      }

      .feature,
      .feature.reverse,
      .section-head,
      .contact-inner,
      .latest-article,
      .footer-main {
        grid-template-columns: 1fr;
      }

      .contact-actions {
        justify-content: flex-start;
      }

      .feature,
      .feature.reverse,
      .section-head {
        display: grid;
      }

      .hero-note,
      .highlight-grid,
      .highlight-grid.two,
      .highlight-grid.four,
      .wine-row,
      .story-pair {
        grid-template-columns: 1fr 1fr;
      }

      .wine-row--new {
        --new-wine-card-width: calc((100% - 16px) / 2);
      }

      .feature-media {
        min-height: 390px;
      }

      #degustacie .feature {
        grid-template-columns: 1fr;
      }

      #degustacie .feature-media {
        aspect-ratio: 16 / 10;
        min-height: 0;
      }

      .feature-media.tasting-media {
        aspect-ratio: 16 / 10;
      }
    }

    @media (max-width: 640px) {
      .wrap,
      .topbar-inner {
        width: min(calc(100% - 32px), 1200px);
      }

      .topbar {
        padding-top: 22px;
      }

      .hero {
        min-height: 92svh;
        padding-bottom: 42px;
      }

      .hero-note,
      .highlight-grid,
      .highlight-grid.two,
      .highlight-grid.four,
      .wine-row,
      .story-pair {
        grid-template-columns: 1fr;
      }

      .wine-row--new {
        --new-wine-card-width: 100%;
      }

      .hero-actions,
      .button {
        width: 100%;
      }

      .wine-mini {
        grid-template-rows: 210px auto;
      }

      .highlight-card img {
        height: 210px;
      }

      .latest-article-media img {
        height: 240px;
      }

      .story-tile {
        min-height: 390px;
        padding: 24px;
      }
    }

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