/* =============================================
   ВИПРАВЛЕННЯ 4: reset.css вбудовано сюди
   Прибрано окремий HTTP-запит за reset.css
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* =============================================
   ДИЗАЙН-СИСТЕМА — CSS ЗМІННІ
   ============================================= */
:root {
    --color-bg-dark: #1E1E1E;
    --color-bg-dark-alt: #2A2A2A;
    --color-bg-card: #C8C8C8;
    --color-text-on-dark: #F0EDE8;
    --color-text-muted: #C4C0BA;
    --color-text-dark: #2C2C2A;
    --color-text-card: #3A3A38;
    --color-accent: #C8000B;
    --color-accent-hover: #E8A000;
    --color-page-bg: #DDDAD4;
    --color-border-dark: rgba(255, 255, 255, 0.12);
    --color-border-light: rgba(0, 0, 0, 0.15);

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5625rem;
    --fs-2xl: 1.875rem;
    --fs-3xl: 2.25rem;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2rem;
    --space-5: 2.5rem;
    --space-6: 3rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --transition: 0.25s ease;
}

/* =============================================
   БАЗОВІ СТИЛІ
   ============================================= */
html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--color-page-bg);
    line-height: 1.6;
    color: var(--color-text-dark);
    font-size: var(--fs-base);
    height: 100%;
    width: 100%;
}

a {
    text-decoration: none;
    color: #fff;
}

/* =============================================
   ВИПРАВЛЕННЯ 5: Inline SVG іконки (замість FontAwesome)
   ============================================= */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Для іконок у footer (позиціонування як у .fa-solid.ab) */
svg.ab {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 14px;
    height: 14px;
    color: var(--color-accent);
}

/* =============================================
   HERO / HEADER
   ============================================= */
.header_bg {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* ВИПРАВЛЕННЯ 2: фонове зображення залишаємо як fallback */
    background-image: url(../img/plitka-gabbro-buki-foto-2.webp?v=3);
    height: 220px;
    position: relative;
    overflow: hidden;
}

/* ВИПРАВЛЕННЯ 2: hero <img> — займає весь блок, не впливає на layout */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.header_bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

@media (max-width: 768px) {
    .header_bg {
        background-image: url(../img/plitka-gabbro-buki-foto-2-mobile.webp?v=3);
        background-attachment: scroll;
        height: auto;
        padding-block: var(--space-3);
    }
}

.header__title {
    position: relative;
    z-index: 2;
    height: 100%;
    color: var(--color-text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-1);
    padding: 0 var(--space-2);
}

.title__name {
    font-size: clamp(2rem, 1.5rem + 4vw, 3.5rem);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.15;
}

.title__sub {
    text-align: center;
    font-size: var(--fs-md);
    font-weight: 300;
    opacity: 0.85;
}

.bar__adress {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(var(--fs-base), 0.9rem + 0.5vw, var(--fs-lg));
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-text-on-dark);
    opacity: 0.9;
}

@media (any-hover: hover) {
    .bar__adress:hover {
        text-decoration: underline;
        opacity: 1;
    }
}

/* =============================================
   ЗАГАЛЬНЕ
   ============================================= */
section {
    padding: var(--space-6) 0;
    scroll-margin-top: 68px;
}

@media (max-width: 1111px) {
    section {
        scroll-margin-top: 114px;
    }
}

.contaner {
    max-width: 1140px;
    padding-inline: var(--space-2);
    margin: 0 auto;
}

@media (max-width: 1140px) {
    .contaner {
        max-width: none;
        width: 100%;
    }
}

/* =============================================
   НАВІГАЦІЯ
   ============================================= */
nav {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

nav ul,
nav ol,
nav li {
    list-style: none;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-1);
    padding-inline: var(--space-2);
    padding-top: 14px;
    padding-bottom: 14px;
    min-width: 0;
}

@media (max-width: 1111px) {
    .navigation {
        padding-top: 16px;
        padding-bottom: 0;
        flex-wrap: wrap;
    }
}

