:root {
  --wine: #1f78d1;
  --wine-dark: #145da8;
  --text: #3a2e36;
  --muted: #6d6470;
  --line: #d3e2f0;
  --bg: #ecf5ff;
  --card: #ffffff;
  --topbar-h: 34px;
  --header-h: 86px;
  --benefits-h: 92px;
  --benefits-overlap: 22px;
  --catalog-box-scale-small: 1;
  --catalog-box-scale-standard: 1;
  --catalog-box-scale-medium: 1;
  --catalog-box-scale-large: 1.3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #ecf5ff;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.container {
  width: min(1200px, calc(100% - clamp(16px, 3vw, 40px)));
  margin: 0 auto;
}

.header.container,
.hero .container,
.benefits.container {
  width: min(1320px, calc(100% - clamp(16px, 3vw, 40px)));
}

.topbar {
  background: #1f2942;
  color: #fff;
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  font-size: clamp(11px, 1.2vw, 14px);
}

.header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ecf5ff;
  border-bottom: 1px solid #d9e6f3;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: clamp(76px, 8vw, 100px);
  height: clamp(76px, 8vw, 100px);
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  color: #1d6fbf;
  font-size: clamp(16px, 1.7vw, 21px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: #2f4f6f;
  padding: clamp(8px, 1vw, 11px) clamp(10px, 1.8vw, 18px);
  border-radius: 8px;
  font-size: clamp(14px, 1.45vw, 20px);
  font-weight: 500;
}

.nav a.active {
  border: 1px solid #c8dbef;
  box-shadow: 0 2px 7px rgba(41, 89, 141, 0.15);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: none;
  background: #eef6ff;
  font-size: 24px;
  line-height: 1;
  color: #2b6aa6;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 55, 95, 0.42);
  z-index: 48;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 84vw);
  height: 100vh;
  background: #ecf5ff;
  border-left: 1px solid #cfe0f1;
  box-shadow: -12px 0 26px rgba(35, 76, 117, 0.24);
  z-index: 49;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #cfdeee;
}

.mobile-menu-close {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e1eefb;
  color: #2b6aa6;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 6px;
}

.mobile-menu-nav a {
  text-decoration: none;
  color: #2f4f6f;
  font-weight: 600;
  font-size: 16px;
  border-radius: 10px;
  padding: 12px 12px;
}

.mobile-menu-nav a.active {
  background: #fff;
  border: 1px solid #c8dbef;
  box-shadow: 0 2px 8px rgba(41, 89, 141, 0.12);
}

body.menu-open {
  overflow: hidden;
}

.catalog-btn {
  border: none;
  background: linear-gradient(180deg, #2a8df0, #1976d2);
  color: #fff;
  font-weight: 700;
  font-size: clamp(14px, 1.35vw, 20px);
  border-radius: 14px;
  min-height: 44px;
  padding: clamp(10px, 1vw, 13px) clamp(14px, 2vw, 22px);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(41, 89, 141, 0.14);
}

.catalog-btn-link {
  border: none;
  background: linear-gradient(180deg, #2a8df0, #1976d2);
  color: #fff;
  font-weight: 700;
  font-size: clamp(14px, 1.35vw, 20px);
  border-radius: 14px;
  min-height: 44px;
  padding: clamp(10px, 1vw, 13px) clamp(14px, 2vw, 22px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(41, 89, 141, 0.14);
}

.hero {
  margin-top: 2px;
  background: #ecf5ff;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h) - (var(--benefits-h) - var(--benefits-overlap)));
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h) - (var(--benefits-h) - var(--benefits-overlap)));
}

.hero-copy h1 {
  margin: 0 0 20px;
  color: #155a9f;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.1;
  text-align: center;
}

.hero-copy p {
  margin: 0;
  color: #4a414a;
  font-size: clamp(16px, 2vw, 25px);
  line-height: 1.35;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: none;
  border-radius: 12px;
  min-height: 42px;
  font-size: clamp(14px, 1.35vw, 20px);
  padding: clamp(9px, 0.9vw, 12px) clamp(12px, 1.7vw, 20px);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(41, 89, 141, 0.12);
}

button,
.btn,
.catalog-btn,
.catalog-btn-link,
.menu-toggle,
.mobile-menu-close,
.carousel-btn {
  transition: transform 0.16s ease, filter 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

button:hover,
.btn:hover,
.catalog-btn:hover,
.catalog-btn-link:hover,
.menu-toggle:hover,
.mobile-menu-close:hover,
.carousel-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 9px 18px rgba(41, 89, 141, 0.18);
}

button:active,
.btn:active,
.catalog-btn:active,
.catalog-btn-link:active,
.menu-toggle:active,
.mobile-menu-close:active,
.carousel-btn:active {
  transform: translateY(0) scale(0.985);
  filter: brightness(0.97);
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.14);
}

.btn-primary {
  background: linear-gradient(180deg, #2e90f2 0, #1a74cf 100%);
  color: #fff;
}

.btn-light {
  background: #ecf5ff;
  border: 1px solid #c8dbef;
  color: #35536f;
}

.btn-light:hover,
.carousel-btn:hover {
  background: #dfecfa;
}

.btn-light:active,
.carousel-btn:active {
  background: #d3e3f4;
}

.hero-visual {
  position: relative;
  height: 100%;
}

.home-body .hero-visual {
  margin-right: calc(-1 * clamp(16px, 3vw, 40px));
}

.home-body .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 92% at 58% 54%, rgba(236, 245, 255, 0) 62%, rgba(236, 245, 255, 0.82) 100%);
  pointer-events: none;
  z-index: 3;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--benefits-overlap);
  left: 0;
  background: url("bgcourier.png") center center / cover no-repeat;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 58%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.courier-image {
  position: absolute;
  right: 0;
  bottom: calc(-5 * var(--benefits-overlap));
  width: min(200%, 520px);
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.82;
  filter: saturate(0.88) contrast(0.9) brightness(1.02) blur(0.45px);
  -webkit-mask-image: radial-gradient(115% 95% at 56% 55%, #000 68%, rgba(0, 0, 0, 0.7) 84%, transparent 100%);
  mask-image: radial-gradient(115% 95% at 56% 55%, #000 68%, rgba(0, 0, 0, 0.7) 84%, transparent 100%);
  z-index: 2;
}

.home-body .courier-image {
  right: 0;
}

@media (min-width: 901px) {
  .home-body .courier-image {
    bottom: var(--benefits-overlap);
  }
}

.home-steps {
  padding-top: clamp(18px, 2.2vw, 32px);
  padding-bottom: clamp(14px, 1.8vw, 22px);
}

.home-steps h2 {
  margin-bottom: clamp(12px, 1.6vw, 18px);
  font-size: clamp(24px, 2.5vw, 34px);
}

.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

.home-step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.08);
  padding: clamp(12px, 1.4vw, 16px);
}

