
      * {
        box-sizing:border-box
      }
      body {
        margin:0;
        background:#f7f5ec;
        color:#202821;
        font:16px/1.7 'DM Sans',Arial,sans-serif
      }
      .top {
        height:8px;
        background:#123d31
      }
      header {
        position:sticky;
        top:0;
        background:#111514;
        z-index:3;
        box-shadow:0 3px 12px #1112
      }
      .head {
        max-width:1320px;
        height:54px;
        margin:auto;
        padding:0 18px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:18px
      }
      .brand {
        display:flex;
        align-items:center;
        gap:10px;
        flex:0 0 auto;
        color:#fff;
        font:500 15px 'Playfair Display',Georgia,serif;
        text-decoration:none;
        white-space:nowrap
      }
      .brand-mark {
        width:32px;
        height:32px;
        flex:0 0 32px;
        border-radius:50%;
        display:block;
        object-fit:contain;
        background:#fff
      }
      .brand small {
        display:block;
        margin-top:1px;
        color:#bdc4bd;
        font:9px 'DM Sans',Arial,sans-serif;
        letter-spacing:.14em;
        text-transform:uppercase
      }
      nav {
        display:flex;
        align-items:stretch;
        overflow-x:auto;
        scrollbar-width:none;
        white-space:nowrap
      }
      nav::-webkit-scrollbar {
        display:none
      }
      nav a {
        color:#f2f3ef;
        text-decoration:none;
        padding:18px 10px;
        font-size:12px
      }
      nav a:hover,nav a.active {
        background:#303431;
        color:white
      }
      .wrap {
        max-width:1180px;
        margin:26px auto 76px;
        padding:0 24px
      }
      .cover {
        min-height:260px;
        padding:46px;
        border-radius:18px;
        background:linear-gradient(90deg,#102a22e8,#102a2250),url('../Photos/nasi%20konici.jpeg?v=af0979a12eb2') center 65%/cover;
        display:flex;
        align-items:end;
        color:white
      }
      .cover h1 {
        font:600 clamp(36px,6vw,58px)/1.12 'Playfair Display',Georgia,serif;
        margin:0
      }
      .kicker {
        color:#b89952;
        text-transform:uppercase;
        letter-spacing:.18em;
        font-size:11px;
        font-weight:700
      }
      .panel {
        background:#fffdf7;
        border:1px solid #e8e4d7;
        border-radius:15px;
        padding:30px;
        margin:18px 0;
        box-shadow:0 12px 32px #193c2b0c
      }
      h2 {
        font:600 30px 'Playfair Display',Georgia,serif;
        color:#123d31;
        margin:0 0 12px
      }
      h3 {
        font:600 21px 'Playfair Display',Georgia,serif;
        margin:0 0 8px
      }
      p {
        color:#59645c;
        margin:0 0 14px
      }
      .cards {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
        gap:17px
      }
      .card {
        background:#fffdf7;
        border:1px solid #e8e4d7;
        border-radius:14px;
        overflow:hidden
      }
      .card img {
        width:100%;
        height:185px;
        object-fit:cover;
        display:block
      }
      .card div {
        padding:18px
      }
      .card-hint {
        margin:20px 0 0;
        padding:13px 18px;
        border-radius:10px;
        background:#e5eee7;
        color:#123d31;
        text-align:center;
        font-weight:700
      }
      .gallery {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
        gap:12px
      }
      .horse-card {
        height:340px;
        perspective:1000px;
        cursor:pointer;
        outline:none
      }
      .horse-card:focus-visible {
        outline:3px solid #b89952;
        outline-offset:3px;
        border-radius:12px
      }
      .horse-card-inner {
        position:relative;
        width:100%;
        height:100%;
        transition:transform .65s;
        transform-style:preserve-3d
      }
      .horse-card.is-flipped .horse-card-inner {
        transform:rotateY(180deg)
      }
      .horse-card-front,.horse-card-back {
        position:absolute;
        inset:0;
        overflow:hidden;
        border-radius:12px;
        backface-visibility:hidden
      }
      .horse-card-front img {
        display:block;
        width:100%;
        height:100%;
        object-fit:cover;
        object-position:center top
      }
      .horse-card-back {
        transform:rotateY(180deg);
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:8px;
        padding:24px;
        background:#123d31;
        color:#fff;
        text-align:center
      }
      .horse-card-back strong {
        font:600 28px 'Playfair Display',Georgia,serif
      }
      .horse-card-back span {
        font-size:14px;
        color:#e8e4d7
      }
      .horse-card-back .horse-full-name {
        font-size:13px
      }
      .horse-card-back .horse-breed {
        font-size:13px
      }
      .horse-card-back .horse-note {
        font-size:12px;
        color:#d7c58d
      }
      .details {
        display:grid;
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
        gap:16px
      }
      .detail {
        background:#f1efe4;
        border-radius:12px;
        padding:20px
      }
      .detail strong {
        display:block;
        color:#123d31
      }
      .button {
        display:inline-block;
        background:#b89952;
        color:#fff;
        text-decoration:none;
        padding:11px 18px;
        border-radius:30px;
        font-weight:700;
        font-size:12px;
        margin-top:8px
      }
      footer {
        background:#0e3328;
        color:#dae2d8;
        padding:20px 24px;
        font-size:12px
      }
      footer div {
        max-width:1180px;
        margin:auto;
        display:flex;
        justify-content:space-between;
        gap:12px
      }
      @media(max-width:900px) {
        .head {
          padding:0 10px;
          gap:8px
        }
        .brand {
          font-size:13px
        }
        .brand small {
          display:none
        }
        nav a {
          padding:18px 7px;
          font-size:11px
        }
      }
      @media(max-width:650px) {
        .horse-card {
          height:290px
        }
        .head {
          height:auto;
          min-height:54px;
          padding:0 8px;
          display:block
        }
        .brand {
          display:none
        }
        nav {
          width:100%
        }
        nav a {
          padding:18px 10px;
          font-size:12px
        }
        .wrap {
          padding:0 14px;
          margin-top:18px
        }
        .cover {
          min-height:220px;
          padding:25px
        }
        .panel {
          padding:21px
        }
        footer div {
          flex-direction:column
        }
      }
          /* Responsive layout for tablets and phones */
      @media (max-width:767px) {
        .head {
          height:auto;
          min-height:54px;
          padding:8px 10px;
          display:flex;
          flex-direction:column;
          align-items:stretch;
          gap:4px
        }
        .head > .brand {
          display:flex;
          justify-content:center;
          padding:4px 0
        }
        .head .brand small {
          display:block
        }
        .head nav {
          width:100%;
          display:flex;
          flex-wrap:wrap;
          justify-content:center;
          overflow:visible;
          white-space:normal
        }
        .head nav a {
          display:flex;
          align-items:center;
          justify-content:center;
          min-height:40px;
          padding:7px 9px;
          text-align:center
        }
        .nav {
          height:auto;
          min-height:54px;
          padding:8px 10px;
          display:flex;
          flex-direction:column;
          align-items:stretch;
          gap:4px
        }
        .nav > .brand {
          display:flex;
          justify-content:center;
          padding:4px 0
        }
        .nav .brand small {
          display:block
        }
        .navlinks {
          width:100%;
          display:flex;
          flex-wrap:wrap;
          justify-content:center;
          overflow:visible;
          white-space:normal
        }
        .navlinks a {
          display:flex;
          align-items:center;
          justify-content:center;
          min-height:40px;
          padding:7px 9px;
          text-align:center
        }
        .wrap {
          width:100%;
          margin:18px auto 42px;
          padding:0 14px
        }
        .cover {
          min-height:200px;
          padding:28px 22px;
          border-radius:15px
        }
        .cover h1 {
          font-size:clamp(34px,9vw,48px);
          overflow-wrap:anywhere
        }
        .panel {
          padding:20px 18px;
          margin:14px 0
        }
        .cards,
        .gallery,
        .details,
        .contact-details {
          grid-template-columns:minmax(0,1fr);
          gap:14px
        }
        .contact-details .detail:first-child {
          grid-column:auto
        }
        .gallery img {
          width:100%;
          max-width:100%;
          height:auto;
          max-height:360px;
          object-fit:cover
        }
        .map-preview {
          width:100%;
          height:clamp(280px,75vw,420px)
        }
        .detail,
        .panel p,
        footer {
          overflow-wrap:anywhere
        }
        .button,
        .button-outline,
        .more {
          min-height:44px;
          display:inline-flex;
          align-items:center
        }
        footer,
        footer > div {
          padding-left:14px;
          padding-right:14px
        }
      }
      @media (max-width:650px) {
        .cards,
        .gallery,
        .details,
        .contact-details {
          grid-template-columns:minmax(0,1fr)
        }
        .cover h1 {
          font-size:clamp(32px,10vw,44px)
        }
        .panel {
          padding:18px 16px
        }
        .rules-section h2 {
          font-size:20px;
          line-height:1.35;
          overflow-wrap:anywhere
        }
      }
      @media (max-width:380px) {
        .head,
        .nav {
          padding-left:8px;
          padding-right:8px
        }
        .head nav a,
        .navlinks a {
          padding-left:7px;
          padding-right:7px;
          font-size:11px
        }
        .wrap {
          padding-left:12px;
          padding-right:12px
        }
        .cover {
          padding:24px 18px
        }
        .panel {
          padding:16px 14px
        }
      }
      
      footer .city-support {
        display:inline-flex;
        align-items:center;
        gap:10px;
        max-width:100%
      }
      footer .city-support-text {
        min-width:0
      }
      footer .city-support-mark {
        display:block;
        width:auto;
        height:40px;
        max-width:none;
        max-height:none;
        flex:0 0 auto;
        object-fit:contain;
        border:0;
        border-radius:0;
        padding:0;
        box-shadow:none;
        background:transparent;
        filter:none
      }
      @media (max-width:767px) {
        .gallery {
          grid-template-columns:repeat(2,minmax(0,1fr));
          gap:10px
        }
        .gallery .horse-card {
          height:auto;
          min-height:250px;
          aspect-ratio:2/3;
          min-width:0
        }
        .gallery .horse-card-front {
          background:#f1efe4
        }
        .gallery .horse-card-front img {
          width:100%;
          height:100%;
          max-height:none;
          object-fit:contain;
          object-position:center
        }
        .gallery .horse-card-front img.horse-photo-mates {
          object-fit:cover;
          object-position:25% center
        }
        .gallery .horse-card-back {
          padding:12px 10px;
          gap:6px;
          overflow-y:auto;
          overflow-wrap:anywhere
        }
        .gallery .horse-card-back strong {
          font-size:21px;
          line-height:1.15
        }
        .gallery .horse-card-back span {
          font-size:12px;
          line-height:1.35
        }
        .gallery .horse-card-back .horse-note {
          font-size:11px
        }
      }
      .gallery #horse-vivi {
        grid-column:1
      }
      .gallery #horse-vivi .horse-card-front {
        background:#000
      }
      .gallery #horse-vivi .horse-card-front img {
        width:100%;
        height:100%;
        max-height:none;
        object-fit:contain;
        object-position:center;
        transform:none
      }
      