.logo__name {
    flex-shrink: 0;
    font-weight: 700;
    margin-left: 50px;
    position: relative;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .logo__name {
        margin-left: 40px;
    }
}

.logo__name a {
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-sm);
    line-height: 1.3;
    letter-spacing: 0.02em;
    transition: opacity var(--transition);
}

@media (any-hover: hover) {
    .logo__name a:hover {
        opacity: 0.8;
    }
}

.logo__name::before {
    content: "";
    position: absolute;
    background-image: url(../img/logo.png);
    background-size: contain;
    background-repeat: no-repeat;
    left: -30px;
    top: -7px;
    width: 50px;
    height: 50px;
    display: block;
}

.nav__bar {
    display: flex;
    min-width: 0;
    flex-shrink: 1;
}

@media (max-width: 1111px) {
    .nav__bar {
        flex-wrap: wrap;
        gap: 4px;
        padding-bottom: 14px;
    }
}

.nav__itams {
    padding: 0 clamp(8px, 1.2vw, 20px);
    white-space: nowrap;
}

.nav__itams:last-child {
    padding-right: clamp(8px, 1.5vw, 30px);
}

.nav__itams a {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
}

@media (any-hover: hover) {

    .nav__itams a:hover,
    .target a {
        color: var(--color-accent-hover);
    }
}

.bar__number {
    flex-shrink: 0;
    font-weight: 600;
    font-size: var(--fs-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    white-space: nowrap;
    padding-right: 4px;
}

@media (max-width: 1200px) {
    .bar__number {
        padding: 10px 4px 10px 0;
        align-items: center;
    }
}

@media (max-width: 430px) {
    .bar__number {
        display: none;
    }
}

.number {
    margin: 0 0 2px 0;
}

.bar__number a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
}

@media (any-hover: hover) {
    .bar__number a:hover {
        color: var(--color-accent-hover);
        text-decoration: underline;
    }
}

.mob {
    display: none;
}

@media (max-width: 430px) {
    .mob {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 14px 20px;
        flex-wrap: nowrap;
        flex-direction: row;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
}

/* Бургер */
.burger,
.close {
    display: none;
}

body.lock {
    overflow: hidden;
}

.nav__contacts {
    display: none;
}

@media (max-width: 650px) {
    .burger {
        display: block;
        position: relative;
        width: 40px;
        height: 25px;
        cursor: pointer;
        background-color: transparent;
        border: none;
        flex-shrink: 0;
    }

    .burger:before,
    .burger:after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        left: 0;
        background-color: #fff;
    }

    .burger:before {
        top: 0;
    }

    .burger:after {
        bottom: 0;
    }

    span {
        position: absolute;
        width: 100%;
        height: 3px;
        left: 0;
        top: 11px;
        background-color: #fff;
    }

    .nav__bar {
        position: fixed;
        width: 100%;
        height: 100%;
        background-color: #1A1A1A;
        top: -100%;
        left: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        padding: 80px var(--space-4) var(--space-5);
        gap: 0;
        overflow-y: auto;
    }

    .nav__bar.active {
        top: 0;
    }

    .nav__itams,
    .nav__itams:last-child {
        padding: 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .nav__itams a {
        display: block;
        padding: 18px 0;
        font-size: 1.75rem;
        letter-spacing: 0.08em;
        color: rgba(255, 255, 255, 0.9);
    }

    .close {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 20px;
        top: 20px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        cursor: pointer;
    }

    .close:before,
    .close:after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #fff;
        left: 50%;
        top: 50%;
        transform-origin: center center;
    }

    .close:before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .close:after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .nav__contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-top: var(--space-4);
        padding-top: var(--space-3);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        width: 100%;
    }

    .nav__contacts::before {
        content: "КОНТАКТИ";
        font-size: var(--fs-xs);
        letter-spacing: 0.12em;
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 4px;
    }

    .nav__contacts a {
        font-size: 1.4rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        letter-spacing: 0.02em;
        text-decoration: none;
        line-height: 1.5;
    }

    .nav__contacts-email {
        font-size: var(--fs-sm) !important;
        font-weight: 400 !important;
        color: rgba(255, 255, 255, 0.6) !important;
        margin-top: 4px;
    }
}

