:root {
    --bg: #ffffff;
    --text: #171717;
    --muted: #727272;
    --line: #ece7e3;
    --soft: #f8f5f2;
    --red: #c5161d;
    --black: #111111;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(197, 22, 29, 0.06), transparent 18%),
        radial-gradient(circle at left 10%, rgba(0, 0, 0, 0.03), transparent 12%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.page-shell {
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
    padding-bottom: 110px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0 14px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 4px;
}

.cart-trigger {
    border: none;
    border-radius: 18px;
    background: var(--black);
    color: #fff;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.cart-trigger span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
    min-height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.98), rgba(197, 22, 29, 0.95));
    position: relative;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
}

.hero::before {
    width: 290px;
    height: 290px;
    background: rgba(255, 255, 255, 0.08);
    right: -90px;
    top: -100px;
}

.hero::after {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    left: 48%;
    bottom: -80px;
}

.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.hero__content {
    padding: 34px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.hero__title {
    margin: 0 0 12px;
    font-size: 40px;
    line-height: 1.05;
    font-weight: 800;
}

.hero__description {
    margin: 0 0 18px;
    max-width: 590px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.65;
    font-size: 15px;
}

.hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__pill {
    background: #fff;
    color: var(--black);
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero__visual {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        url('https://images.unsplash.com/photo-1593618998160-e34014e67546?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    min-height: 280px;
}

.hero__sun {
    position: absolute;
    right: 28px;
    top: 28px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hero__kanji {
    position: absolute;
    right: 26px;
    bottom: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 72px;
    font-weight: 800;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 14px;
    margin-bottom: 18px;
}

.toolbar__item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 14px 16px;
}

.toolbar__item input,
.toolbar__item select {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
}

.grid,
.grid--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card__media {
  width: 100%;
  height: 320px; /* было мало — делаем больше */
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__media img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.card__mark {
    position: absolute;
    right: 16px;
    bottom: 14px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--black);
    opacity: 0.86;
}

.card__mark span {
    color: var(--red);
}

.card__title {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.card__sku {
    color: #9a9a9a;
    font-size: 13px;
    margin-bottom: 10px;
}

.card__description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    min-height: 68px;
    margin-bottom: 12px;
}

.spec-list {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.spec-list__item {
    font-size: 13px;
    color: #4d4d4d;
    line-height: 1.45;
}

.card__footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.price {
    font-size: 26px;
    font-weight: 800;
}

.card__actions,
.product-actions,
.checkout-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.button {
    border: none;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    background: var(--red);
    color: #fff;
}

.button--dark {
    background: var(--black);
    color: #fff;
}

.button--ghost {
    background: #fff;
    color: var(--black);
    border: 1px solid var(--line);
}

.button--full {
    width: 100%;
    justify-content: center;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 18px;
}

.product-image {
    background: var(--soft);
    border-radius: var(--radius-xl);
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow);
}

.product-summary h1 {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.1;
}

.product-summary__sku {
    color: #999;
    font-size: 14px;
    margin-bottom: 18px;
}

.product-summary__description {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.product-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.panel ul {
    margin: 0;
    padding-left: 18px;
    color: #555;
    line-height: 1.7;
}

.empty-state {
    padding: 34px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px dashed var(--line);
    color: var(--muted);
}

.bottom-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(10px);
}

.bottom-bar.active {
    display: flex;
}

.bottom-bar__info {
    font-size: 14px;
    line-height: 1.5;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 80;
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    width: min(920px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.modal-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 0;
}

.modal-card__header h2 {
    margin: 6px 0 0;
    font-size: 30px;
}

.modal-card__body {
    padding: 22px;
}

.icon-close {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 16px;
    background: var(--black);
    color: #fff;
    cursor: pointer;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 18px;
}

.cart-list {
    display: grid;
    gap: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.cart-item__name {
    font-weight: 500;
}

.cart-item__meta {
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: #666;
    font-size: 13px;
}

.field input,
.field textarea {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    outline: none;
    background: #fff;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.checkout-note {
    margin: 12px 0 16px;
    color: #777;
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 960px) {
    .hero,
    .product-hero,
    .product-panels,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 20px, 1240px);
    }

    .topbar {
        align-items: flex-start;
    }

    .brand-logo {
        height: 105px;
    }

    .brand-title {
        font-size: 22px;
    }

    .hero__content {
        padding: 22px;
    }

    .hero__title,
    .product-summary h1 {
        font-size: 28px;
    }

    .product-summary {
        padding: 22px;
    }

    .bottom-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .card__actions,
    .product-actions,
    .checkout-actions {
        flex-direction: column;
    }
}
.card {
  min-width: 0;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.card__body {
  padding: 10px;
}

.card__title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 8px;
  word-break: break-word;
}

.card__description,
.spec-list__item,
.card__sku {
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.price {
  font-size: 16px;
  line-height: 1.2;
}

.card__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.button {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 14px;
}
.card__media {
  display: block;
  width: 100%;
  height: 160px;
  background: #f7f7f7;
  overflow: hidden;
  border-radius: 14px;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
@media (max-width: 767px) {
  .page,
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .grid,
  .grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero__title {
    font-size: 24px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.grid--two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .grid--two {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .grid--two {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  min-width: 0;
  width: 100%;
}

.card__media {
  width: 100%;
  height: 220px; /* было мало — делаем больше */
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* чтобы нож не обрезался */
}

@media (max-width: 767px) {
  .grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card__body,
  .card {
    min-width: 0;
  }

  .card__title {
    font-size: 16px;
    line-height: 1.35;
    word-break: break-word;
  }

  .card__description,
  .spec-list__item,
  .card__sku {
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
  }

  .price {
    font-size: 16px;
  }

  .card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .button {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
  }
}
.hero {
  position: relative;
  background-image: url('/uploads/banner.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  min-height: 360px;
  padding: 40px 20px;
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75),  /* слева темно */
    rgba(0,0,0,0.4),   /* центр */
    rgba(0,0,0,0.1)    /* справа почти прозрачно */
  );
  border-radius: 24px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.hero__title {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 16px;
}

.hero__description {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 20px;
  color: #f1f1f1;
}

.hero__btn {
  display: inline-block;
  background: #c5161d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  background: rgba(0,0,0,0.45);
  padding: 20px;
  border-radius: 16px;
}
.card__media {
  height: 260px;
}