.home-step-card h3 {
  margin: 10px 0 8px;
  color: #1e6eb9;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.25;
}

.home-step-card p {
  margin: 0;
  color: #4f3e49;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.4;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ecf5ff;
  border: 1px solid #d9e6f3;
  border-top: none;
  min-height: var(--benefits-h);
  margin-top: calc(-1 * var(--benefits-overlap));
  position: relative;
  z-index: 3;
}

.benefits article {
  border-right: 1px solid var(--line);
  padding: clamp(10px, 1.2vw, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: clamp(14px, 1.35vw, 19px);
  color: #2f5a7f;
  font-weight: 600;
}

.benefits article:last-child {
  border-right: none;
}

.benefits span {
  width: clamp(34px, 2.8vw, 48px);
  height: clamp(34px, 2.8vw, 48px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3effb;
}

.catalog {
  padding-top: 24px;
}

@media (max-width: 900px) {
  .home-steps-grid {
    grid-template-columns: 1fr;
  }
}

h2 {
  margin: 0 0 22px;
  text-align: center;
  font-size: clamp(26px, 3vw, 44px);
  color: #1d6fbf;
}

.catalog-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(12px, 1.6vw, 20px);
}

.catalog-shop {
  padding-top: 24px;
}

.catalog-shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.header-auth-link {
  text-decoration: none;
  border: 1px solid #c8dbef;
  background: #ecf5ff;
  color: #35536f;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 17px);
  border-radius: 12px;
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(41, 89, 141, 0.1);
  white-space: nowrap;
}

.header-auth-link:hover {
  background: #dfecfa;
}

.catalog-shop-top h2 {
  margin: 0;
  text-align: left;
}

.catalog-found {
  font-size: 14px;
  color: #35536f;
  font-weight: 600;
}

.register-page .catalog-btn-link,
.account-page .catalog-btn-link,
.login-page .catalog-btn-link {
  display: none;
}

.auth-shell {
  padding: 28px 0 34px;
}

.auth-card {
  width: min(100%, 520px);
  margin: 0 auto;
  background: #f7fbff;
  border: 1px solid #d9e6f3;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(35, 84, 133, 0.14);
  padding: 24px;
}

.auth-card h1 {
  margin: 0 0 14px;
  text-align: center;
  color: #1d6fbf;
  font-size: clamp(24px, 3vw, 36px);
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-label {
  font-size: 13px;
  color: #35536f;
  font-weight: 600;
}

.auth-input,
.auth-select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid #bfd5ea;
  background: #fff;
  color: #2f4f6f;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.auth-input:focus,
.auth-select:focus {
  border-color: #2a8df0;
  box-shadow: 0 0 0 2px rgba(42, 141, 240, 0.2);
}

.password-wrap {
  position: relative;
}

.password-wrap .auth-input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  border: 1px solid #c9dced;
  background: #ecf5ff;
  border-radius: 8px;
  cursor: pointer;
  color: #2b6aa6;
  font-size: 0;
  line-height: 1;
}

.password-toggle::before {
  content: "";
  width: 15px;
  height: 9px;
  border: 2px solid #2b6aa6;
  border-radius: 9px / 6px;
  box-sizing: border-box;
}

.password-toggle::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: #2b6aa6;
  transform: rotate(-35deg);
}

.password-toggle.is-visible::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  transform: none;
}

.password-toggle:focus-visible {
  outline: 2px solid #2a8df0;
  outline-offset: 1px;
}

.password-toggle:hover,
.password-toggle:active {
  transform: translateY(-50%);
  filter: none;
  box-shadow: none;
}

.auth-hint {
  margin: -2px 0 2px;
  font-size: 12px;
  color: #5d7893;
}

.auth-error {
  min-height: 16px;
  margin: 0 0 2px;
  font-size: 12px;
  color: #d14a4a;
}

.auth-actions {
  margin-top: 6px;
}

.auth-link-row {
  margin: 12px 0 0;
  text-align: center;
  font-size: 14px;
  color: #35536f;
}

.auth-link-row a {
  color: #1d6fbf;
  font-weight: 600;
  text-decoration: none;
}

.auth-link-row a:hover {
  text-decoration: underline;
}

.account-empty {
  margin: 14px 0 0;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #d9e6f3;
  background: #fff;
  color: #35536f;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.account-shell {
  padding: 24px 0 34px;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.account-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-head h1 {
  margin: 0;
  color: #1d6fbf;
  font-size: clamp(24px, 3vw, 36px);
}

.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  align-items: stretch;
}

.account-sidebar,
.account-content,
.account-mobile-tabs {
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  border: 1px solid #c2d8ec;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(41, 89, 141, 0.12);
}

.account-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 55, 95, 0.42);
  z-index: 48;
}

.account-sidebar-overlay[hidden] {
  display: none;
}

.account-sidebar {
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  position: sticky;
  top: 12px;
  align-self: start;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.account-sidebar-head {
  display: none;
}

.account-sidebar-close {
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e1eefb;
  color: #2b6aa6;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
}

.account-menu-toggle {
  display: none;
  border: none;
  background: #eef6ff;
  font-size: 14px;
  line-height: 1;
  color: #2b6aa6;
  cursor: pointer;
  min-height: 36px;
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
  font-weight: 700;
}

.account-sidebar-logout {
  display: none;
}

.account-tab-btn {
  border: 1px solid #c8dbef;
  background: #fff;
  color: #35536f;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.account-tab-btn.is-active {
  background: #e6f1fd;
  border-color: #8eb5dd;
  box-shadow: inset 0 0 0 1px #b7d0ea;
}

.account-mobile-tabs {
  display: none;
  padding: 10px;
}

.account-mobile-tabs label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #35536f;
  font-weight: 600;
}