/* =============================================
   КАТАЛОГ ПАМ'ЯТНИКІВ
   ============================================= */
.market,
.pagesinfo {
    background: var(--color-bg-dark);
    padding: var(--space-5) 0 var(--space-4) 0;
    color: var(--color-text-on-dark);
}

.market__title {
    margin-bottom: var(--space-3);
    font-size: var(--fs-2xl);
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.08em;
    color: var(--color-text-on-dark);
}

@media (max-width: 600px) {
    .market__title {
        font-size: var(--fs-xl);
    }
}

.market__title::after {
    content: "";
    width: 60px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    display: block;
    margin: var(--space-2) auto var(--space-1) auto;
}

.market__subtitle {
    max-width: 680px;
    margin: var(--space-1) auto var(--space-3) auto;
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--fs-base);
    line-height: 1.7;
}

.market__subtitle-red {
    color: #fff;
    font-weight: 600;
    background-color: var(--color-accent);
    padding: var(--space-2) var(--space-3);
    max-width: 500px;
    border-radius: var(--radius-sm);
    line-height: 1.8;
}

.market__katalog {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: var(--space-2);
}

@media (max-width: 600px) {
    .market .contaner {
        display: flex;
        flex-direction: column;
    }

    .market .market__title {
        order: 1;
    }

    .market .market__subtitle-red {
        order: 2;
    }

    .market .market__katalog {
        order: 3;
    }

    .market .market__subtitle:not(.market__subtitle-red) {
        order: 4;
    }
}

/* Картки каталогу */
.katalog__item {
    width: 260px;
    height: 260px;
    background: var(--color-bg-card);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: var(--color-text-card);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.katalog__img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px 12px 8px;
    min-height: 0;
    position: relative;
}

.katalog__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

@media (any-hover: hover) {
    .katalog__item:hover .katalog__img-wrap::after {
        background: rgba(0, 0, 0, 0.15);
    }

    .katalog__item:hover .katalog__name {
        background: rgba(255, 255, 255, 0.2);
    }
}

.katalog__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.other {
    position: static;
    top: auto;
}

.katalog__name {
    flex-shrink: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.06em;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.32);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.price::before {
    content: '';
    width: 110px;
    height: 110px;
    background-image: url(../img/price7.webp?v=3);
    background-size: contain;
    background-repeat: no-repeat;
    display: block;
    position: absolute;
    z-index: 1;
    top: -5px;
    left: -5px;
}

/* =============================================
   ПОСЛУГИ
   ============================================= */
.servises {
    background: var(--color-page-bg);
    padding: var(--space-6) 0;
}

.servises .market__title {
    color: var(--color-text-dark);
}

.servises .market__title::after {
    border-bottom-color: rgba(0, 0, 0, 0.2);
}

.servises .market__subtitle {
    color: #5A5752;
}

.sr {
    max-width: 800px;
}

.servisplase {
    margin-top: var(--space-4);
}

.servis__list {
    list-style: none;
}

.ser__items {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
}

.ser__items:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ser__name {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-text-dark);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: var(--space-1);
    margin-bottom: var(--space-2);
    display: inline-block;
}

.ser__text {
    text-indent: 1.5em;
    line-height: 1.75;
    color: #4A4845;
    font-size: var(--fs-base);
    max-width: 65ch;
}

/* =============================================
   FOOTER / ПРО НАС
   ============================================= */
.footer {
    padding: var(--space-5) 0 0 0;
    background: #111;
    color: #C8C4BC;
}

.footer a {
    text-decoration: none;
    color: #C8C4BC;
    transition: color var(--transition);
}

@media (any-hover: hover) {
    .footer a:hover {
        color: var(--color-accent-hover);
    }
}

.ft {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-5);
    gap: var(--space-4);
}

