@font-face {
  font-family: 'sirenik';
  src: url('fonts/sirenik.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'tolkien';
  src: url('fonts/tolkien.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'prada';
  src: url('fonts/prada.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'geoform';
  src: url('fonts/geoform.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
a {
  display: flex;
  color: #fff;
  height: 100%;
  width: 100%;
  text-decoration: none;
  justify-content: space-evenly;
  align-items: center;
}

body {
  background: #f7f7fa;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 75px;
}

.page-title {
  text-align: center;
  margin-top: 3vw;
}

.modal {
  position: fixed; z-index:99; left:0; top:0;
  width:100vw; height:100vh;
  background: rgba(0,0,0,0.3); display:flex; align-items:center; justify-content:center;
}
.modal-content {
  background: #fff; padding:36px 28px; border-radius:16px; min-width:320px;
  box-shadow: 0 2px 18px rgba(34,34,48,0.08);
  display:flex; flex-direction:column; gap:18px; text-align:center;
}
.pencil-icon {
  font-size:1.2em; margin-right:8px; vertical-align:middle;
}

.promo-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%) translateY(30px);
  min-width: 215px;
  max-width: 84vw;
  background: linear-gradient(95deg,#ebfffa,#c4f3d7 80%);
  color: #197538;
  border-radius: 14px;
  padding: 16px 32px;
  font-size: 1.10em;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10),0 2px 8px rgba(85,216,125,0.16);
  opacity: 0;
  pointer-events: none;
  z-index: 1600;
  text-align: center;
  transition: opacity 0.36s, transform 0.36s;
  letter-spacing: 0.015em;
}
.promo-toast--show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.promo-toast--error {
  background: linear-gradient(93deg,#ffdbdd 60%,#ff7d88 120%);
  color: #b8001a;
  box-shadow: 0 8px 28px rgba(211,22,82,0.13);
}



.site-header {
 position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 75px;
  z-index: 10;
  background: rgba(0,0,0,0.4); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  font-family: sirenik, sans-serif;
  box-shadow: 0 -8px 10px 15px rgba(0, 0, 0, 0.50);
}


@media (max-width: 480px) {
  .site-header { height: 75px; }
}

.site-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }


.site-header a{
    text-decoration: none;
    color: black;
}


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

.main-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}

.content-area {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar {
  height: 100%;
  width: 500px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(34, 34, 48, 0.04);
}

.card-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 24px;
}

.input-group, .delivery-details, .summary-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-label {
  font-size: 0.95em;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.mobile-only {
  display: none;
}
@media screen and (max-width: 767px) {
  .mobile-only {
    display: block;
    margin-bottom: 50px;
  }
}

.desktop-only {
  display: none;
}
@media screen and (min-width: 768px) {
  .desktop-only {
    display: block;
  }
}

.input, .select {
  width: 94%;
  padding: 12px;
  background: #e3edff;
  border: 1px solid #bad3fc;
  border-radius: 8px;
  font-size: 1em;
  color: #222;
  outline: none;
  margin-bottom: 4px;
  transition: border-color 0.2s;
}

.input:focus, .select:focus {
  border-color: #2563eb;
  background: #fff;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.radio {
  display: none;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #2563eb;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-sizing: border-box;
}

.radio-active {
  background: #2563eb;
  width: 20px;
  height: 20px;
  border: 2px solid #2563eb;
  border-radius: 999px;
}

.radio-text {
  font-size: 1em;
  color: #222;
  font-weight: 500;
}

.section-title {
  font-size: 1em;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.half-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.promo-group {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 32px;
  background: #23272f;
  color: #fff;
  font-size: 1em;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn:hover {
  background: #18181c;
}

.large-btn {
  height: 45px;
  width: 100%;
  padding: 0px 0;
  font-size: 1.1em;
  margin-top: 10px;
}

.sticky {
  position: sticky;
  top: 32px;
}

.summary-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.98em;
  margin-top: 10px;
}

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

.label-grey {
  color: #656e80;
}



.summary-value {
  font-weight: 500;
  color: #222;
}

.total-row {
  border-top: 1px solid #ced6e0;
  padding-top: 18px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1em;
}

.summary-title {
  font-weight: 600;
}

.summary-total {
  color: #222e50;
  font-size: 1.25em;
  font-weight: 600;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
}

.cart-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-empty a{
  text-decoration: none;
}

.cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item__title {
  font-size: 1em;
  color: #1f2937;
}

.cart-item__meta {
  font-size: 0.9em;
  color: #6b7280;
  display: ruby;
}

.cart-item__price {
  font-size: 1em;
  font-weight: 600;
  color: #111827;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 2px;
}

.cart-qty-btn,
.cart-remove {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cart-qty-btn:hover,
.cart-remove:hover {
  background: #e0e7ff;
  border-color: #a5b4fc;
}

.cart-qty {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  color: #1f2937;
}

.cart-empty {
  padding: 32px;
  text-align: center;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px dashed #cbd5f5;
  color: #4b5563;
}

.cart-empty__link {
  margin-top: 16px;
  display: inline-block;
  width: auto;
}
.order {
  display: none;
}

.error { 
    display: None;
    padding: 20px;
    background-color: rgb(255 255 255);
    color: red;
    box-shadow: 0 2px 4px rgba(34, 34, 48, 0.04);
    border-radius: 10px;
}


/* ---------- Медиа-запросы: адаптивность ---------- */

/* Планшеты (<= 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 24px 8px;
    max-width: 960px;
  }
  .main-grid {
    grid-template-columns: 1fr 300px;
    gap: 20px;
  }
  .card {
    padding: 16px;
  }
}

/* Средние устройства (<= 768px) – две колонки превращаются в одну вертикально */
@media (max-width: 768px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sidebar {
    order: -1;
    width: 100%;
    margin-bottom: 32px;
    margin-top: 0;
  }
  .page-title {
    margin-top: 8vw;
  }
}

/* Мобильные (<= 520px) */
@media (max-width: 520px) {
  .container {
    padding: 10px 2vw;
    max-width: 100vw;
  }
  .card {
    padding: 10px 4px;
    border-radius: 8px;
  }
  .main-link {
    font-size: 9vw;
  }
  .half-grid {
    display: block;
  }
  .promo-group {
    flex-direction: column;
    gap: 6px;
  }
  .large-btn, .btn {
    font-size: 1em;
    margin-top: 10px;
  }
  .sticky {
    position: static;
    top: unset;
  }
}