.account-mobile-tabs select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bfd5ea;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #2f4f6f;
}

.account-content {
  padding: 14px;
}

.tab-head {
  margin-bottom: 10px;
}

.tab-head h3 {
  margin: 0;
  color: #1f5f97;
  font-size: 20px;
}

.account-empty-box {
  border: 1px dashed #b9cfe5;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: #35536f;
}

.orders-table-wrap {
  overflow-x: auto;
}

.orders-mobile-list {
  display: none;
}

.orders-mobile-card {
  border: 1px solid #d1e1f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.orders-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.orders-mobile-row {
  color: #35536f;
  font-size: 13px;
}

.orders-mobile-row span:first-child {
  color: #5b7690;
  font-size: 12px;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d1e1f2;
  border-radius: 12px;
  overflow: hidden;
}

.orders-table th,
.orders-table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e2edf8;
  text-align: left;
  font-size: 13px;
  color: #35536f;
  white-space: nowrap;
}

.orders-table th {
  background: #f2f8ff;
  font-weight: 700;
  color: #2b5a83;
}

.order-status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #bfd5ea;
  background: #edf5ff;
  color: #2b5a83;
}

.status-отменен {
  background: #fff2f2;
  color: #a54040;
  border-color: #efc9c9;
}

.order-details {
  margin-top: 10px;
  border: 1px solid #d1e1f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #35536f;
  display: grid;
  gap: 8px;
}

.order-details-row td {
  background: #f7fbff;
  padding: 8px;
}

.order-details-row .order-details {
  margin-top: 0;
}

.orders-mobile-details .order-details {
  margin-top: 0;
}

.order-details h4 {
  margin: 0;
  color: #1f5f97;
  font-size: 18px;
}

.order-details p {
  margin: 0;
  overflow-wrap: anywhere;
}

.order-items {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.tracking-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tracking-form .auth-input {
  flex: 1 1 260px;
}

.tracking-result {
  margin-bottom: 12px;
}

.tracking-card {
  border: 1px solid #d1e1f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  color: #35536f;
  display: grid;
  gap: 8px;
}

.tracking-card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.tracking-timeline {
  margin: 0;
  padding-left: 16px;
  display: grid;
  gap: 5px;
}

.tracking-timeline li {
  color: #35536f;
  font-size: 13px;
}

.tracking-timeline span {
  color: #5d7893;
  font-size: 12px;
  margin-left: 6px;
}

.tracking-map-placeholder {
  border: 1px dashed #b7cde2;
  border-radius: 12px;
  background: #eef5fd;
  padding: 18px;
  text-align: center;
  color: #54708b;
}

.tracking-map-placeholder .map-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.tracking-map-placeholder p {
  margin: 0;
  font-size: 13px;
}

.tracking-map {
  height: 320px;
  border: 1px solid #d1e1f2;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
}

.tracking-marker-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.18);
}

.tracking-marker-dot.is-from {
  background: #1f78d8;
}

.tracking-marker-dot.is-to {
  background: #d34343;
}

.chat-note {
  margin: 0 0 8px;
  font-size: 13px;
  color: #56738f;
}

.chat-list {
  border: 1px solid #d1e1f2;
  border-radius: 12px;
  background: #fff;
  min-height: 220px;
  max-height: 340px;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.chat-message {
  max-width: 85%;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  color: #35536f;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}

.chat-message p {
  margin: 0;
}

.chat-message span {
  font-size: 11px;
  color: #69829a;
}

.chat-message.is-manager {
  background: #edf5ff;
  border: 1px solid #cfe1f2;
  justify-self: start;
}

.chat-message.is-user {
  background: #1f78d8;
  color: #fff;
  justify-self: end;
}

.chat-message.is-user span {
  color: rgba(255, 255, 255, 0.82);
}

.chat-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.chat-file-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-file-input {
  display: none;
}

.chat-file-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.chat-file-caption {
  font-size: 12px;
  color: #5d7893;
}

.chat-file-preview {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-file-preview-item {
  width: 120px;
  height: 90px;
  border-radius: 10px;
  border: 1px solid #cfe1f2;
  overflow: hidden;
  background: #f3f8ff;
}

.chat-file-preview-item img,
.chat-file-preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-file-chip {
  border: 1px solid #cfe1f2;
  border-radius: 999px;
  background: #edf5ff;
  color: #2f4f6f;
  font-size: 12px;
  padding: 6px 10px;
}

.profile-grid {
  display: grid;
  gap: 6px;
}

.profile-grid textarea.auth-input {
  min-height: 90px;
  resize: vertical;
}

.account-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #1f78d8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 22px rgba(25, 84, 141, 0.24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 70;
}

.account-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  margin-bottom: 14px;
}

.catalog-filter-open {
  display: inline-flex;
  margin: 0;
}

.catalog-search,
.catalog-sort {
  border: 1px solid #bfd5ea;
  border-radius: 10px;
  background: #fff;
  color: #2f4f6f;
  padding: 10px 12px;
  font-size: 14px;
  min-height: 42px;
}

.catalog-search:focus,
.catalog-sort:focus {
  outline: none;
  border-color: #2a8df0;
  box-shadow: 0 0 0 2px rgba(42, 141, 240, 0.2);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}

.catalog-layout.is-filters-collapsed {
  grid-template-columns: 1fr;
}

.catalog-layout.is-filters-collapsed .catalog-filters {
  display: none;
}

.catalog-filters {
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  border: 1px solid #c2d8ec;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(41, 89, 141, 0.12);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-filters-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1f5f97;
  letter-spacing: 0.01em;
}

.catalog-filters .mobile-menu-close {
  display: none;
}

.catalog-filter-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #2f4f6f;
}

.catalog-filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #35536f;
  margin: 0 0 7px;
  padding: 5px 0;
}

.catalog-filter-group input[type="checkbox"] {
  accent-color: #2a8df0;
}

.catalog-filter-group {
  border: 1px solid #d2e2f2;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.catalog-filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.catalog-filter-actions .btn {
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
}

