@font-face {
  font-family:Inter;
  src:url("/assets/InterDisplay-SemiBold.ttf") format("truetype");
  font-weight:600;
  font-display:swap;
}

@font-face {
  font-family:Inter;
  src:url("/assets/InterDisplay-Bold.ttf") format("truetype");
  font-weight:700;
  font-display:swap;
}

:root {
  --ink:#1c1b1a;
  --muted:#73716d;
  --paper:#fcf8f3;
  --line:#e7e0d8;
  --orange:#ed4b13;
  --radius:22px;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:15px;
  line-height:1.55;
}

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

button,a,input,textarea,select {
  -webkit-tap-highlight-color:transparent;
}

button,a {
  touch-action:manipulation;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
  opacity:.5;
}

a {
  color:inherit;
}

[hidden] {
  display:none!important;
}

.shell {
  width:min(1160px,calc(100% - 64px));
  margin-inline:auto;
}

.header {
  min-height:102px;
  display:flex;
  align-items:center;
  gap:36px;
}

.brand {
  display:inline-flex;
  align-items:center;
  gap:11px;
  font-size:18px;
  font-weight:700;
  text-decoration:none;
  letter-spacing:-.5px;
  white-space:nowrap;
}

.brand img {
  border-radius:13px;
}

.header nav {
  display:flex;
  gap:26px;
  margin-left:auto;
}

.nav-link {
  background:none;
  border:0;
  padding:12px 0;
  color:var(--muted);
  font-weight:600;
}

.nav-link.active {
  color:var(--ink);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:22px;
  border:1px solid transparent;
  border-radius:12px;
  padding:13px 19px;
  text-decoration:none;
  font-weight:600;
  line-height:1.3;
  min-height:46px;
}

.button-dark {
  background:var(--ink);
  color:white;
}

.button-light {
  background:white;
  border-color:var(--line);
  color:var(--ink);
}

.button-orange {
  background:var(--orange);
  color:white;
}

.button:hover:not(:disabled) {
  filter:brightness(.95);
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #ec965c;
  outline-offset:4px;
}

.notice {
  padding:14px 18px;
  border:1px solid #f2d6b5;
  border-radius:12px;
  background:#fff0dd;
  font-size:13px;
}

.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
  padding:48px 0 56px;
}

.hero h1 {
  font-size:clamp(46px,5.6vw,74px);
  letter-spacing:-3.8px;
  line-height:1.04;
  margin:10px 0 25px;
  font-weight:700;
}

.hero-copy>p {
  color:var(--muted);
  font-size:16px;
  margin:0 0 26px;
}

.hero-products {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:center;
}

.hero-card {
  padding:0;
  text-align:left;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:24px;
  background:white;
  box-shadow:0 10px 24px #6f58400a;
  transition:transform .2s;
}

.hero-card:hover {
  transform:translateY(-4px);
}

.hero-card img {
  display:block;
  width:100%;
  height:200px;
  object-fit:cover;
}

.hero-card>span {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:17px 16px;
  font-weight:600;
}

.hero-card-telegram {
  transform:translateY(28px);
}

.hero-card-telegram:hover {
  transform:translateY(24px);
}

.section-head {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px;
}

h2 {
  font-size:30px;
  line-height:1.2;
  letter-spacing:-1px;
  margin:0;
}

