@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    --bg-dark: #121212;
    --bg-dark-gray: #1e1e1e;
    --bg-light: #ffffff;
    --text-light: #f0f0f0;
    --text-dark: #333333;
    --text-muted: #a0a0a0;
    --accent-blue: #007bff;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    background-color: var(--bg-dark-gray);
    color: var(--text-light);
}

main {
    padding: 0;
    max-width: none;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
}

p {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-text a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
}

.main-nav .nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.main-nav .nav-links a {
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    color: var(--text-light);
}

.main-nav .nav-links a:hover {
    color: #ffffff;
    border-bottom-color: var(--accent-blue);
}

.mobile-nav-toggle {
    display: none;
    position: relative;
    z-index: 9999;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    width: 2.5em;
    height: 2em;
    margin-left: 1rem;
}

.mobile-nav-toggle .hamburger-bar,
.mobile-nav-toggle .hamburger-bar::before,
.mobile-nav-toggle .hamburger-bar::after {
    content: '';
    position: absolute;
    left: 0.25em;
    width: 2em;
    height: 3px;
    border-radius: 2px;
    background-color: var(--text-light);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-nav-toggle .hamburger-bar {
    background-color: transparent;
}

.mobile-nav-toggle .hamburger-bar::before {
    transform: translateY(-6px);
}

.mobile-nav-toggle .hamburger-bar::after {
    transform: translateY(6px);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar::before {
    transform: translateY(0) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] .hamburger-bar::after {
    transform: translateY(0) rotate(-45deg);
}

.hero-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
}

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

.hero-logo {
    max-width: 400px;
    height: auto;
    margin-bottom: 0rem;
}

.hero-content h1 {
    font-size: 3rem;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.content-section {
    padding: 4rem 1.5rem;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.alternate-bg {
    background-color: var(--bg-dark);
}

.subsection-title {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
}

.about-us-intro {
    text-align: justify;
    text-align-last: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background-color: var(--bg-dark);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.achievement-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0);
}

.icon-placeholder {
    margin-bottom: 1rem;
}

.icon-placeholder svg {
    fill: var(--accent-blue);
}

.achievement-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.achievement-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-item h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.contact-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.icon-from-file {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: var(--accent-blue);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.icon-telegram {
    -webkit-mask-image: url(../img/telegram.svg);
    mask-image: url(../img/telegram.svg);
}

.icon-email {
    -webkit-mask-image: url(../img/email.svg);
    mask-image: url(../img/email.svg);
}

.icon-phone {
    -webkit-mask-image: url(../img/phone.svg);
    mask-image: url(../img/phone.svg);
}

.icon-gps {
    -webkit-mask-image: url(../img/gps.svg);
    mask-image: url(../img/gps.svg);
}



@media (min-width: 576px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        max-width: 300px;
    }

    .hero-content .subtitle {
        font-size: 1.15rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }

    .header-container {
        padding: 0 15px;
    }

    .main-nav {
        position: fixed;
        z-index: 998;
        inset: 75px 0 0 50%;
        background-color: rgba(18, 18, 18, 0.8);
        backdrop-filter: blur(5px);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 2em;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

    .main-nav[data-visible="true"] {
        transform: translateX(0%);
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .main-nav .nav-links a {
        font-size: 1.2rem;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero-section {
        padding: 4rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-logo {
        max-width: 250px;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .about-us-intro {
        hyphens: auto;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid {
        gap: 1.5rem;
    }

    .contact-item h4 {
        font-size: 1.2rem;
    }

    .contact-item h4::after {
        content: "";
        display: block;
        width: 24px;
    }

    .contact-item p {
        font-size: 1rem;
    }

    .product-detail-section {
        padding-top: 80px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-info h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .product-info .price {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .product-info .info-block {
        margin-bottom: 0.75rem;
    }

    .info-block p {
        font-size: 1rem;
    }

    .description {
        margin-top: 1.5rem;
    }

    .description h3 {
        margin-bottom: 0.5rem;
    }

    .description p {
        text-align: justify;
        white-space: pre-wrap;
    }
}


.product-showcase-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.product-carousel-container {
    overflow: hidden;
    width: 100%;
}

.product-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    align-items: stretch;
}

.product-card {
    flex: 0 0 calc(33.333% - 14px);
    background-color: var(--bg-dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-image-container {
    width: 100%;
    padding-top: 80%;
    position: relative;
    background-color: #000;
}

.card-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: relative;
    padding: 0.8rem 1.5rem 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
    text-align: center;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.card-content .button {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    width: calc(100% - 3rem);
    margin-top: 0;
}


.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(18, 18, 18, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, opacity 0.3s, visibility 0.3s;
    display: block;
}

.carousel-nav:hover:not(:disabled) {
    background-color: var(--accent-blue);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav.prev {
    left: -70px;
}

.carousel-nav.next {
    right: -70px;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.pagination-dot.active {
    background-color: var(--accent-blue);
    transform: scale(1.4);
}


@media (max-width: 1200px) {
    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }
}

@media (max-width: 992px) {
    .product-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 100%;
    }

    .carousel-nav {
        display: none;
    }
}



:root {
    --accent-red: #dc3545;
    --accent-green: #28a745;
    --element-bg: #2a2a2e;
}

body>header:not(.main-header) {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

body>header:not(.main-header) h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-light);
}

.config-container {
    padding: 2rem;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
}

.config-section {
    background-color: var(--bg-dark);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.config-section h2 {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
}

.config-section h2::after {
    left: 0;
    transform: translateX(0);
}

.config-field {
    margin-bottom: 1rem;
}

.config-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}

.config-input,
textarea.config-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--element-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.config-input:focus,
textarea.config-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-blue);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
    background-color: #0069d9;
    transform: translateY(-2px);
}

.button-save {
    background-color: var(--accent-green);
}

.button-save:hover {
    background-color: #218838;
}

.button-danger {
    background-color: var(--accent-red);
}

.button-danger:hover {
    background-color: #c82333;
}

.form-actions {
    margin-top: 1.5rem;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.button-container .button-danger {
    margin-left: 2rem;
}

.navigation {
    max-width: 1000px;
    margin: 2rem auto 0 auto;
    padding: 0 2rem;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 5px;
    border: 1px solid transparent;
    text-align: center;
}

.alert-error,
.alert-danger {
    background-color: rgba(220, 53, 69, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.15);
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.user-table th,
.user-table td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
    white-space: nowrap;
}

.user-table thead {
    background-color: var(--element-bg);
}

.user-table th {
    font-weight: 700;
}

.user-table .actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.icon-button svg {
    fill: var(--text-muted);
    transition: fill 0.2s;
}

.icon-button:hover svg {
    fill: var(--text-light);
}

.icon-edit:hover {
    background-color: rgba(0, 123, 255, 0.2);
}

.icon-delete:hover {
    background-color: rgba(220, 53, 69, 0.2);
}

.icon-edit:hover svg {
    fill: var(--accent-blue);
}

.icon-delete:hover svg {
    fill: var(--accent-red);
}

.login-card {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    margin: 1rem;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    font-size: 1.6rem;
}

.login-card h2::after {
    display: none;
}


.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 140px);
    gap: 1rem;
    margin-top: 1rem;
}

.media-item-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background: var(--element-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.media-preview-container {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
}

.media-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.media-preview-container:hover .media-overlay {
    opacity: 1;
}

.delete-button {
    pointer-events: all;
    background-color: rgba(0, 0, 0, 0.5);
}

.media-control {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.media-control label {
    font-size: 0.9em;
    cursor: pointer;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 90vh;
}

#lightbox-media-container {
    height: calc(100% - 90px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#lightbox-media-container img,
#lightbox-media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

#lightbox-thumbnails-container {
    flex-shrink: 0;
    padding-top: 15px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

.lightbox-thumb {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.lightbox-thumb:hover {
    border-color: #fff;
}

.lightbox-thumb.active {
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

.lightbox-thumb img,
.lightbox-thumb video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    transition: background-color 0.3s;
    padding: 5px 15px;
    border-radius: 5px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    z-index: 2002;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

@media (max-width: 768px) {
    .lightbox-content {
        max-height: 100vh;
    }

    .lightbox-prev,
    .lightbox-next {
        display: none !important;
    }

    #lightbox-media-container {
        height: calc(100% - 70px);
    }

    #lightbox-thumbnails-container {
        height: 70px;
    }

    .lightbox-thumb {
        width: 50px;
        height: 50px;
    }
}


.product-detail-section {
    padding-top: 120px;
}

.product-detail-section .section-container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
    gap: 0 3rem;
}

.product-grid {
    display: grid;
    display: contents;
}

.product-detail-section .product-info {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.product-detail-section .description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 1.5rem;
}


#main-media-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

#main-media-container img,
#main-media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.thumbnails .thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
    overflow: hidden;
    flex-shrink: 0;
}

.thumbnails .thumb-item img,
.thumbnails .thumb-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails .thumb-item.active {
    border-color: var(--accent-blue);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-info .price {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.product-info .info-block {
    margin-bottom: 1.5rem;
}

.info-block h4 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.info-block p {
    font-size: 1.2rem;
    margin: 0;
}

.description h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.description p {
    text-align: justify;
    white-space: pre-wrap;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.description p:last-of-type {
    margin-bottom: 0;
}

.product-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.product-carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.product-carousel-nav.prev {
    left: 10px;
}

.product-carousel-nav.next {
    right: 10px;
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-section .section-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-section .product-info,
    .product-detail-section .description {
        grid-column: auto;
        grid-row: auto;
    }

    .product-detail-section .product-info .info-block:last-child {
        margin-bottom: 0;
    }

    .product-detail-section .description {
        margin-top: 0;
    }
}

.media-item-wrapper[draggable="true"] {
    cursor: move;
}

.drag-over {
    border-color: var(--accent-blue);
    background-color: rgba(0, 123, 255, 0.1);
}

.info-message {
    font-size: 0.9em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.db-management-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.db-management-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.db-management-card form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-entry {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-entry .price-description {
    flex: 2;
}

.price-entry .config-input {
    flex: 1;
}

.price-entry .remove-price-btn {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    padding: 0.6em 1em;
}

.price-entry .remove-price-btn:hover {
    background-color: #c82333;
}


.price-list {
    margin: 0 0 1.5rem 0;
    width: 100%;
}

.price-list-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-list-item:first-child {
    border-top: 1px solid var(--border-color);
}

.price-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-right: 1rem;
}

.price-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

.price,
.price-value {
    display: inline-block;
}

.price::after,
.price-value::after {
    content: ' ₽';
    font-weight: 400;
}

.product-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .product-list-header {
        flex-direction: column;
        align-items: stretch;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .product-list-header h2 {
        text-align: center;
    }

    .product-list-header form {
        width: 100%;
    }

    .product-list-header .button {
        width: 100%;
    }
}

/* ===== Other Products Section ===== */
.other-products-section {
    grid-column: 1 / -1;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
}

.other-products-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.other-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.other-product-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.other-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.other-product-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--bg-dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.other-product-card:hover .other-product-image img {
    transform: scale(1.05);
}

.other-product-info {
    padding: 1rem 1.2rem;
}

.other-product-info h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    line-height: 1.3;
}

.other-product-price {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .other-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .other-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner-content {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-banner-content a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.cookie-accept-btn {
    flex-shrink: 0;
    padding: 0.6rem 1.5rem;
    background-color: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.cookie-accept-btn:hover {
    background-color: #0069d9;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ===== Site Footer ===== */
.site-footer {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

/* ===== Legal Pages (Privacy, Terms) ===== */
.legal-page {
    padding-top: 120px;
}

.legal-page .section-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.legal-page h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.legal-page h2::after {
    display: none;
}

.legal-page h3 {
    font-size: 1.05rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    text-align: justify;
}

.legal-page ul {
    padding-left: 1.2rem;
    margin: 0 0 1rem 0;
    list-style-position: inside;
    max-width: 100%;
    box-sizing: border-box;
}

.legal-page li {
    margin-bottom: 0.4rem;
}

.legal-page a {
    color: var(--accent-blue);
    text-decoration: underline;
}