.catalog-products {
  min-width: 0;
}

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

.catalog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.12);
  overflow: hidden;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(49, 88, 126, 0.14);
}

.catalog-card-image {
  position: relative;
  border-radius: 10px;
  border: 1px solid #dce8f4;
  background: #f8fbff;
  min-height: 148px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.catalog-card-image .catalog-box {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 118px;
  object-fit: contain;
  transform-origin: center;
}

.catalog-card-image .catalog-box--small {
  transform: scale(0.9);
}

.catalog-card-image .catalog-box--standard {
  transform: scale(1.22);
}

.catalog-card-image .catalog-box--medium {
  transform: scale(1.6);
}

.catalog-card-image .catalog-box--large {
  transform: scale(2.05);
}

.catalog-card h3 {
  margin: 0;
  color: #1e6eb9;
  font-size: 18px;
  line-height: 1.2;
}

.catalog-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  font-size: 12px;
  color: #2f5a7f;
  font-weight: 700;
  border: 1px solid #c8dbef;
  border-radius: 999px;
  background: #eef6ff;
  padding: 4px 10px;
}

.catalog-card-meta {
  font-size: 14px;
  color: #4f3e49;
}

.catalog-card-price {
  font-size: 24px;
  font-weight: 800;
  color: #155a9f;
}

.catalog-card-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.32;
  color: #587490;
}

.catalog-card-actions {
  margin-top: auto;
}

.catalog-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.catalog-page-btn {
  border: 1px solid #c2d8ec;
  background: #fff;
  color: #2d6ca9;
  border-radius: 12px;
  min-width: 34px;
  height: 38px;
  padding: 0 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
}

.catalog-page-btn.is-active {
  background: #2a8df0;
  border-color: #2a8df0;
  color: #fff;
}

.catalog-show-more {
  display: none;
  margin: 14px auto 0;
}

.catalog-empty {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #35536f;
  text-align: center;
  padding: 22px;
  font-weight: 600;
}

.catalog-filters-overlay {
  display: none;
}

.mobile-filter-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #b8d0e7;
  background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
  color: #225a8e;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(41, 89, 141, 0.12);
}

.mobile-filter-toggle::after {
  content: "▾";
  font-size: 15px;
  line-height: 1;
  color: #2b6aa6;
  transition: transform 0.2s ease;
}

.mobile-filter-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar.is-collapsed {
  display: none;
}

.filter-card {
  background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
  border: 1px solid #c2d8ec;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(41, 89, 141, 0.12);
}

.filter-title {
  font-size: 16px;
  color: #1f5f97;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.range-values {
  display: flex;
  justify-content: space-between;
  color: #3b5f7f;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid #d2e2f2;
  background: #fff;
}

.filter-label {
  display: block;
  margin: 0 0 6px;
  color: #2f4f6f;
  font-size: 12px;
  font-weight: 700;
}

.filter-select {
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  border: 1px solid #bdd3e8;
  border-radius: 10px;
  background: #fff;
  color: #2f4f6f;
  font-size: 13px;
  padding: 9px 11px;
  outline: none;
}

.filter-select:focus {
  border-color: #2a8df0;
  box-shadow: 0 0 0 2px rgba(42, 141, 240, 0.2);
}

input[type="range"] {
  width: 100%;
  accent-color: #1f78d1;
  margin-bottom: 8px;
}

.full {
  width: 100%;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.3vw, 16px);
}

#homeCatalogCards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-page .cards {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-grid.is-filter-collapsed {
  grid-template-columns: 1fr;
}

.catalog-page .catalog-grid.is-filter-collapsed {
  grid-template-columns: 1fr;
}

.catalog-page .catalog-grid.is-filter-collapsed .cards {
  grid-template-columns: repeat(4, 1fr);
}

.parcel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.12);
  overflow: hidden;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
}

.parcel-card h3 {
  margin: 2px 0 10px;
  color: #1e6eb9;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
  min-height: 2.4em;
}

.parcel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: nowrap;
  margin-bottom: 12px;
  color: #494149;
  font-size: clamp(10px, 0.85vw, 14px);
}

.parcel-meta span {
  white-space: nowrap;
  min-width: 0;
}

.parcel-meta span:first-child {
  flex: 1 1 auto;
}

.parcel-meta span:last-child {
  flex: 0 0 auto;
}

.parcel-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  height: 150px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #f8fbff;
  border: 1px solid #dce8f4;
}

.parcel-image .catalog-box {
  position: relative;
  z-index: 1;
  max-width: 82%;
  max-height: 118px;
  object-fit: contain;
  transform-origin: center;
}

.parcel-image .catalog-box--small {
  transform: scale(0.9);
}

.parcel-image .catalog-box--standard {
  transform: scale(1.22);
}

.parcel-image .catalog-box--medium {
  transform: scale(1.6);
}

.parcel-image .catalog-box--large {
  transform: scale(2.15);
}

.parcel-price {
  text-align: center;
  color: #fff;
  font-size: clamp(26px, 2.8vw, 38px);
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}

.parcel-card .btn {
  font-size: 16px;
  padding: 9px 12px;
  margin-top: auto;
}

.partners,
.reviews {
  padding-top: 34px;
}

.partners-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.partners-top h2 {
  margin: 0;
  text-align: center;
}

.partners-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.partners-carousel::-webkit-scrollbar {
  display: none;
}

.partners-track {
  display: flex;
  gap: clamp(10px, 1.6vw, 18px);
  transition: transform 0.25s ease;
  will-change: transform;
}

.partner-card {
  flex: 0 0 calc((100% - 54px) / 4);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.1);
  display: grid;
  place-items: center;
  padding: 12px;
}

.partner-card img {
  width: 100%;
  height: clamp(56px, 7vw, 82px);
  object-fit: contain;
  object-position: center;
  display: block;
  filter: saturate(0.95);
}

.partner-logo--kazpost {
  transform: scale(3);
  transform-origin: center;
}

.partner-logo--uzpost {
  transform: scale(2);
  transform-origin: center;
}

.partner-logo--dhl {
  transform: scale(3);
  transform-origin: center;
}

.partner-logo--kaspi {
  transform: scale(1.5);
  transform-origin: center;
}