.section-head p {
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.catalog {
  padding-top:22px;
  scroll-margin-top:20px;
}

.search {
  display:flex;
  align-items:center;
  gap:14px;
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:10px 18px;
}

.search>span {
  font-size:29px;
  color:var(--muted);
  line-height:1;
}

.search input {
  width:100%;
  min-height:34px;
  border:0;
  outline:none;
  background:none;
  color:var(--ink);
}

.categories {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:20px 0 12px;
}

.category {
  flex-shrink:0;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  padding:9px 16px;
  font-size:13px;
}

.category.active {
  background:var(--ink);
  color:white;
  border-color:var(--ink);
}

.breadcrumbs {
  display:flex;
  gap:9px;
  align-items:center;
  margin:8px 0 20px;
  color:var(--muted);
  font-size:13px;
}

.breadcrumbs button {
  border:0;
  background:none;
  padding:0;
  color:inherit;
  text-decoration:underline;
  text-underline-offset:3px;
}

.products {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}

.product-card {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-height:200px;
  text-align:left;
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:23px 20px;
  transition:border-color .2s,transform .2s;
}

.product-card:hover {
  border-color:#beada0;
  transform:translateY(-2px);
}

.product-icon {
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:15px;
  background:#f4eee7;
  font-size:25px;
  margin-bottom:21px;
}

.product-card strong {
  font-size:16px;
  font-weight:600;
  line-height:1.35;
  margin-bottom:8px;
}

.product-card .muted {
  font-size:12px;
}

.product-card .price {
  margin-top:auto;
  padding-top:18px;
  font-size:15px;
}

.product-card .arrow {
  float:right;
  margin-left:20px;
  color:var(--muted);
}

.more {
  display:flex;
  margin:28px auto 0;
}

.empty {
  grid-column:1/-1;
  padding:50px 15px;
  color:var(--muted);
  text-align:center;
}

.footer {
  display:flex;
  align-items:center;
  gap:25px;
  border-top:1px solid var(--line);
  padding:30px 0;
  margin-top:74px;
  font-size:13px;
  color:var(--muted);
}

.footer .brand {
  font-size:15px;
  color:var(--ink);
}

.footer a:last-child {
  margin-left:auto;
  text-decoration:none;
}

dialog {
  width:min(520px,calc(100% - 28px));
  max-height:90dvh;
  overflow:auto;
  border:0;
  border-radius:24px;
  padding:34px;
  color:var(--ink);
  box-shadow:0 25px 100px #0003;
}

dialog::backdrop {
  background:#18181775;
  backdrop-filter:blur(5px);
}

dialog h2 {
  padding-right:20px;
  margin:5px 0 18px;
  font-size:27px;
}

.close {
  position:absolute;
  right:16px;
  top:12px;
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  font-size:28px;
  color:var(--muted);
}

.product-description {
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-weight:400;
  white-space:pre-line;
  max-height:170px;
  overflow:auto;
  font-size:14px;
  color:#64605b;
}

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

.error {
  color:#ad271b;
  background:#fff0ec;
  border-radius:10px;
  padding:12px 15px;
}

.field-label {
  display:block;
  font-size:13px;
  margin:17px 0 6px;
}

.field {
  display:block;
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  padding:12px;
  background:#fff;
  color:var(--ink);
  min-width:0;
}

.field-hint {
  font-size:12px;
  color:var(--muted);
  margin:4px 0;
}

.price-line {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  margin-top:24px;
  padding:19px 0;
}

.price-line strong {
  font-size:25px;
  letter-spacing:-.8px;
}

dialog .button {
  width:100%;
  margin-top:10px;
}

.login-logo {
  border-radius:18px;
  margin-bottom:14px;
}

.login-code {
  font-size:34px;
  letter-spacing:7px;
  font-weight:700;
  background:var(--paper);
  text-align:center;
  border-radius:14px;
  padding:14px;
}

.orders {
  min-height:60vh;
  padding-top:30px;
}

.order-row {
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  margin-bottom:12px;
  width:100%;
  text-align:left;
}

.order-row span {
  margin-left:auto;
  color:var(--muted);
}

.order-row strong {
  font-size:15px;
}

.order-detail {
  background:white;
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  margin-top:25px;
}

.order-detail h2 {
  font-size:23px;
}

.order-code {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
}

.order-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:20px 0;
}

.chat {
  border-top:1px solid var(--line);
  margin-top:20px;
  padding-top:20px;
}

.chat-line {
  padding:12px 14px;
  background:var(--paper);
  border-radius:12px;
  margin:10px 0;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.chat-line.customer {
  background:#fff0e6;
}

@media(max-width:900px) {
  .shell {
    width:calc(100% - 40px);
  }
  .header {
    gap:20px;
  }
  .header nav {
    gap:15px;
  }
  .hero {
    gap:25px;
  }
  .hero h1 {
    font-size:54px;
    letter-spacing:-2.7px;
  }
  .hero-card img {
    height:160px;
  }
  .hero-card>span {
    font-size:12px;
    padding:14px 12px;
  }
  .products {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .hero-products {
    gap:10px;
  }
}

@media(max-width:600px) {
  .shell {
    width:calc(100% - 32px);
  }
  .header {
    flex-wrap:wrap;
    gap:12px;
    padding:17px 0;
    min-height:auto;
  }
  .header .brand {
    font-size:16px;
  }
  .header .brand img {
    width:36px;
    height:36px;
  }
  .header>#account {
    margin-left:auto;
    max-width:140px;
    font-size:11px;
    padding:10px;
    min-height:38px;
  }
  .header nav {
    width:100%;
    order:3;
    margin:0;
    gap:26px;
  }
  .nav-link {
    padding:7px 0;
    font-size:13px;
  }
  .hero {
    grid-template-columns:1fr;
    padding:20px 0 32px;
    gap:25px;
  }
  .hero h1 {
    font-size:49px;
    letter-spacing:-2.7px;
    margin-top:0;
  }
  .hero-copy>p {
    font-size:14px;
  }
  .hero-products {
    gap:12px;
    align-items:start;
  }
  .hero-card img {
    height:130px;
  }
  .hero-card-telegram,.hero-card-telegram:hover {
    transform:none;
  }
  .hero-card>span {
    font-size:12px;
  }
  .section-head {
    align-items:baseline;
  }
  .section-head h2 {
    font-size:25px;
  }
  .section-head p {
    font-size:11px;
  }
  .products {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .product-card {
    min-height:180px;
    padding:18px 14px;
    border-radius:18px;
  }
  .product-card strong {
    font-size:14px;
  }
  .product-icon {
    width:41px;
    height:41px;
    font-size:22px;
    margin-bottom:15px;
  }
  .product-card .price {
    font-size:13px;
  }
  .footer {
    flex-wrap:wrap;
    gap:6px 20px;
    margin-top:46px;
    padding:24px 0;
  }
  .footer p {
    width:100%;
    order:3;
    font-size:11px;
  }
  .footer a:last-child {
    font-size:11px;
  }
  dialog {
    padding:28px 22px;
  }
  .order-row {
    gap:12px;
    font-size:12px;
    padding:16px;
  }
  .order-row strong {
    font-size:13px;
  }
  .order-detail {
    padding:20px;
  }
  .notice {
    font-size:12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }
}
