:root {
    --accent: #f05a28;
    --muted: #6b7280;
    --bg: #f6f7fb;
    --card: #ffffff;
    --radius: 12px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
    background: var(--bg);
    color: #111827;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

li {
    list-style-type: none;
}

a {
    color: inherit;
}

/* wrapper */
.wrap {
    max-width: var(--max-width);
    margin: 24px auto;
    padding: 0 16px;
}

/* header */
.site-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand .logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #ff8a50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.brand .title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1
}

.brand .subtitle {
    font-size: 12px;
    color: var(--muted)
}

/* top controls */
.top-controls {
    margin-left: auto;
}

.top-controls a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.top-controls a:hover {
  background-color: #e0e0e0;
}

/* Специальный стиль для Telegram */
.top-controls .telegram-btn {
  background-color: #229ED9;
  color: #fff;
}

.top-controls .telegram-btn:hover {
  background-color: #1c8cbc;
}

.icon-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
}

/* layout: sidebar + content */
.content {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-areas: 
    "sidebar main"
    "sidebar counter"
    "sidebar products";
    gap: 20px;
    margin-top: 18px;
}

/* sidebar */
.sidebar {
    grid-area: sidebar;
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
    height: fit-content;
}

.sidebar h4 {
    margin: 0 0 12px 0;
    font-size: 14px
}

.cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #6b7280;
}

.cat {
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    color: inherit
}

.cat:hover {
    background: #f3f4f6
}

/* hero */
.hero {
    grid-area: main;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 60px 30px;
}

.hero-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 25px;
}

.hero .buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hero .buttons .primary {
    background: var(--accent);
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.hero .buttons .secondary {
    background: #f3f4f6;
    color: #1f2937;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: #4b5563;
    font-size: 14px;
}

.fa-icon {
    font-size: 20px;
    color: var(--accent)
}

.feature-title {
    font-size: 16px;
}

.btn {
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
}

.btn.secondary {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
}

.btn.secondary:hover {
    background: #f5f5f5;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #444;
}

.benefit .icon {
    font-size: 20px;
}

/* products grid */
.controls-row {
    grid-area: counter;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
}

.products {
    grid-area: products;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card .thumb {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef2ff, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.card .title {
    font-weight: 600;
    font-size: 15px
}

.knife-card {
    padding: 18px;
}

.knife-card-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.knife-card-header {
    text-align: left;
}

.knife-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.knife-card-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.knife-card-features {
    margin: 12px 0;
    padding-left: 18px;
    font-size: 13px;
    color: #4b5563;
}

.knife-card-features li {
    list-style: disc;
    margin-bottom: 4px;
}

.knife-card-prices {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 10px;
    font-size: 14px;
}

.knife-card-old-price span {
    text-decoration: line-through;
    color: var(--muted);
}

.knife-card-new-price span {
    font-weight: 700;
    color: var(--accent);
    font-size: 18px;
}

.knife-card-left {
    margin-top: 8px;
    font-size: 12px;
    color: #b91c1c;
}

.knife-card-delivery {
    margin-top: 10px;
    font-size: 12px;
    color: #4b5563;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.knife-card-cta {
    margin-top: 14px;
}

.knife-card-btn {
    width: 100%;
}

.miski-card {
    padding: 18px;
}

.miski-card-badge {
    background: #2563eb;
}

.miski-card-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #4b5563;
}

.miski-rating {
    font-weight: 600;
}

.miski-orders {
    color: var(--muted);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto
}

.price {
    font-weight: 700;
    color: var(--accent)
}

.add-btn {
    background: var(--accent);
    border: 0;
    font-weight: 600;
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer
}

/* footer */
footer {
    margin-top: 40px;
    padding: 40px 20px;
    background: #1f2937;
    color: #f3f4f6;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.05);
    font-size: 14px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-column {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    align-self: flex-start;
    flex-direction: column;
    gap: 8px;
}

.footer-column h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.footer-column a {
    color: #f3f4f6;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    color: #9ca3af;
    font-size: 13px;
}

/* responsive */
@media (max-width:1000px) {
    .content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "main"
            "sidebar"
            "counter"
            "products";
    }

    .sidebar {
        grid-row: 2;
    }

    .cat-list {
        flex-direction: row;
    }

    .hero {
        grid-row: 1;
    }

    .search {
        min-width: 220px
    }

    .products {
        grid-template-columns: repeat(2, 1fr)
    }

    .carousel {
        height: 120px
    }
}

@media (max-width:600px) {
    .site-header {
        flex-wrap: wrap;
        gap: 12px
    }

    .search {
        order: 3;
        width: 100%
    }

    .top-controls {
        width: 100%;
        justify-content: space-between
    }

    .hero {
        flex-direction: column;
        align-items: flex-start
    }

    .carousel {
        width: 100%
    }

    .products {
        grid-template-columns: repeat(1, 1fr)
    }
}

@media (max-width:500px) {
    .fa-icon {
        font-size: 18px
    }

    .feature-title {
        font-size: 14px
    }
}