.reviews-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.reviews-top h2 {
  margin: 0;
  text-align: center;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #c2d8ec;
  background: #fff;
  color: #2d6ca9;
  border-radius: 10px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
}

.reviews-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  margin-bottom: 34px;
}

.reviews-carousel::-webkit-scrollbar {
  display: none;
}

.reviews-track {
  display: flex;
  gap: 14px;
  transition: transform 0.25s ease;
  will-change: transform;
}

.video-card {
  flex: 0 0 calc((100% - 28px) / 3);
  min-width: 0;
}

.video-wrap {
  position: relative;
  width: min(280px, 100%);
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 9 / 16;
  cursor: pointer;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #111;
  object-fit: contain;
  pointer-events: none;
}

.play-btn {
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  background: rgba(33, 120, 209, 0.82);
  backdrop-filter: blur(1px);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 4;
}

.video-wrap.is-playing .play-btn {
  background: rgba(22, 92, 163, 0.72);
}

.video-wrap .play-btn:hover {
  filter: brightness(1.12);
}

.video-wrap .play-btn,
.video-wrap .play-btn:hover,
.video-wrap .play-btn:active {
  transform: translate(-50%, -50%);
}

.video-info {
  margin-top: 8px;
  border: 1px solid #d8ccd4;
  background: #fff;
  border-radius: 10px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.35;
  color: #4f3e49;
  padding: 10px 12px;
  min-height: 66px;
}

.how-page {
  padding-bottom: 34px;
}

.how-hero {
  margin-top: 2px;
  background: #ecf5ff;
  border-top: 1px solid #d9e6f3;
  border-bottom: 1px solid #d9e6f3;
}

.how-hero-inner {
  padding: clamp(28px, 4vw, 54px) 0;
}

.how-hero-copy {
  max-width: 860px;
}

.how-hero-copy h1 {
  margin: 0 0 14px;
  color: #155a9f;
  font-size: clamp(34px, 4.7vw, 62px);
  line-height: 1.05;
}

.how-hero-copy p {
  margin: 0 0 20px;
  color: #4a414a;
  font-size: clamp(16px, 1.9vw, 24px);
  line-height: 1.35;
}

.how-steps,
.faq {
  padding-top: 34px;
}

.help-sections,
.help-guide {
  padding-top: 34px;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.help-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.1);
  padding: clamp(16px, 1.6vw, 22px);
}

.help-card h3 {
  margin: 0 0 10px;
  color: #1e6eb9;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
}

.help-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4f3e49;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}

.help-card li + li {
  margin-top: 8px;
}

.help-guide-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
}

.help-guide-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.08);
  padding: 14px;
}

.help-guide-step span {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e3effb;
  color: #1f78d1;
  font-weight: 800;
}

.help-guide-step p {
  margin: 10px 0 0;
  color: #4f3e49;
  font-size: 14px;
  line-height: 1.4;
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.how-step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.1);
  padding: clamp(16px, 1.6vw, 22px);
}

.how-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  border-radius: 20px;
  padding: 0 12px;
  background: #e3effb;
  color: #1f78d1;
  font-weight: 800;
  font-size: 14px;
}

.how-step-card h3 {
  margin: 12px 0 10px;
  color: #1e6eb9;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
}

.how-step-card p {
  margin: 0;
  color: #4f3e49;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(72, 45, 57, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: none;
  background: #fff;
  color: #2f4f6f;
  font-size: clamp(15px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 1.7vw, 18px);
  cursor: pointer;
}

.faq-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e3effb;
  color: #1f78d1;
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.34s ease, opacity 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 clamp(14px, 1.7vw, 18px) clamp(14px, 1.7vw, 18px);
  color: #5a4b55;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.45;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
}

.site-footer {
  margin-top: 28px;
  border-top: 1px solid #d9e6f3;
  background: #ecf5ff;
}

.site-footer-inner {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 10px;
}

.site-footer-brand {
  color: #35536f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  width: 100%;
  padding-top: 6px;
  border-top: 1px solid #d9e6f3;
}

.site-footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.site-footer-nav a {
  text-decoration: none;
  color: #2f5a7f;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}

.site-footer-nav a:hover {
  color: #1d6fbf;
}

.site-footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.site-footer-contacts a {
  text-decoration: none;
  color: #2f5a7f;
  font-size: 13px;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid #c2d8ec;
  background: #fff;
  box-shadow: 0 4px 10px rgba(41, 89, 141, 0.1);
}

.site-footer-contacts a img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.site-footer-contacts a:hover {
  color: #1d6fbf;
  background: #eef6ff;
}

@media (max-width: 1200px) {
  :root {
    --header-h: 78px;
    --benefits-h: 84px;
    --benefits-overlap: 18px;
  }

  .header-actions {
    gap: 8px;
  }

  .catalog-grid {
    grid-template-columns: 220px 1fr;
  }

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

  .catalog-page .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-page .catalog-grid.is-filter-collapsed .cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .video-card {
    flex: 0 0 calc((100% - 14px) / 2);
  }

  .how-steps-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    flex: 0 0 calc((100% - 36px) / 3);
  }

  .catalog-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .help-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-inner {
    align-items: center;
    gap: 8px;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .header.container,
  .hero .container,
  .benefits.container,
  .container {
    width: min(1080px, calc(100% - 32px));
  }

  .hero-inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 4.2vw, 50px);
  }

  .hero-copy p {
    font-size: clamp(16px, 2vw, 22px);
  }

  .courier-image {
    width: min(200%, 600px);
    bottom: calc(-5 * var(--benefits-overlap))
  }

  .catalog-grid {
    grid-template-columns: 220px 1fr;
  }

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

  .video-card {
    flex: 0 0 calc((100% - 14px) / 2);
  }

  .partners-track {
    gap: 22px;
  }
}

