* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root 
{
    --bg-main: #111111;
    --bg-header: #151515;
    --text-default: #FFFFFF;
    --text-header: #737373;
    --text-footer: #979797;
    --text-header-hover: #ffffff;
    --svg-color-bg: #313131;
    --svg-color-fg: #A1A1A1;
    --svg-color-hover-bg: #5b5b5b;
    --svg-color-hover-fg: #dadada;
    --grey-custom: #D9D9D9;
    --kto-smotrit-tot-alabai: #1C1C1C;
}

body {
    background-color: var(--bg-main);
    color: var(--text-default);
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
    margin-bottom: 8rem;
    background-color: transparent;
    gap: 20px;
}

.nav-block {
    display: flex;
    align-items: center;
    background-color: var(--bg-header);
    border-radius: 20px;
}

.logotype {
    padding: 25px 40px;
}

.logotype a {
    text-decoration: none;
    color: white;
}

.nav-links {
    flex-grow: 1;
    justify-content: center;
    gap: 95px;
    padding: 20px 40px;
}

.nav-links a {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    text-decoration: none;
    color: var(--text-header);
    margin: 0 0.3rem;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.nav-active {
    color: var(--text-header-hover);
}

.home-icon {
    transform: translateY(-2px);
}

.social-links {
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
}

.image-block {
    flex: 1;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    min-height: 500px;
    max-width: 400px;
    background-color: var(--bg-header);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 16px;
    background-color: white;
    border-radius: 10px;
}

.main-section {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.text-block {
    font-family: "Montserrat", sans-serif;
    flex: 1.4;
}

.text-block h1 {
    font-size: 2.2rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

.description {
    line-height: 1.6;
    max-width: 95%;
    margin-bottom: 8rem;
    font-size: 1.2rem;
}

.info-block {
    display: flex;
    gap: 4rem;
}

.info-block h3 {
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 1rem;
}

.info-block p {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 0.4rem;
}

.icon-bg, .icon-fg {
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.icon-bg {
    fill: var(--svg-color-bg);
}

.icon-fg {
    fill: var(--svg-color-fg);
}

.social:hover .icon-bg {
    fill: var(--svg-color-hover-bg);
}

.social:hover .icon-fg {
    fill: var(--svg-color-hover-fg);
}

.footer {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-header);
    border-radius: 20px;
    padding: 30px 40px;
    margin-top: 8rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-contacts {
    display: flex;
    gap: 40px;
}

.contacts-items {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Montserrat", sans-serif;
    color: var(--text-footer);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social-items {
    text-decoration: none;
}

.footer-social-items:hover .icon-bg {
    fill: var(--svg-color-hover-bg);
}

.footer-social-items:hover .icon-fg {
    fill: var(--svg-color-hover-fg);
}

.footer-line {
    margin: 20px 0px;
    border: none;
    border-top: 1px solid var(--text-header); 
}

.footer-bottom {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    color: var(--text-footer);
}

/* МЕНЮ МЕНЮ МЕНЮ МЕНЮ МЕНЮ МЕНЮ МЕНЮ МЕНЮ*/

.menu-section {
    display: flex;
    align-items: flex-start;
    height: calc(100vh - 120px);
    gap: 16px;
    font-family: "Montserrat", sans-serif;
    color: var(--text-footer);
    overflow: hidden;
}

.sidebar {
    width: 200px;
    background-color: var(--bg-header);
    border-radius: 20px;
    padding: 20px 30px;
    flex-shrink: 0;
    overflow-y: auto;
}

.category-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.customradio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--grey-custom);
    font-size: 0.95rem;
}

.customradio input {
    display: none;
}

.radio-mark {
    height: 25px;
    width: 25px;
    border: 2px solid var(--grey-custom);
    border-radius: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;    
}

.customradio input:checked ~ .radio-mark::after {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: var(--grey-custom);
    content: "";
} 

.customradio input:checked ~ .radio-mark {
    border-color: var(--grey-custom);
}

.menu-content {
    flex-grow: 1;
    background-color: var(--bg-header);
    border-radius: 20px;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 15px;
}

.menu-content::-webkit-scrollbar, 
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.menu-content::-webkit-scrollbar-track, 
.sidebar::-webkit-scrollbar-track {
    background: transparent;
    margin-top: 20px;
    margin-bottom: 20px;
}

.menu-content::-webkit-scrollbar-thumb, 
.sidebar::-webkit-scrollbar-thumb {
    background: #555; 
    border-radius: 8px;
    border: 3px solid var(--kto-smotrit-tot-alabai);
    background-clip: padding-box;
    
    transition: background 0.2s;
}

.menu-content::-webkit-scrollbar-thumb:hover, 
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 25px;
}

.item-card {
    border-radius: 20px;
    background-color: var(--kto-smotrit-tot-alabai);
    padding: 25px 35px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.item-pic {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 12px;
}

.item-title {
    text-align: center;
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 20px;
    color: var(--grey-custom);
}

.item-down {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-size: 1.2rem;
    color: var(--grey-custom);
}

.info-button {
    background: none;
    border: none;
    color: var(--grey-custom);
    transition: color 0.5s ease;
    cursor: pointer;
}

.info-button:hover {
    color: var(--text-default);
}

.add-category {
    border-radius: 7px;
    background-color: transparent;
    padding: 6px;
    font-size: 1rem;
    color: var(--grey-custom);
    border: 2px solid var(--grey-custom);
    width: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
}

.add-category:hover {
    border-color: var(--text-default);
    color: var(--text-default);
}

.add-card {
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s ease;
    border: 3px dashed var(--grey-custom);
    font-size: 1rem;
}

.add-card:hover {
    border: 6px solid var(--text-default);
    color: var(--text-default);
    font-size: 1.1rem;
}

.pages {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
}

.page {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid var(--text-header);
    border-radius: 5px;
    text-decoration: none;
    color: var(--text-header);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page.active, .page:hover {
    border-color: var(--grey-custom);
    color: var(--grey-custom);
}

/* модалки */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--bg-main);
    border-radius: 20px;
    padding: 30px 40px;
    width: 400px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-family: "Montserrat", sans-serif;
}

.modal.modal-large {
    width: 700px;
}

.modal.show, 
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay.show {
    transform: none;
}

.modal-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-default);
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    color: var(--text-footer);
    font-size: 0.9rem;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.form-input {
    background-color: var(--svg-color-bg);
    border: none;
    border-radius: 20px;
    padding: 12px 15px;
    color: var(--text-default);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: background-color 0.3s ease;
}

.form-input:focus {
    background-color: var(--svg-color-hover-bg);
}

.textarea-input {
    resize: none;
    flex-grow: 1;
    min-height: 120px;
}

.photo-upload-box {
    background-color: var(--svg-color-bg);
    border-radius: 20px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.photo-upload-box:hover {
    background-color: var(--svg-color-hover-bg);
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-footer);
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 10px;
}

.center-actions {
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.btn-outline {
    background: transparent;
    border: 1px solid;
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--text-footer);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-success {
    border-color: #1a472a;
}
.btn-success:hover {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--text-default);
}

.btn-danger {
    border-color: #4a1c1c;
}
.btn-danger:hover {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--text-default);
}