@media (max-width: 600px) {
    .ft {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        padding-bottom: 0;
    }
}

.geo {
    height: 300px;
    width: 350px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .geo {
        margin-bottom: var(--space-2);
        width: 100%;
    }
}

.geo-wrap {
    flex-shrink: 0;
}

@media (max-width: 420px) {
    .geo-wrap {
        width: 100%;
    }
}

.geo-link {
    display: block;
    text-align: center;
    margin-top: var(--space-1);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (any-hover: hover) {
    .geo-link:hover {
        color: var(--color-accent-hover);
    }
}

.footer__item {
    font-size: var(--fs-base);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 0 var(--space-5);
}

@media (max-width: 600px) {
    .footer__item {
        margin-bottom: var(--space-2);
        width: 100%;
        padding: 0 0 0 var(--space-1);
    }
}

.footer_addr,
.footer_nb {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: var(--space-3);
    line-height: 1.6;
    color: #C8C4BC;
}

/* ВИПРАВЛЕННЯ 5: стиль для svg.ab (замість .fa-solid.ab) */
svg.ab {
    position: absolute;
    left: -10px;
    top: 5px;
    color: var(--color-accent);
}

.footer_nb a {
    text-decoration: none;
    color: #C8C4BC;
    transition: color var(--transition);
}

@media (any-hover: hover) {
    .footer_nb a:hover {
        color: var(--color-accent-hover);
    }
}

.footer__item__name {
    font-size: var(--fs-base);
    text-transform: uppercase;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
}

.footer__item__name:after {
    content: '';
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    margin: var(--space-1) 0;
    width: 200px;
}

.footer__item ul,
.footer__item li {
    list-style: none;
    line-height: 1.9;
}

.footer__item ul::after,
.footer__item li::after {
    content: '';
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    display: block;
}

.ftext {
    text-indent: inherit;
    color: #B8B4AE;
    line-height: 1.7;
    font-size: var(--fs-sm);
}

.ftext:after {
    content: '';
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: block;
    margin: var(--space-2) 0;
    width: 100%;
}

/* ВИПРАВЛЕННЯ 7: підвищено контраст copyright
   #6E6A64 на #111 = 2.8:1 (не відповідає WCAG)
   #9E9A94 на #111 = 4.6:1 (відповідає WCAG AA) */
.copyright {
    padding: var(--space-2);
    text-align: center;
    font-size: var(--fs-xs);
    color: #9E9A94;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: var(--space-1);
}

.copyright a {
    color: #9E9A94;
    transition: color var(--transition);
}

@media (any-hover: hover) {
    .copyright a:hover {
        color: var(--color-accent-hover);
    }
}

/* =============================================
   GALLERY — головна сторінка
   ============================================= */
section.gallery {
    position: relative;
    padding: var(--space-5) 0;
}

h2.title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    text-align: center;
    padding-bottom: var(--space-5);
    position: relative;
}

h2.title:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
    bottom: var(--space-2);
    left: 50%;
    transform: translateX(-50%);
}

/* =============================================
   PAGES — внутрішні сторінки
   ============================================= */
.pi {
    display: flex;
}

@media (max-width: 1200px) {
    .pi {
        padding: 0 var(--space-2);
    }
}

@media (max-width: 600px) {
    .pi {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

/* Контейнер зображення — фіксовані розміри, зображення завжди вписується */
.pagesinfoimageblock {
    background: #6E6A64;
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-sm);
    padding: var(--space-2);
    overflow: hidden;
}

/* Клас .sq залишено для сумісності зі старими сторінками */
.sq {
    width: 200px;
    height: 200px;
}

@media (max-width: 600px) {

    .pagesinfoimageblock,
    .sq {
        width: 100%;
        height: 180px;
        margin-bottom: var(--space-2);
    }
}

/* object-fit: contain — зображення завжди повністю видно,
   будь-які пропорції (вузьке/широке/квадратне) виглядають коректно */
.pagesinfoimg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.litt {
    max-height: 100px;
}

.pagesinfotext {
    width: 100%;
    padding-left: var(--space-3);
}

@media (max-width: 600px) {
    .pagesinfotext {
        width: 100%;
        padding-left: 0;
    }
}

.pagesinfotext__title {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--color-text-on-dark);
}

