:root {
  --navy: #2b2f33;
  --navy-2: #181b1e;
  --blue: #f97316;
  --blue-dark: #c2410c;
  --yellow: #fb923c;
  --ink: #25282c;
  --muted: #666d75;
  --line: #d9dde1;
  --soft: #f5f5f4;
  --white: #ffffff;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(31, 35, 40, 0.13);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

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

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(31, 35, 40, 0.09);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: block;
  flex: 0 0 300px;
}

.brand-logo {
  display: block;
  width: 300px;
  height: 64px;
  background-image: url("assets/logo-graphite-orange.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  border-radius: 9px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  font-size: 0.94rem;
  font-weight: 700;
  color: #4d5359;
}

.desktop-nav a:hover {
  color: var(--blue);
}

.cart-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.cart-button:hover {
  background: var(--blue);
}

.cart-count {
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 0.78rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 78px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 20%, rgba(249, 115, 22, 0.58), transparent 30%),
    linear-gradient(130deg, var(--navy-2), var(--navy) 58%, #454a4f);
}

.hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -260px;
  bottom: -310px;
  border: 80px solid rgba(249, 115, 22, 0.2);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 68px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-card .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 30px;
  color: #e7e9eb;
  font-size: 1.15rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.button--primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.25);
}

.button--primary:hover {
  background: #ff9f43;
}

.button--secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button--service {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.24);
}

.button--service:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.hero .button--secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .button--service {
  border-color: #fb923c;
}

.button--wide {
  width: 100%;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 30px 0 0;
  color: #e7e9eb;
  font-size: 0.9rem;
  list-style: none;
}

.trust-list span {
  color: var(--yellow);
  font-weight: 900;
}

.hero-card {
  position: relative;
  padding: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.hero-card__bolt {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 17px;
  font-size: 1.7rem;
}

.hero-card__label {
  margin-bottom: 19px;
  font-size: 1.15rem;
  font-weight: 900;
}

.steps-list {
  padding: 0;
  margin: 0;
  counter-reset: steps;
  list-style: none;
}

.steps-list li {
  position: relative;
  min-height: 56px;
  padding: 0 0 18px 50px;
  counter-increment: steps;
}

.steps-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 33px;
  bottom: 1px;
  left: 16px;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  top: 0;
  left: 0;
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border-radius: 50%;
  font-weight: 900;
}

.steps-list strong,
.steps-list span {
  display: block;
}

.steps-list span {
  color: #e7e9eb;
  font-size: 0.88rem;
}

.notice-strip {
  color: var(--navy);
  background: var(--yellow);
}

.notice-strip__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  font-size: 0.92rem;
}

.catalog-section,
.info-section,
.contact-section {
  padding: 84px 0;
}

.catalog-section {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading__note {
  max-width: 460px;
  margin-bottom: 4px;
  color: var(--muted);
  text-align: right;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 230px 230px;
  gap: 12px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(31, 35, 40, 0.06);
}

.search-field,
.select-field {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid transparent;
  border-radius: 11px;
}

.search-field:focus-within,
.select-field:focus-within {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.14);
}

.search-field > span:not(.sr-only) {
  color: var(--blue);
  font-size: 1.6rem;
  transform: rotate(-18deg);
}

.search-field input,
.select-field select {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.select-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

.select-field > span {
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.category-filters {
  display: flex;
  gap: 9px;
  padding: 20px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  color: #4d5359;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.category-chip span {
  margin-left: 5px;
  color: var(--muted);
}

.category-chip:hover,
.category-chip.is-active {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}

.category-chip.is-active span {
  color: #e7e9eb;
}

.catalog-result-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-result-row p {
  margin: 0;
}

.text-button {
  padding: 4px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.text-button:hover {
  text-decoration: underline;
}

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

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 35, 40, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #f6b98d;
  box-shadow: 0 16px 38px rgba(31, 35, 40, 0.11);
}

.product-card__visual {
  position: relative;
  height: 178px;
  margin: -2px -2px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, #ffffff 0 44%, #faf9f7 74%, #f1f0ee 100%);
  border: 1px solid #e4e2df;
  border-radius: 15px;
}

.product-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 12px;
  filter: drop-shadow(0 9px 13px rgba(31, 35, 40, 0.11));
  transition: transform 0.22s ease;
}

.product-card:hover .product-card__visual img {
  transform: scale(1.035);
}

.product-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.product-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fff1e7;
  border-radius: 13px;
  font-size: 1.35rem;
}