.status-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}
.green-dot {
    background-color: #2ecc71;
}
.red-cross {
    position: relative;
}

.red-cross::before, .red-cross::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 2px;
    width: 10px;
    height: 2px;
    background-color: #e74c3c;
}
.red-cross::before { transform: rotate(45deg); }
.red-cross::after { transform: rotate(-45deg); }

/* Карта */

.maps-main-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-family: "Montserrat", sans-serif;
}

.page-header-block {
    background-color: var(--bg-header);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.page-header-block h1 {
    font-size: 2.2rem;
    font-weight: normal;
    color: var(--text-default);
}

.maps-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.map-iframe-container {
    flex: 1.5;
    background-color: var(--bg-header);
    border-radius: 20px;
    overflow: hidden;
    min-height: 500px;
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-actions-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-action-btn,
.map-info-card {
    background-color: var(--bg-header);
    border-radius: 20px;
    padding: 25px 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--text-default);
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.map-action-card svg {
    position: absolute;
    right: 35px;
    flex-shrink: 0;
}



.map-action-btn {
    justify-content: space-between; 
}

.map-action-btn:hover {
    background-color: var(--svg-color-bg); 
    color: var(--text-default);
}

.map-info-card {
    justify-content: flex-start;
    gap: 25px;
    color: var(--text-footer);
}

.map-info-card span{
    color: var(--text-default);
}

.map-action-btn svg,
.map-info-card svg {
    flex-shrink: 0;
    transition: fill 0.3s ease;
}

/* мобилки */

.mobile-map-socials {
    display: none;
}

.mobile-social-block {
    display: none;
}

.add-category-mobile {
    display: none;
}

.hamburger-btn, .mobile-close-btn {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .navbar {
        margin-bottom: 2rem;
    }
    
    .social-links {
        display: none;
    }

    .logotype {
        width: max-content;
        justify-content: flex-start;
        gap: 20px;
        padding: 15px 25px;
    }

    .hamburger-btn {
        display: flex;
        background: none;
        border: none;
        color: var(--text-default);
        cursor: pointer;
        padding: 5px;
    }

    .nav-links {
        position: fixed;
        top: 15px;
        left: 15px;
        width: calc(100vw - 30px);
        height: auto;
        background-color: transparent; 
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 30px 20px;
        gap: 12px;
        z-index: 1000;
        margin: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-120%);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    .nav-links::before {
        content: '';
        position: fixed;
        top: -15px;
        left: -15px;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0);
        backdrop-filter: blur(3px);
        z-index: -1;
        border-radius: 0;
    }

    .nav-links::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-header);
        border-radius: 24px;
        z-index: -1;
    }
    .nav-links.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a, .mobile-close-btn {
        position: relative;
        width: 100%;
        max-width: 400px;
        background-color: var(--kto-smotrit-tot-alabai);
        padding: 18px 20px;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.1rem;
        color: var(--text-default);
        margin: 0;
    }

    .nav-links a svg, .mobile-close-btn svg {
        position: absolute;
        left: 20px;
        margin: 0;
    }

    .mobile-close-btn {
        border: none;
        cursor: pointer;
        font-family: "Montserrat", sans-serif;
        margin-top: 10px;
    }

    .main-section {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .text-block {
        display: contents;
    }

    .text-block h1 {
        order: -2;
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 0;
        width: calc(100% - 2rem);
    }

    .image-block {
        order: -1;
        width: calc(100% - 2rem);
        margin: 0 auto;
        min-height: 450px;
        border-radius: 20px;
    }

    .description {
        display: none;
    }

    .info-block {
        order: 0;
        flex-direction: column;
        gap: 1.5rem;
        width: calc(100% - 2rem);
    }

    .info-block .time {
        border-bottom: 1px solid var(--text-header);
        padding-bottom: 1.5rem;
    }

    .info-block h3 {
        font-size: 1rem;
        color: var(--text-footer);
    }

    .info-block p {
        font-size: 1.05rem;
    }

    .footer {
        display: none;
    }

    .menu-section {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        width: 100%;
        padding: 0;
        background-color: transparent;
    }

    .category-ul {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 25px;
        margin-bottom: 0;
        margin-left: 5px;
        padding-bottom: 10px;
        scrollbar-width: none; 
    }
    
    .category-ul::-webkit-scrollbar {
        display: none;
    }

    .add-category {
        display: none;
    }

    .customradio {
        font-size: 1.1rem;
        color: var(--text-footer);
    }

    .radio-mark {
        display: none;
    }

    .cat-name {
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }

    .customradio input:checked ~ .cat-name {
        color: var(--text-default);
        border-bottom: 2px solid var(--text-default);
    }

    .menu-content {
        padding: 20px 15px;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .item-card {
        padding: 15px 12px;
    }

    .item-title {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .price {
        font-size: 0.85rem;
    }

    .add-category-mobile {
        display: flex;
        text-align: center;
    }

    .modal {
        width: calc(100vw - 30px);
        padding: 25px 20px;
    }

    .modal.modal-large {
        width: calc(100vw - 30px);
    }

    .modal-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form-col {
        display: contents; 
    }
    .mobile-order-1 { order: 1; }
    .mobile-order-2 { order: 2; }
    .mobile-order-3 { order: 3; }
    .mobile-order-4 { order: 4; }

    .photo-upload-box {
        height: 140px;
        margin-bottom: 0;
    }
    
    .textarea-input {
        min-height: 100px;
    }

    .modal-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }

    .center-actions {
        margin-top: 20px;
    }

    .btn-outline {
        flex: 1;
        justify-content: center;
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    .mobile-social-block {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 50px;
        width: 100%;
        max-width: 400px;
        background-color: var(--kto-smotrit-tot-alabai);
        padding: 15px 20px;
        border-radius: 14px;
    }

    .nav-links .mobile-social-block a {
        width: auto;
        padding: 0;
        background-color: transparent;
    }

    .nav-links .mobile-social-block a svg {
        position: relative;
        left: auto;
        width: 32px;
        height: 32px;
    }

    .mobile-social-block .icon-bg {
        fill: var(--svg-color-hover-bg);
    }
    
    .mobile-social-block .icon-fg {
        fill: var(--svg-color-hover-fg);
    }

    .maps-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-header-block {
        padding: 20px;
    }

    .page-header-block h1 {
        font-size: 1rem;
    }

    .map-iframe-container {
        min-height: 200px;
    }

    .map-iframe-container iframe {
        display: block;
        width: 100%;
        height: 100%;
    }

    .map-action-btn,
    .map-info-card {
        padding: 20px 25px;
        font-size: 0.95rem;
    }

    .map-action-btn svg {
        right: 25px;
    }

    .map-info-card svg {
        left: 25px;
    }

    .mobile-map-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 50px;
        
        background-color: var(--bg-header); 
        border-radius: 20px;
        padding: 20px 25px;
    }

    .mobile-map-socials a {
        display: flex;
        width: auto;
        padding: 0;
        background-color: transparent;
        text-decoration: none;
    }

    .mobile-map-socials a svg {
        position: relative;
        left: auto;
        right: auto;
        width: 32px;
        height: 32px;
        margin: 0;
    }

    .mobile-map-socials .icon-bg {
        fill: var(--svg-color-hover-bg);
    }
    
    .mobile-map-socials .icon-fg {
        fill: var(--svg-color-hover-fg);
    }
}