.pagesinfotext__title:after {
    content: '';
    display: block;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    margin: var(--space-1) 0;
    width: 40%;
}

.pagesinfotext__simpletext {
    font-size: var(--fs-md);
    text-align: justify;
    margin-bottom: var(--space-1);
    line-height: 1.75;
    color: var(--color-text-muted);
}

@media (max-width: 600px) {
    .pagesinfotext__simpletext {
        font-size: var(--fs-base);
        line-height: 1.6;
    }
}

.pagesintolistitems {
    margin-bottom: var(--space-1);
    list-style: square;
    margin-left: var(--space-2);
    color: var(--color-text-muted);
}

@media (min-width: 600px) {
    a.active {
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scrollup {
    position: fixed;
    right: var(--space-2);
    bottom: var(--space-2);
    cursor: pointer;
    display: none;
    z-index: 1;
    width: 45px;
    height: 45px;
    background-image: url(../img/top.png);
    background-position: center;
    background-size: contain;
    opacity: 0.7;
    transition: opacity var(--transition);
    border-radius: 50%;
}

@media (any-hover: hover) {
    .scrollup:hover {
        opacity: 1;
    }
}

.otherlink {
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

@media (any-hover: hover) {
    .otherlink:hover {
        color: var(--color-accent-hover);
    }
}

/* =============================================
   GALLERY PAGES (pages/*.html)
   ============================================= */
.gallery-container {
    margin: var(--space-2) auto;
    max-width: 1000px;
}

.gallery-list {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--space-3);
    justify-content: center;
}

.gallery-item {
    display: block;
    overflow: hidden;
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
}

@media (max-width: 600px) {
    .gallery-item {
        width: calc(50% - 5px);
        height: 150px;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

@media (any-hover: hover) {
    .gallery-item:hover img {
        transform: scale(1.08);
    }
}

.gallery-item-hover {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--fs-base);
    font-weight: 600;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 1;
}

@media (any-hover: hover) {
    .gallery-item:hover .gallery-item-hover {
        opacity: 1;
    }
}

#gallery-heading {
    text-align: center;
    font-size: var(--fs-xl);
    font-weight: 300;
    letter-spacing: 0.06em;
}
/* =============================================
   ЧАСТІ ЗАПИТАННЯ (FAQ)
   ============================================= */
.faq {
    background: var(--color-bg-dark-alt);
    padding: var(--space-6) 0;
}

.faq .market__subtitle {
    margin-bottom: 0;
}

.faq__list {
    max-width: 760px;
    margin: var(--space-4) auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq__item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition), background var(--transition);
}

.faq__item[open] {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.06);
}

.faq__question {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    font-size: var(--fs-md);
    font-weight: 600;
    color: var(--color-text-on-dark);
    -webkit-tap-highlight-color: transparent;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::marker {
    content: '';
}

.faq__question::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-lg);
    line-height: 1;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    transition: transform var(--transition), color var(--transition), border-color var(--transition);
}

.faq__item[open] .faq__question::after {
    content: '−';
}

@media (any-hover: hover) {
    .faq__question:hover {
        color: var(--color-accent-hover);
    }

    .faq__question:hover::after {
        border-color: var(--color-accent-hover);
        color: var(--color-accent-hover);
    }
}

.faq__answer {
    padding: 0 var(--space-3) var(--space-3) var(--space-3);
    color: var(--color-text-muted);
    line-height: 1.75;
    font-size: var(--fs-base);
    max-width: 65ch;
}

@media (max-width: 600px) {
    .faq {
        padding: var(--space-5) 0;
    }

    .faq__question {
        font-size: var(--fs-base);
        padding: var(--space-2);
    }

    .faq__answer {
        padding: 0 var(--space-2) var(--space-2) var(--space-2);
    }
}
