/* ===== ГЛОБАЛЬНЫЙ СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
}

body {
    background: #1a1512;
    font-family: 'Montserrat', sans-serif;
    color: #f5efe9;
    padding: 30px 20px 100px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

.order-container {
    max-width: 1440px;
    margin: 0 auto;
    background: #fcf9f5;
    border-radius: 60px 60px 60px 60px;
    box-shadow: 0 40px 70px rgba(0, 0, 0, 0.35);
    overflow: visible;
    color: #2c241b;
}

.gold-stripe {
    height: 10px;
    background: linear-gradient(90deg, #b4945a, #e9d6a7, #b4945a);
    border-radius: 60px 60px 0 0;
}

.content {
    padding: 45px 50px 35px;
}

/* ===== ХЕДЕР С ЛОГОТИПОМ ===== */
.header-logo {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

/* Десктоп (ширина > 600px) – лого слева, текст справа */
@media (min-width: 601px) {
    .header-logo {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
    }
    .logo-wide {
        width: auto;
        height: 60px;
        object-fit: contain;
        display: block;
    }
    .subtitle {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.3rem;
        font-weight: 300;
        color: #4a3a2a;
        background: #f0e7db;
        padding: 8px 25px;
        border-radius: 60px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        text-align: right;
        line-height: 1.4;
        white-space: nowrap;
    }
}

/* Мобильные (ширина ≤ 600px) – лого на всю ширину, текст снизу */
@media (max-width: 600px) {
    .header-logo {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .logo-wide {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
    .subtitle {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        font-weight: 300;
        color: #4a3a2a;
        background: #f0e7db;
        padding: 6px 20px;
        border-radius: 40px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
        text-align: center;
        line-height: 1.4;
        max-width: 90%;
        margin: 0 auto;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .header-logo {
        gap: 8px;
        margin-bottom: 15px;
    }
    .subtitle {
        font-size: 1rem;
        padding: 5px 15px;
    }
}

/* ===== HERO-БЛОК ===== */
.hero {
    width: 100%;
    min-height: 60vh;
    background: linear-gradient(145deg, #5d3a1a, #8b5e3c);
    background-image: url('/images/coffee-hero.png'); /* если есть фото, оно перекроет градиент */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    border-radius: 40px;
    margin-bottom: 50px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 30, 20, 0.55);
    border-radius: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff6ea;
    margin-bottom: 20px;
    text-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.hero-content h1 span {
    color: #e9d6a7;
}

.hero-content p {
    font-size: 1.6rem;
    font-weight: 300;
    color: #f5efe9;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-btn {
    display: inline-block;
    background: #e9d6a7;
    color: #2c241b;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 16px 48px;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border: 1px solid #f0e2c4;
}

.hero-btn:hover {
    background: #f7e8c0;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */
.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin: -20px 0 50px 0;
    padding: 0 20px;
}

.feature-item {
    flex: 1 1 200px;
    max-width: 300px;
    text-align: center;
    background: #fcf9f5;
    border-radius: 40px;
    padding: 35px 20px 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid #eee3d7;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 3.5rem;
    color: #b4945a;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #2c241b;
    margin-bottom: 5px;
}

.feature-item p {
    color: #5a4a3a;
    font-size: 1rem;
    font-weight: 300;
}

/* ===== НАВИГАЦИЯ ПО КАТЕГОРИЯМ ===== */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0 0 40px 40px;
    margin: 0 0 40px 0;
    padding: 15px 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-bottom: 2px solid #e4d5be;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    text-align: center;
}
.category-nav::-webkit-scrollbar {
    display: none;
}
.category-nav .nav-item {
    display: inline-block;
    background: transparent;
    border: 2px solid #b4945a;
    color: #2c241b;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 50px;
    margin-right: 15px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.category-nav .nav-item.active {
    background: #b4945a;
    color: #2e2b26;
    border-color: #b4945a;
    box-shadow: 0 8px 20px rgba(180, 148, 90, 0.5);
}
.category-nav .nav-item:hover {
    background: #e0cbaa;
    border-color: #9e7e4a;
}

/* ===== КАТЕГОРИИ ===== */
.category {
    margin-top: 50px;
    scroll-margin-top: 130px;
}
.category-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2f2a24;
    background: linear-gradient(145deg, #ece3d7, #dfd3c2);
    display: inline-block;
    padding: 10px 50px 10px 35px;
    border-radius: 60px 16px 16px 60px;
    margin-bottom: 30px;
    border-left: 10px solid #b4945a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.08);
    border: 1px solid #eee3d7;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.item-card:hover {
    border-color: #c1a575;
    box-shadow: 0 30px 45px rgba(180,140,80,0.2);
}

.item-image {
    height: 200px;
    background: #eae1d5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #b9a48c;
    border-bottom: 1px solid #ddd2c4;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-content {
    padding: 22px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.item-name {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c241b;
    margin-bottom: 10px;
    line-height: 1.3;
}

.item-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c241b;
    font-weight: 500;
    margin-bottom: 20px;
}

.item-weight {
    background: #f0ebe5;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: #2c241b;
}

.item-price {
    background: #dac9b4;
    color: #2f281f;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.2rem;
}

.qty-controller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    background: #f6f1ea;
    border-radius: 60px;
    padding: 8px 12px;
    border: 1px solid #decbb8;
}

.qty-btn {
    background: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 400;
    color: #6f523b;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border: 1px solid #dac1a8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    background: #c9a87c;
    color: white;
    border-color: #a58357;
}
.qty-btn:active {
    background: #b38b5d;
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: #3e2f21;
}

/* ===== ПЛАВАЮЩАЯ ПАНЕЛЬ СУММЫ ===== */
.floating-total {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(30,25,20,0.95);
    border: 1px solid rgba(212,175,55,0.6);
    border-radius: 80px;
    padding: 14px 32px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    color: #f0e3d0;
    cursor: pointer;
}
.floating-total:hover {
    border-color: #e9c273;
}
.total-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
    color: #c2b09b;
}
.total-amount {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #e9d6a7;
    line-height: 1;
}
.cart-icon {
    position: relative;
    font-size: 2rem;
    color: #e9d6a7;
}
.checkout-btn {
    background: #c9a03d;
    border: none;
    color: #1e1b16;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 16px 36px;
    border-radius: 60px;
    cursor: pointer;
    border: 1px solid #e9c582;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.checkout-btn:hover {
    background: #dbb45c;
}

/* ===== МОДАЛЬНОЕ ОКНО КОРЗИНЫ ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #fcf9f5;
    border-radius: 60px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 40px 70px rgba(0,0,0,0.5);
    border: 1px solid #b4945a;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e4d5be;
}
.modal-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #2c241b;
}
.close-modal {
    font-size: 2.5rem;
    cursor: pointer;
    color: #6b5843;
}
.close-modal:hover {
    color: #b4945a;
}
.cart-items {
    list-style: none;
    margin-bottom: 20px;
}
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed #dacbb8;
}
.cart-item-info {
    flex: 2;
}
.cart-item-name {
    font-weight: 700;
    color: #2c241b;
    margin-bottom: 5px;
}
.cart-item-desc {
    font-size: 0.9rem;
    color: #2c241b;
}
.cart-item-price {
    font-weight: 600;
    color: #2c241b;
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f6f1ea;
    border-radius: 40px;
    padding: 5px 10px;
}
.cart-qty-btn {
    background: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 400;
    color: #6f523b;
    cursor: pointer;
    border: 1px solid #dac1a8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-btn:hover {
    background: #c9a87c;
    color: white;
}
.cart-qty-value {
    min-width: 25px;
    text-align: center;
    font-weight: 700;
    color: #1e1510;
}
.cart-item-remove {
    background: #f8d7da;
    color: #a1332b;
    border: none;
    padding: 5px 15px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
}
.cart-item-remove:hover {
    background: #f5c2c7;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c241b;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 2px solid #e4d5be;
}
.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}
.cart-actions .btn-send {
    width: auto;
    margin-top: 0;
}
.empty-cart {
    text-align: center;
    padding: 30px;
    color: #5a4a3a;
    font-size: 1.2rem;
}

/* ===== ПАНЕЛЬ ДОСТАВКИ ===== */
.delivery-panel {
    margin-top: 70px;
    background: #f3ede5;
    border-radius: 60px;
    padding: 45px 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    border: 1px solid #dacbb8;
    box-shadow: inset 0 0 0 1px #fff8f0, 0 20px 40px -10px rgba(0,0,0,0.2);
}
.delivery-form {
    flex: 2 1 400px;
}
.delivery-form h2 {
    font-family: 'Cormorant Garamond', serif;
    color: #2c241b;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 2rem;
}
.telegram-config {
    flex: 1 1 300px;
    background: #e7dfd3;
    border-radius: 48px;
    padding: 35px 30px;
    border: 1px solid #b4945a;
    text-align: center;
    box-shadow: 0 15px 25px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #3e2f21;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}
.form-group small {
    color: #2c241b !important;
}
.form-control {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    border: 1px solid #cbb295;
    border-radius: 60px;
    background: white;
    font-family: 'Montserrat', sans-serif;
    color: #2c241b;
}
.form-control:focus {
    border-color: #a67c4f;
    outline: none;
    box-shadow: 0 0 0 4px rgba(166,124,79,0.15);
}

.datetime-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}
.datetime-row > div {
    flex: 1 1 180px;
}

.time-note {
    font-size: 0.95rem;
    color: #a5612c;
    margin-top: 10px;
    padding-left: 25px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23a5612c" stroke-width="2"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>') left center no-repeat;
    background-size: 18px;
    background-position: 0 2px;
}

.delivery-radio-group {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    background: #e2d3c2;
    padding: 18px 35px;
    border-radius: 60px;
    margin: 25px 0 15px;
}
.delivery-radio-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #2c241b;
    cursor: pointer;
}
.pickup-address {
    font-size: 1rem;
    color: #2c5f4a;
    margin-bottom: 20px;
    padding-left: 15px;
    font-weight: 500;
}
.warning-note {
    background: #fff1e0;
    border-left: 8px solid #a5612c;
    padding: 15px 25px;
    border-radius: 40px;
    margin: 25px 0 0;
    font-weight: 500;
    color: #6b3f1c;
    font-size: 1.05rem;
    box-shadow: 0 5px 15px rgba(165,97,44,0.1);
}

.btn-send {
    background: #c9a03d;
    color: #1e1b16;
    border: none;
    padding: 18px 30px;
    font-size: 1.3rem;
    border-radius: 60px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    border: 1px solid #e9c582;
    margin-top: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.btn-send:hover {
    background: #dbb45c;
}

.status-msg {
    margin-top: 25px;
    padding: 16px 20px;
    border-radius: 60px;
    background: #fff1e4;
    color: #764d2b;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
}

/* ===== БЛОК ДОВЕРИЯ ===== */
.trust-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    background: #fff8f0;
    border-radius: 80px;
    padding: 25px 40px;
    margin: 50px 0 20px;
    border: 1px solid #e4d5be;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c241b;
}
.trust-item i {
    font-size: 2rem;
    color: #b4945a;
}

/* ===== ПОДВАЛ ===== */
.footer {
    margin-top: 50px;
    padding: 30px 0 0;
    border-top: 1px dashed #cbbaa8;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: #2c241b;
}
.footer .contacts {
    display: flex;
    gap: 30px;
    font-size: 1rem;
}
.footer .contacts a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted;
}
.footer .contacts a:hover {
    color: #b4945a;
}
.footer .social a {
    color: inherit;
    font-size: 1.5rem;
    margin-left: 15px;
}
.footer .social a:hover {
    color: #b4945a;
}

.footer-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #cbbaa8;
    text-align: right;
    color: #2c241b;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== АДМИН-ПАНЕЛЬ ===== */
.admin-link {
    text-align: center;
    margin-top: 40px;
    font-size: 0.95rem;
}
.admin-link a {
    color: #2c241b;
    text-decoration: none;
    border-bottom: 1px dashed;
}
.admin-link a:hover {
    color: #8b6f50;
}

.admin-panel {
    background: #f3ede5;
    border-radius: 60px;
    padding: 40px;
    margin-top: 50px;
    border: 1px solid #dacbb8;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}
.admin-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #3f3328;
}
.admin-logout {
    color: #a5612c;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 25px;
    border: 2px solid #a5612c;
    border-radius: 60px;
}
.admin-logout:hover {
    background: #a5612c;
    color: white;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}
.admin-card {
    background: white;
    border-radius: 28px;
    padding: 20px;
    border: 1px solid #cbb295;
}
.admin-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.admin-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 20px;
    background: #ddd;
}
.admin-card h4 {
    margin: 15px 0 8px;
    color: #2f2a24;
    font-size: 1.2rem;
}
.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.admin-actions button, .admin-actions a {
    background: #eee;
    border: none;
    padding: 10px 15px;
    border-radius: 40px;
    cursor: pointer;
    color: #2f2a24;
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
}
.admin-actions button:hover {
    background: #ddd;
}
.admin-actions .delete {
    background: #f8d7da;
    color: #a1332b;
}
.admin-actions .delete:hover {
    background: #f5c2c7;
}