@media (min-width: 641px) and (max-width: 1366px) {
  .home-body .hero {
    position: relative;
    overflow: hidden;
  }

  .home-body .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("bgcourier.png") center center / cover no-repeat;
    opacity: 0.24;
    pointer-events: none;
    z-index: 0;
  }

  .home-body .hero-inner {
    position: relative;
    z-index: 1;
  }

  .home-body .hero-visual::before {
    display: none;
  }

  .home-body .benefits {
    margin-top: 0;
    border-top: 1px solid #d9e6f3;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 70px;
    --benefits-h: auto;
    --benefits-overlap: 14px;
  }

  .header {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: auto;
    padding: 10px 0;
  }

  .logo-text {
    font-size: 14px;
  }

  .nav {
    gap: 6px;
  }

  .nav a {
    padding: 8px 10px;
    font-size: 12px;
  }

  .catalog-btn {
    font-size: 12px;
    padding: 8px 11px;
  }

  .catalog-btn-link {
    font-size: 12px;
    padding: 8px 11px;
  }

  .account-layout {
    grid-template-columns: 240px 1fr;
  }

  .header-auth-link {
    min-height: 36px;
    font-size: 12px;
    padding: 7px 10px;
  }

  h2 {
    font-size: clamp(22px, 4vw, 32px);
    margin-bottom: 16px;
  }

  .catalog-grid,
  .benefits {
    grid-template-columns: 1fr;
  }

  .cards {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #homeCatalogCards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-content: center;
    overflow-x: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  #homeCatalogCards .parcel-card {
    flex: initial;
    min-width: 0;
  }

  #homeCatalogCards .parcel-meta {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  #homeCatalogCards .parcel-meta span {
    white-space: normal;
  }

  .cards::-webkit-scrollbar {
    display: none;
  }

  .parcel-card {
    flex: 0 0 calc((100% - 10px) / 2);
    scroll-snap-align: start;
  }

  .parcel-card h3 {
    font-size: 22px;
  }

  .parcel-meta {
    font-size: 14px;
  }

  .parcel-price {
    font-size: 30px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 10px;
  }

  .hero-copy {
    text-align: left;
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .hero-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(15px, 2.8vw, 20px);
    line-height: 1.08;
  }

  .hero-copy p {
    font-size: clamp(13px, 2.6vw, 16px);
    line-height: 1.32;
  }

  .hero-copy p br {
    display: none;
  }

  .hero-buttons {
    justify-content: flex-start;
    flex-direction: column;
    margin-top: 8px;
    gap: 5px;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 190px;
    font-size: 11px;
    padding: 7px 9px;
  }

  .benefits {
    margin-top: calc(-1 * var(--benefits-overlap));
    min-height: auto;
    border-top: none;
    position: relative;
    z-index: 4;
  }

  .benefits article {
    border-right: none;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .benefits article:last-child {
    border-bottom: none;
  }

  .reviews-top {
    align-items: center;
  }

  .video-card {
    flex: 0 0 calc((100% - 14px) / 2);
  }

  .video-wrap {
    width: min(250px, 100%);
  }

  .video-info {
    min-height: auto;
  }

  .hero-visual {
    display: block;
    min-height: clamp(220px, 36vw, 300px);
    overflow: hidden;
  }

  .hero-visual::before {
    bottom: var(--benefits-overlap);
    opacity: 0.2;
  }

  .courier-image {
    position: absolute;
    left: auto;
    right: 0;
    bottom: calc(-2 * var(--benefits-overlap));
    transform: none;
    width: min(300px, 92%);
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
  }

  .sidebar {
    display: none;
    margin-bottom: 8px;
  }

  .sidebar.is-open {
    display: flex;
  }

  .home-body .mobile-filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #225a8e;
    border: 1px solid #b8d0e7;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
    box-shadow: 0 6px 14px rgba(41, 89, 141, 0.12);
  }

  .home-body .sidebar {
    margin-bottom: 12px;
  }

  .home-body .sidebar.is-open {
    display: block;
  }

  .home-body .filter-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #c2d8ec;
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    box-shadow: 0 8px 18px rgba(41, 89, 141, 0.12);
  }

  .home-body .filter-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1f5f97;
    letter-spacing: 0.01em;
  }

  .home-body .range-values {
    margin-bottom: 6px;
    padding: 7px 9px;
    border-radius: 10px;
    border: 1px solid #d2e2f2;
    background: #fff;
    color: #3b5f7f;
    font-size: 12px;
    font-weight: 600;
    align-items: center;
  }

  .home-body .filter-label {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #2f4f6f;
  }

  .home-body input[type="range"] {
    margin-bottom: 8px;
    accent-color: #1f78d1;
  }

  .home-body .filter-select {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 13px;
    padding: 9px 11px;
    border: 1px solid #bdd3e8;
    border-radius: 10px;
    background: #fff;
  }

  .home-body .filter-card .btn.full {
    min-height: 44px;
    margin-top: 2px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 10px;
  }

  .partners-track {
    gap: 16px;
  }

  .partner-card {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .partner-card img {
    height: 64px;
    object-fit: contain;
  }

  .partner-logo--kazpost {
    transform: scale(3);
  }
  
  .partner-logo--uzpost {
    transform: scale(2);
  }

  .how-hero-copy h1 {
    font-size: clamp(26px, 6.3vw, 42px);
  }

  .how-hero-copy p {
    font-size: clamp(14px, 2.6vw, 18px);
  }

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

  .catalog-filter-open,
  .catalog-search,
  .catalog-sort {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .catalog-search {
    grid-column: 1 / -1;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .catalog-card {
    padding: 9px;
    gap: 7px;
    border-radius: 10px;
  }

  .catalog-card-image {
    min-height: 96px;
  }

  .catalog-card-image .catalog-box {
    max-height: 72px;
  }

  .catalog-card h3 {
    font-size: 13px;
  }

  .catalog-card-badges {
    font-size: 10px;
    padding: 2px 6px;
  }

  .catalog-card-meta {
    font-size: 11px;
  }

  .catalog-card-price {
    font-size: 17px;
  }

  .catalog-card .btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  .catalog-card-note {
    font-size: 10px;
    line-height: 1.3;
  }

  .help-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-body,
  .home-body main {
    overflow-x: hidden;
  }

  .benefits {
    margin-top: calc(-1 * var(--benefits-overlap));
  }

  .topbar {
    padding-inline: 10px;
    line-height: 1.3;
    font-size: 10px;
  }

  .header {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
  }

  .nav {
    display: none;
  }

  .logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-box {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  .logo-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
    font-size: 24px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-text span {
    display: inline;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-actions {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .mobile-menu .logo-wrap {
    display: flex;
  }

  .mobile-menu .logo-text {
    font-size: 13px;
  }

  .catalog-btn {
    width: 100%;
    max-width: none;
    font-size: 14px;
    padding: 8px 11px;
  }

  .catalog-btn-link {
    display: none;
  }

  .account-shell {
    padding: 16px 0 24px;
  }

  .account-head {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .account-head-main {
    width: auto;
    justify-content: flex-start;
    flex: 1 1 auto;
  }

  #accountLogoutBtn {
    margin-left: auto;
    white-space: nowrap;
  }

  .account-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    order: 2;
  }

  .account-head h1 {
    order: 1;
  }

  #accountLogoutBtn {
    display: none;
  }

  .account-sidebar-logout {
    display: inline-flex;
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 86vw);
    height: 100vh;
    z-index: 49;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    border-radius: 0;
    border-right: 1px solid #cfe0f1;
    box-shadow: 12px 0 26px rgba(35, 76, 117, 0.24);
    max-height: none;
    overflow-y: auto;
  }

  .account-sidebar.is-open {
    transform: translateX(0);
  }

  .account-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 0 8px;
    margin-bottom: 4px;
    border-bottom: 1px solid #cfdeee;
    color: #2f4f6f;
    font-weight: 700;
  }

  .account-mobile-tabs {
    display: none;
  }

  .account-content {
    padding: 10px;
    overflow: hidden;
  }

  .tracking-form,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .orders-table-wrap {
    display: none;
  }

  .orders-mobile-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
  }

  .orders-mobile-card .btn {
    width: 100%;
    justify-content: center;
  }

  .order-details {
    padding: 10px;
    gap: 7px;
  }

  .order-details h4 {
    font-size: 17px;
  }

  .order-items {
    gap: 6px;
  }

  .tracking-form .auth-input,
  .chat-form .auth-input {
    width: 100%;
    min-width: 0;
  }

  .tracking-form .btn,
  .chat-form .btn {
    width: 100%;
  }

  .profile-grid .auth-input,
  .auth-form .auth-input {
    min-width: 0;
  }

  .account-toast {
    right: 10px;
    left: 10px;
    bottom: 10px;
    text-align: center;
  }

  body.account-sidebar-open {
    overflow: hidden;
  }

  .header-auth-link {
    display: none;
  }

  .auth-shell {
    padding: 16px 0 24px;
  }

  .auth-card {
    border-radius: 14px;
    padding: 14px;
  }

  .auth-card h1 {
    font-size: 27px;
    margin-bottom: 12px;
  }

  .auth-input,
  .auth-select {
    min-height: 42px;
    padding: 9px 11px;
  }

  .auth-link-row {
    font-size: 13px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 8px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(14px, 4vw, 18px);
    margin-bottom: 5px;
  }

  .hero-copy p {
    font-size: clamp(13px, 3.6vw, 16px);
  }

  .hero-buttons {
    margin-top: 110px;
    gap: 5px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: none;
    font-size: 13px;
    padding: 8px 11px;
  }

  .catalog-grid {
    gap: 12px;
  }

  .filter-card {
    padding: 10px;
  }

  .filter-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .filter-label {
    font-size: 12px;
    margin: 1px 0 5px;
  }

  .range-values {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .filter-select {
    font-size: 12px;
    padding: 7px 8px;
    margin-bottom: 8px;
  }

  .filter-card .btn.full {
    font-size: 13px;
    padding: 7px 9px;
  }

  .parcel-card {
    padding: 12px;
    flex-basis: calc((100% - 10px) / 2);
  }

  .parcel-image {
    height: 120px;
  }

  .carousel-controls {
    align-self: center;
  }

  .reviews-track {
    gap: 10px;
  }

  .partners-track {
    gap: 10px;
  }

  .video-card {
    flex: 0 0 100%;
  }

  .hero-visual {
    min-height: clamp(190px, 50vw, 250px);
  }

  .courier-image {
    left: auto;
    right: 0;
    transform: none;
    width: min(250px, 94%);
    height: 100%;
    bottom: calc(-1 * var(--benefits-overlap));
    object-position: right bottom;
  }

  .partner-card {
    flex: 0 0 100%;
  }

  .partner-card img {
    height: 64px;
    object-fit: contain;
  }

  .how-hero-inner {
    padding: 24px 0;
  }

  .how-steps,
  .faq,
  .help-sections,
  .help-guide {
    padding-top: 24px;
  }

  .catalog-shop-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

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

  .catalog-filter-open {
    display: inline-flex;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .catalog-sort,
  .catalog-search,
  .catalog-filter-open {
    width: 100%;
  }

  .catalog-search,
  .catalog-sort {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .catalog-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-card {
    padding: 8px;
    gap: 6px;
    border-radius: 10px;
  }

  .catalog-card-image {
    min-height: 92px;
    border-radius: 8px;
  }

  .catalog-card-image .catalog-box {
    max-height: 68px;
  }

  .catalog-card h3 {
    font-size: 11px;
    line-height: 1.2;
  }

  .catalog-card-badges {
    font-size: 9px;
    padding: 2px 6px;
  }

  .catalog-card-meta {
    font-size: 9px;
  }

  .catalog-card-price {
    font-size: 14px;
  }

  .catalog-card .btn {
    font-size: 11px;
    padding: 6px 8px;
  }

  .catalog-pagination {
    display: none;
  }

  .catalog-show-more {
    display: inline-flex;
  }

  .catalog-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 55, 95, 0.42);
    z-index: 48;
  }

  .catalog-filters {
    position: fixed;
    top: 0;
    left: 0;
    width: min(340px, 86vw);
    height: 100vh;
    z-index: 49;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    border-radius: 0;
    border-right: 1px solid #cfe0f1;
    overflow-y: auto;
  }

  .catalog-layout.is-filters-collapsed .catalog-filters {
    display: flex;
  }

  .catalog-filters.is-open {
    transform: translateX(0);
  }

  .catalog-filters .mobile-menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex: 0 0 32px;
    margin-left: auto;
  }

  .help-guide-grid {
    grid-template-columns: 1fr;
  }

  .home-body .header {
    padding: 6px 0;
  }

  .home-body .header-actions {
    gap: 8px;
  }

  .home-body .catalog-btn-link {
    font-size: 13px;
    padding: 8px 10px;
  }

  .home-body .hero {
    margin-top: 0;
    position: relative;
    background: #ecf5ff;
  }

  .home-body .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("bgcourier.png") center 72% / cover no-repeat;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
  }

  .home-body .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(236, 245, 255, 0) 62%, rgba(236, 245, 255, 0.88) 88%, #ecf5ff 100%);
    pointer-events: none;
    z-index: 0;
  }

  .home-body .hero-inner {
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: stretch;
     min-height: 50vh;
     padding: 10px 0 6px;
     position: relative;
     z-index: 1;
  }

  .home-body .hero-copy {
     text-align: center;
  }

  .home-body .hero-copy h1 {
    font-size: clamp(20px, 6.4vw, 27px);
    line-height: 1.12;
    margin-bottom: 7px;
    text-align: center;
  }

  .home-body .hero-copy p {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.38;
    text-align: center;
  }

  .home-body .hero-buttons {
     gap: 8px;
     padding-top: 10px;
     align-self: flex-end;
  }

  .home-body .hero-buttons .btn {
    max-width: 100%;
    font-size: 12px;
    padding: 8px 9px;
  }

  .home-body .hero-visual {
    display: none;
  }

  .home-body .courier-image {
    display: none;
  }

  .home-body .benefits {
    margin-top: 0;
    border-top: 1px solid #d9e6f3;
    border-radius: 12px;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-content: stretch;
    width: 100%;
    gap: 0;
    padding: 0;
  }

  .home-body .benefits::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .home-body .benefits article {
    flex: none;
    width: auto;
    min-width: 0;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 0;
    border-right: 1px solid #d9e6f3;
    padding: 8px 4px 6px;
    gap: 5px;
    font-size: 9px;
    line-height: 1.2;
    text-align: center;
    cursor: default;
    opacity: 1;
    overflow: visible;
    transition: none;
    user-select: none;
  }

  .home-body .benefits article:last-child {
    border-right: none;
  }

  .home-body .benefits article span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #d9e6f3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: 0 0 28px;
    background: #fff;
    transition: none;
  }

  .home-body h2 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .home-body .catalog {
    padding-top: 20px;
  }

  .home-body .mobile-filter-toggle {
    margin-bottom: 10px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 12px;
  }

  .home-body .filter-card {
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
  }

  .home-body .filter-title {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .home-body .range-values {
    font-size: 12px;
    margin-bottom: 5px;
    padding: 6px 8px;
  }

  .home-body .filter-label {
    margin: 0 0 5px;
  }

  .home-body .filter-select {
    min-height: 40px;
    margin-bottom: 6px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .home-body .filter-card .btn.full {
    min-height: 42px;
    font-size: 13px;
    padding: 8px 10px;
  }

  .home-body .cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    overflow: visible;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  #homeCatalogCards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  .home-body .parcel-card {
    flex: initial;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border-radius: 12px;
  }

  .home-body .parcel-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .home-body .parcel-meta {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.25;
    flex-wrap: wrap;
    align-content: flex-start;
    min-height: 2.6em;
  }

  .home-body .parcel-meta span {
    white-space: normal;
  }

  .home-body .parcel-image {
    height: 102px;
    margin-bottom: 8px;
  }

  .home-body .parcel-image .catalog-box--large {
    transform: scale(2.15);
  }

  .home-body .parcel-price {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .home-body .catalog-card-note {
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.18;
  }

  .home-body .parcel-card .btn {
    font-size: 12px;
    padding: 7px 8px;
  }

  .home-body .partners,
  .home-body .reviews {
    padding-top: 24px;
  }

  .home-body .partners-top,
  .home-body .reviews-top {
    margin-bottom: 10px;
    gap: 8px;
  }

  .home-body .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .home-body .partners-track,
  .home-body .reviews-track {
    gap: 8px;
  }

  .home-body .partner-card {
    flex: 0 0 calc((100% - 8px) / 2);
    padding: 10px;
  }

  .home-body .partner-card img {
    height: 56px;
  }

  .home-body .video-card {
    flex: 0 0 calc((100% - 8px) / 2);
  }

  .home-body .video-wrap {
    width: 100%;
  }

  .home-body .video-info {
    font-size: 12px;
    min-height: 54px;
    padding: 8px 9px;
  }
}

  @media (max-width: 380px) {
    .account-shell {
      padding: 12px 0 20px;
    }

    .account-head h1 {
      font-size: 24px;
      line-height: 1.15;
    }

    .account-head .btn {
      width: auto;
    }

    .account-head-main {
      gap: 6px;
    }

    .account-menu-toggle {
      font-size: 13px;
      padding: 8px 9px;
    }

    .account-mobile-tabs,
    .account-content {
      border-radius: 12px;
    }

    .account-content {
      padding: 8px;
    }

    .tab-head h3 {
      font-size: 18px;
      line-height: 1.2;
    }

    .order-items,
    .tracking-timeline li,
    .chat-note,
    .chat-message,
    .orders-table th,
    .orders-table td {
      font-size: 12px;
    }

    .orders-table th,
    .orders-table td {
      padding: 8px 6px;
    }

    .orders-mobile-row {
      font-size: 12px;
    }

    .orders-mobile-row span:first-child {
      font-size: 11px;
    }

    .tracking-form .btn,
    .chat-form .btn,
    .profile-grid .btn,
    .auth-form .btn {
      width: 100%;
    }

    .chat-list {
      min-height: 190px;
      max-height: 280px;
      padding: 8px;
    }

    .chat-message {
      max-width: 94%;
      padding: 7px 8px;
    }

    .profile-grid {
      gap: 5px;
    }

    .profile-grid .auth-label,
    .auth-form .auth-label {
      font-size: 12px;
    }

    .profile-grid .auth-input,
    .auth-form .auth-input {
      min-height: 40px;
      padding: 8px 9px;
      font-size: 13px;
    }

    .order-status-badge {
      font-size: 11px;
      padding: 3px 7px;
    }
  }