/* basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background: #f6f7fb;
    color: #222;
}

/* header + menu */
.site-header {
    display: flex;
    /* align nav + phone number horizontally */
    justify-content: space-between;
    /* nav on left, phone on right */
    align-items: center;
    /* vertical alignment */
    background: #333;
    color: white;
    padding: 10px 20px;
}

.menu {
    display: flex;
    gap: 15px;
    /* spacing between menu items */
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.contact-method a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.telegram-icon {
    width: auto;
    height: 32px;
    vertical-align: middle;
}

.menu .nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    display: inline-block;
    font-weight: bold;
    vertical-align: bottom;
}

.menu .nav-link.active {
    color: #6d72b7;
    text-decoration: underline;
}

.menu .nav-link:not(.home):hover {
    color: #6d72b7;
    text-decoration: underline;
}

.menu-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
}

.menu-links {
    display: flex;
    gap: 15px;
    /* horizontal spacing between links */
}

.nav-link.home.active {
    text-decoration: none;
}

.nav-link.home {
    font-size: 32px;
    line-height: 1;
    position: relative;
    top: -2px;
}

/* content area */
.content {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.contact-icons {
    font-size: 32px;
    /* same as Telegram icon */
    line-height: 32px;
    /* keeps it aligned vertically */
    text-decoration: none;
    /* removes underline */
    vertical-align: middle;
}


/* The overlay */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    /* cursor: zoom-out; */
    overflow: hidden;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: zoomIn 0.25s ease;
    cursor: grab;
    transition: transform 0.1s ease;
}

.lightbox img:active {
    cursor: grabbing;
}


/* Lightbox image */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.lightbox .close {
    position: absolute;
    bottom: 30px;
    /* 📍 at bottom of screen */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 10px 24px;
    cursor: pointer;
    z-index: 2100;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    /* nice frosted look */
}

/* Hover / tap feedback */
.lightbox .close:hover,
.lightbox .close:active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%) scale(1.1);
    color: #000;
}

.lightbox.hide {
    animation: fadeOut 0.25s ease forwards;
}

.clickable-image:not(.zooming-image):hover {
    cursor: zoom-in;
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

footer {
    background-color: #1e1e1e;
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}



/* Mobile layout */
@media (max-width: 768px) {
    .menu-row {
        display: flex;
        flex-direction: row;
        /* horizontal: Home left, links right */
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .menu-home {
        flex-shrink: 0;
        /* vertical-align: middle;     */
    }

    .menu-links {
        display: flex;
        flex-direction: column;
        /* stack links vertically */
        gap: 10px;
        width: 100%;
    }

    .menu-links .nav-link {
        font-size: 18px;
    }

    .menu .nav-link.home {
        font-size: 36px;
        /* bigger home icon */
    }

    #number {
        display: inline-block;
        /* font-size: 0.9rem; */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
}

@media (hover: none) {
    .clickable-image {
        transform: none !important;
        box-shadow: none !important;
        cursor: default !important;
    }
}