.add-form {
    background: #e7dfd3;
    border-radius: 48px;
    padding: 35px;
    margin-top: 40px;
    border: 1px solid #b4945a;
}
.add-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 25px;
    color: #3f3328;
}

/* ===== МОДАЛЬНОЕ ОКНО РЕДАКТИРОВАНИЯ ===== */
#editModal > div {
    background: #f3ede5;
    border-radius: 48px;
    padding: 35px;
    max-width: 500px;
    width: 95%;
    box-shadow: 0 40px 70px rgba(0,0,0,0.5);
}
#editModal .form-control {
    margin-bottom: 15px;
}
.current-image {
    max-width: 100%;
    max-height: 100px;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* ===== СООБЩЕНИЯ ОБ ОШИБКАХ В ФОРМЕ ===== */
.field-error {
    color: #b71c1c;
    font-size: 0.9rem;
    margin-top: 5px;
    padding-left: 20px;
}

.login-error {
    margin-bottom: 20px;
    background: #ffebee;
    color: #b71c1c;
    padding: 12px 25px;
    border-radius: 60px;
    font-weight: 500;
    text-align: center;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 40px 20px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.3rem;
    }
    .hero-btn {
        font-size: 1.1rem;
        padding: 14px 36px;
    }
    .feature-item {
        flex: 1 1 160px;
        padding: 25px 15px;
    }
    .feature-item i {
        font-size: 2.8rem;
    }
    .feature-item h3 {
        font-size: 1.5rem;
    }
    .content {
        padding: 30px 25px;
    }
    h1 {
        font-size: 3rem;
        flex-wrap: wrap;
    }
    h1 span {
        font-size: 1.1rem;
        margin-left: 0;
    }
    .category-title {
        font-size: 2rem;
        padding: 8px 35px 8px 25px;
    }
    .items-grid {
        gap: 20px;
    }
    .floating-total {
        padding: 12px 25px;
        gap: 15px;
    }
    .total-amount {
        font-size: 2.2rem;
    }
    .checkout-btn {
        padding: 12px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    /* Полное обнуление внешних отступов только на мобильных */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: #fcf9f5 !important;
        overflow-x: hidden !important;
    }
    body {
        padding: 0 !important;
    }
    .order-container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    .content {
        padding: 25px 18px !important;
    }
    .hero {
        min-height: 40vh;
        padding: 30px 15px;
        border-radius: 20px;
    }
    .hero::before {
        border-radius: 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .hero-btn {
        font-size: 1rem;
        padding: 12px 30px;
    }
    .features {
        gap: 20px;
        margin-top: 10px;
    }
    .feature-item {
        flex: 1 1 140px;
        padding: 20px 10px;
    }
    .feature-item i {
        font-size: 2.2rem;
    }
    .feature-item h3 {
        font-size: 1.3rem;
    }
    .category-nav {
        padding: 12px 15px;
        border-radius: 0 0 30px 30px;
    }
    .category-nav .nav-item {
        font-size: 1rem;
        padding: 10px 20px;
    }
    .category-title {
        font-size: 1.8rem;
    }
    .items-grid {
        grid-template-columns: 1fr 1fr;
    }
    .item-image {
        height: 150px;
    }
    .item-content {
        padding: 15px 12px;
    }
    .item-name {
        font-size: 1.2rem;
    }
    .qty-btn {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }
    .delivery-panel {
        padding: 30px 20px;
        gap: 30px;
    }
    .datetime-row {
        flex-direction: column;
        gap: 0;
    }
    .delivery-radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
    }
    .floating-total {
        right: 15px !important;
        bottom: 15px !important;
        padding: 10px 20px;
        gap: 12px;
    }
    .total-amount {
        font-size: 1.8rem;
    }
    .checkout-btn {
        padding: 10px 22px;
        font-size: 1rem;
    }
    .telegram-config {
        padding: 25px 20px;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .admin-panel {
        padding: 25px;
    }
    .add-form {
        padding: 25px;
    }
    .trust-banner {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer .contacts {
        flex-direction: column;
        gap: 10px;
    }
    .modal-content {
        padding: 15px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    .cart-items {
        flex: 1;
        overflow-y: auto;
        max-height: 60vh;
        margin-bottom: 15px;
    }
    .cart-item {
        flex-wrap: wrap;
    }
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }
    .cart-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cart-actions .btn-send {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-btn {
        font-size: 0.95rem;
        padding: 10px 25px;
    }
    .items-grid {
        grid-template-columns: 1fr;
    }
    .item-image {
        height: 180px;
    }
    .floating-total {
        right: 10px;
        bottom: 10px;
        padding: 8px 16px;
    }
    .total-amount {
        font-size: 1.6rem;
    }
    .checkout-btn {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
    .qty-controller {
        padding: 5px 8px;
    }
    .qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }
    .category-nav .nav-item {
        font-size: 0.95rem;
        padding: 8px 16px;
    }
    .form-control {
        padding: 16px 20px;
    }
}