:root {
    --fg: #111111;
    --muted: #6b7280;
    --accent: #111111;
    --px: 0px;
    --py: 0px;
}
  
*{ box-sizing: border-box; }
  
body {
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.35)), url("images/background.jpg") center/cover no-repeat;
    filter: blur(4px) brightness(0.7);
    transform: translate3d(var(--px,0), var(--py,0), 0) scale(1.12);
    will-change: transform;
    transform-origin: center;
    z-index: 0;
    pointer-events: none;
}

#container { position: relative; z-index: 1; }

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Varela Round', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--fg);
    background: #0b0b0b;
}
  
#container {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
  
#header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 28px 20px 18px;
    text-align: center;
}
  
#header_title {
    margin: 0;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: "Chiron GoRound TC", sans-serif;
}

#header_container {
    display: inline-flex;
    gap: 10px;
}

#header_container img {
    height: 29px;
    width: 29px;
}
  
#main {
    width: min(1100px, 92vw);
    margin: 100px auto 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: "Chiron GoRound TC", sans-serif;
}
  
#info {
    border-radius: 16px;
    color: white;
    padding: 20px 40px;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    border: solid 2px transparent;

    transition: border .2s linear;
}
  
#info h1 {
    font-size: 22px;
    margin: 0 0 6px;
}
  
#info p {
    margin: 0;
    color: white;
    line-height: 1.6;
}

#info:hover {
    border: solid 2px white;
}

#offers {
    border-radius: 16px;
    color: white;
    padding: 20px;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    border: solid 2px transparent;

    transition: border .2s linear;
}

#offers h1 {
    font-size: 22px;
    margin: 0 0 6px;
}

#offers p {
    margin: 0;
    color: white;
    line-height: 1.6;
}

#offers:hover {
    border: solid 2px white;
}

#offers .cat-selector {
    align-items: center;
    justify-content: center;
    margin:8px 0 12px;
    position: relative;             /* ВАЖНО: чтобы стрелки позиционировались от этого блока */
    display: grid;
    grid-template-columns: 35px 1fr 35px; /* стрелка — название — стрелка */                 /* идеальный вертикальный центр */
    column-gap: 12px;
    margin: 8px 0 12px;
    min-height: 35px;
    grid-auto-rows: minmax(35px,auto);
}

#offers .cat-arrow {
    position: static;
    background: transparent;
    color: white;
    border: solid 1px transparent;
    border-radius: 10px;
    width: 35px;
    height: 35px;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(2px);
    transition: transform 160ms ease, box-shadow 160ms ease, border 160ms ease;
}

#offers .cat-arrow.left  {
    grid-column: 1;
    justify-self: start; 
}

#offers .cat-arrow.right {
    grid-column: 3;
    justify-self: end;
}

#offers .cat-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: solid 1px white;
}
  
#offers .cat-name {
    position: relative;
    display: block;
    text-align: center;
    font-family: "Chiron GoRound TC", sans-serif;
    font-size: 18px;
    letter-spacing: .2px;
    line-height: 1.4;             /* вертикальное центрирование по высоте стрелок */
    user-select: none;
}

#offers .services-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
  
#offers .service-item {
    padding:10px 14px;
    background: transparent;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

#caption {
    text-align: center;
    backdrop-filter: blur(2px);
}
  
#gallery {
    position: relative;
    border-radius: 18px;
    padding: 20px;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 6px 26px rgba(0,0,0,0.06);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    border: solid 2px transparent;

    transition: border .2s linear;
}

#gallery:hover {
    border: solid 2px white;
}
  
#gallery .stage {
    position: relative;
    padding: 0 42px;
}

#gallery .viewport {
    display: grid;
    grid-template-columns: 1fr minmax(0, 1.2fr) 1fr;
    align-items: center;
    gap: 14px;
    user-select: none;
}
  
#gallery .card {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 16 / 10;
    transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease;
    background: black;
}
  
#gallery .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
  
#gallery .card.center {
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    z-index: 2;
}

#gallery .card.center img { animation: none !important; }
  
#gallery .card.side {
    transform: scale(0.92);
    filter: brightness(0.5) blur(1px);
    will-change: filter;
    z-index: 1;
}
  
#gallery .arrow {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid transparent;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 20px;
    line-height: 42px;
    text-align: center;
    padding: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    backdrop-filter: blur(2px);
    transition: transform 160ms ease, box-shadow 160ms ease, border 160ms ease;
}
  
#gallery .arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 1px solid white;
}
  
#gallery .arrow.left {
    left: 0px;
}

#gallery .arrow.right {
    right: 0px;
}

#gallery .caption {
    position: static;
    margin-top: 40px;
    color: white;
    background: transparent;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.6;
}

.swipe-overlay {
    display: none !important;
    pointer-events: none;
    transition: opacity .25s ease;
}

#description {
    border-radius: 16px;
    padding: 20px;
    background: rgba(0,0,0,0.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    color: white;
    border: solid 2px transparent;

    transition: border .2s linear;
}

#description:hover {
    border: solid 2px white;
}

#description h1 {
    font-size: 22px;
    margin: 0 0 6px;
}

#description p {
    margin: 0;
    line-height: 1.6;
}
  
#footer {
    margin-top: auto;
    padding: 22px;
    text-align: center;
    color: white;
    font-size: 13px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    font-family: "Chiron GoRound TC", sans-serif;
}
  
@media (max-width: 780px) {
    #main {
        margin: 30px auto 48px;
    }
    #info {
        padding: 10px;
    }
    #info p {
        font-size: 14px;
    }
    #offers {
        padding: 10px;
    }
    #offers {
        font-size: 14px;
    }
    #gallery {
      padding: 10px;
    }
    #gallery .stage {
        padding: 0;
        position: relative;
    }
    #gallery .viewport {
      gap: 0;
      grid-template-columns: 1fr;
      padding: 0;
    }
    #gallery .card {
        border-radius: 12px;
        width: 100%;
    }
    #gallery .card.center {
        transform: none;
        box-shadow: 0 8px 22px rgba(0,0,0,0.16);
    }
    #gallery .card.side {
        display: none;
    }
    #gallery .caption {
        font-size: 14px;
        margin: 20px 0 0;
    }
    #description {
        padding: 10px;
    }
    #description p {
        font-size: 14px;
    }
    .swipe-overlay {
        position: absolute;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        z-index: 30;
        pointer-events: none;
        opacity: 1;
    }
    .swipe-icon {
        width: 48px; height: 48px;
    }
    .swipe-text {
        font-size: 13px;
        color: white;
    }
    .swipe-overlay.hide {
        opacity: 0;
    }
    #offers .cat-name {
        font-size: 16px;
    }
}
  