@font-face {
  font-family: 'Arkhip';
  src: url('fonts/Arkhip-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
:root {
  --cream: #f2e8d5;
  --cream-2: #e8dcc0;
  --paper: #faf5e8;
  --ink: #1a1410;
  --ink-2: #3a2f26;
  --ink-3: #6b5d4d;
  --amber: #d97b29;
  --amber-dark: #b5621a;
  --red: #a33028;
  --brass: #b8923f;
  --line: #d6c9ae;
  --shadow: 0 8px 24px rgba(26, 20, 16, 0.12);
  --radius: 6px;
}

/* ===== БАЗА ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  background-image:
    repeating-linear-gradient(45deg, rgba(26,20,16,0.025) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(26,20,16,0.025) 0 2px, transparent 2px 5px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ТИПОГРАФИКА ===== */
.section-title {
  font-family: 'Arkhip', sans-serif;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 32px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 0 var(--ink-2);
}
.btn--primary:hover {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--amber-dark);
}
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--amber-dark); }
.btn--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--full { width: 100%; }

/* ===== ШАПКА ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo__img { height: 40px; width: auto; }
.logo__text {
  font-family: 'Arkhip', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--ink);
  white-space: nowrap;
}
.logo__sub {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.2em;
  color: var(--ink-3);
  margin-top: 4px;
  text-transform: uppercase;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav a:hover { color: var(--amber); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: var(--ink);
  transition: background 0.15s;
}
.cart-btn:hover { background: var(--cream-2); }
.cart-btn__count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Courier Prime', monospace;
  font-size: 12px; font-weight: 700;
  background: var(--red);
  color: var(--cream);
  border-radius: 10px;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
  padding: 100px 0 120px;
  border-bottom: 1.5px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(217,123,41,0.10), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(163,48,40,0.07), transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: 1000px;
}
.hero__title {
  font-family: 'Arkhip', sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.hero__title-accent {
  color: var(--amber);
  white-space: nowrap;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ===== КАТАЛОГ ===== */
.catalog { padding: 90px 0; }
.section-head { margin-bottom: 40px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.filter {
  padding: 8px 18px;
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  transition: all 0.15s;
}
.filter:hover { border-color: var(--ink-2); }
.filter.is-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 28px;
}