.product-brand {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: 150px;
  padding: 5px 8px;
  overflow: hidden;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e4e2df;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(31, 35, 40, 0.09);
  font-size: 0.69rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card__category {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.product-card h3 {
  min-height: 3.9em;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.product-note {
  min-height: 2.5em;
  margin: 0 0 14px;
  color: #9a3412;
  font-size: 0.74rem;
  line-height: 1.25;
}

.product-card__footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eceae7;
}

.product-price strong,
.product-price small {
  display: block;
}

.product-price strong {
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.15;
}

.product-price small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.69rem;
}

.add-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border: 0;
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 900;
}

.add-button:hover,
.add-button.is-added {
  color: var(--white);
  background: var(--blue);
}

.empty-state {
  padding: 65px 20px;
  text-align: center;
}

.empty-state > div {
  margin-bottom: 8px;
  font-size: 2.5rem;
}

.empty-state p {
  color: var(--muted);
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.info-section {
  background: var(--white);
}

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

.info-card {
  padding: 38px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.info-card--accent {
  background: #fff1e7;
  border-color: #fed7aa;
}

.info-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: var(--white);
  background: var(--navy);
  border-radius: 17px;
  font-size: 1.55rem;
}

.info-card p:not(.eyebrow),
.info-card li {
  color: #5f666d;
}

.info-card ul {
  padding-left: 20px;
  margin: 22px 0 0;
}

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

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.service-tags span {
  padding: 7px 10px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid #ddd9d5;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.service-request-button {
  width: 100%;
  margin-top: 24px;
}

.contact-section {
  padding-top: 10px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 50px;
  padding: 48px;
  color: var(--white);
  background: var(--navy);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  color: var(--white);
}

.contact-panel p:not(.eyebrow) {
  margin-bottom: 0;
  color: #e7e9eb;
}

.contact-actions {
  justify-content: flex-end;
}

.contact-actions small {
  width: 100%;
  color: #c7cbd0;
  text-align: right;
}

.site-footer {
  padding: 36px 0 96px;
  color: #b9bec3;
  background: var(--navy-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(300px, 1.5fr) minmax(220px, 1fr);
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-inner p {
  margin: 5px 0 0;
  font-size: 0.85rem;
}

.footer-inner a,
.footer-links a {
  color: #e7e9eb;
  text-decoration-color: rgba(231, 233, 235, 0.45);
  text-underline-offset: 3px;
}

.footer-inner a:hover,
.footer-links a:hover {
  color: var(--yellow);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
}

.mobile-cart-bar {
  position: fixed;
  z-index: 45;
  right: 14px;
  bottom: 14px;
  left: 14px;
  min-height: 55px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  color: var(--navy);
  background: var(--yellow);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 14px 40px rgba(31, 35, 40, 0.32);
  font-weight: 900;
}

.cart-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: min(880px, calc(100vh - 24px));
  padding: 0;
  overflow: hidden;
  background: var(--white);
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
}

.cart-dialog::backdrop {
  background: rgba(24, 27, 30, 0.76);
  backdrop-filter: blur(4px);
}

.cart-shell {
  max-height: min(880px, calc(100vh - 24px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.cart-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 28px 18px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
}

.cart-items {
  padding: 10px 28px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.cart-item__right > strong {
  color: var(--navy);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 34px minmax(40px, auto) 34px;
  align-items: center;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.quantity-control button {
  width: 34px;
  height: 34px;
  color: var(--navy);
  background: transparent;
  border: 0;
  font-weight: 900;
}

.quantity-control span {
  min-width: 40px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 850;
}

.cart-empty {
  padding: 55px 28px;
  text-align: center;
}

.cart-empty > div {
  margin-bottom: 12px;
  font-size: 2.8rem;
}

.cart-empty p {
  color: var(--muted);
}

.cart-summary {
  padding: 20px 28px;
  background: #fff7ed;
  border-block: 1px solid #fed7aa;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cart-summary > div + div {
  margin-top: 6px;
}

.cart-summary p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.order-form {
  padding: 24px 28px 28px;
}

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

.order-form label {
  display: block;
  margin-bottom: 13px;
}

.order-form label > span {
  display: block;
  margin-bottom: 6px;
  color: #555c63;
  font-size: 0.76rem;
  font-weight: 850;
}

.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.order-form input[type="file"] {
  padding: 9px;
  background: var(--soft);
}

.file-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.order-form .consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 11px 12px;
  background: #faf9f7;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.order-form .consent-field input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.order-form .consent-field > span {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.consent-field a,
.chat-consent a {
  color: var(--blue);
}

.order-form textarea {
  resize: vertical;
}

.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.service-intro {
  padding: 20px 28px;
  color: var(--navy);
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}

.service-intro strong {
  display: block;
  margin-bottom: 4px;
}

.service-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.order-form__hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  text-align: center;
}

.chat-consent {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.69rem;
}

.chat-consent input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100% - 40px));
  padding: 13px 16px;
  color: var(--white);
  background: var(--navy-2);
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.chat-launcher {
  position: fixed;
  z-index: 44;
  right: 22px;
  bottom: 22px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 45px rgba(31, 35, 40, 0.3);
}

.chat-launcher:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.chat-launcher > span {
  font-size: 1.25rem;
}

.chat-unread {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border: 2px solid var(--white);
  border-radius: 50%;
}

.site-chat {
  position: fixed;
  z-index: 70;
  right: 22px;
  bottom: 88px;
  width: min(370px, calc(100% - 28px));
  height: min(570px, calc(100vh - 125px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid #d9dde1;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(24, 27, 30, 0.3);
}

.site-chat:not([hidden]) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.site-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px;
  color: var(--white);
  background: var(--navy);
}

.site-chat__header strong,
.site-chat__header span {
  display: block;
}

.site-chat__header strong {
  font-size: 1rem;
}

.site-chat__header span {
  margin-top: 3px;
  color: #e7e9eb;
  font-size: 0.75rem;
}

.site-chat__header span i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  background: #49d17d;
  border-radius: 50%;
}

.chat-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  font-size: 1.4rem;
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow-y: auto;
  background: #f5f4f2;
}

.chat-message {
  max-width: 86%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message--operator {
  align-self: flex-start;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.chat-message--customer {
  align-self: flex-end;
  color: var(--white);
  background: var(--blue);
  border-bottom-right-radius: 4px;
}

.chat-form {
  padding: 12px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.chat-form > input,
.chat-form textarea {
  width: 100%;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid transparent;
  outline: 0;
}

.chat-form > input {
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.8rem;
}

.chat-form__message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: end;
  gap: 7px;
}

.chat-form textarea {
  min-height: 44px;
  max-height: 105px;
  padding: 9px 10px;
  resize: vertical;
  border-radius: 11px;
  font-size: 0.85rem;
}

.chat-form > input:focus,
.chat-form textarea:focus {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.chat-form__message button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  border: 0;
  border-radius: 11px;
  font-size: 1.05rem;
}

.chat-form__message button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.chat-status {
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: 0.66rem;
}

.chat-status.is-error {
  color: var(--danger);
}

:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.48);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

  .cart-button {
    margin-left: auto;
  }

  .hero-grid {
    gap: 36px;
  }

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

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

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

@media (max-width: 780px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand,
  .brand-logo {
    width: 230px;
  }

  .brand {
    flex-basis: 230px;
  }

  .brand-logo {
    height: 58px;
  }

  .cart-button {
    display: none;
  }

  .hero {
    padding: 62px 0;
  }

  .hero-grid,
  .info-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-actions .button {
    flex: 1 1 220px;
  }

  .section-heading {
    display: block;
  }

  .section-heading__note {
    margin-top: 12px;
    text-align: left;
  }

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

  .contact-panel {
    gap: 28px;
    padding: 34px 26px;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .contact-actions small {
    text-align: left;
  }

  .mobile-cart-bar {
    display: flex;
  }

  .chat-launcher {
    right: 14px;
    bottom: 82px;
  }

  .site-chat {
    right: 14px;
    bottom: 146px;
    height: min(540px, calc(100vh - 175px));
  }
}

@media (max-width: 560px) {
  html {
    scroll-padding-top: 74px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-card,
  .info-card {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .notice-strip__inner {
    display: block;
    padding: 11px 0;
  }

  .notice-strip__inner strong,
  .notice-strip__inner span {
    display: block;
  }

  .catalog-section,
  .info-section,
  .contact-section {
    padding: 64px 0;
  }

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

  .search-field {
    grid-column: auto;
  }

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

  .product-card h3,
  .product-note {
    min-height: 0;
  }

  .catalog-result-row {
    align-items: start;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner > div + div {
    margin-top: 22px;
  }

  .cart-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 8px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .cart-shell {
    max-height: calc(100vh - 8px);
  }

  .cart-header,
  .cart-items,
  .cart-summary,
  .service-intro,
  .order-form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item__right {
    flex-direction: row-reverse;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .chat-launcher {
    min-height: 48px;
    padding: 9px 14px;
  }

  .site-chat {
    right: 7px;
    bottom: 138px;
    width: calc(100% - 14px);
    height: min(560px, calc(100vh - 150px));
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