/* ===== КАРТОЧКА ПЕДАЛИ ===== */
.card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ink-3);
}
.card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.card:hover .card__img { transform: scale(1.05); }
.card__placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-family: 'Arkhip', sans-serif;
  font-size: 42px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 4px, transparent 4px 10px),
    var(--cream-2);
}
.card__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  font-family: 'Courier Prime', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border-radius: 100px;
}
.card__badge--order { background: var(--amber); color: var(--ink); }
.card__info { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card__model {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.card__name {
  font-family: 'Arkhip', sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.card__short {
  font-size: 14px;
  color: var(--ink-2);
  flex: 1;
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1.5px solid var(--line);
}
.card__price {
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  font-weight: 700;
}
.card__add {
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  transition: background 0.15s;
}
.card__add:hover { background: var(--amber); color: var(--ink); }

.empty {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
  font-family: 'Courier Prime', monospace;
}

/* ===== О БРЕНДЕ ===== */
.about {
  padding: 90px 0;
  background: var(--cream);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.about__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__text p { margin-bottom: 16px; color: var(--ink-2); max-width: 560px; }
.about__stats { display: grid; gap: 24px; }
.stat {
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.stat__num {
  font-family: 'Arkhip', sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--amber);
}
.stat__label {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}

/* ===== КОНТАКТЫ ===== */
.contact { padding: 90px 0; }
.contact__lead { color: var(--ink-2); margin-bottom: 32px; max-width: 520px; }
.contact__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.contact__link {
  padding: 22px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  transition: all 0.15s;
}
.contact__link:hover {
  border-color: var(--amber);
  background: var(--paper);
  transform: translateY(-2px);
}
.contact__name {
  display: block;
  font-family: 'Arkhip', sans-serif;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.contact__val {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--ink-3);
}

/* ===== ПОДВАЛ ===== */
.footer {
  padding: 32px 0;
  border-top: 1.5px solid var(--line);
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: var(--ink-3);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 20px; }
.footer__links a:hover { color: var(--amber); }

/* ===== МОДАЛКА ТОВАРА ===== */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, 0.55);
  backdrop-filter: blur(4px);
  animation: fade 0.2s;
}
.modal__body {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 12px;
  border: 1.5px solid var(--line);
  animation: pop 0.25s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }

.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd__img {
  background: var(--cream-2);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px 0 0 12px;
}
.pd__img img { width: 100%; height: 100%; object-fit: cover; }
.pd__img .card__placeholder { display: flex; }
.pd__info { padding: 40px; display: flex; flex-direction: column; }
.pd__model {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.pd__name {
  font-family: 'Arkhip', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.pd__short { color: var(--ink-2); margin-bottom: 20px; }
.pd__desc { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; white-space: pre-line; }
.pd__specs {
  margin: 8px 0 24px;
  border-top: 1.5px solid var(--line);
}
.pd__spec {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1.5px solid var(--line);
  font-size: 14px;
}
.pd__spec span:first-child { color: var(--ink-3); }
.pd__spec span:last-child { font-family: 'Courier Prime', monospace; }
.pd__price {
  font-family: 'Courier Prime', monospace;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.pd__actions { display: flex; gap: 12px; margin-top: auto; }
.pd__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  font-size: 28px;
  line-height: 1;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
}
.pd__close:hover { background: var(--cream-2); }

/* ===== КОРЗИНА ===== */
.drawer {
  position: fixed; inset: 0;
  z-index: 110;
  display: none;
}
.drawer.is-open { display: block; }
.drawer__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, 0.5);
  backdrop-filter: blur(4px);
  animation: fade 0.2s;
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0,0,0,0.18);
  animation: slide 0.28s ease-out;
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1.5px solid var(--line);
}
.drawer__head h3 {
  font-family: 'Arkhip', sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}
.drawer__close {
  font-size: 30px;
  line-height: 1;
  color: var(--ink-3);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.drawer__close:hover { color: var(--ink); }
.drawer__view {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ===== СПИСОК КОРЗИНЫ ===== */
.cart-list { flex: 1; padding: 16px 24px; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1.5px solid var(--line);
  align-items: center;
}
.cart-item__img {
  width: 72px; height: 72px;
  border-radius: var(--radius);
  background: var(--cream-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__img .card__placeholder { font-size: 18px; }
.cart-item__name {
  font-family: 'Arkhip', sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.cart-item__price {
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  color: var(--ink-3);
}
.cart-item__right { text-align: right; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty button {
  width: 30px; height: 30px;
  font-size: 18px;
  line-height: 1;
  color: var(--ink-2);
}
.qty button:hover { background: var(--cream-2); }
.qty span {
  min-width: 30px;
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
}
.cart-item__remove {
  display: block;
  margin-top: 8px;
  margin-left: auto;
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: underline;
}
.cart-item__remove:hover { color: var(--red); }
.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier Prime', monospace;
  color: var(--ink-3);
  padding: 40px;
}
.drawer__foot {
  padding: 22px 24px;
  border-top: 1.5px solid var(--line);
  background: var(--cream);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-total span {
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--ink-3);
}
.cart-total strong {
  font-family: 'Courier Prime', monospace;
  font-size: 24px;
}

/* ===== ФОРМА ===== */
.form { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--amber);
  background: var(--paper);
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  margin-top: 4px;
  border-top: 1.5px solid var(--line);
}
.checkout-total span {
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--ink-3);
}
.checkout-total strong {
  font-family: 'Courier Prime', monospace;
  font-size: 22px;
}
.form__note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 4px;
}

/* ===== УСПЕХ ===== */
.success {
  padding: 60px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: center;
}
.success__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin-bottom: 8px;
}
.success h3 {
  font-family: 'Arkhip', sans-serif;
  font-size: 34px;
  letter-spacing: 0.03em;
}
.success p { color: var(--ink-2); max-width: 320px; }

/* ===== УВЕДОМЛЕНИЕ ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 14px 26px;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  border-radius: 100px;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .pd { grid-template-columns: 1fr; }
  .pd__img { border-radius: 12px 12px 0 0; aspect-ratio: 4 / 3; }
  .pd__info { padding: 28px; }
  .pd__name { font-size: 34px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 60px 0 80px; }
  .hero__title { font-size: clamp(30px, 8vw, 44px); }
  .catalog, .about, .contact { padding: 60px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .cart-item { grid-template-columns: 56px 1fr; }
  .cart-item__img { width: 56px; height: 56px; }
  .cart-item__right { grid-column: 2; text-align: left; margin-top: 8px; }
  .cart-item__remove { margin-left: 0; }
}