:root {
  --red: #b22222;
  --red-dark: #951b1b;
  --graphite: #2b2b2a;
  --text: #3e3e3c;
  --muted: #666661;
  --line: #e6e6e6;
  --surface: #f4f1f1;
  --surface-soft: #faf9f8;
  --white: #ffffff;
  --page-pad: clamp(20px, 4vw, 70px);
  --page-max: 1780px;
  --font: "Inter", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  line-height: 1.42;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
}

body.is-menu-open {
  overflow: hidden;
}

body.is-login-modal-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

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

.page-shell {
  width: min(var(--page-max), calc(100% - (var(--page-pad) * 2)));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-width: 0;
  flex: 0 1 auto;
}

.brand picture,
.brand img {
  display: block;
}

.brand img {
  width: auto;
  height: 50px;
}

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

.social-button {
  display: inline-flex;
  min-width: 146px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 41px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.social-button--telegram {
  min-width: 178px;
}

.social-button__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.social-button__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.header-actions__divider {
  width: 1px;
  height: 32px;
  flex: 0 0 auto;
  background: #d8d8d8;
  margin: 0 8px;
}

.mobile-label {
  display: none;
}

.account-button,
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.account-button {
  width: 254px;
  min-width: 254px;
  min-height: 56px;
  border-color: rgba(143, 26, 26, 0.25);
  border-radius: 41px;
  padding: 0 24px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.account-button::before {
  content: none;
}

.primary-button {
  padding: 0 30px;
}

.secondary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded8d3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--graphite);
  padding: 0 30px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.social-button:hover,
.social-button:focus-visible {
  border-color: #d8d8d8;
  background: #f7f7f5;
  color: var(--graphite);
}

.account-button:hover,
.account-button:focus-visible,
.primary-button:hover,
.primary-button:focus-visible {
  background: var(--red-dark);
}

.secondary-button:hover,
.secondary-button:focus-visible {
  border-color: rgba(178, 34, 34, 0.48);
  background: #fff8f8;
  color: var(--red);
}

.social-button:focus,
.account-button:focus,
.primary-button:focus,
.secondary-button:focus {
  outline: none;
}

.social-button:focus-visible,
.account-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.28);
  outline-offset: 3px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-toggle-line,
.menu-toggle-line::before,
.menu-toggle-line::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--graphite);
  content: "";
}

.menu-toggle-line {
  position: relative;
}

.menu-toggle-line::before,
.menu-toggle-line::after {
  position: absolute;
  left: 0;
}

.menu-toggle-line::before {
  top: -6px;
}

.menu-toggle-line::after {
  top: 6px;
}

.is-menu-open .menu-toggle-line {
  background: transparent;
}

.is-menu-open .menu-toggle-line::before {
  top: 0;
  transform: rotate(45deg);
}

.is-menu-open .menu-toggle-line::after {
  top: 0;
  transform: rotate(-45deg);
}

.login-modal {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  visibility: hidden;
  align-items: center;
  justify-items: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
}

body.is-login-modal-open .login-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.login-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 42, 0.52);
}

.login-modal__dialog {
  position: relative;
  width: min(500px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid #e1dddd;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 22px 56px rgba(27, 25, 23, 0.16);
  padding: 34px;
}

.login-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: #6c6762;
}

.login-modal__close svg,
.login-password__toggle svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-modal__close svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.login-modal__close:hover,
.login-modal__close:focus-visible,
.login-password__toggle:hover,
.login-password__toggle:focus-visible {
  background: #faf7f5;
  color: var(--graphite);
}

.login-modal__panel {
  display: grid;
}

.login-modal__panel[hidden] {
  display: none;
}

.login-modal__header {
  max-width: 390px;
  margin-bottom: 24px;
  padding-right: 38px;
}

.login-modal__eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.login-modal__header h2 {
  margin: 0 0 10px;
  color: var(--graphite);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.08;
}

.login-modal__header p:not(.login-modal__eyebrow) {
  margin: 0;
  color: #625d58;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-field {
  display: grid;
  gap: 7px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.login-field input::placeholder {
  color: #9a9690;
}

.login-field input:focus {
  border-color: rgba(178, 34, 34, 0.5);
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

.login-field input[aria-invalid="true"] {
  border-color: rgba(178, 34, 34, 0.72);
  background: #fff8f8;
}

.login-field__error {
  min-height: 17px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.login-password {
  position: relative;
  display: block;
}

.login-password input {
  padding-right: 52px;
}

.login-password__toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: #6c6762;
  transform: translateY(-50%);
}

.login-password__toggle svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.login-password__icon--hide,
.is-password-visible .login-password__icon--show {
  display: none;
}

.is-password-visible .login-password__icon--hide {
  display: block;
}

.login-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 1px;
}

.login-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #5a5652;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}

.login-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.login-text-button {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--red);
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.login-text-button:hover,
.login-text-button:focus-visible,
.login-modal__bottom a:hover,
.login-modal__bottom a:focus-visible {
  color: var(--red-dark);
}

.login-submit {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 26, 26, 0.25);
  border-radius: 10px;
  background: var(--red);
  color: var(--white);
  padding: 0 24px;
  font: inherit;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.1;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: var(--red-dark);
}

.login-modal__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  border-top: 1px solid #ece8e6;
  margin-top: 24px;
  padding-top: 20px;
  color: #5a5652;
  font-size: 14px;
  font-weight: 650;
}

.login-modal__bottom a {
  color: var(--red);
  font-weight: 850;
}

.login-form__status {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
}

.login-text-button--back {
  justify-self: center;
  margin-top: 2px;
}

.login-modal button:focus,
.login-modal a:focus {
  outline: none;
}

.login-modal button:focus-visible,
.login-modal a:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.28);
  outline-offset: 3px;
}

.hero {
  background: var(--white);
}

.hero-scene {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #eee9e4;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 706px;
  align-items: center;
}

.hero-copy {
  width: min(700px, 50%);
  padding: 64px 64px 78px 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: -460px 0 0 460px rgba(255, 255, 255, 0.88);
}

.hero-copy h1 {
  margin-bottom: 30px;
  color: var(--graphite);
  font-size: clamp(48px, 3.8vw, 76px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin-bottom: 42px;
  color: #3f3f3d;
  font-size: clamp(19px, 1.28vw, 25px);
  line-height: 1.52;
}

.hero-button {
  min-width: 242px;
  min-height: 48px;
}

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

.hero-benefits {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 84px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid rgba(230, 230, 230, 0.86);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.benefit-item {
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  padding: 0 22px;
  color: #3d3d3b;
  font-size: clamp(15px, 1.02vw, 20px);
  line-height: 1.28;
}

.benefit-item + .benefit-item {
  border-left: 1px solid rgba(43, 43, 42, 0.08);
}

.benefit-item span {
  min-width: 0;
}

.benefit-item-marked::before {
  width: 16px;
  height: 9px;
  margin-right: 18px;
  border-bottom: 3px solid var(--red);
  border-left: 3px solid var(--red);
  content: "";
  transform: rotate(-45deg);
}

.ddprofi-directions {
  display: block;
  width: 100%;
  padding: 72px 0 64px;
  background: var(--white);
}

.ddprofi-directions__inner {
  width: min(100% - 140px, 1780px);
  margin: 0 auto;
}

.ddprofi-directions__heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 30px;
}

.ddprofi-directions__heading h2 {
  margin: 0;
  color: var(--graphite);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.ddprofi-directions__line {
  height: 1px;
  background: #d3cdcd;
}

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

.ddprofi-direction-card {
  position: relative;
  display: block;
  min-height: 220px;
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid rgba(211, 205, 205, 0.72);
  border-radius: 18px;
  background: #f7f6f5;
  color: var(--graphite);
  text-decoration: none;
  transform: translateY(0);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ddprofi-direction-card--wide {
  grid-column: span 6;
}

.ddprofi-direction-card:hover,
.ddprofi-direction-card:focus-visible {
  border-color: rgba(178, 34, 34, 0.36);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.ddprofi-direction-card__image,
.ddprofi-direction-card__overlay {
  position: absolute;
  inset: 0;
  display: block;
}

.ddprofi-direction-card__image {
  background-position: center;
  background-size: cover;
}

.ddprofi-direction-card__overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.82) 43%, rgba(255, 255, 255, 0.14) 100%);
}

.ddprofi-direction-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: min(90%, 560px);
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
}

.ddprofi-direction-card__content--right {
  max-width: min(62%, 560px);
  margin-left: auto;
}

.ddprofi-direction-card__logo-wrap {
  display: flex;
  width: 100%;
  height: 62px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 11px;
}

.ddprofi-direction-card__logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.ddprofi-direction-card__text {
  display: block;
  max-width: 320px;
  color: #343a40;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.42;
}

.ddprofi-direction-card--tech .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-tech.png");
}

.ddprofi-direction-card--light .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-light.png");
  background-position: 58% center;
}

.ddprofi-direction-card--santehnika .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-santehnika.png");
  background-position: 58% center;
}

.ddprofi-direction-card--floor .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-floor.png");
  background-position: 42% center;
}

.ddprofi-direction-card--profiles .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-profiles.png");
  background-position: 58% center;
}

.ddprofi-direction-card--tile .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-tile.png");
}

.ddprofi-direction-card--climat .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-climat.png");
  background-position: 64% center;
}

.ddprofi-direction-card--rozetki .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-rozetki.png");
  background-position: 34% center;
}

.ddprofi-direction-card--radiators .ddprofi-direction-card__image {
  background-image: url("./assets/directions/direction-radiators.png");
  background-position: 68% center;
}

.ddprofi-direction-card--floor .ddprofi-direction-card__overlay,
.ddprofi-direction-card--rozetki .ddprofi-direction-card__overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.18) 42%, rgba(255, 255, 255, 0.94) 54%, rgba(255, 255, 255, 0.97) 100%);
}

.ddprofi-direction-card--tile .ddprofi-direction-card__overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.68) 38%, rgba(255, 255, 255, 0.08) 100%);
}

.ddprofi-direction-card--tech .ddprofi-direction-card__overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0.04) 100%);
}

.ddprofi-direction-card--light .ddprofi-direction-card__overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.78) 38%, rgba(255, 255, 255, 0.08) 100%);
}

.directions-section {
  padding: 72px 0 64px;
  background: var(--white);
}

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 18px;
  color: var(--graphite);
  font-size: clamp(38px, 2.82vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 1180px;
  margin: 0 auto;
  color: #3f3f3d;
  font-size: clamp(18px, 1.28vw, 25px);
  line-height: 1.42;
}

.section-heading-lined {
  position: relative;
  display: flex;
  gap: 110px;
  align-items: center;
}

.section-heading-lined h2 {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 0;
}

.section-heading-lined h2::before {
  position: absolute;
  top: -28px;
  left: 50%;
  width: 45px;
  height: 3px;
  background: var(--red);
  content: "";
  transform: translateX(-50%);
}

.section-heading-lined::before,
.section-heading-lined::after,
.section-heading-lined h2::after {
  display: block;
  flex: 1 1 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.section-heading-lined h2::after {
  display: none;
}

.directions-grid {
  display: grid;
  grid-auto-rows: 142px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  overflow: hidden;
  border-radius: 8px;
  background: #efeeec;
  box-shadow: 0 18px 42px rgba(43, 43, 42, 0.08);
}

.direction-card-wide {
  grid-column: span 6;
}

.direction-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.direction-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.4) 38%, rgba(255, 255, 255, 0.04) 74%);
  content: "";
}

.direction-tech::after,
.direction-tile::after {
  background: linear-gradient(90deg, rgba(35, 34, 32, 0.72), rgba(35, 34, 32, 0.34) 42%, rgba(35, 34, 32, 0.06) 74%);
}

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

.direction-copy {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 34px;
  max-width: min(430px, calc(100% - 62px));
  border-left: 3px solid var(--red);
  background: rgba(255, 255, 255, 0.78);
  color: var(--graphite);
  padding: 17px 20px 18px;
  box-shadow: 0 16px 34px rgba(43, 43, 42, 0.12);
  backdrop-filter: blur(8px);
}

.direction-copy,
.direction-copy h3,
.direction-copy p {
  color: var(--graphite);
}

.direction-copy-light {
  background: rgba(35, 34, 32, 0.72);
  color: var(--white);
}

.direction-copy-light p,
.direction-copy-light h3 {
  color: var(--white);
}

.direction-copy h3 {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: clamp(26px, 1.55vw, 34px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.direction-copy p {
  margin: 8px 0 0;
  color: inherit;
  font-size: clamp(15px, 0.92vw, 18px);
  line-height: 1.28;
}

.direction-mark {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 22px;
  margin-right: 9px;
  vertical-align: -4px;
}

.direction-mark::before,
.direction-mark::after {
  position: absolute;
  content: "";
}

.direction-mark::before {
  top: 3px;
  left: 0;
  width: 5px;
  height: 17px;
  background: var(--red);
}

.direction-mark::after {
  top: 0;
  right: 0;
  width: 5px;
  height: 20px;
  background: currentColor;
  opacity: 0.86;
}

.direction-light .direction-copy,
.direction-floor .direction-copy,
.direction-sockets .direction-copy,
.direction-radiators .direction-copy {
  top: auto;
  bottom: 34px;
}

.direction-floor .direction-copy,
.direction-radiators .direction-copy {
  right: 34px;
  left: auto;
}

.direction-climate .direction-copy {
  top: auto;
  bottom: 30px;
}

.reasons-section {
  padding: 36px 0 64px;
  background: var(--white);
}

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

.reason-card {
  min-height: 336px;
  background: var(--surface);
  padding: 44px 48px 38px;
}

.reason-card h3 {
  margin-bottom: 26px;
  color: var(--graphite);
  font-size: clamp(23px, 1.48vw, 31px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.reason-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-card li {
  position: relative;
  margin-bottom: 18px;
  padding-left: 36px;
  color: #383836;
  font-size: clamp(16px, 0.98vw, 20px);
  line-height: 1.35;
}

.reason-card li:last-child {
  margin-bottom: 0;
}

.reason-card li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 16px;
  height: 9px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
  content: "";
  transform: rotate(-45deg);
}

.how-section {
  padding: 24px 0 74px;
  background: var(--white);
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(610px, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
}

.how-copy {
  min-width: 0;
}

.how-copy h2,
.cabinet-copy h2 {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(34px, 2.24vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.how-copy h2 {
  margin-bottom: 44px;
}

.how-steps {
  position: relative;
  display: grid;
  max-width: 470px;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 0;
  padding: 0 0 0 54px;
  list-style: none;
}

.how-steps::before {
  position: absolute;
  top: 17px;
  bottom: 17px;
  left: 17px;
  width: 1px;
  height: auto;
  background: #d8d3d0;
  content: "";
}

.how-step {
  position: relative;
  min-width: 0;
}

.how-step__number {
  position: absolute;
  top: 0;
  left: -54px;
  z-index: 1;
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.how-step h3 {
  margin: 0 0 9px;
  color: var(--graphite);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.22;
  overflow-wrap: normal;
}

.how-step p {
  max-width: 340px;
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.48;
  overflow-wrap: normal;
}

.process-preview,
.workspace-preview {
  min-width: 0;
  border: 1px solid #e1dddd;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(43, 43, 42, 0.08);
}

.process-preview {
  position: relative;
  display: grid;
  min-height: 520px;
  align-content: center;
  gap: 26px;
  overflow: hidden;
  padding: 42px 40px 34px;
}

.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 38px;
  isolation: isolate;
}

.process-flow::after {
  position: absolute;
  z-index: 0;
  top: calc(50% - 9px);
  right: 18px;
  left: 18px;
  height: 68px;
  border: 1px solid rgba(178, 34, 34, 0.62);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  content: "";
  pointer-events: none;
}

.process-card {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 174px;
  align-content: start;
  justify-items: center;
  border: 1px solid #ebe6e3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 22px 16px 18px;
  text-align: center;
}

.process-card:nth-child(1)::after,
.process-card:nth-child(2)::after,
.process-card:nth-child(4)::after,
.process-card:nth-child(5)::after {
  position: absolute;
  top: 50%;
  right: -31px;
  width: 24px;
  height: 1px;
  background: var(--red);
  content: "";
}

.process-card:nth-child(1)::before,
.process-card:nth-child(2)::before,
.process-card:nth-child(4)::before,
.process-card:nth-child(5)::before {
  position: absolute;
  top: calc(50% - 4px);
  right: -32px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--red);
  border-right: 1px solid var(--red);
  content: "";
  transform: rotate(45deg);
}

.process-card__number {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.process-card__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 14px;
  color: #77716c;
}

.process-card__icon svg,
.process-support__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.process-card h3 {
  margin: 0 0 8px;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.process-card p {
  max-width: 160px;
  margin: 0 auto 13px;
  color: #5a5652;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.process-status {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.process-status--red {
  background: #f8eeee;
  color: var(--red);
}

.process-status--green {
  background: #edf7ef;
  color: #2f7d3d;
}

.process-status--blue {
  background: #edf4fb;
  color: #3b719b;
}

.process-status--amber {
  background: #fbf1df;
  color: #a96712;
}

.process-support {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #ebe6e3;
  border-radius: 12px;
  background: #fbfaf9;
  padding: 16px 18px;
}

.process-support__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--red);
}

.process-support p {
  margin: 0;
  color: #5a5652;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.process-support strong {
  color: var(--graphite);
  font-weight: 850;
}

.cabinet-section {
  padding: 76px 0 84px;
  background: #faf9f8;
}

.cabinet-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1.18fr);
  gap: 54px;
  align-items: center;
}

.cabinet-copy {
  min-width: 0;
}

.cabinet-copy h2 {
  max-width: 680px;
  margin-bottom: 14px;
}

.cabinet-copy > p {
  max-width: 640px;
  margin: 0 0 34px;
  color: #5a5652;
  font-size: 18px;
  line-height: 1.5;
}

.cabinet-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.cabinet-benefits article {
  position: relative;
  min-width: 0;
  padding-left: 40px;
}

.cabinet-benefits article::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(178, 34, 34, 0.24);
  border-radius: 6px;
  content: "";
}

.cabinet-benefits article::after {
  position: absolute;
  top: 9px;
  left: 7px;
  width: 10px;
  height: 6px;
  border-bottom: 2px solid var(--red);
  border-left: 2px solid var(--red);
  content: "";
  transform: rotate(-45deg);
}

.cabinet-benefits h3 {
  margin: 0 0 7px;
  color: var(--graphite);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.cabinet-benefits p {
  margin: 0;
  color: #5a5652;
  font-size: 15px;
  line-height: 1.45;
}

.workspace-preview {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 190px;
  min-height: 482px;
  overflow: hidden;
}

.workspace-preview__sidebar {
  display: grid;
  align-content: start;
  gap: 9px;
  border-right: 1px solid #eee9e6;
  background: #faf9f8;
  padding: 20px 12px;
  color: #5f5b56;
  font-size: 11px;
  font-weight: 750;
}

.workspace-preview__logo {
  display: inline-flex;
  width: 38px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
}

.workspace-preview__sidebar span:not(.workspace-preview__logo) {
  border-radius: 6px;
  padding: 8px 9px;
  line-height: 1.2;
}

.workspace-preview__sidebar .is-active {
  background: #f6f1ef;
  color: var(--red);
}

.workspace-preview__content {
  min-width: 0;
  background: #ffffff;
  padding: 26px 22px;
}

.workspace-preview__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--graphite);
}

.workspace-preview__topline strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
  line-height: 1.12;
}

.workspace-preview__topline span {
  color: #77716c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.workspace-preview__kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workspace-preview__kpis article,
.workspace-preview__attention,
.workspace-preview__projects {
  min-width: 0;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fbfaf9;
}

.workspace-preview__kpis article {
  display: grid;
  gap: 5px;
  padding: 15px 14px;
}

.workspace-preview__kpis span {
  color: #77716c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.workspace-preview__kpis strong {
  color: var(--graphite);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.16;
  white-space: nowrap;
}

.workspace-preview__attention {
  padding: 17px 16px;
  margin-bottom: 16px;
}

.workspace-preview__attention h3,
.workspace-preview__projects h3,
.workspace-preview__summary h3 {
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
}

.workspace-preview__attention h3 {
  margin-bottom: 15px;
}

.workspace-preview__attention > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workspace-preview__attention article {
  display: grid;
  gap: 6px;
  border-radius: 8px;
  background: var(--white);
  padding: 13px 10px;
  text-align: center;
}

.workspace-preview__attention strong {
  color: var(--graphite);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
}

.workspace-preview__attention span {
  color: #5f5b56;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
}

.workspace-preview__projects {
  padding: 17px 16px;
}

.workspace-preview__projects h3 {
  margin-bottom: 15px;
}

.workspace-preview__projects div {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) minmax(62px, 0.65fr) minmax(94px, 0.75fr);
  align-items: center;
  gap: 0 10px;
}

.workspace-preview__projects span,
.workspace-preview__projects strong {
  min-width: 0;
  border-top: 1px solid #eee9e6;
  padding: 11px 0;
  color: #5f5b56;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.workspace-preview__projects span:nth-child(3n+1) {
  color: var(--graphite);
  font-weight: 850;
}

.workspace-preview__projects strong {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  text-align: center;
  white-space: nowrap;
}

.workspace-preview__projects strong.is-green {
  border: 1px solid rgba(65, 139, 78, 0.2);
  background: #f1f8f2;
  color: #2f7d3d;
}

.workspace-preview__projects strong.is-blue {
  border: 1px solid rgba(64, 123, 172, 0.22);
  background: #f0f6fb;
  color: #3b719b;
}

.workspace-preview__button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}

.workspace-preview__summary {
  min-width: 0;
  border-left: 1px solid #eee9e6;
  background: #fbfaf9;
  padding: 26px 18px;
}

.workspace-preview__summary h3 {
  margin-bottom: 18px;
}

.workspace-preview__summary ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workspace-preview__summary li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.workspace-preview__summary li span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
}

.workspace-preview__summary button {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(178, 34, 34, 0.28);
  border-radius: 7px;
  margin-top: 24px;
  background: var(--red);
  color: var(--white);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: default;
}

.access-section {
  scroll-margin-top: 132px;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f8 100%);
  padding: 92px 0 96px;
}

.access-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 82px);
  align-items: start;
}

.access-heading {
  position: sticky;
  top: 148px;
  display: grid;
  gap: 14px;
}

.access-heading > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.access-heading h2 {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(34px, 3.1vw, 58px);
  font-weight: 800;
  line-height: 1.08;
}

.access-heading p {
  max-width: 620px;
  margin: 0;
  color: #5f5b56;
  font-size: clamp(17px, 1.2vw, 22px);
  line-height: 1.5;
}

.access-form {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: clamp(24px, 3.2vw, 42px);
}

.access-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.access-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
}

.access-field--wide {
  grid-column: 1 / -1;
}

.access-field input,
.access-field select,
.access-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.access-field input,
.access-field select {
  height: 50px;
}

.access-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #77716c 50%),
    linear-gradient(135deg, #77716c 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 22px,
    calc(100% - 13px) 22px;
  background-repeat: no-repeat;
  background-size: 6px 6px;
  padding-right: 42px;
}

.access-field textarea {
  min-height: 126px;
  resize: vertical;
  padding-top: 14px;
  line-height: 1.45;
}

.access-field input::placeholder,
.access-field textarea::placeholder {
  color: #9a948e;
}

.access-field input:focus,
.access-field select:focus,
.access-field textarea:focus {
  border-color: rgba(178, 34, 34, 0.42);
  outline: none;
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.1);
}

.access-field input[aria-invalid="true"] {
  border-color: rgba(178, 34, 34, 0.56);
  background: #fffafa;
}

.access-field__error {
  min-height: 16px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.access-choice-group {
  padding: 0;
  border: 0;
}

.access-choice-group legend {
  margin: 0 0 8px;
  padding: 0;
}

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

.access-radio-grid label {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px 14px;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.access-radio-grid input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.access-radio-grid label:has(input:checked) {
  border-color: rgba(178, 34, 34, 0.42);
  background: #fff8f8;
  color: var(--red);
}

.access-choice-group.is-invalid .access-radio-grid label {
  border-color: rgba(178, 34, 34, 0.36);
}

.access-notice {
  display: grid;
  gap: 10px;
  border: 1px solid #ece8e6;
  border-left: 3px solid var(--red);
  border-radius: 8px;
  background: #faf9f8;
  padding: 18px 20px;
}

.access-notice p {
  margin: 0;
  color: #625d58;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}

.access-form__footer {
  display: flex;
  align-items: center;
  gap: 18px;
}

.access-submit {
  min-width: 210px;
}

.access-success {
  margin: 0;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.cta-section {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  place-items: center;
  background: #242321;
  color: var(--white);
}

.cta-image,
.cta-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cta-image {
  object-fit: cover;
  object-position: center;
}

.cta-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.64));
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(31px, 2.22vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}

.cta-content p {
  margin-bottom: 34px;
  color: var(--white);
  font-size: clamp(18px, 1.35vw, 26px);
}

.section-anchor {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.ddprofi-footer {
  background: #242423;
  color: var(--white);
}

.ddprofi-footer__inner {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(260px, 1.1fr) minmax(170px, 0.55fr) minmax(460px, 1.65fr);
  gap: 48px;
  align-items: start;
  padding: 44px 0 50px;
}

.ddprofi-footer h2,
.ddprofi-footer p {
  margin: 0;
}

.ddprofi-footer__brand {
  display: grid;
  gap: 16px;
}

.ddprofi-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 27px;
  width: fit-content;
  max-width: 325px;
}

.ddprofi-footer__logo img {
  width: auto;
  height: 50px;
  flex: 0 0 auto;
}

.ddprofi-footer__logo-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ddprofi-footer__logo-name {
  color: #f5f5f3;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}

.ddprofi-footer__logo-tagline {
  color: #c9c9c9;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.ddprofi-footer__brand p {
  max-width: 360px;
  color: #c9c9c9;
  font-size: 14px;
  line-height: 1.6;
}

.ddprofi-footer__brand a:not(.ddprofi-footer__logo),
.ddprofi-footer__nav a,
.ddprofi-footer__ecosystem-item a {
  color: #c9c9c9;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}

.ddprofi-footer__brand a:not(.ddprofi-footer__logo) {
  color: var(--white);
}

.ddprofi-footer__nav,
.ddprofi-footer__ecosystem {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ddprofi-footer__ecosystem {
  gap: 16px;
}

.ddprofi-footer__nav h2,
.ddprofi-footer__ecosystem h2 {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.ddprofi-footer__ecosystem-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 10px 28px;
}

.ddprofi-footer__ecosystem-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  align-items: baseline;
  min-width: 0;
  color: #c9c9c9;
  line-height: 1.35;
}

.ddprofi-footer__ecosystem-item span {
  color: #c9c9c9;
  font-size: 14px;
}

.ddprofi-footer__brand a:hover,
.ddprofi-footer__nav a:hover {
  color: var(--white);
}

.ddprofi-footer__ecosystem-item a:hover {
  color: var(--red);
}

.content-page {
  width: min(1180px, calc(100% - (var(--page-pad) * 2)));
  padding: 58px 0 86px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  color: #7c838a;
  font-size: 14px;
  line-height: 1.3;
}

.breadcrumbs a {
  color: #59616a;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--graphite);
}

.delivery-hero {
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  padding: 22px 0 30px;
}

.delivery-hero h1 {
  margin: 0 0 14px;
  color: var(--graphite);
  font-size: clamp(38px, 3.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
}

.delivery-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
}

.delivery-intro {
  max-width: 1040px;
  margin-bottom: 34px;
}

.delivery-intro p,
.delivery-content p,
.delivery-content li {
  color: var(--text);
  font-size: 17px;
  line-height: 1.62;
}

.delivery-intro p,
.delivery-content p {
  margin: 0 0 16px;
}

.delivery-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 42px;
}

.delivery-highlights article {
  border: 1px solid #e1dddd;
  background: #fafafa;
  padding: 22px 24px;
}

.delivery-highlights strong {
  display: block;
  margin-bottom: 10px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
}

.delivery-highlights p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.delivery-content {
  display: grid;
  max-width: 1120px;
}

.delivery-content article {
  border-top: 1px solid var(--line);
  padding: 34px 0 18px;
}

.delivery-content article:first-child {
  border-top: 0;
}

.delivery-content h2 {
  margin: 0 0 16px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.delivery-content h3 {
  margin: 18px 0 10px;
  color: var(--graphite);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.delivery-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.delivery-content li {
  position: relative;
  padding-left: 24px;
}

.delivery-content li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #8d939a;
  content: "-";
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.ecosystem-grid section {
  border: 1px solid #e1dddd;
  background: var(--white);
  padding: 22px 24px;
}

.ecosystem-grid h3 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.ecosystem-grid h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ecosystem-grid p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.legal-shell {
  display: grid;
  gap: 24px;
}

.legal-shell > .section-head h1 {
  margin: 0;
  color: var(--graphite);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.12;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.legal-tab {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
}

.legal-tab.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.legal-panel {
  display: none;
  max-width: 1120px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 32px;
}

.legal-panel.is-active {
  display: block;
}

.legal-panel h1,
.legal-panel h2,
.legal-panel p {
  max-width: 980px;
}

.legal-panel h1 {
  margin: 0 0 22px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 700;
}

.legal-panel h2 {
  margin: 28px 0 12px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 700;
}

.legal-panel p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 1280px) {
  .header-inner {
    min-height: 96px;
  }

  .brand img {
    height: 44px;
  }

  .ddprofi-footer__logo {
    gap: 24px;
    max-width: 286px;
  }

  .ddprofi-footer__logo img {
    height: 44px;
  }

  .ddprofi-footer__logo-name {
    font-size: 21px;
  }

  .ddprofi-footer__logo-tagline {
    font-size: 6px;
    letter-spacing: 0.07em;
  }

  .hero-scene {
    min-height: 700px;
  }

  .hero-content {
    min-height: 616px;
  }

  .hero-copy {
    width: min(650px, 56%);
    padding-right: 42px;
  }

  .access-layout {
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
    gap: 42px;
  }

  .section-heading-lined {
    gap: 70px;
  }

  .ddprofi-direction-card__content {
    max-width: min(84%, 460px);
    padding: 22px;
  }

  .ddprofi-direction-card__content--right {
    max-width: min(66%, 460px);
  }

  .ddprofi-direction-card__logo-wrap {
    height: 58px;
  }

  .ddprofi-direction-card__logo {
    height: 52px;
  }

  .directions-grid {
    grid-auto-rows: 122px;
  }

  .direction-copy {
    top: 32px;
    left: 32px;
  }

  .direction-light .direction-copy,
  .direction-floor .direction-copy,
  .direction-sockets .direction-copy,
  .direction-radiators .direction-copy {
    bottom: 32px;
  }

  .process-preview {
    min-height: 500px;
    padding: 34px 28px 30px;
  }

  .process-flow {
    gap: 28px 26px;
  }

  .process-card {
    min-height: 168px;
    padding: 20px 12px 16px;
  }

  .process-card:nth-child(1)::after,
  .process-card:nth-child(2)::after,
  .process-card:nth-child(4)::after,
  .process-card:nth-child(5)::after {
    right: -22px;
    width: 18px;
  }

  .process-card:nth-child(1)::before,
  .process-card:nth-child(2)::before,
  .process-card:nth-child(4)::before,
  .process-card:nth-child(5)::before {
    right: -23px;
  }
}

@media (max-width: 1024px) {
  .page-shell {
    width: min(var(--page-max), calc(100% - 48px));
  }

  .ddprofi-directions__inner {
    width: min(100% - 48px, 100%);
  }

  .hero-scene {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-benefits {
    order: 3;
  }

  .hero-image {
    position: static;
    height: 430px;
    object-position: center;
  }

  .hero-content {
    display: block;
    min-height: 0;
    padding: 56px 0 42px;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-copy h1 {
    max-width: 720px;
  }

  .hero-copy p {
    max-width: 720px;
  }

  .access-section {
    scroll-margin-top: 112px;
    padding: 72px 0 78px;
  }

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

  .access-heading {
    position: static;
    max-width: 780px;
  }

  .hero-benefits {
    position: static;
    width: 100%;
    min-height: 76px;
  }

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

  .ddprofi-direction-card,
  .ddprofi-direction-card--wide {
    min-height: 168px;
    grid-column: span 1;
  }

  .ddprofi-direction-card--tech,
  .ddprofi-direction-card--light,
  .ddprofi-direction-card--santehnika,
  .ddprofi-direction-card--floor,
  .ddprofi-direction-card--rozetki,
  .ddprofi-direction-card--radiators {
    grid-column: span 2;
  }

  .ddprofi-direction-card__content {
    max-width: min(88%, 500px);
  }

  .ddprofi-direction-card__content--right {
    max-width: min(68%, 500px);
  }

  .directions-grid {
    grid-auto-rows: 136px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .direction-card,
  .direction-card-wide {
    grid-column: span 1;
  }

  .direction-copy h3 {
    font-size: 30px;
  }

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

  .reason-card {
    min-height: auto;
  }

  .how-layout,
  .cabinet-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .how-copy h2 {
    margin-bottom: 42px;
  }

  .workspace-preview {
    grid-template-columns: 112px minmax(0, 1fr) 168px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 72px;
  }

  .brand img {
    height: 38px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 56px 56px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .social-button,
  .social-button--telegram {
    min-width: 56px;
    min-height: 46px;
    gap: 0;
    padding: 0;
  }

  .social-button__text {
    display: none;
  }

  .account-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .header-actions__divider {
    display: none;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .is-menu-open .header-actions {
    display: grid;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--page-max), calc(100% - 32px));
  }

  .ddprofi-directions__inner {
    width: min(100% - 32px, 100%);
  }

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

  .brand img {
    height: 38px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 56px 56px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .social-button {
    min-width: 56px;
    min-height: 46px;
    gap: 0;
    padding: 0;
  }

  .social-button--telegram {
    min-width: 56px;
  }

  .social-button__text {
    display: none;
  }

  .account-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }

  .header-actions__divider {
    display: none;
  }

  .desktop-label {
    display: none;
  }

  .mobile-label {
    display: inline;
  }

  .is-menu-open .header-actions {
    display: grid;
  }

  .login-modal {
    padding: 16px;
  }

  .login-modal__dialog {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    border-radius: 14px;
    padding: 26px 20px 22px;
  }

  .login-modal__close {
    top: 12px;
    right: 12px;
  }

  .login-modal__header {
    margin-bottom: 20px;
    padding-right: 34px;
  }

  .login-modal__header h2 {
    font-size: 28px;
  }

  .login-form__meta {
    display: grid;
    gap: 12px;
  }

  .hero-content {
    padding: 42px 0 34px;
  }

  .hero-copy h1 {
    margin-bottom: 22px;
    font-size: 42px;
  }

  .hero-copy p {
    margin-bottom: 28px;
    font-size: 19px;
  }

  .hero-button {
    min-width: 188px;
    min-height: 48px;
    border-radius: 10px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    max-width: 340px;
    gap: 10px;
  }

  .hero-actions .hero-button {
    width: 100%;
    min-width: 0;
  }

  .access-section {
    scroll-margin-top: 86px;
    padding: 56px 0 62px;
  }

  .access-form {
    padding: 22px;
  }

  .access-form__grid,
  .access-radio-grid {
    grid-template-columns: 1fr;
  }

  .access-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .access-submit {
    width: 100%;
    min-width: 0;
  }

  .hero-image {
    height: 300px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    padding: 12px 0;
    gap: 8px;
  }

  .benefit-item {
    min-height: 38px;
    font-size: 16px;
  }

  .directions-section {
    padding-top: 54px;
  }

  .ddprofi-directions {
    padding: 54px 0 42px;
  }

  .ddprofi-directions__heading {
    gap: 18px;
    margin-bottom: 22px;
  }

  .ddprofi-directions__heading h2 {
    font-size: 28px;
  }

  .ddprofi-directions__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ddprofi-direction-card,
  .ddprofi-direction-card--wide,
  .ddprofi-direction-card--tech,
  .ddprofi-direction-card--light,
  .ddprofi-direction-card--santehnika,
  .ddprofi-direction-card--radiators {
    min-height: 162px;
    grid-column: span 1;
  }

  .ddprofi-direction-card__content,
  .ddprofi-direction-card__content--right {
    max-width: 88%;
    margin-left: 0;
    padding: 20px;
  }

  .ddprofi-direction-card__logo-wrap {
    height: 54px;
    margin-bottom: 10px;
  }

  .ddprofi-direction-card__logo {
    height: 48px;
  }

  .ddprofi-direction-card__text {
    max-width: 260px;
    font-size: 15px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p {
    font-size: 18px;
  }

  .section-heading-lined {
    display: block;
  }

  .section-heading-lined::before,
  .section-heading-lined::after,
  .section-heading-lined h2::before {
    display: none;
  }

  .directions-grid {
    grid-auto-rows: auto;
    grid-template-columns: 1fr;
  }

  .direction-card,
  .direction-card-wide {
    min-height: 178px;
    grid-column: span 1;
    grid-row: auto;
  }

  .direction-copy {
    top: 26px;
    left: 24px;
    max-width: calc(100% - 48px);
  }

  .direction-copy h3 {
    font-size: 28px;
  }

  .direction-copy p {
    font-size: 16px;
  }

  .direction-light .direction-copy,
  .direction-floor .direction-copy,
  .direction-sockets .direction-copy,
  .direction-radiators .direction-copy,
  .direction-climate .direction-copy {
    top: 26px;
    right: auto;
    bottom: auto;
    left: 24px;
  }

  .reasons-section {
    padding-bottom: 36px;
  }

  .reason-card {
    padding: 30px 26px;
  }

  .reason-card h3 {
    font-size: 24px;
  }

  .reason-card li {
    font-size: 17px;
  }

  .how-section {
    padding: 18px 0 52px;
  }

  .how-copy h2,
  .cabinet-copy h2 {
    font-size: 30px;
  }

  .how-copy h2 {
    margin-bottom: 28px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 0 0 34px;
  }

  .how-steps::before {
    top: 16px;
    bottom: 18px;
    left: 16px;
    width: 1px;
    height: auto;
  }

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

  .how-step__number {
    top: 0;
    left: -34px;
    width: 32px;
    height: 32px;
  }

  .how-step h3 {
    min-height: 32px;
    margin-bottom: 8px;
    padding-top: 4px;
  }

  .process-preview {
    min-height: auto;
    gap: 18px;
    padding: 20px;
  }

  .process-flow {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .process-flow::after,
  .process-card::before,
  .process-card::after {
    display: none;
  }

  .process-card {
    min-height: auto;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 12px;
    align-content: start;
    justify-items: start;
    padding: 16px;
    text-align: left;
  }

  .process-card__number {
    position: static;
    grid-row: 1 / span 4;
    width: 28px;
    height: 28px;
  }

  .process-card__icon {
    grid-column: 2;
    width: 34px;
    height: 34px;
    margin: 0 0 8px;
  }

  .process-card h3,
  .process-card p,
  .process-status {
    grid-column: 2;
  }

  .process-card p {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .process-support {
    align-items: flex-start;
    padding: 15px;
  }

  .process-support__icon {
    width: 32px;
    height: 32px;
  }

  .cabinet-section {
    padding: 54px 0 60px;
  }

  .cabinet-copy h2 {
    margin-bottom: 28px;
  }

  .cabinet-benefits {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .workspace-preview {
    grid-template-columns: 1fr;
  }

  .workspace-preview__sidebar {
    display: none;
  }

  .workspace-preview__logo {
    margin: 0 8px 0 0;
  }

  .workspace-preview__content,
  .workspace-preview__summary {
    padding: 18px;
  }

  .workspace-preview__summary {
    display: none;
  }

  .workspace-preview__topline {
    display: grid;
  }

  .workspace-preview__button {
    width: 100%;
  }

  .workspace-preview__kpis,
  .workspace-preview__attention > div {
    grid-template-columns: 1fr;
  }

  .workspace-preview__attention {
    display: none;
  }

  .workspace-preview__projects div {
    grid-template-columns: minmax(0, 1fr) minmax(64px, 0.55fr);
  }

  .workspace-preview__projects strong {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

  .workspace-preview__projects div > :nth-child(n+7) {
    display: none;
  }

  .cta-section {
    min-height: 330px;
  }

  .cta-content h2 {
    font-size: 30px;
  }

  .cta-content p {
    font-size: 17px;
  }

  .primary-button {
    min-height: 48px;
    border-radius: 10px;
    padding: 0 24px;
    font-size: 16px;
  }

  .secondary-button {
    min-height: 48px;
    padding: 0 24px;
    font-size: 16px;
  }

  .footer-inner {
    min-height: 150px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }

  .footer-brand img {
    height: 44px;
  }

  .footer-contacts {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Project cart: full client preview */
.client-preview-modal {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  visibility: hidden;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.account-page.is-client-preview-open .client-preview-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.client-preview-modal__overlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(24, 22, 20, 0.52);
}

.client-preview-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 32px), 1600px);
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(24, 22, 20, 0.2);
}

.client-preview-header {
  position: relative;
  z-index: 4;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(270px, 1fr) minmax(240px, 0.7fr) auto 44px;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
  padding: 18px 22px;
}

.client-preview-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.client-preview-brand img {
  display: block;
  width: auto;
  height: 42px;
}

.client-preview-brand span {
  border-left: 1px solid #e6e6e6;
  color: #77716c;
  padding-left: 16px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.client-preview-project {
  min-width: 0;
}

.client-preview-project h2 {
  overflow: hidden;
  margin: 0 0 3px;
  color: #2b2b2a;
  font-size: 20px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-preview-project p {
  margin: 0;
  color: #77716c;
  font-size: 13px;
  font-weight: 600;
}

.client-preview-header__actions {
  display: flex;
  gap: 10px;
}

.client-preview-button,
.client-preview-close {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.client-preview-button .cart-icon {
  width: 18px;
  height: 18px;
}

.client-preview-button--outline {
  border: 1px solid #dedbd8;
  background: #fff;
  color: #2b2b2a;
}

.client-preview-button--primary {
  border: 1px solid #b22222;
  background: #b22222;
  color: #fff;
}

.client-preview-button--outline:hover {
  border-color: rgba(178, 34, 34, 0.45);
  color: #b22222;
}

.client-preview-button--primary:hover {
  border-color: #941c1c;
  background: #941c1c;
}

.client-preview-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.client-preview-pdf__spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid #dedbd8;
  border-top-color: #b22222;
  border-radius: 50%;
  animation: cart-excel-export-spin 720ms linear infinite;
}

.client-preview-pdf__spinner[hidden] {
  display: none;
}

.client-preview-button:focus-visible,
.client-preview-close:focus-visible,
.client-preview-directions button:focus-visible,
.client-preview-section-card:focus-visible,
.client-preview-table a:focus-visible {
  outline: 3px solid rgba(178, 34, 34, 0.2);
  outline-offset: 2px;
}

.client-preview-close {
  width: 42px;
  height: 42px;
  border: 1px solid #dedbd8;
  background: #fff;
  color: #5f5b56;
  padding: 0;
}

.client-preview-close:hover {
  border-color: rgba(178, 34, 34, 0.45);
  color: #b22222;
}

.client-preview-close .cart-icon {
  width: 20px;
  height: 20px;
}

.client-preview-scroll {
  min-width: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f7f7f5;
  padding: 20px 22px 28px;
}

.client-preview-loading,
.client-preview-error {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #5f5b56;
  text-align: center;
}

.client-preview-loading[hidden],
.client-preview-error[hidden],
.client-preview-content[hidden],
.client-preview-table-scroll[hidden],
.client-preview-section-cards[hidden],
.client-preview-empty[hidden] {
  display: none;
}

.client-preview-loading > span {
  width: 32px;
  height: 32px;
  border: 3px solid #eadfda;
  border-top-color: #b22222;
  border-radius: 50%;
  animation: cart-excel-export-spin 720ms linear infinite;
}

.client-preview-loading p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.client-preview-error strong {
  color: #2b2b2a;
  font-size: 17px;
}

.client-preview-content {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.client-preview-directions {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  scrollbar-width: thin;
}

.client-preview-directions button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: #5f5b56;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 750;
}

.client-preview-directions button small {
  display: inline-flex;
  min-width: 20px;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f2f0ee;
  color: #77716c;
  font-size: 10px;
}

.client-preview-directions button.is-active {
  border-color: rgba(178, 34, 34, 0.48);
  background: #fff8f8;
  color: #b22222;
}

.client-preview-directions button.is-active small {
  background: #b22222;
  color: #fff;
}

.client-preview-overview {
  display: grid;
  grid-template-columns: minmax(240px, 0.58fr) minmax(680px, 1.42fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  padding: 20px;
}

.client-preview-overview > div:first-child {
  align-content: center;
  border-right: 1px solid #e6e6e6;
  padding-right: 22px;
}

.client-preview-overview > div:first-child > span {
  color: #b22222;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-preview-overview h3 {
  margin: 5px 0 5px;
  color: #2b2b2a;
  font-size: 28px;
  font-weight: 800;
}

.client-preview-overview p {
  margin: 0;
  color: #77716c;
  font-size: 13px;
  font-weight: 650;
}

.client-preview-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: center;
  margin: 0;
}

.client-preview-totals div {
  display: grid;
  align-content: center;
  gap: 8px;
  border-left: 1px solid #e6e6e6;
  padding: 4px 18px;
}

.client-preview-totals [data-client-preview-section-count-wrap][hidden] {
  display: none;
}

.client-preview-totals div:nth-child(n + 5) {
  border-top: 1px solid #e6e6e6;
  padding-top: 13px;
}

.client-preview-totals div:first-child {
  border-left: 0;
}

.client-preview-totals dt,
.client-preview-totals dd {
  margin: 0;
}

.client-preview-totals dt {
  color: #77716c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.client-preview-totals dd {
  color: #2b2b2a;
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.client-preview-totals__pay dd,
.client-preview-totals__benefit dd {
  color: #b22222;
}

.client-preview-section-cards {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.client-preview-section-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 92px minmax(220px, 1fr) minmax(420px, 1.4fr) 28px;
  gap: 18px;
  align-items: center;
  width: 100%;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #2b2b2a;
  padding: 10px 14px 10px 10px;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.client-preview-section-card:hover {
  border-color: rgba(178, 34, 34, 0.35);
  background: #fffafa;
}

.client-preview-section-card img {
  display: block;
  width: 92px;
  height: 62px;
  border-radius: 6px;
  object-fit: cover;
}

.client-preview-section-card__copy,
.client-preview-section-card__values {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.client-preview-section-card__copy strong {
  font-size: 16px;
  font-weight: 800;
}

.client-preview-section-card__copy small,
.client-preview-section-card__values small {
  color: #77716c;
  font-size: 11px;
  font-weight: 650;
}

.client-preview-section-card__values {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}

.client-preview-section-card__values small {
  display: grid;
  gap: 3px;
}

.client-preview-section-card__values b {
  color: #2b2b2a;
  font-size: 13px;
  white-space: nowrap;
}

.client-preview-section-card__values > strong {
  color: #b22222;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}

.client-preview-section-card__arrow {
  color: #b22222;
  font-size: 22px;
  text-align: right;
}

.client-preview-table-scroll {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
}

.client-preview-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  table-layout: fixed;
}

.client-preview-table th,
.client-preview-table td {
  border-bottom: 1px solid #efedeb;
  padding: 13px 12px;
  color: #2b2b2a;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.client-preview-table th {
  background: #fafaf8;
  color: #5f5b56;
  font-size: 10.5px;
  font-weight: 800;
}

.client-preview-table th:nth-child(1) { width: 30%; }
.client-preview-table th:nth-child(2) { width: 11%; }
.client-preview-table th:nth-child(3) { width: 9%; }
.client-preview-table th:nth-child(4) { width: 13%; }
.client-preview-table th:nth-child(5) { width: 13%; }
.client-preview-table th:nth-child(6) { width: 11%; }
.client-preview-table th:nth-child(7) { width: 13%; }

.client-preview-table tbody tr:last-child td {
  border-bottom: 0;
}

.client-preview-table td:nth-child(3),
.client-preview-table th:nth-child(3) {
  text-align: center;
}

.client-preview-table td:nth-child(5),
.client-preview-table td:nth-child(6),
.client-preview-table th:nth-child(5),
.client-preview-table th:nth-child(6) {
  text-align: right;
}

.client-preview-table td > small,
.client-preview-table td:nth-child(4) span {
  display: block;
}

.client-preview-table td > small {
  margin-top: 3px;
  color: #88827c;
  font-size: 10.5px;
}

.client-preview-product {
  display: grid;
  min-width: 0;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-preview-product img {
  display: block;
  width: 64px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
}

.client-preview-product > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.client-preview-product strong {
  color: #77716c;
  font-size: 10px;
  font-weight: 750;
}

.client-preview-product b {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-preview-product small {
  color: #88827c;
  font-size: 10px;
}

.client-preview-table a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b22222;
  font-size: 11px;
  font-weight: 800;
}

.client-preview-table a .cart-icon {
  width: 14px;
  height: 14px;
}

.client-preview-product-link--muted {
  color: #88827c;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.35;
}

.client-preview-empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  margin-top: 16px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #5f5b56;
  padding: 24px;
  text-align: center;
}

@media (max-width: 1320px) {
  .client-preview-header {
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.8fr) 44px;
    gap: 16px;
  }

  .client-preview-header__actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-end;
  }

  .client-preview-close {
    grid-column: 3;
    grid-row: 1;
  }

  .client-preview-overview {
    grid-template-columns: 1fr;
  }

  .client-preview-overview > div:first-child {
    border-right: 0;
    border-bottom: 1px solid #e6e6e6;
    padding: 0 0 16px;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .client-preview-header {
    grid-template-columns: minmax(220px, 1fr) minmax(190px, 0.8fr) 44px;
  }

  .client-preview-brand span {
    display: none;
  }

  .client-preview-brand img {
    height: 38px;
    max-width: 230px;
  }

  .client-preview-section-card {
    grid-template-columns: 76px minmax(0, 1fr) 28px;
  }

  .client-preview-section-card img {
    width: 76px;
    height: 58px;
  }

  .client-preview-section-card__values {
    grid-column: 2 / -1;
  }
}

@media (max-width: 767px) {
  .client-preview-modal__dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .client-preview-header {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 12px;
    padding: 12px 16px;
  }

  .client-preview-brand img {
    height: 36px;
    max-width: 190px;
  }

  .client-preview-brand span {
    display: none;
  }

  .client-preview-project {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .client-preview-project h2 {
    font-size: 18px;
  }

  .client-preview-close {
    grid-column: 2;
    grid-row: 1;
  }

  .client-preview-header__actions {
    position: fixed;
    z-index: 8;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid #e6e6e6;
    background: #fff;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }

  .client-preview-pdf {
    grid-column: 1 / -1;
  }

  .client-preview-button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
  }

  .client-preview-scroll {
    padding: 14px 12px 134px;
  }

  .client-preview-directions {
    margin-inline: -12px;
    padding: 0 12px 12px;
  }

  .client-preview-overview {
    gap: 16px;
    padding: 16px;
  }

  .client-preview-overview h3 {
    font-size: 24px;
  }

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

  .client-preview-totals div,
  .client-preview-totals div:first-child {
    border: 0;
    border-top: 1px solid #e6e6e6;
    padding: 12px 8px;
  }

  .client-preview-totals div:nth-child(odd) {
    border-right: 1px solid #e6e6e6;
  }

  .client-preview-totals dd {
    font-size: 16px;
  }

  .client-preview-section-card {
    grid-template-columns: 68px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 9px 10px 10px 9px;
  }

  .client-preview-section-card img {
    width: 68px;
    height: 54px;
  }

  .client-preview-section-card__copy strong {
    font-size: 14px;
  }

  .client-preview-section-card__values {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #efedeb;
    padding-top: 9px;
  }

  .client-preview-section-card__values > strong {
    grid-column: 1 / -1;
    text-align: left;
  }

  .client-preview-table-scroll {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .client-preview-table {
    min-width: 0;
    border-collapse: separate;
  }

  .client-preview-table thead {
    display: none;
  }

  .client-preview-table tbody {
    display: grid;
    gap: 10px;
  }

  .client-preview-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    background: #fff;
  }

  .client-preview-table td,
  .client-preview-table td:nth-child(3),
  .client-preview-table td:nth-child(5),
  .client-preview-table td:nth-child(6) {
    display: grid;
    min-width: 0;
    gap: 5px;
    border-bottom: 1px solid #efedeb;
    padding: 11px 12px;
    text-align: left;
  }

  .client-preview-table td::before {
    color: #88827c;
    content: attr(data-label);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }

  .client-preview-table td:first-child,
  .client-preview-table td:last-child {
    grid-column: 1 / -1;
  }

  .client-preview-table td:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .client-preview-product {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .client-preview-product img {
    width: 72px;
    height: 58px;
  }

  .client-preview-product b {
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .client-preview-header__actions {
    grid-template-columns: 1fr;
  }

  .client-preview-scroll {
    padding-bottom: 188px;
  }

  .client-preview-table tr {
    grid-template-columns: 1fr;
  }

  .client-preview-table td:first-child,
  .client-preview-table td:last-child {
    grid-column: 1;
  }

  .client-preview-table td:nth-last-child(-n+2) {
    border-bottom: 1px solid #efedeb;
  }

  .client-preview-table td:last-child {
    border-bottom: 0;
  }
}

/* Project cart: incoming selections from DD storefronts */
.cart-page .store-selections {
  overflow: hidden;
}

.cart-page .store-selections__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ece8e6;
  padding: 20px;
}

.cart-page .store-selections__header > div {
  min-width: 0;
}

.cart-page .store-selections__header span:first-child {
  display: block;
  margin-bottom: 5px;
  color: #b22222;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cart-page .store-selections__header h2 {
  margin: 0;
}

.cart-page .store-selections__header p {
  margin: 5px 0 0;
  color: #77716c;
  font-size: 12px;
  line-height: 1.45;
}

.cart-page .store-selections__account {
  flex: 0 0 auto;
  border: 1px solid #eadfdd;
  border-radius: 6px;
  background: #faf7f6;
  padding: 7px 9px;
  color: #6f6964;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-page .store-selections__content {
  display: grid;
  gap: 16px;
  padding: 16px 20px 20px;
}

.cart-page .store-selections__state,
.cart-page .store-selections__empty {
  margin: 0;
  color: #77716c;
  font-size: 12px;
  line-height: 1.5;
}

.cart-page .store-selections__empty {
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: 8px 0;
}

.cart-page .store-selections__empty strong {
  color: #2b2b2a;
  font-size: 14px;
}

.cart-page .store-selections__empty p {
  margin: 0 0 4px;
}

.cart-page .store-selection-group {
  min-width: 0;
  border: 1px solid #e8e5e3;
  border-radius: 8px;
  background: #fff;
}

.cart-page .store-selection-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ece8e6;
  padding: 11px 14px;
  color: #77716c;
  font-size: 11px;
  font-weight: 650;
}

.cart-page .store-selection-group > header > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.cart-page .store-selection-group > header strong {
  color: #2b2b2a;
  font-size: 13px;
}

.cart-page .store-selection-group > header small {
  color: #8d8782;
  font-size: 10px;
}

.cart-page .store-selection-group > div {
  display: grid;
}

.cart-page .store-selection-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(220px, 1.65fr) 92px 112px 100px minmax(196px, auto);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.cart-page .store-selection-item + .store-selection-item {
  border-top: 1px solid #efedeb;
}

.cart-page .store-selection-product {
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.cart-page .store-selection-product img {
  width: 58px;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.cart-page .store-selection-product > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.cart-page .store-selection-product strong {
  overflow: hidden;
  color: #2b2b2a;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-page .store-selection-product small,
.cart-page .store-selection-quantity > span:first-child,
.cart-page .store-selection-price > span {
  color: #88827d;
  font-size: 9px;
  line-height: 1.35;
}

.cart-page .store-selection-product a {
  width: fit-content;
  color: #b22222;
  font-size: 9px;
  font-weight: 700;
  text-decoration: none;
}

.cart-page .store-selection-product a:hover,
.cart-page .store-selection-product a:focus-visible {
  color: #8f1a1a;
  text-decoration: underline;
}

.cart-page .store-selection-quantity,
.cart-page .store-selection-price {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.cart-page .store-selection-price strong {
  color: #2b2b2a;
  font-size: 12px;
  white-space: nowrap;
}

.cart-page .store-selection-status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border: 1px solid #e0ddda;
  border-radius: 6px;
  background: #f7f6f5;
  padding: 4px 7px;
  color: #6f6964;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-page .store-selection-status--selected {
  border-color: #cfe0ef;
  background: #f2f8fc;
  color: #3b6e91;
}

.cart-page .store-selection-status--approved,
.cart-page .store-selection-status--ordered {
  border-color: #d2e8d5;
  background: #f2faf3;
  color: #31753a;
}

.cart-page .store-selection-status--ordered {
  color: #526d35;
}

.cart-page .store-selection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.cart-page .store-selection-actions button {
  min-height: 30px;
  border: 1px solid #dedad7;
  border-radius: 6px;
  background: #fff;
  padding: 5px 8px;
  color: #4f4b48;
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.cart-page .store-selection-actions button:hover,
.cart-page .store-selection-actions button:focus-visible {
  border-color: rgba(178, 34, 34, 0.48);
  color: #b22222;
}

.cart-page .store-selection-actions button:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.16);
  outline-offset: 2px;
}

.cart-page .store-selection-actions button:disabled {
  cursor: default;
  opacity: 0.5;
}

@media (max-width: 1520px) {
  .cart-page .store-selection-item {
    grid-template-columns: minmax(220px, 1fr) 92px 108px 100px;
  }

  .cart-page .store-selection-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 68px;
  }
}

@media (max-width: 1020px) {
  .cart-page .store-selection-item {
    grid-template-columns: minmax(210px, 1fr) 96px 112px 100px;
  }
}

@media (max-width: 760px) {
  .cart-page .store-selections__header {
    display: grid;
    gap: 12px;
    padding: 18px 16px;
  }

  .cart-page .store-selections__account {
    justify-self: start;
  }

  .cart-page .store-selections__content {
    padding: 14px 16px 18px;
  }

  .cart-page .store-selection-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .cart-page .store-selection-product,
  .cart-page .store-selection-actions {
    grid-column: 1 / -1;
  }

  .cart-page .store-selection-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
  }

  .cart-page .store-selection-actions button {
    white-space: normal;
  }

  .cart-page .store-selection-actions button:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .cart-page .store-selection-group > header {
    align-items: flex-start;
  }

  .cart-page .store-selection-group > header > span:first-child {
    display: grid;
    gap: 2px;
  }

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

  .cart-page .store-selection-product,
  .cart-page .store-selection-actions {
    grid-column: auto;
  }

  .cart-page .store-selection-actions {
    grid-template-columns: 1fr;
  }

  .cart-page .store-selection-actions button:last-child {
    grid-column: auto;
  }
}

/* Project specification export */
.cart-page .cart-excel-export {
  position: relative;
  min-width: 168px;
  justify-content: center;
}

.cart-page .cart-excel-export__spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid rgba(43, 43, 42, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: cart-excel-export-spin 0.75s linear infinite;
}

.cart-page .cart-excel-export__spinner[hidden] {
  display: none;
}

.cart-page .cart-excel-export.is-loading,
.cart-page .cart-excel-export:disabled {
  cursor: progress;
  opacity: 0.72;
}

@keyframes cart-excel-export-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(var(--page-max), calc(100% - 28px));
  }

  .brand img {
    height: 34px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-image {
    height: 250px;
  }

  .hero-actions {
    max-width: none;
  }

  .access-form {
    padding: 18px;
  }

  .access-heading h2 {
    font-size: 32px;
  }

  .access-radio-grid label {
    padding: 11px 12px;
  }

  .process-preview {
    border-radius: 14px;
    padding: 16px;
  }

  .process-card {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 14px;
  }

  .process-card__number {
    width: 26px;
    height: 26px;
  }

  .process-card__icon {
    width: 30px;
    height: 30px;
  }

  .process-support {
    gap: 10px;
    padding: 14px;
  }

  .process-support__icon {
    width: 28px;
    height: 28px;
  }

  .workspace-preview__topline {
    display: grid;
    gap: 6px;
  }

  .workspace-preview__content,
  .workspace-preview__summary {
    padding: 16px;
  }

  .direction-card,
  .direction-card-wide {
    min-height: 168px;
  }

  .direction-mark {
    width: 22px;
    height: 22px;
    margin-right: 6px;
  }
}

@media (max-width: 1180px) {
  .ddprofi-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 1024px) {
  .content-page {
    width: min(1180px, calc(100% - 48px));
  }

  .delivery-highlights {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .content-page {
    width: min(1180px, calc(100% - 32px));
    padding: 34px 0 54px;
  }

  .delivery-hero {
    padding-top: 12px;
  }

  .delivery-intro p,
  .delivery-content p,
  .delivery-content li {
    font-size: 16px;
  }

  .delivery-content h2 {
    font-size: 24px;
  }

  .ecosystem-grid,
  .ddprofi-footer__ecosystem-list {
    grid-template-columns: 1fr;
  }

  .legal-panel {
    padding: 24px 20px;
  }

  .legal-tab {
    width: 100%;
    justify-content: center;
  }

  .ddprofi-footer__inner {
    padding: 36px 0 42px;
  }

  .ddprofi-footer__logo {
    gap: 21px;
    max-width: 247px;
  }

  .ddprofi-footer__logo img {
    height: 38px;
  }

  .ddprofi-footer__logo-name {
    font-size: 18px;
  }

  .ddprofi-footer__logo-tagline {
    font-size: 5px;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 390px) {
  .ddprofi-footer__logo {
    gap: 18px;
    max-width: 221px;
  }

  .ddprofi-footer__logo img {
    height: 34px;
  }

  .ddprofi-footer__logo-name {
    font-size: 16px;
  }

  .ddprofi-footer__logo-tagline {
    font-size: 5px;
    letter-spacing: 0.05em;
  }
}

/* Account overview */

.account-page {
  --account-pad: clamp(20px, 1.9vw, 34px);
  --account-sidebar: 210px;
  --account-rail: 300px;
  background: #f7f7f6;
  color: var(--graphite);
}

.account-page h1,
.account-page h2,
.account-page h3,
.account-page p {
  overflow-wrap: normal;
}

.account-header {
  position: sticky;
  z-index: 60;
  top: 0;
  display: grid;
  min-height: 68px;
  grid-template-columns: minmax(250px, 340px) minmax(240px, 720px) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  padding: 0 var(--account-pad);
  backdrop-filter: blur(14px);
}

.account-header__brand {
  display: inline-flex;
  width: fit-content;
  min-width: 0;
  align-items: center;
}

.account-header__brand img {
  width: auto;
  height: 42px;
}

.account-search {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  border: 1px solid #dedbd8;
  border-radius: 8px;
  background: var(--white);
}

.account-search input {
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--graphite);
  padding: 0 16px;
  font: inherit;
  font-size: 14px;
}

.account-search input::placeholder {
  color: #8a8580;
}

.account-search button {
  position: relative;
  width: 44px;
  height: 42px;
  background: transparent;
}

.account-search__icon {
  position: absolute;
  top: 11px;
  left: 10px;
  width: 16px;
  height: 16px;
  border: 2px solid #5b5b58;
  border-radius: 50%;
}

.account-search__icon::after {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  background: #5b5b58;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.account-header__actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.account-tool {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--white);
}

.account-tool:hover,
.account-tool:focus-visible {
  border-color: rgba(178, 34, 34, 0.28);
  background: #fff8f8;
}

.account-tool::before,
.account-tool::after,
.account-user__avatar::before,
.account-user__avatar::after {
  position: absolute;
  content: "";
}

.account-tool--bell::before {
  top: 8px;
  left: 10px;
  width: 14px;
  height: 15px;
  border: 2px solid var(--graphite);
  border-bottom: 0;
  border-radius: 10px 10px 4px 4px;
}

.account-tool--bell::after {
  bottom: 8px;
  left: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--graphite);
}

.account-tool--send::before {
  top: 10px;
  left: 8px;
  width: 17px;
  height: 17px;
  border-top: 2px solid var(--graphite);
  border-right: 2px solid var(--graphite);
  transform: skew(-16deg) rotate(26deg);
}

.account-tool__badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  min-width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.account-user {
  display: grid;
  grid-template-columns: 34px minmax(0, auto) 12px;
  gap: 10px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.account-user__avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border: 1px solid #d8d4d0;
  border-radius: 50%;
}

.account-user__avatar::before {
  top: 8px;
  left: 12px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--graphite);
  border-radius: 50%;
}

.account-user__avatar::after {
  right: 8px;
  bottom: 7px;
  left: 8px;
  height: 8px;
  border: 2px solid var(--graphite);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.account-user__text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.account-user__text strong {
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.account-user__text span {
  color: #77716c;
  font-size: 12px;
  font-weight: 600;
}

.account-user__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--graphite);
  border-bottom: 2px solid var(--graphite);
  transform: rotate(45deg) translateY(-2px);
}

.account-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.account-mobile-toggle span:not(.visually-hidden) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--graphite);
}

.account-layout {
  display: grid;
  grid-template-columns: var(--account-sidebar) minmax(0, 1fr) var(--account-rail);
  gap: 28px;
  align-items: start;
  padding: 28px var(--account-pad) 24px;
}

.account-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  min-height: calc(100vh - 124px);
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}

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

.account-nav {
  display: grid;
  gap: 4px;
}

.account-nav__item {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  color: #4f4f4b;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
}

.account-nav__item.is-active {
  background: #f6f1ef;
  color: var(--red);
}

.account-nav__item.is-active::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 3px;
  background: var(--red);
  content: "";
}

.account-nav__item:hover {
  background: #faf8f7;
  color: var(--red);
}

.account-nav__icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.account-nav__icon::before,
.account-nav__icon::after {
  position: absolute;
  content: "";
}

.account-nav__icon--home {
  border-radius: 3px 3px 5px 5px;
  transform: translateY(2px);
}

.account-nav__icon--home::before {
  top: -7px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-top: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.account-nav__icon--folder::before {
  top: -5px;
  left: 1px;
  width: 8px;
  height: 5px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}

.account-nav__icon--cart {
  border-top: 0;
  border-radius: 2px 2px 5px 5px;
}

.account-nav__icon--cart::before {
  top: -5px;
  left: -2px;
  width: 7px;
  height: 7px;
  border-top: 1.8px solid currentColor;
  border-left: 1.8px solid currentColor;
}

.account-nav__icon--user {
  border-radius: 50%;
}

.account-nav__icon--box {
  transform: rotate(45deg);
}

.account-nav__icon--bonus {
  border-radius: 50%;
}

.account-nav__icon--settings {
  border-radius: 50%;
}

.account-help {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px;
  padding: 14px;
}

.account-help__icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--graphite);
  border-radius: 50%;
}

.account-help strong {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.account-help p {
  margin: 0;
  color: #77716c;
  font-size: 12px;
  line-height: 1.35;
}

.account-logout {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbd8;
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.account-logout:hover,
.account-logout:focus-visible {
  border-color: #c9c4bf;
  background: #f7f7f5;
  color: var(--graphite);
}

.account-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.account-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-intro__copy h1 {
  margin: 0 0 8px;
  color: var(--graphite);
  font-size: clamp(34px, 2.15vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

.account-intro__copy p {
  margin: 0 0 14px;
  color: #5f5a56;
  font-size: 16px;
  line-height: 1.4;
}

.account-intro__copy > span {
  color: var(--graphite);
  font-size: 14px;
  font-weight: 600;
}

.account-status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-card,
.account-status-card,
.account-kpi,
.account-table-card,
.account-rail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.account-status-card {
  position: relative;
  min-height: 112px;
  padding: 18px 54px 18px 20px;
}

.account-status-card--payments {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 18px 20px;
  text-align: center;
}

.account-status-card p,
.account-kpi p {
  margin: 0 0 8px;
  color: #69645f;
  font-size: 13px;
  line-height: 1.25;
}

.account-status-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.account-status-card--payments strong {
  white-space: nowrap;
}

.account-status-card > span:not(.account-status-card__icon) {
  color: #7d7772;
  font-size: 13px;
  font-weight: 600;
}

.account-status-card__icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  border: 2px solid var(--red);
  border-radius: 8px;
}

.account-status-card__icon::before,
.account-status-card__icon::after {
  position: absolute;
  content: "";
}

.account-status-card__icon--medal {
  border-radius: 50%;
}

.account-status-card__icon--medal::before {
  top: 7px;
  left: 7px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--red);
  border-radius: 50%;
}

.account-status-card__icon--medal::after {
  right: 4px;
  bottom: -8px;
  left: 4px;
  height: 10px;
  border-right: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

.account-status-card__icon--wallet::before {
  top: 6px;
  right: -5px;
  width: 14px;
  height: 10px;
  border: 2px solid var(--red);
  border-radius: 4px;
  background: var(--white);
}

.account-status-card__icon--wallet::after {
  top: 10px;
  right: -1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
}

.account-attention {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.account-attention h2 {
  display: flex;
  min-height: 96px;
  align-items: center;
  border-right: 1px solid var(--line);
  margin: 0;
  padding: 0 20px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 800;
}

.account-attention__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.attention-item {
  display: grid;
  min-height: 96px;
  grid-template-columns: 32px minmax(0, auto) 1fr;
  gap: 8px 12px;
  align-content: center;
  border-right: 1px solid var(--line);
  padding: 16px;
}

.attention-item:last-child {
  border-right: 0;
}

.account-kpi__icon,
.activity-icon {
  position: relative;
  width: 24px;
  height: 24px;
  border: 2px solid var(--red);
  border-radius: 5px;
}

.attention-item strong {
  color: var(--graphite);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.attention-item span {
  color: #47423e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.attention-item b {
  grid-column: 2 / -1;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.attention-item b::after,
.table-action::after,
.account-directions-list a::after {
  margin-left: 7px;
  content: "→";
}

.attention-item:hover,
.attention-item:focus-visible {
  background: #fff8f8;
}

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

.account-kpi {
  position: relative;
  min-height: 88px;
  padding: 16px 18px 14px 54px;
}

.account-kpi__icon {
  position: absolute;
  top: 16px;
  left: 18px;
  border-color: #4a4a47;
}

.account-kpi strong {
  display: block;
  color: var(--graphite);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.account-kpi > span:not(.account-kpi__icon) {
  display: block;
  margin-top: 6px;
  color: #7c7670;
  font-size: 12px;
  font-weight: 600;
}

.account-table-card {
  min-width: 0;
  overflow: hidden;
}

.account-table-card__head {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}

.account-table-card__head h2 {
  margin: 0;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 800;
}

.account-filters {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.account-filters label,
.account-filters button {
  min-width: 0;
}

.account-filters input,
.account-filters select,
.account-filters button {
  height: 34px;
  border: 1px solid #dedbd8;
  border-radius: 6px;
  background: var(--white);
  color: #625d58;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.account-filters input {
  width: 230px;
}

.account-filters select {
  width: 128px;
}

.account-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.account-table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
}

.account-projects .account-table {
  min-width: 760px;
  table-layout: fixed;
}

.account-projects .account-table th:nth-child(1) {
  width: 34%;
}

.account-projects .account-table th:nth-child(2) {
  width: 16%;
}

.account-projects .account-table th:nth-child(3) {
  width: 14%;
}

.account-projects .account-table th:nth-child(4) {
  width: 10%;
}

.account-projects .account-table th:nth-child(5) {
  width: 16%;
}

.account-projects .account-table th:nth-child(6) {
  width: 10%;
}

.account-table th,
.account-table td {
  border-bottom: 1px solid #ece8e6;
  padding: 10px 12px;
  color: #3d3936;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
}

.account-table th {
  color: #68625d;
  font-size: 12px;
  font-weight: 800;
}

.account-table tbody tr {
  transition: background-color 140ms ease;
}

.account-table tbody tr:hover {
  background: #fff8f8;
}

.account-projects .account-table tbody tr {
  cursor: pointer;
}

.account-projects .account-table tbody tr:focus-visible {
  background: #fff8f8;
  outline: 2px solid rgba(178, 34, 34, 0.24);
  outline-offset: -2px;
}

.account-projects .account-table tbody tr:hover .project-cell--link,
.account-projects .account-table tbody tr:focus-visible .project-cell--link {
  color: var(--red);
}

.account-projects .account-table th:nth-child(2),
.account-projects .account-table th:nth-child(3),
.account-projects .account-table th:nth-child(4),
.account-projects .account-table th:nth-child(5),
.account-projects .account-table th:nth-child(6),
.account-projects .account-table td:nth-child(2),
.account-projects .account-table td:nth-child(3),
.account-projects .account-table td:nth-child(4),
.account-projects .account-table td:nth-child(5),
.account-projects .account-table td:nth-child(6) {
  white-space: nowrap;
}

.account-projects .account-table tr {
  height: 68px;
}

.account-projects .account-table th,
.account-projects .account-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.account-projects .project-cell {
  min-width: 0;
  max-width: 100%;
  gap: 16px;
}

.account-projects .project-cell__name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-projects .project-thumb {
  width: 72px;
  height: 48px;
  border-radius: 7px;
}

.account-projects .status-badge {
  width: 100%;
  min-width: 0;
  justify-content: center;
  padding-right: 6px;
  padding-left: 6px;
}

.project-cell {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 10px;
  color: var(--graphite);
  font-weight: 800;
}

.project-thumb {
  display: block;
  width: 54px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 4px;
  background: #ddd6cf center / cover no-repeat;
}

.project-thumb--loft,
.project-thumb--office {
  background-image: url("./assets/directions/direction-tech.png");
}

.project-thumb--villa {
  background-image: url("./assets/directions/direction-light.png");
}

.project-thumb--flat {
  background-image: url("./assets/directions/direction-santehnika.png");
}

.project-thumb--house {
  background-image: url("./assets/directions/direction-tile.png");
}

.project-thumb--barnaul {
  background-image: url("./assets/directions/direction-floor.png");
}

.status-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status-badge--active {
  border-color: #cfe4cf;
  background: #f0f8ef;
  color: #3d7b3f;
}

.status-badge--completion {
  border-color: #cfe4cf;
  background: #f0f8ef;
  color: #3d7b3f;
}

.status-badge--review,
.status-badge--forming {
  border-color: #d4e5f4;
  background: #f2f8fd;
  color: #4b7090;
}

.status-badge--delivery {
  border-color: #e6d7ef;
  background: #f8f1fb;
  color: #7a5792;
}

.status-badge--done {
  border-color: #dfdfdf;
  background: #f5f5f5;
  color: #77716c;
}

.status-badge--transit {
  border-color: #eadfc6;
  background: #fbf4e6;
  color: #a16a20;
}

.status-badge--arrived {
  border-color: #cfe4cf;
  background: #f0f8ef;
  color: #3d7b3f;
}

.table-action {
  color: #47423e;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.account-table tbody tr:hover .table-action {
  color: var(--red);
}

.account-orders .account-table {
  min-width: 760px;
}

.document-link {
  position: relative;
  display: inline-flex;
  width: 20px;
  height: 24px;
  border: 2px solid #67625e;
  border-radius: 3px;
}

.document-link::before {
  position: absolute;
  top: 3px;
  right: 3px;
  left: 3px;
  height: 2px;
  background: #67625e;
  box-shadow: 0 5px 0 #67625e, 0 10px 0 #67625e;
  content: "";
}

.account-rail {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.account-create-button {
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 26, 26, 0.25);
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  padding: 0 22px;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  transition: background-color 160ms ease;
}

.account-create-button:hover,
.account-create-button:focus-visible {
  background: var(--red-dark);
}

.account-rail-card {
  padding: 16px;
}

.account-rail-card h2 {
  margin: 0 0 5px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 800;
}

.account-rail-card p {
  margin: 0 0 12px;
  color: #77716c;
  font-size: 12px;
}

.account-directions-list {
  display: grid;
}

.account-directions-list a {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #ece8e6;
  padding: 9px 0;
}

.account-directions-list img {
  width: 54px;
  height: 34px;
  border-radius: 3px;
  object-fit: cover;
}

.account-directions-list span {
  display: grid;
  min-width: 0;
}

.account-directions-list strong {
  overflow: hidden;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-directions-list small {
  color: #77716c;
  font-size: 11px;
  font-weight: 600;
}

.account-directions-list a::after {
  color: #9a948e;
}

.account-directions-list a:hover strong,
.account-directions-list a:hover::after {
  color: var(--red);
}

.account-activity ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-activity li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px 10px;
  border-top: 1px solid #ece8e6;
  padding: 12px 0;
}

.account-activity .activity-icon {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  border-width: 1.8px;
  border-radius: 50%;
}

.account-activity strong {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.account-activity small {
  color: #88827c;
  font-size: 11px;
  font-weight: 600;
}

.account-quick-start__list {
  display: grid;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.account-quick-start__list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 4px 12px;
  border-top: 1px solid #ece8e6;
  padding: 12px 0;
}

.account-quick-start__list span {
  grid-row: span 2;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.account-quick-start__list strong {
  color: var(--graphite);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.account-quick-start__list p {
  margin: 0;
  color: #77716c;
  font-size: 12px;
  line-height: 1.35;
}

.account-quick-start__link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
}

.account-quick-start__link:hover,
.account-quick-start__link:focus-visible {
  color: var(--red-dark);
}

.account-footer {
  display: grid;
  grid-template-columns: minmax(250px, 0.85fr) minmax(170px, 0.45fr) minmax(520px, 1.2fr);
  gap: 48px;
  background: #242423;
  color: var(--white);
  padding: 34px var(--account-pad) 38px;
}

.account-footer__brand,
.account-footer__nav,
.account-footer__ecosystem,
.account-footer__ecosystem div {
  display: grid;
  align-content: start;
}

.account-footer__brand {
  gap: 14px;
}

.account-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
}

.account-footer__logo img {
  width: auto;
  height: 42px;
}

.account-footer__logo span {
  display: grid;
  gap: 3px;
}

.account-footer__logo strong {
  color: #f5f5f3;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.account-footer__logo small {
  color: #c9c9c9;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
}

.account-footer p {
  max-width: 360px;
  margin: 0;
  color: #c9c9c9;
  font-size: 13px;
  line-height: 1.55;
}

.account-footer a {
  color: #c9c9c9;
  font-size: 13px;
  font-weight: 600;
}

.account-footer__brand > a:not(.account-footer__logo) {
  color: var(--white);
}

.account-footer__nav,
.account-footer__ecosystem {
  gap: 9px;
}

.account-footer__nav h2,
.account-footer__ecosystem h2 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.account-footer__ecosystem div {
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 8px 28px;
}

.account-footer a:hover {
  color: var(--white);
}

.project-cell--link {
  color: var(--graphite);
  transition: color 140ms ease;
}

.project-cell--link:hover,
.project-cell--link:focus-visible {
  color: var(--red);
}

.cart-page {
  background: #f7f7f5;
}

.cart-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cart-main {
  width: min(100%, 1840px);
  margin: 0 auto;
  padding: 26px 40px 32px;
}

.cart-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(660px, 760px);
  gap: 22px;
  align-items: start;
  margin-bottom: 16px;
}

.cart-back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  color: #77716c;
  font-size: 13px;
  font-weight: 700;
}

.cart-back-link:hover {
  color: var(--red);
}

.cart-hero h1 {
  margin: 0 0 7px;
  color: var(--graphite);
  font-size: clamp(32px, 2.25vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.cart-hero p {
  margin: 0 0 8px;
  color: var(--graphite);
  font-size: 17px;
  font-weight: 700;
}

.cart-hero__copy > span {
  color: #5f5b56;
  font-size: 14px;
  font-weight: 600;
}

.cart-hero__cards {
  display: grid;
  grid-template-columns: minmax(265px, 1.25fr) minmax(200px, 0.95fr) minmax(160px, 0.8fr);
  gap: 12px;
}

.cart-card,
.cart-stat-card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: var(--white);
}

.cart-stat-card {
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
}

.cart-stat-card .cart-icon {
  width: 22px;
  height: 22px;
  color: #5f5b56;
}

.cart-stat-card > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.cart-stat-card p,
.cart-stat-card strong {
  min-width: 0;
}

.cart-stat-card p {
  margin: 0;
  color: #77716c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.cart-stat-card strong {
  color: var(--graphite);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.18;
  white-space: nowrap;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 20px 300px;
}

.cart-outline-button,
.cart-primary-button,
.cart-table-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbd8;
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.cart-outline-button {
  gap: 8px;
}

.cart-outline-button .cart-icon {
  width: 17px;
  height: 17px;
  color: currentColor;
}

.cart-outline-button:hover,
.cart-outline-button:focus-visible,
.cart-table-action:hover,
.cart-table-action:focus-visible {
  border-color: rgba(178, 34, 34, 0.35);
  background: #fff8f8;
  color: var(--red);
}

.cart-primary-button {
  width: 100%;
  min-height: 44px;
  border-color: rgba(143, 26, 26, 0.25);
  background: var(--red);
  color: var(--white);
}

.cart-primary-button:hover,
.cart-primary-button:focus-visible {
  background: var(--red-dark);
}

.cart-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

.cart-left,
.cart-center,
.cart-right__sticky {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.cart-card {
  min-width: 0;
  padding: 18px;
}

.cart-card h2 {
  margin: 0 0 6px;
  color: var(--graphite);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.16;
}

.cart-card > p {
  margin: 0 0 14px;
  color: #77716c;
  font-size: 13px;
  font-weight: 600;
}

.cart-progress {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.cart-progress div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f5b56;
  font-size: 13px;
  font-weight: 700;
}

.cart-progress strong {
  color: var(--red);
}

.cart-progress__bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #ece8e6;
}

.cart-progress__bar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.cart-progress small {
  color: #77716c;
  font-size: 12px;
  font-weight: 700;
}

.cart-progress__budget {
  white-space: nowrap;
}

.project-structure-list {
  display: grid;
  border-top: 1px solid #ece8e6;
  padding-top: 6px;
}

.project-structure-list a {
  position: relative;
  display: grid;
  min-height: 38px;
  grid-template-columns: minmax(0, 1fr) 28px 88px;
  gap: 7px;
  align-items: center;
  border-radius: 5px;
  padding: 7px 8px 7px 12px;
  color: var(--graphite);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.18;
}

.project-structure-list a.is-active {
  background: #faf6f4;
}

.project-structure-list a.is-active::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--red);
  content: "";
}

.project-structure-list span {
  min-width: 0;
  white-space: normal;
}

.project-structure-list strong {
  color: #5f5b56;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cart-badge,
.cart-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 22px;
  padding: 3px 7px;
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.project-structure-list .cart-badge {
  width: 88px;
  padding-right: 4px;
  padding-left: 4px;
  font-size: 9px;
}

.cart-badge--neutral {
  border-color: #dedbd8;
  color: #5f5b56;
}

.cart-badge--ready,
.cart-status--ready {
  border-color: #dceadf;
  background: #f5fbf6;
  color: #2f7b46;
}

.cart-badge--issued,
.cart-badge--work {
  border-color: #eaded7;
  background: #fbf7f4;
  color: #705244;
}

.client-link-card {
  gap: 12px;
}

.client-link-card p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: var(--graphite);
  font-weight: 700;
}

.client-link-card small {
  color: #77716c;
  font-size: 12px;
  font-weight: 600;
}

.client-link-card .cart-outline-button {
  width: fit-content;
  margin-top: 6px;
}

.cart-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.cart-dot--ready {
  background: #2f9c4f;
}

.cart-products-card {
  overflow: hidden;
  padding: 0;
}

.cart-products-head {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(620px, 720px);
  gap: 16px;
  align-items: start;
  padding: 18px 20px 14px;
}

.cart-products-head h2 {
  margin: 0 0 6px;
  color: var(--graphite);
  font-size: 20px;
  font-weight: 800;
}

.cart-products-head p {
  margin: 0;
  color: #77716c;
  font-size: 13px;
  font-weight: 600;
}

.cart-products-controls {
  display: grid;
  min-width: 0;
  justify-self: end;
  width: min(100%, 720px);
  gap: 8px;
}

.cart-products-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 142px;
  gap: 10px;
}

.cart-product-search {
  min-width: 0;
}

.cart-product-select {
  min-width: 0;
}

.cart-product-search input,
.cart-product-select select {
  width: 100%;
  height: 36px;
  border: 1px solid #dedbd8;
  border-radius: 5px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.cart-product-search input::placeholder {
  color: #9a948e;
}

.cart-product-select select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #77716c 50%),
    linear-gradient(135deg, #77716c 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 34px;
}

.cart-bulk-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #fffdfc;
  padding: 10px 20px;
}

.cart-bulk-panel[hidden] {
  display: none;
}

.cart-bulk-panel strong {
  margin-right: 6px;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
}

.cart-bulk-panel .cart-outline-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.cart-table-scroll {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-color: #d8d2cd transparent;
  scrollbar-width: thin;
}

.cart-products-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  color: var(--graphite);
  table-layout: fixed;
}

.cart-products-table__select {
  width: 32px;
}

.cart-products-table__product {
  width: 25%;
}

.cart-products-table__room {
  width: 11%;
}

.cart-products-table__qty {
  width: 68px;
}

.cart-products-table__availability {
  width: 80px;
}

.cart-products-table__client-price {
  width: 112px;
}

.cart-products-table__sum {
  width: 88px;
}

.cart-products-table__status {
  width: 106px;
}

.cart-products-table th {
  background: #fbfaf9;
  color: #4d4945;
  padding: 11px 8px;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.cart-products-table td {
  border-top: 1px solid #ece8e6;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.cart-products-table tbody tr {
  transition: background-color 140ms ease;
}

.cart-products-table tbody tr:hover {
  background: #fffdfc;
}

.cart-products-table th:nth-child(6),
.cart-products-table th:nth-child(7),
.cart-products-table td:nth-child(6),
.cart-products-table td:nth-child(7) {
  color: var(--graphite);
  font-weight: 760;
  text-align: right;
}

.cart-products-table th:nth-child(4),
.cart-products-table td:nth-child(4),
.cart-products-table th:nth-child(8),
.cart-products-table td:nth-child(8) {
  text-align: center;
}

.cart-products-table td:nth-child(6),
.cart-products-table td:nth-child(7) {
  white-space: nowrap;
}

.cart-products-table td:nth-child(3) {
  line-height: 1.25;
  white-space: normal;
}

.cart-products-table input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--red);
}

.cart-product {
  display: grid;
  min-width: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cart-product-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border: 1px solid #e9e4df;
  border-radius: 5px;
  background-color: #f3f1ef;
  background-image: url("./assets/directions/direction-tech.png");
  background-position: center;
  background-size: cover;
}

.cart-product-thumb--dishwasher,
.cart-product-thumb--fridge {
  background-image: url("./assets/images/direction-tech.jpg");
}

.cart-product-thumb--fridge {
  background-position: 70% center;
}

.cart-product-thumb--hob {
  background-image: url("./assets/images/direction-tile.jpg");
}

.cart-product-thumb--hood {
  background-image: url("./assets/images/direction-light.jpg");
}

.cart-product-thumb--micro {
  background-image: url("./assets/images/direction-sockets.jpg");
}

.cart-product strong,
.cart-product em,
.cart-product small {
  display: block;
  min-width: 0;
}

.cart-product strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-product em {
  margin-top: 2px;
  color: var(--graphite);
  font-style: normal;
  line-height: 1.25;
}

.cart-product small,
.cart-products-table td small {
  display: block;
  margin-top: 2px;
  color: #77716c;
  font-size: 11px;
  font-weight: 600;
}

.cart-price-stack {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.cart-price-stack strong {
  color: var(--graphite);
  font-weight: 820;
  white-space: nowrap;
}

.cart-price-stack small {
  color: #827b75;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.22;
  text-align: right;
  white-space: nowrap;
}

.cart-stepper {
  display: inline-grid;
  grid-template-columns: 22px 24px 22px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dedbd8;
  border-radius: 5px;
  background: var(--white);
}

.cart-stepper button {
  height: 24px;
  background: var(--white);
  color: #77716c;
  font-size: 14px;
  font-weight: 800;
}

.cart-stepper strong {
  text-align: center;
}

.cart-availability {
  display: block;
  font-weight: 800;
  line-height: 1.2;
}

.cart-availability--ready {
  color: #2f7b46;
}

.cart-availability--reserve {
  color: #47718e;
}

.cart-availability--order {
  color: #b55a32;
}

.cart-status {
  position: relative;
  min-height: 22px;
  gap: 4px;
  padding: 3px 6px;
  font-size: 10px;
}

.cart-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.cart-status--review {
  border-color: #dbe5ed;
  background: #f6fafc;
  color: #47718e;
}

.cart-status--danger {
  border-color: #efd8d5;
  background: #fff8f7;
  color: var(--red);
}

.cart-table-action {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.cart-table-total {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(3, minmax(118px, max-content));
  gap: 14px;
  align-items: center;
  border-top: 1px solid #ece8e6;
  background: #fbfaf9;
  padding: 12px 20px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
}

.cart-table-total span {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  color: #5f5b56;
  white-space: nowrap;
}

.cart-table-total b {
  color: var(--graphite);
  white-space: nowrap;
}

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

.cart-comment-card textarea {
  display: block;
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid #dedbd8;
  border-radius: 5px;
  background: var(--white);
  color: var(--graphite);
  padding: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.cart-comment-card textarea::placeholder {
  color: #9a948e;
}

.cart-comment-card small {
  display: block;
  margin-top: 8px;
  color: #88827c;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.cart-right__sticky {
  position: sticky;
  top: 92px;
  align-content: start;
}

.cart-summary-card dl,
.cart-promo-card dl {
  display: grid;
  gap: 0;
  margin: 14px 0;
}

.cart-summary-card dl div,
.cart-promo-card dl div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  min-height: 28px;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #f0ece9;
  padding: 0 0 8px;
  color: #5f5b56;
  font-size: 13px;
  font-weight: 700;
}

.cart-summary-card dl div + div,
.cart-promo-card dl div + div {
  padding-top: 7px;
}

.cart-summary-card dl div:last-child,
.cart-promo-card dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-summary-card dt,
.cart-summary-card dd,
.cart-promo-card dt,
.cart-promo-card dd {
  margin: 0;
  line-height: 1.3;
}

.cart-summary-card dd,
.cart-promo-card dd {
  color: var(--graphite);
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.cart-summary-card .cart-outline-button {
  width: 100%;
  margin-top: 10px;
}

.cart-documents-card ul {
  display: grid;
  margin: 12px 0 12px;
  padding: 0;
  list-style: none;
}

.cart-documents-card li {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 72px 34px 24px;
  gap: 7px;
  align-items: center;
  border-bottom: 1px solid #f0ece9;
  padding: 7px 0;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 700;
}

.cart-documents-card li:first-child {
  padding-top: 0;
}

.cart-documents-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cart-documents-card time {
  color: #5f5b56;
  font-size: 11px;
}

.cart-documents-card b {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbd8;
  border-radius: 4px;
  color: #5f5b56;
  font-size: 10px;
  font-weight: 800;
}

.cart-documents-card button {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbd8;
  border-radius: 50%;
  background: var(--white);
  color: #77716c;
}

.cart-documents-card button:hover,
.cart-documents-card button:focus-visible {
  border-color: rgba(178, 34, 34, 0.35);
  color: var(--red);
}

.cart-documents-card button .cart-icon {
  width: 14px;
  height: 14px;
}

.cart-documents-card a {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.cart-promo-card > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cart-promo-card [hidden] {
  display: none !important;
}

.cart-promo-card__empty {
  margin: 16px 0 18px;
  color: #625d58;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.cart-promo-card__empty-actions {
  grid-template-columns: 1fr;
}

.cart-promo-card .cart-outline-button {
  width: 100%;
  padding: 0 10px;
}

.cart-page .account-footer {
  padding-top: 22px;
  padding-bottom: 22px;
}

.cart-icon {
  display: inline-block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

.cart-toast {
  position: fixed;
  z-index: 180;
  right: 28px;
  bottom: 28px;
  visibility: hidden;
  border: 1px solid rgba(178, 34, 34, 0.24);
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite);
  padding: 14px 18px;
  box-shadow: 0 14px 36px rgba(24, 22, 20, 0.16);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

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

.account-page.is-project-modal-open,
.account-page.is-promo-modal-open,
.account-page.is-client-send-modal-open,
.account-page.is-client-preview-open {
  overflow: hidden;
}

.project-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  visibility: hidden;
  align-items: center;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.account-page.is-project-modal-open .project-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 32, 0.58);
}

.project-modal__dialog {
  position: relative;
  display: grid;
  width: min(720px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(43, 43, 42, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(24, 22, 20, 0.18);
}

.project-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 42px 16px;
}

.project-modal__header h2 {
  margin: 0 0 6px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
}

.project-modal__header p {
  margin: 0;
  color: #5f5b56;
  font-size: 14px;
  line-height: 1.45;
}

.project-modal__close {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: transparent;
}

.project-modal__close::before,
.project-modal__close::after {
  position: absolute;
  top: 16px;
  left: 8px;
  width: 18px;
  height: 1.5px;
  background: #77716c;
  content: "";
}

.project-modal__close::before {
  transform: rotate(45deg);
}

.project-modal__close::after {
  transform: rotate(-45deg);
}

.project-modal__close:hover,
.project-modal__close:focus-visible {
  background: #faf7f5;
}

.project-form__body {
  display: grid;
  gap: 18px;
  padding: 0 42px 24px;
}

.project-form__column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  min-width: 0;
}

.project-form__column h3 {
  grid-column: 1 / -1;
  margin: 0 0 16px;
  color: var(--graphite);
  font-size: 16px;
  font-weight: 800;
}

.project-field {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
}

.project-field input,
.project-field select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.project-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #77716c 50%),
    linear-gradient(135deg, #77716c 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 17px,
    calc(100% - 12px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 34px;
}

.project-field input::placeholder {
  color: #aaa49f;
}

.project-field__meta {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #8a837d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.project-field__message {
  color: var(--red);
  text-align: right;
}

.project-field__message.is-muted {
  color: #8a837d;
}

.project-field input:focus,
.project-field select:focus {
  border-color: rgba(178, 34, 34, 0.48);
  outline: 2px solid rgba(178, 34, 34, 0.12);
  outline-offset: 0;
}

.project-after-card {
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafaf8;
  padding: 18px 20px;
}

.project-after-card h4 {
  margin: 0 0 14px;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
}

.project-after-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-after-card li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 600;
}

.project-after-card__icon {
  position: relative;
  width: 15px;
  height: 15px;
  color: var(--graphite);
}

.project-after-card__icon::before,
.project-after-card__icon::after {
  position: absolute;
  content: "";
}

.project-after-card__icon--grid::before {
  inset: 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  box-shadow: inset 0 -5px 0 transparent;
}

.project-after-card__icon--grid::after {
  top: 5px;
  left: 1px;
  width: 13px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.project-after-card__icon--box::before {
  inset: 2px 1px 1px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.project-after-card__icon--box::after {
  top: 0;
  left: 4px;
  width: 7px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.project-after-card__icon--cart::before {
  top: 2px;
  left: 1px;
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-top: 0;
  transform: skewX(-10deg);
}

.project-after-card__icon--cart::after {
  bottom: 1px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
}

.project-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 18px 42px;
}

.project-modal__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.project-modal__button {
  display: inline-flex;
  min-width: 96px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 800;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.project-modal__button--secondary {
  background: var(--white);
  color: var(--graphite);
}

.project-modal__button--primary {
  border-color: rgba(143, 26, 26, 0.25);
  background: var(--red);
  color: var(--white);
}

.project-modal__button--secondary:hover,
.project-modal__button--secondary:focus-visible {
  border-color: rgba(178, 34, 34, 0.34);
  background: #fff8f8;
  color: var(--red);
}

.project-modal__button--primary:hover,
.project-modal__button--primary:focus-visible {
  background: var(--red-dark);
}

.project-modal__button:focus,
.project-modal__close:focus {
  outline: none;
}

.project-modal__button:focus-visible,
.project-modal__close:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.24);
  outline-offset: 3px;
}

.client-send-modal {
  position: fixed;
  z-index: 128;
  inset: 0;
  display: grid;
  visibility: hidden;
  align-items: center;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.account-page.is-client-send-modal-open .client-send-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.client-send-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 32, 0.56);
}

.client-send-modal__dialog {
  position: relative;
  display: grid;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(43, 43, 42, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(24, 22, 20, 0.16);
}

.client-send-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 42px 18px;
}

.client-send-modal__header h2 {
  margin: 0 0 6px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
}

.client-send-modal__header p {
  margin: 0;
  color: #5f5b56;
  font-size: 14px;
  line-height: 1.45;
}

.client-send-modal__close {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: transparent;
}

.client-send-modal__close::before,
.client-send-modal__close::after {
  position: absolute;
  top: 16px;
  left: 8px;
  width: 18px;
  height: 1.5px;
  background: #77716c;
  content: "";
}

.client-send-modal__close::before {
  transform: rotate(45deg);
}

.client-send-modal__close::after {
  transform: rotate(-45deg);
}

.client-send-modal__close:hover,
.client-send-modal__close:focus-visible {
  background: #faf7f5;
}

.client-send-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 42px 24px;
}

.client-send-tabs button {
  min-height: 54px;
  border-bottom: 3px solid transparent;
  background: var(--white);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
}

.client-send-tabs button + button {
  border-left: 1px solid var(--line);
}

.client-send-tabs button.is-active {
  border-bottom-color: var(--red);
  color: var(--red);
}

.client-send-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  padding: 0 42px 34px;
}

.client-send-common,
.client-send-panel {
  min-width: 0;
}

.client-send-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.client-send-panel[hidden] {
  display: none;
}

.client-send-panel h3 {
  margin: 0 0 -6px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 800;
}

.client-send-panel > p {
  margin: 0;
  color: #625d58;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.client-send-field,
.client-send-choice {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
}

.client-send-field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.client-send-field input::placeholder {
  color: #9a948e;
}

.client-send-field input:focus,
.client-send-channels label:focus-within,
.client-send-options label:focus-within {
  border-color: rgba(178, 34, 34, 0.48);
  outline: 2px solid rgba(178, 34, 34, 0.12);
  outline-offset: 0;
}

.client-send-choice {
  padding: 0;
  border: 0;
}

.client-send-choice legend {
  margin: 0 0 8px;
  padding: 0;
}

.client-send-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.client-send-channels label,
.client-send-options label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

.client-send-channels input,
.client-send-options input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.client-send-channels label:has(input:checked) {
  border-color: rgba(178, 34, 34, 0.38);
  background: #fff8f8;
  color: var(--red);
}

.client-send-options {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.client-send-options label:has(input:disabled) {
  background: #faf9f8;
  color: #625d58;
}

.client-send-note {
  border: 1px solid #ece8e6;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  background: #faf9f8;
  margin: 0;
  padding: 13px 14px;
  color: #625d58;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.client-send-summary,
.client-send-export dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.client-send-summary {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #faf9f8;
  padding: 16px;
}

.client-send-summary div,
.client-send-export dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #625d58;
  font-size: 13px;
  font-weight: 650;
}

.client-send-summary dt,
.client-send-summary dd,
.client-send-export dt,
.client-send-export dd {
  margin: 0;
}

.client-send-summary dd,
.client-send-export dd {
  color: var(--graphite);
  font-weight: 800;
  text-align: right;
}

.client-send-invoice-number {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(178, 34, 34, 0.22);
  border-radius: 6px;
  background: #fffafa;
  padding: 15px 16px;
}

.client-send-invoice-number span {
  color: #625d58;
  font-size: 12px;
  font-weight: 800;
}

.client-send-invoice-number strong {
  color: var(--graphite);
  font-size: 18px;
  font-weight: 800;
}

.client-send-export {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 16px;
}

.client-send-export h4 {
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
}

.client-send-export p {
  margin: 0;
  color: #625d58;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.client-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-send-actions--invoice {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.86fr);
}

.client-send-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.client-send-button--outline {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--graphite);
}

.client-send-button--primary {
  border: 1px solid rgba(143, 26, 26, 0.25);
  background: var(--red);
  color: var(--white);
}

.client-send-button--outline:hover,
.client-send-button--outline:focus-visible {
  border-color: rgba(178, 34, 34, 0.34);
  background: #fff8f8;
  color: var(--red);
}

.client-send-button--primary:hover,
.client-send-button--primary:focus-visible {
  background: var(--red-dark);
}

.client-send-modal__close:focus,
.client-send-button:focus,
.client-send-tabs button:focus {
  outline: none;
}

.client-send-modal__close:focus-visible,
.client-send-button:focus-visible,
.client-send-tabs button:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.24);
  outline-offset: 3px;
}

.promo-modal {
  position: fixed;
  z-index: 130;
  inset: 0;
  display: grid;
  visibility: hidden;
  align-items: center;
  justify-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.account-page.is-promo-modal-open .promo-modal {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.promo-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 34, 32, 0.56);
}

.promo-modal__dialog {
  position: relative;
  display: grid;
  width: min(920px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(43, 43, 42, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(24, 22, 20, 0.16);
}

.promo-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 46px 18px;
}

.promo-modal__header h2 {
  margin: 0 0 6px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.12;
}

.promo-modal__header p {
  margin: 0;
  color: #5f5b56;
  font-size: 14px;
  line-height: 1.45;
}

.promo-modal__close {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: transparent;
}

.promo-modal__close::before,
.promo-modal__close::after {
  position: absolute;
  top: 16px;
  left: 8px;
  width: 18px;
  height: 1.5px;
  background: #77716c;
  content: "";
}

.promo-modal__close::before {
  transform: rotate(45deg);
}

.promo-modal__close::after {
  transform: rotate(-45deg);
}

.promo-modal__close:hover,
.promo-modal__close:focus-visible {
  background: #faf7f5;
}

.promo-form__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 0 46px 30px;
}

.promo-form__column {
  min-width: 0;
}

.promo-form__column--side {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}

.promo-form__column h3 {
  margin: 0 0 16px;
  color: var(--graphite);
  font-size: 16px;
  font-weight: 800;
}

.promo-static-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
}

.promo-static-field strong {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #faf9f8;
  color: var(--graphite);
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 750;
}

.promo-field {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 700;
}

.promo-field input,
.promo-field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.promo-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #77716c 50%),
    linear-gradient(135deg, #77716c 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 19px,
    calc(100% - 12px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 34px;
}

.promo-field small {
  color: #77716c;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.promo-field input[readonly] {
  background: #faf9f8;
  color: #3a3835;
  cursor: default;
}

.promo-field input:focus,
.promo-field select:focus,
.promo-copy-button:focus-visible,
.promo-stepper button:focus-visible {
  border-color: rgba(178, 34, 34, 0.48);
  outline: 2px solid rgba(178, 34, 34, 0.12);
  outline-offset: 0;
}

.promo-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
}

.promo-code-row input {
  text-transform: uppercase;
}

.promo-copy-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--graphite);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.promo-copy-button:hover,
.promo-copy-button:focus-visible {
  border-color: rgba(178, 34, 34, 0.34);
  color: var(--red);
}

.promo-error {
  min-height: 16px;
  color: var(--red);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}

.promo-generate-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(178, 34, 34, 0.34);
  border-radius: 6px;
  background: var(--white);
  color: var(--red);
  margin: 0 0 18px;
  padding: 0 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.promo-generate-button:hover,
.promo-generate-button:focus-visible {
  background: #fff8f8;
}

.promo-stepper {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px 48px;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.promo-stepper button,
.promo-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--line);
  color: var(--graphite);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.promo-stepper button:first-child {
  border-left: 0;
  border-right: 1px solid var(--line);
}

.promo-stepper button {
  background: #fbfaf9;
}

.promo-stepper button:hover,
.promo-stepper button:focus-visible {
  color: var(--red);
}

.promo-stepper input {
  height: 42px;
  border: 0;
  border-radius: 0;
  padding: 0 10px;
  text-align: center;
}

.promo-stepper input::-webkit-outer-spin-button,
.promo-stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.promo-limit-note {
  border-radius: 6px;
  background: #f7f6f5;
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #625d58;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.promo-preview {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 18px;
}

.promo-preview h4 {
  margin: 0 0 15px;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
}

.promo-preview dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.promo-preview div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #625d58;
  font-size: 13px;
  font-weight: 650;
}

.promo-preview dt,
.promo-preview dd {
  margin: 0;
}

.promo-preview dd {
  color: var(--graphite);
  font-weight: 800;
  text-align: right;
}

.promo-preview div:last-child {
  border-top: 1px solid var(--line);
  margin-top: 3px;
  padding-top: 13px;
}

.promo-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 20px 46px 28px;
}

.promo-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.promo-modal__text-button,
.promo-modal__button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 22px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.promo-modal__text-button {
  background: transparent;
  color: var(--graphite);
}

.promo-modal__text-button:hover,
.promo-modal__text-button:focus-visible {
  color: var(--red);
}

.promo-modal__button {
  min-width: 132px;
  border: 1px solid rgba(178, 34, 34, 0.38);
  background: var(--white);
  color: var(--red);
}

.promo-modal__button--primary {
  border-color: rgba(143, 26, 26, 0.25);
  background: var(--red);
  color: var(--white);
}

.promo-modal__button--outline:hover,
.promo-modal__button--outline:focus-visible,
.promo-modal__button--danger:hover,
.promo-modal__button--danger:focus-visible {
  background: #fff8f8;
}

.promo-modal__button--primary:hover,
.promo-modal__button--primary:focus-visible {
  background: var(--red-dark);
}

.promo-modal__button:focus,
.promo-modal__close:focus,
.promo-modal__text-button:focus {
  outline: none;
}

.promo-modal__button:focus-visible,
.promo-modal__close:focus-visible,
.promo-modal__text-button:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.24);
  outline-offset: 3px;
}

.project-toast {
  position: fixed;
  z-index: 130;
  right: 28px;
  bottom: 28px;
  visibility: hidden;
  border: 1px solid rgba(178, 34, 34, 0.24);
  border-radius: 8px;
  background: var(--white);
  color: var(--graphite);
  padding: 14px 18px;
  box-shadow: 0 14px 36px rgba(24, 22, 20, 0.16);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

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

@media (max-width: 1480px) {
  .account-page {
    --account-sidebar: 196px;
    --account-rail: 290px;
  }

  .account-header {
    grid-template-columns: minmax(230px, 300px) minmax(240px, 1fr) minmax(300px, auto);
  }

  .account-layout {
    gap: 20px;
  }

  .account-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .account-header {
    grid-template-columns: minmax(220px, 280px) minmax(220px, 1fr) auto;
    gap: 18px;
  }

  .account-user__text,
  .account-user__chevron {
    display: none;
  }

  .account-layout {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .account-sidebar {
    padding: 10px;
  }

  .account-nav__item {
    justify-content: center;
    padding: 0;
  }

  .account-nav__item span:not(.account-nav__icon) {
    display: none;
  }

  .account-nav__item {
    font-size: 0;
  }

  .account-help,
  .account-logout {
    display: none;
  }

  .account-rail {
    grid-column: 2;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  }

  .account-create-button {
    min-height: 58px;
  }

  .account-footer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 900px) {
  .account-header {
    grid-template-columns: minmax(190px, auto) minmax(0, 1fr) auto;
  }

  .account-header__brand img {
    height: 36px;
  }

  .account-search {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 12px;
  }

  .account-header {
    padding-top: 12px;
  }

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

  .account-mobile-toggle {
    display: inline-block;
  }

  .account-sidebar-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.2);
  }

  .account-sidebar {
    position: fixed;
    z-index: 80;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(310px, calc(100vw - 48px));
    min-height: 0;
    overflow-y: auto;
    border-radius: 0;
    padding: 18px;
    transform: translateX(-100%);
    transition: transform 180ms ease;
  }

  .account-page.is-account-sidebar-open {
    overflow: hidden;
  }

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

  .account-page.is-account-sidebar-open .account-sidebar-backdrop {
    display: block;
  }

  .account-nav__item {
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 14px;
  }

  .account-help {
    display: grid;
  }

  .account-logout {
    display: inline-flex;
  }

  .account-rail {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .account-status-cards,
  .account-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-attention {
    grid-template-columns: 1fr;
  }

  .account-attention h2 {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .account-page {
    --account-pad: 16px;
  }

  .account-header {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .account-header__actions {
    gap: 8px;
  }

  .account-tool {
    display: none;
  }

  .account-user {
    display: none;
  }

  .account-layout {
    padding-top: 20px;
  }

  .account-intro__copy h1 {
    font-size: 32px;
  }

  .account-status-cards,
  .account-kpis,
  .account-attention__grid {
    grid-template-columns: 1fr;
  }

  .attention-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .attention-item:last-child {
    border-bottom: 0;
  }

  .account-table-card__head {
    display: grid;
    align-items: start;
  }

  .account-filters {
    justify-content: stretch;
  }

  .account-filters input,
  .account-filters select,
  .account-filters label,
  .account-filters button {
    width: 100%;
  }

  .account-table-scroll {
    overflow: visible;
  }

  .account-table,
  .account-table thead,
  .account-table tbody,
  .account-table tr,
  .account-table td {
    display: block;
  }

  .account-table {
    min-width: 0;
  }

  .account-projects .account-table {
    min-width: 0;
  }

  .account-table thead {
    display: none;
  }

  .account-table tbody {
    display: grid;
    gap: 12px;
    padding: 12px;
  }

  .account-table tr {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 10px;
  }

  .account-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #f0ece9;
    padding: 9px 0;
    text-align: right;
  }

  .account-table td::before {
    flex: 0 0 auto;
    color: #77716c;
    content: attr(data-label);
    font-size: 12px;
    font-weight: 800;
    text-align: left;
  }

  .account-table td:first-child {
    display: block;
    text-align: left;
  }

  .account-table td:first-child::before {
    display: block;
    margin-bottom: 8px;
  }

  .account-table td:last-child {
    border-bottom: 0;
  }

  .project-cell {
    min-width: 0;
  }

  .account-footer__ecosystem div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .account-header__brand img {
    height: 32px;
  }

  .account-mobile-toggle {
    width: 38px;
    height: 38px;
  }

  .account-intro__copy h1 {
    font-size: 28px;
  }

  .account-status-card,
  .account-kpi,
  .account-rail-card {
    border-radius: 8px;
  }

  .attention-item {
    grid-template-columns: 28px auto 1fr;
    padding: 14px;
  }

  .attention-item strong {
    font-size: 28px;
  }

  .account-directions-list a {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }

  .account-directions-list img {
    width: 50px;
  }

  .account-footer {
    padding-bottom: 32px;
  }
}

@media (max-width: 1180px) {
  .project-modal__dialog {
    width: min(720px, calc(100vw - 40px));
  }

  .project-form__body {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .project-modal__dialog {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
  }

  .project-modal__header,
  .project-form__body,
  .project-modal__footer {
    padding-right: 28px;
    padding-left: 28px;
  }

  .project-form__body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 760px) {
  .project-modal {
    align-items: start;
    padding: 12px 0;
  }

  .project-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .project-modal__header {
    gap: 16px;
    padding: 22px 20px 14px;
  }

  .project-modal__header h2 {
    font-size: 24px;
  }

  .project-modal__header p {
    font-size: 13px;
  }

  .project-form__body {
    gap: 22px;
    padding: 0 20px 22px;
  }

  .project-form__column {
    grid-template-columns: 1fr;
  }

  .project-modal__footer {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 20px 20px;
  }
  .project-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-modal__button {
    width: 100%;
  }

  .project-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .project-modal__header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .project-modal__close {
    width: 32px;
    height: 32px;
  }

  .project-form__body,
  .project-modal__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .project-field input,
  .project-field select {
    min-height: 42px;
  }

  .project-after-card {
    padding: 16px;
  }

  .project-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .client-send-modal__dialog {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .client-send-modal__header,
  .client-send-body {
    padding-right: 28px;
    padding-left: 28px;
  }

  .client-send-tabs {
    margin-right: 28px;
    margin-left: 28px;
  }

  .client-send-body {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .promo-modal__dialog {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .promo-modal__header,
  .promo-form__body,
  .promo-modal__footer {
    margin-right: 0;
    margin-left: 0;
    padding-right: 28px;
    padding-left: 28px;
  }

  .promo-form__body {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .promo-form__column--side {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  .client-send-modal {
    align-items: start;
    padding: 12px 0;
  }

  .client-send-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .client-send-modal__header {
    gap: 16px;
    padding: 22px 20px 14px;
  }

  .client-send-modal__header h2 {
    font-size: 24px;
  }

  .client-send-modal__header p {
    font-size: 13px;
  }

  .client-send-tabs {
    margin: 0 20px 20px;
  }

  .client-send-tabs button {
    min-height: 48px;
  }

  .client-send-body {
    gap: 24px;
    padding: 0 20px 24px;
  }

  .client-send-channels,
  .client-send-actions--invoice {
    grid-template-columns: 1fr;
  }

  .client-send-actions,
  .client-send-button {
    width: 100%;
  }

  .client-send-summary div,
  .client-send-export dl div {
    display: grid;
    gap: 3px;
  }

  .client-send-summary dd,
  .client-send-export dd {
    text-align: left;
  }

  .promo-modal {
    align-items: start;
    padding: 12px 0;
  }

  .promo-modal__dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .promo-modal__header {
    gap: 16px;
    padding: 22px 20px 14px;
  }

  .promo-modal__header h2 {
    font-size: 24px;
  }

  .promo-modal__header p {
    font-size: 13px;
  }

  .promo-form__body {
    gap: 24px;
    padding: 0 20px 24px;
  }

  .promo-code-row {
    grid-template-columns: 1fr;
  }

  .promo-copy-button {
    width: 100%;
  }

  .promo-modal__footer {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 20px;
  }

  .promo-modal__text-button,
  .promo-modal__button {
    width: 100%;
  }

  .promo-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .client-send-modal__header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .client-send-modal__close {
    width: 32px;
    height: 32px;
  }

  .client-send-tabs {
    margin-right: 16px;
    margin-left: 16px;
  }

  .client-send-tabs button {
    font-size: 13px;
  }

  .client-send-body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .client-send-channels label,
  .client-send-options label {
    padding: 11px 12px;
  }

  .promo-modal__header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .promo-modal__close {
    width: 32px;
    height: 32px;
  }

  .promo-form__body,
  .promo-modal__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .promo-stepper {
    grid-template-columns: 44px minmax(0, 1fr) 38px 44px;
  }

  .promo-preview {
    padding: 16px;
  }
}

@media (max-width: 1480px) {
  .cart-main {
    width: min(100%, 1480px);
    padding: 30px 16px 36px;
  }

  .cart-layout {
    grid-template-columns: 280px minmax(0, 1fr) 240px;
    gap: 12px;
  }

  .cart-actions {
    margin-left: 292px;
  }

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

  .cart-products-controls {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 1180px) {
  .cart-main {
    width: min(100%, 1120px);
    padding: 28px 24px 34px;
  }

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

  .cart-hero__cards {
    max-width: none;
  }

  .cart-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
  }

  .cart-layout {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  }

  .cart-right {
    grid-column: 1 / -1;
  }

  .cart-right__sticky {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-summary-card .cart-outline-button,
  .cart-primary-button {
    min-height: 42px;
  }

  .cart-documents-card li {
    grid-template-columns: minmax(64px, 1fr) 64px 30px 22px;
  }

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

@media (max-width: 900px) {
  .cart-main {
    padding-top: 24px;
  }

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

  .cart-right {
    grid-column: auto;
  }

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

  .cart-left {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  }

  .cart-products-controls {
    justify-content: stretch;
  }

  .cart-product-search,
  .cart-product-select {
    max-width: none;
  }

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

  .cart-products-table {
    min-width: 820px;
  }
}

@media (max-width: 760px) {
  .cart-main {
    width: 100%;
    padding: 20px 16px 30px;
  }

  .cart-hero {
    gap: 20px;
  }

  .cart-hero h1 {
    font-size: 32px;
  }

  .cart-hero p {
    font-size: 15px;
  }

  .cart-hero__copy > span {
    display: block;
    font-size: 13px;
    line-height: 1.55;
  }

  .cart-hero__cards,
  .cart-actions,
  .cart-left,
  .cart-products-controls,
  .cart-table-total,
  .cart-promo-card > div {
    grid-template-columns: 1fr;
  }

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

  .cart-actions {
    gap: 10px;
  }

  .cart-outline-button,
  .cart-primary-button {
    width: 100%;
  }

  .cart-card {
    padding: 16px;
  }

  .cart-products-head {
    padding: 18px 16px 16px;
  }

  .cart-product-search,
  .cart-product-select {
    flex-basis: 100%;
    min-width: 0;
  }

  .cart-products-head h2,
  .cart-card h2 {
    font-size: 19px;
  }

  .project-structure-list a {
    grid-template-columns: minmax(0, 1fr) 28px minmax(108px, auto);
    gap: 7px;
  }

  .project-structure-list .cart-badge {
    grid-column: auto;
    justify-self: stretch;
  }

  .cart-products-table {
    min-width: 800px;
  }

  .cart-products-table th,
  .cart-products-table td {
    padding: 11px 9px;
  }

  .cart-product {
    min-width: 205px;
  }

  .cart-table-total {
    padding: 14px 16px;
  }

  .cart-toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .cart-main {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .cart-hero h1 {
    font-size: 29px;
  }

  .cart-back-link {
    margin-bottom: 14px;
  }

  .cart-stat-card {
    min-height: 62px;
  }

  .cart-products-table {
    min-width: 760px;
  }

}

/* Account visual polish */

.account-page {
  --account-pad: 32px;
  --account-sidebar: 240px;
  --account-rail: 328px;
  --account-work-max: 1760px;
  background: #f7f7f5;
}

.account-header {
  min-height: 72px;
  grid-template-columns: minmax(250px, 310px) minmax(320px, 660px) minmax(280px, 1fr);
  gap: 24px;
  padding: 0 max(32px, calc((100vw - var(--account-work-max)) / 2));
  box-shadow: none;
}

.account-header__brand img {
  height: 42px;
}

.account-search {
  border-radius: 7px;
  background: #fff;
}

.account-search input {
  height: 40px;
  font-size: 13px;
  font-weight: 600;
}

.account-search button {
  height: 40px;
}

.account-search__icon {
  top: 10px;
  border-width: 1.7px;
}

.account-tool {
  width: 34px;
  height: 34px;
  border-color: transparent;
}

.account-tool--bell::before {
  top: 8px;
  left: 10px;
  width: 13px;
  height: 14px;
  border-width: 1.7px;
}

.account-tool--bell::after {
  bottom: 8px;
}

.account-tool--send::before {
  top: 10px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-width: 1.7px;
}

.account-user {
  grid-template-columns: 32px minmax(0, auto) 10px;
  gap: 9px;
  padding-left: 14px;
}

.account-user__avatar {
  width: 32px;
  height: 32px;
}

.account-layout {
  width: min(var(--account-work-max), calc(100% - (var(--account-pad) * 2)));
  grid-template-columns: var(--account-sidebar) minmax(0, 1fr) var(--account-rail);
  gap: 24px;
  margin: 0 auto;
  padding: 24px 0 28px;
}

.account-sidebar {
  top: 96px;
  min-height: calc(100vh - 120px);
  align-content: space-between;
  padding: 10px;
  box-shadow: none;
}

.account-nav {
  gap: 3px;
}

.account-nav__item {
  min-height: 40px;
  gap: 10px;
  border-radius: 6px;
  padding: 0 11px;
  font-size: 14px;
  font-weight: 650;
}

.account-nav__item.is-active {
  background: #faf6f4;
}

.account-nav__item.is-active::before {
  top: 7px;
  bottom: 7px;
  left: -10px;
  width: 2px;
  border-radius: 2px;
}

.account-nav__icon {
  width: 17px;
  height: 17px;
  border-width: 1.5px;
  border-radius: 4px;
}

.account-nav__icon--home::before,
.account-nav__icon--folder::before,
.account-nav__icon--cart::before {
  border-width: 1.5px;
}

.account-help {
  gap: 4px;
  margin-top: 20px;
  padding: 12px;
}

.account-help__icon {
  width: 22px;
  height: 22px;
  border-width: 1.6px;
}

.account-main {
  gap: 14px;
}

.account-intro {
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.account-intro__copy h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 2vw, 40px);
  font-weight: 750;
}

.account-intro__copy p {
  max-width: 760px;
  margin-bottom: 12px;
  color: #5f5b56;
  font-size: 15px;
}

.account-intro__copy > span {
  display: block;
  color: #343331;
  font-size: 13px;
  line-height: 1.45;
}

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

.account-card,
.account-status-card,
.account-kpi,
.account-table-card,
.account-rail-card {
  border-radius: 7px;
  box-shadow: none;
}

.account-status-card {
  min-height: 98px;
  padding: 16px 48px 16px 18px;
}

.account-status-card--payments {
  min-height: 98px;
  padding: 16px 18px;
}

.account-status-card p,
.account-kpi p {
  color: #66615c;
  font-size: 12px;
  font-weight: 700;
}

.account-status-card strong {
  margin-bottom: 7px;
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.account-status-card > span:not(.account-status-card__icon) {
  font-size: 12px;
  white-space: nowrap;
}

.account-status-card--payments p {
  margin-bottom: 8px;
}

.account-status-card--payments strong {
  font-size: 23px;
  font-weight: 650;
  white-space: nowrap;
}

.account-status-card--payments > span {
  font-size: 12px;
  white-space: nowrap;
}

.account-status-card__icon {
  top: 17px;
  right: 17px;
  width: 24px;
  height: 24px;
  border-width: 1.6px;
  color: var(--red);
}

.account-status-card__icon--medal::before {
  top: 6px;
  left: 6px;
  width: 9px;
  height: 9px;
  border-width: 1.6px;
}

.account-status-card__icon--medal::after {
  right: 4px;
  bottom: -7px;
  left: 4px;
  height: 9px;
  border-width: 1.6px;
}

.account-status-card__icon--wallet::before {
  top: 5px;
  right: -4px;
  width: 12px;
  height: 9px;
  border-width: 1.6px;
}

.account-status-card__icon--wallet::after {
  top: 9px;
  right: -1px;
  width: 3px;
  height: 3px;
}

.account-attention {
  grid-template-columns: 190px minmax(0, 1fr);
}

.account-attention h2 {
  min-height: 88px;
  padding: 0 18px;
  font-size: 17px;
}

.attention-item {
  min-height: 88px;
  grid-template-columns: 24px auto 1fr;
  gap: 7px 10px;
  padding: 14px;
}

.account-kpi__icon,
.activity-icon {
  width: 20px;
  height: 20px;
  border-width: 1.5px;
  color: var(--red);
}

.attention-item strong {
  font-size: 26px;
  font-weight: 550;
}

.attention-item span {
  font-size: 12px;
  font-weight: 700;
}

.attention-item b {
  font-size: 11px;
}

.account-kpis {
  gap: 14px;
}

.account-kpi {
  min-height: 86px;
  padding: 15px 14px 13px 48px;
}

.account-kpi strong {
  font-size: 24px;
  font-weight: 550;
  white-space: nowrap;
}

.account-kpi > span:not(.account-kpi__icon) {
  font-size: 11px;
}

.account-kpi__icon {
  top: 15px;
  left: 16px;
  border-color: #5f5b56;
}

.account-table-card__head {
  min-height: 54px;
  padding: 11px 14px;
}

.account-table th,
.account-table td {
  padding: 9px 11px;
  font-size: 12px;
}

.account-table th {
  background: #fbfaf9;
  color: #6b6660;
  font-size: 11px;
}

.account-table td {
  font-weight: 600;
}

.account-table td:nth-child(6),
.account-table td:nth-child(8),
.account-table td:nth-child(9),
.account-kpi strong,
.account-status-card strong {
  white-space: nowrap;
}

.project-cell {
  min-width: 176px;
  gap: 9px;
  font-weight: 750;
}

.project-thumb {
  width: 48px;
  height: 32px;
}

.status-badge {
  min-height: 20px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 10px;
}

.document-link {
  width: 18px;
  height: 22px;
  border-width: 1.5px;
}

.document-link::before {
  height: 1.5px;
}

.account-rail {
  gap: 14px;
}

.account-create-button {
  min-height: 58px;
  border-radius: 7px;
  font-size: 15px;
}

.account-rail-card {
  padding: 15px;
}

.account-rail-card h2 {
  font-size: 17px;
}

.account-directions-list a {
  min-height: 48px;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px 0;
}

.account-directions-list img {
  width: 50px;
  height: 32px;
}

.account-directions-list strong {
  font-size: 12px;
  font-weight: 750;
}

.account-activity li {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 5px 9px;
  padding: 10px 0;
}

.account-activity .activity-icon {
  width: 20px;
  height: 20px;
  border-color: #d8d2cd;
}

.account-activity strong {
  font-size: 12px;
  font-weight: 750;
}

.account-footer {
  grid-template-columns: minmax(230px, 0.8fr) minmax(160px, 0.42fr) minmax(480px, 1.2fr);
  gap: 36px;
  padding: 26px max(32px, calc((100vw - var(--account-work-max)) / 2)) 28px;
}

.account-footer__brand {
  gap: 11px;
}

.account-footer__logo {
  gap: 14px;
}

.account-footer__logo img {
  height: 36px;
}

.account-footer__logo strong {
  font-size: 17px;
}

.account-footer p,
.account-footer a {
  font-size: 12px;
}

.account-footer__nav,
.account-footer__ecosystem {
  gap: 7px;
}

@media (max-width: 1480px) {
  .account-page {
    --account-pad: 24px;
    --account-sidebar: 220px;
    --account-rail: 306px;
  }

  .account-header {
    padding-inline: max(24px, calc((100vw - var(--account-work-max)) / 2));
  }

  .account-layout {
    gap: 20px;
  }

  .account-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 1180px) {
  .account-page {
    --account-sidebar: 72px;
    --account-rail: 290px;
  }

  .account-layout {
    width: min(100% - 48px, var(--account-work-max));
    grid-template-columns: var(--account-sidebar) minmax(0, 1fr);
    gap: 20px;
  }

  .account-nav__item.is-active::before {
    left: -10px;
  }

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

  .account-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 24px 28px;
  }

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

@media (max-width: 900px) {
  .account-header {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 24px 0;
  }

  .account-search {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-bottom: 12px;
  }

  .account-header__actions {
    width: auto;
    min-width: 0;
    justify-self: end;
  }

  .account-layout {
    width: min(100% - 40px, var(--account-work-max));
    grid-template-columns: 1fr;
  }

  .account-main,
  .account-rail {
    grid-column: auto;
  }

  .account-attention {
    grid-template-columns: 1fr;
  }

  .account-attention h2 {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }

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

  .account-sidebar {
    top: 0;
    padding: 18px;
  }

  .account-nav__item.is-active::before {
    left: -18px;
  }

  .account-status-cards,
  .account-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .account-page {
    --account-pad: 16px;
  }

  .account-header {
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 16px;
  }

  .account-header__actions {
    gap: 8px;
  }

  .account-tool,
  .account-user {
    display: none;
  }

  .account-layout {
    width: calc(100% - 32px);
  }

  .account-intro__copy h1 {
    font-size: 29px;
  }

  .account-status-cards,
  .account-kpis,
  .account-attention__grid {
    grid-template-columns: 1fr;
  }

  .account-attention h2 {
    min-height: 52px;
  }

  .attention-item {
    min-height: 78px;
  }

  .account-table tbody {
    padding: 10px;
  }

  .account-orders .account-table {
    min-width: 0;
  }

  .account-table tr {
    padding: 9px;
  }

  .account-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 16px 28px;
  }

  .account-footer__ecosystem div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .account-header__brand img {
    height: 31px;
  }

  .account-layout {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .account-status-card,
  .account-kpi,
  .account-table-card,
  .account-rail-card {
    border-radius: 7px;
  }

  .account-status-card strong,
  .account-kpi strong {
    font-size: 23px;
  }
}

/* Account pages refinement */

.account-layout--content {
  grid-template-columns: var(--account-sidebar) minmax(0, 1fr);
}

.account-layout--content .account-main {
  max-width: 1120px;
}

.account-nav__icon--dashboard,
.account-nav__icon--orders,
.account-nav__icon--profile,
.account-nav__icon--requisites,
.account-nav__icon--security,
.account-nav__icon--help {
  border-radius: 5px;
}

.account-nav__icon--dashboard::before {
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 7px 0 0 currentColor, 0 7px 0 currentColor, 7px 7px 0 currentColor;
}

.account-nav__icon--orders::before {
  top: 4px;
  left: 4px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.account-nav__icon--profile {
  border-radius: 50%;
}

.account-nav__icon--profile::before {
  top: 4px;
  left: 5px;
  width: 6px;
  height: 6px;
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.account-nav__icon--profile::after {
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 5px;
  border: 1.6px solid currentColor;
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.account-nav__icon--requisites::before {
  top: 5px;
  right: 3px;
  left: 3px;
  height: 1.6px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.account-nav__icon--security {
  border-radius: 9px 9px 5px 5px;
}

.account-nav__icon--security::before {
  top: -7px;
  left: 4px;
  width: 8px;
  height: 8px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.account-nav__icon--help {
  border-radius: 50%;
}

.account-nav__icon--help::before {
  top: 3px;
  left: 7px;
  width: 4px;
  height: 7px;
  border: 1.6px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.account-nav__icon--help::after {
  bottom: 3px;
  left: 8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.account-intro {
  align-items: start;
}

.account-intro__copy > span {
  display: none;
}

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

.attention-item {
  display: grid;
  min-width: 0;
  min-height: 92px;
  height: 100%;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: center;
  justify-items: center;
  padding: 16px 14px;
  text-align: center;
}

.attention-item strong {
  display: block;
  min-width: 2.35ch;
  color: var(--graphite);
  font-size: 30px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 0.95;
  text-align: center;
}

.attention-item span {
  max-width: 150px;
  color: #47423e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.attention-item b {
  grid-column: auto;
  margin-top: 2px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 1180px) {
  .account-attention {
    grid-template-columns: 1fr;
  }

  .account-attention h2 {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 760px) {
  .account-attention__grid {
    grid-template-columns: 1fr;
  }

  .attention-item {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .attention-item:last-child {
    border-bottom: 0;
  }
}

.account-page-title {
  display: grid;
  gap: 8px;
}

.account-page-title h1 {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(30px, 2.1vw, 40px);
  font-weight: 700;
  line-height: 1.08;
}

.account-page-title p {
  max-width: 720px;
  margin: 0;
  color: #5f5a56;
  font-size: 15px;
  line-height: 1.45;
}

.account-page-form,
.account-content-grid {
  display: grid;
  gap: 16px;
}

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

.account-content-grid--security {
  max-width: 640px;
  grid-template-columns: minmax(0, 1fr);
}

.account-page-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.account-page-card--wide {
  grid-column: 1 / -1;
}

.account-page-card .account-card-head {
  min-height: 58px;
}

.account-card-head span:not(.status-badge) {
  color: #625d58;
  font-size: 13px;
  font-weight: 700;
}

.account-section-kicker {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.account-form-grid label {
  display: grid;
  gap: 7px;
  color: #5d5853;
  font-size: 12px;
  font-weight: 800;
}

.account-form-grid input,
.account-form-grid select,
.account-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: var(--graphite);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.account-form-grid input,
.account-form-grid select {
  height: 42px;
  padding: 0 12px;
}

.account-form-grid textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.account-form-grid input[readonly] {
  background: #f8f6f5;
  color: #625d58;
}

.account-form-grid__wide {
  grid-column: 1 / -1;
}

.account-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.account-security-card .account-form-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
}

.account-security-card .account-form-actions {
  justify-content: flex-start;
}

.account-security-card .account-primary-action {
  min-width: 184px;
}

.account-security-hint {
  margin: 0;
  color: #6c6660;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.account-primary-action,
.account-secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.account-primary-action {
  background: var(--red);
  color: var(--white);
}

.account-primary-action:hover,
.account-primary-action:focus-visible {
  background: #941b1b;
}

.account-secondary-action {
  border-color: #dedbd8;
  background: #fff;
  color: #3e3935;
}

.account-secondary-action:hover,
.account-secondary-action:focus-visible {
  border-color: rgba(178, 34, 34, 0.32);
  color: var(--red);
}

.account-checks,
.account-session-list,
.account-faq-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.account-checks label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid #ebe7e4;
  border-radius: 7px;
  padding: 0 12px;
  color: #3e3935;
  font-size: 14px;
  font-weight: 750;
}

.account-checks input {
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.account-session-list article {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eee9e6;
  color: #3e3935;
  font-size: 14px;
  font-weight: 750;
}

.account-session-list article:last-child {
  border-bottom: 0;
}

.account-session-list span {
  color: #7c7670;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.account-channel-card {
  display: grid;
  min-height: 102px;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.account-channel-card strong {
  color: var(--graphite);
  font-size: 17px;
}

.account-channel-card span {
  color: #6f6964;
  font-size: 13px;
  line-height: 1.35;
}

.account-channel-card:hover,
.account-channel-card:focus-visible {
  border-color: rgba(178, 34, 34, 0.3);
  background: #fff8f8;
}

.account-faq-list details {
  border-bottom: 1px solid #eee9e6;
  padding: 0 0 10px;
}

.account-faq-list details:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-faq-list summary {
  cursor: pointer;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 800;
}

.account-faq-list p {
  margin: 8px 0 0;
  color: #625d58;
  font-size: 13px;
  line-height: 1.45;
}

.account-layout--orders .account-main {
  max-width: none;
}

.account-main--orders {
  gap: 22px;
}

.account-page-eyebrow {
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.orders-title {
  gap: 14px;
  padding-top: 6px;
}

.orders-title h1 {
  font-size: clamp(42px, 4vw, 78px);
  font-weight: 750;
  letter-spacing: 0;
}

.orders-title p:not(.account-page-eyebrow) {
  max-width: 880px;
  color: #686f7a;
  font-size: clamp(18px, 1.4vw, 27px);
  font-weight: 650;
  line-height: 1.35;
}

.orders-list-card {
  padding: 28px 30px 30px;
}

.orders-list-card__head {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
}

.orders-list-card__head h2 {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(26px, 2vw, 38px);
  font-weight: 800;
  line-height: 1.05;
}

.orders-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
}

.orders-filters label {
  min-width: 0;
}

.orders-filters input,
.orders-filters select {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: #3f3a36;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.order-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(150px, 1.05fr) minmax(120px, 0.9fr) minmax(150px, 1fr) minmax(130px, 0.9fr) minmax(150px, auto);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px 22px;
}

.order-row > div {
  min-width: 0;
}

.order-row strong {
  display: block;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.15;
}

.order-row span {
  display: block;
  margin-top: 7px;
  color: #6d7580;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

.order-row__total strong {
  white-space: nowrap;
}

.order-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.orders-pay-button,
.orders-outline-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.orders-pay-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
}

.orders-pay-button:hover,
.orders-pay-button:focus-visible {
  background: #941b1b;
}

.orders-outline-button {
  border: 1px solid #d8d2cd;
  background: #fff;
  color: var(--graphite);
}

.orders-outline-button:hover,
.orders-outline-button:focus-visible {
  border-color: rgba(178, 34, 34, 0.35);
  color: var(--red);
}

.order-status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.order-status--assembling {
  border-color: #dbe5ec;
  background: #f3f7fa;
  color: #526979;
}

.order-status--payment {
  border-color: #efd4ce;
  background: #fff5f2;
  color: #9b3427;
}

.order-status--transit {
  border-color: #d8e2ef;
  background: #f4f8fc;
  color: #4f6680;
}

.order-status--delivered {
  border-color: #d4e6d6;
  background: #f3faf3;
  color: #4b7a4e;
}

@media (max-width: 1480px) {
  .orders-list-card {
    padding: 24px;
  }

  .order-row {
    grid-template-columns: minmax(140px, 1fr) minmax(115px, 0.8fr) minmax(140px, 0.95fr) minmax(125px, 0.8fr) minmax(145px, auto);
    gap: 14px;
    padding: 17px 18px;
  }

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

  .order-row span {
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  .account-layout--content {
    grid-template-columns: var(--account-sidebar) minmax(0, 1fr);
  }

  .account-layout--content .account-main {
    max-width: none;
  }

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

  .order-row {
    grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(140px, 0.9fr);
  }

  .order-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .account-layout--content {
    grid-template-columns: 1fr;
  }

  .account-content-grid,
  .account-channel-grid {
    grid-template-columns: 1fr;
  }

  .orders-title h1 {
    font-size: 42px;
  }

  .orders-title p:not(.account-page-eyebrow) {
    font-size: 18px;
  }

  .orders-list-card {
    padding: 18px;
  }

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

  .account-nav__icon--security::before {
    top: -6px;
  }
}

@media (max-width: 760px) {
  .account-page-title h1 {
    font-size: 29px;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .account-form-actions {
    justify-content: stretch;
  }

  .account-primary-action,
  .account-secondary-action {
    width: 100%;
  }

  .account-session-list article {
    align-items: start;
    flex-direction: column;
    justify-content: center;
  }

  .orders-filters,
  .order-row {
    grid-template-columns: 1fr;
  }

  .orders-list-card {
    padding: 16px;
  }

  .orders-list-card__head {
    gap: 18px;
  }

  .order-row {
    gap: 12px;
    padding: 16px;
  }

  .order-row__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .order-row__actions .orders-outline-button:only-child {
    grid-column: 1 / -1;
  }

  .orders-pay-button,
  .orders-outline-button {
    width: 100%;
  }
}

/* Withdrawal page */

.account-nav__icon--withdrawal {
  border-radius: 5px;
}

.account-nav__icon--withdrawal::before {
  top: 4px;
  right: 3px;
  left: 3px;
  height: 10px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.account-nav__icon--withdrawal::after {
  top: 8px;
  right: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.withdrawal-layout-shell {
  align-items: start;
}

.withdrawal-main {
  max-width: none;
  gap: 22px;
}

.withdrawal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: stretch;
}

.withdrawal-hero__copy {
  display: grid;
  align-content: center;
  gap: 10px;
}

.withdrawal-hero h1 {
  margin: 0;
  color: var(--graphite);
  font-size: clamp(38px, 3.2vw, 58px);
  font-weight: 750;
  line-height: 1.04;
}

.withdrawal-hero__copy > p:not(.account-page-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #64605b;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.42;
}

.withdrawal-balance-card,
.withdrawal-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.withdrawal-balance-card {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 20px;
}

.withdrawal-balance-card span,
.withdrawal-balance-card p {
  margin: 0;
  color: #6d6761;
  font-size: 13px;
  font-weight: 700;
}

.withdrawal-balance-card strong {
  color: var(--graphite);
  font-size: 30px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.withdrawal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  align-items: start;
}

.withdrawal-flow,
.withdrawal-side {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.withdrawal-card {
  overflow: hidden;
}

.withdrawal-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.withdrawal-card h2,
.withdrawal-summary h2,
.withdrawal-terms h2,
.withdrawal-history h2 {
  margin: 0;
  color: var(--graphite);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.withdrawal-card__head p {
  max-width: 640px;
  margin: 7px 0 0;
  color: #6c6660;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

.withdrawal-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #dedbd8;
  border-radius: 6px;
  background: #fff;
  color: var(--graphite);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.withdrawal-link:hover,
.withdrawal-link:focus-visible {
  border-color: rgba(178, 34, 34, 0.34);
  color: var(--red);
}

.withdrawal-requisites {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.withdrawal-requisite-card {
  position: relative;
  display: grid;
  min-width: 0;
  cursor: pointer;
}

.withdrawal-requisite-card input {
  position: absolute;
  inset: 16px auto auto 16px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
}

.withdrawal-requisite-card > span {
  display: grid;
  min-height: 154px;
  align-content: start;
  gap: 7px;
  border: 1px solid #e7e3df;
  border-radius: 8px;
  background: #fff;
  padding: 16px 14px 14px 42px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.withdrawal-requisite-card input:checked + span {
  border-color: rgba(178, 34, 34, 0.38);
  background: #fff8f8;
}

.withdrawal-requisite-card input:focus-visible + span {
  outline: 2px solid rgba(178, 34, 34, 0.22);
  outline-offset: 2px;
}

.withdrawal-requisite-card strong {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.withdrawal-requisite-card small {
  color: #6d6761;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

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

.withdrawal-limits span,
.withdrawal-phone-note {
  display: grid;
  gap: 5px;
  border: 1px solid #eee9e6;
  border-radius: 7px;
  background: #fafaf8;
  padding: 12px;
  color: #6f6964;
  font-size: 12px;
  font-weight: 700;
}

.withdrawal-limits b,
.withdrawal-phone-note strong {
  color: var(--graphite);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.withdrawal-amount-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 16px;
  align-items: end;
  padding: 18px 16px 12px;
}

.withdrawal-range {
  width: 100%;
  min-width: 0;
  accent-color: var(--red);
}

.withdrawal-amount-field,
.withdrawal-sms-panel label {
  display: grid;
  gap: 7px;
  color: #5d5853;
  font-size: 12px;
  font-weight: 800;
}

.withdrawal-amount-field input,
.withdrawal-sms-panel input {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: var(--graphite);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}

.withdrawal-amount-field input:focus,
.withdrawal-sms-panel input:focus {
  border-color: rgba(178, 34, 34, 0.5);
  outline: 2px solid rgba(178, 34, 34, 0.12);
}

.withdrawal-hint {
  margin: 0;
  padding: 0 16px 16px;
  color: #77716c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.withdrawal-hint.is-error,
.withdrawal-sms-panel p.is-error {
  color: var(--red);
}

.withdrawal-hint.is-success,
.withdrawal-sms-panel p.is-success {
  color: #3d7b3f;
}

.withdrawal-phone-note {
  margin: 16px 16px 12px;
}

.withdrawal-secondary-button,
.withdrawal-primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.withdrawal-secondary-button {
  margin: 0 16px 16px;
  border: 1px solid #dedbd8;
  background: #fff;
  color: var(--graphite);
}

.withdrawal-secondary-button:hover,
.withdrawal-secondary-button:focus-visible {
  border-color: rgba(178, 34, 34, 0.34);
  color: var(--red);
}

.withdrawal-primary-button {
  border: 1px solid rgba(143, 26, 26, 0.25);
  background: var(--red);
  color: var(--white);
}

.withdrawal-primary-button:not(:disabled):hover,
.withdrawal-primary-button:not(:disabled):focus-visible {
  background: var(--red-dark);
}

.withdrawal-primary-button:disabled {
  cursor: not-allowed;
  border-color: #dedbd8;
  background: #efedeb;
  color: #9d9792;
}

.withdrawal-sms-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 16px;
}

.withdrawal-sms-panel[hidden] {
  display: none;
}

.withdrawal-sms-panel p,
.withdrawal-sms-panel small {
  margin: 0;
  color: #6c6660;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.withdrawal-sms-panel small {
  color: #8a837d;
  font-size: 12px;
}

.withdrawal-summary,
.withdrawal-terms,
.withdrawal-history {
  padding: 18px;
}

.withdrawal-summary dl {
  display: grid;
  gap: 11px;
  margin: 16px 0;
}

.withdrawal-summary dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid #eee9e6;
  padding-bottom: 11px;
}

.withdrawal-summary dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.withdrawal-summary dt {
  color: #6d6761;
  font-size: 12px;
  font-weight: 800;
}

.withdrawal-summary dd {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: right;
}

.withdrawal-summary dd[data-withdrawal-summary-amount],
.withdrawal-summary dd[data-withdrawal-summary-rest] {
  white-space: nowrap;
}

.withdrawal-summary .withdrawal-primary-button {
  width: 100%;
}

.withdrawal-status,
.withdrawal-history-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  border: 1px solid #eadfc6;
  border-radius: 999px;
  background: #fbf4e6;
  color: #8b642b;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.withdrawal-status.is-confirmed,
.withdrawal-history-badge--paid {
  border-color: #cfe4cf;
  background: #f0f8ef;
  color: #3d7b3f;
}

.withdrawal-history-badge--pending {
  border-color: #eadfc6;
  background: #fbf4e6;
  color: #8b642b;
}

.withdrawal-terms ul {
  display: grid;
  gap: 0;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.withdrawal-terms li {
  border-bottom: 1px solid #eee9e6;
  padding: 10px 0;
  color: #68625d;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.withdrawal-terms li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.withdrawal-history__list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.withdrawal-history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  border: 1px solid #eee9e6;
  border-radius: 7px;
  background: #fafaf8;
  padding: 12px;
}

.withdrawal-history__item strong {
  color: var(--graphite);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.withdrawal-history__item span {
  grid-column: 1;
  color: #77716c;
  font-size: 12px;
  font-weight: 700;
}

.withdrawal-history__item em {
  grid-row: 1 / span 2;
  grid-column: 2;
}

@media (max-width: 1180px) {
  .withdrawal-hero,
  .withdrawal-layout {
    grid-template-columns: 1fr;
  }

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

  .withdrawal-summary {
    grid-row: span 2;
  }
}

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

  .withdrawal-summary {
    grid-row: auto;
  }

  .withdrawal-requisites {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .withdrawal-hero h1 {
    font-size: 34px;
  }

  .withdrawal-hero__copy > p:not(.account-page-eyebrow) {
    font-size: 15px;
  }

  .withdrawal-card__head {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .withdrawal-link,
  .withdrawal-secondary-button,
  .withdrawal-primary-button {
    width: 100%;
  }

  .withdrawal-limits,
  .withdrawal-amount-control {
    grid-template-columns: 1fr;
  }

  .withdrawal-summary dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .withdrawal-summary dd {
    text-align: left;
  }

  .withdrawal-history__item {
    grid-template-columns: 1fr;
  }

  .withdrawal-history__item em {
    grid-row: auto;
    grid-column: auto;
  }
}

/* Account dashboard final alignment */

.account-dashboard-page {
  --account-pad: 24px;
  --account-sidebar: 238px;
  --account-rail: 330px;
  --account-work-max: 1880px;
  background: #f8f8f7;
}

.account-dashboard-page .account-header {
  min-height: 74px;
  padding-inline: max(var(--account-pad), calc((100vw - var(--account-work-max)) / 2));
}

.account-dashboard-page .account-header__brand img {
  height: 44px;
}

.account-dashboard-page .account-search {
  max-width: 720px;
  border-color: #dedbd8;
}

.account-dashboard-page .account-tool::before,
.account-dashboard-page .account-tool::after,
.account-dashboard-page .account-user__avatar::before,
.account-dashboard-page .account-user__avatar::after {
  content: none;
}

.account-dashboard-page .account-tool svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-dashboard-page .account-tool:hover,
.account-dashboard-page .account-tool:focus-visible {
  border-color: #dedbd8;
  background: #faf9f8;
  color: var(--red);
}

.account-dashboard-page .account-user__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbd8;
  background: #fff;
  color: #55514d;
  font-size: 11px;
  font-weight: 800;
}

.account-dashboard-page .account-layout {
  width: min(var(--account-work-max), calc(100% - (var(--account-pad) * 2)));
  gap: 20px;
  padding-block: 20px 26px;
}

.account-dashboard-page .account-sidebar {
  top: 94px;
  min-height: calc(100vh - 114px);
  padding: 12px;
}

.account-dashboard-page .account-nav {
  gap: 4px;
}

.account-dashboard-page .account-nav__item {
  min-height: 44px;
  gap: 11px;
  padding-inline: 12px;
  font-size: 14px;
}

.account-dashboard-page .account-nav__item.is-active {
  background: #faf3f2;
}

.account-dashboard-page .account-nav__item.is-active::before {
  top: 8px;
  bottom: 8px;
  width: 3px;
}

.account-dashboard-page .account-logout {
  min-height: 42px;
  border-color: #dcd8d5;
  background: #fff;
}

.account-dashboard-page .account-main {
  gap: 16px;
}

.account-dashboard-page .account-intro {
  grid-template-columns: minmax(390px, 0.78fr) minmax(0, 1.35fr);
  gap: 20px;
  align-items: stretch;
}

.account-dashboard-page .account-intro__copy {
  align-self: center;
}

.account-dashboard-page .account-intro__copy h1 {
  max-width: 470px;
  margin-bottom: 10px;
  font-size: clamp(34px, 2.15vw, 42px);
  line-height: 1.06;
  letter-spacing: 0;
}

.account-dashboard-page .account-intro__copy p {
  max-width: 620px;
  margin-bottom: 0;
  color: #615d59;
  font-size: 15px;
  line-height: 1.45;
}

.account-dashboard-page .account-status-cards {
  align-items: stretch;
  gap: 12px;
}

.account-dashboard-page .account-status-card,
.account-dashboard-page .account-status-card--payments {
  display: block;
  min-height: 112px;
  align-content: normal;
  justify-items: normal;
  padding: 17px 50px 16px 18px;
  text-align: left;
}

.account-dashboard-page .account-status-card p,
.account-dashboard-page .account-status-card--payments p {
  margin-bottom: 8px;
  color: #625e5a;
  font-size: 12px;
}

.account-dashboard-page .account-status-card strong,
.account-dashboard-page .account-status-card--payments strong {
  margin-bottom: 8px;
  font-size: clamp(22px, 1.35vw, 26px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 1;
  white-space: nowrap;
}

.account-dashboard-page .account-status-card > span:not(.account-status-card__icon),
.account-dashboard-page .account-status-card--payments > span:not(.account-status-card__icon) {
  color: #77716c;
  font-size: 12px;
  white-space: nowrap;
}

.account-dashboard-page .account-status-card__icon {
  top: 16px;
  right: 16px;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-dashboard-page .account-status-card__icon::before,
.account-dashboard-page .account-status-card__icon::after {
  content: none;
}

.account-dashboard-page .account-attention {
  grid-template-columns: 190px minmax(0, 1fr);
}

.account-dashboard-page .account-attention h2 {
  min-height: 106px;
  padding-inline: 20px;
  font-size: 18px;
  line-height: 1.32;
}

.account-dashboard-page .attention-item {
  min-height: 106px;
  gap: 8px;
  padding: 15px 12px;
}

.account-dashboard-page .attention-item strong {
  min-width: 2.5ch;
  font-size: 31px;
}

.account-dashboard-page .attention-item span {
  max-width: 170px;
  font-size: 12px;
  line-height: 1.3;
}

.account-dashboard-page .attention-item b {
  font-size: 11px;
}

.account-dashboard-page .attention-item:hover,
.account-dashboard-page .attention-item:focus-visible {
  background: #fcf8f7;
}

.account-dashboard-page .account-table-card__head {
  min-height: 58px;
  gap: 16px;
  padding: 11px 16px;
}

.account-dashboard-page .account-table-card__head h2 {
  font-size: 20px;
}

.account-dashboard-page .account-filters {
  gap: 10px;
}

.account-dashboard-page .account-filters input {
  width: 230px;
}

.account-dashboard-page .account-filters select {
  width: 150px;
}

.account-dashboard-page .account-filters input,
.account-dashboard-page .account-filters select {
  min-height: 38px;
  border-color: #dedbd8;
  background-color: #fff;
  font-size: 12px;
}

.account-dashboard-page .account-projects .account-table {
  min-width: 780px;
}

.account-dashboard-page .account-table th,
.account-dashboard-page .account-table td {
  padding: 11px 14px;
  font-size: 13px;
}

.account-dashboard-page .account-table th {
  color: #69645f;
  font-size: 11px;
  letter-spacing: 0;
}

.account-dashboard-page .account-table td {
  height: 66px;
  font-weight: 600;
}

.account-dashboard-page .account-table td:nth-child(4),
.account-dashboard-page .account-table td:nth-child(5) {
  white-space: nowrap;
}

.account-dashboard-page .account-projects .project-cell {
  min-width: 210px;
  gap: 12px;
}

.account-dashboard-page .account-projects .project-thumb {
  width: 62px;
  height: 42px;
  border-radius: 5px;
}

.account-dashboard-page .account-projects .project-cell__name {
  font-size: 13px;
}

.account-dashboard-page .account-projects .status-badge {
  min-height: 23px;
  border-radius: 6px;
  padding-inline: 9px;
  font-size: 10px;
  font-weight: 750;
}

.account-dashboard-page .account-create-button {
  min-height: 60px;
  border-radius: 7px;
  font-size: 15px;
}

.account-dashboard-page .account-rail {
  gap: 14px;
}

.account-dashboard-page .account-rail-card {
  padding: 16px;
}

.account-dashboard-page .account-rail-card h2 {
  font-size: 18px;
}

.account-dashboard-page .account-directions-list a {
  min-height: 50px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  padding-block: 8px;
}

.account-dashboard-page .account-directions-list img {
  width: 52px;
  height: 34px;
  border-radius: 4px;
}

.account-dashboard-page .account-directions-list strong {
  font-size: 12px;
}

.account-dashboard-page .account-quick-start__list {
  gap: 0;
}

.account-dashboard-page .account-quick-start__list li {
  position: relative;
  min-height: 68px;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 4px 11px;
  padding-block: 11px;
}

.account-dashboard-page .account-quick-start__list span {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  letter-spacing: 0;
  line-height: 1;
}

.account-dashboard-page .account-quick-start__list strong {
  font-size: 12px;
}

.account-dashboard-page .account-quick-start__list p {
  font-size: 11px;
  line-height: 1.35;
}

.account-dashboard-page .account-quick-start__link {
  min-height: 30px;
  align-items: center;
}

.account-dashboard-page .account-footer {
  padding-inline: max(var(--account-pad), calc((100vw - var(--account-work-max)) / 2));
}

@media (max-width: 1480px) {
  .account-dashboard-page {
    --account-pad: 20px;
    --account-sidebar: 210px;
    --account-rail: 286px;
  }

  .account-dashboard-page .account-intro {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-intro__copy {
    max-width: 760px;
  }

  .account-dashboard-page .account-status-card,
  .account-dashboard-page .account-status-card--payments {
    min-height: 104px;
  }

  .account-dashboard-page .account-table th,
  .account-dashboard-page .account-table td {
    padding-inline: 11px;
    font-size: 12px;
  }

  .account-dashboard-page .account-projects .project-thumb {
    width: 54px;
    height: 37px;
  }
}

@media (max-width: 1180px) {
  .account-dashboard-page {
    --account-pad: 24px;
    --account-sidebar: 72px;
    --account-rail: 290px;
  }

  .account-dashboard-page .account-layout {
    width: min(100% - 48px, var(--account-work-max));
  }

  .account-dashboard-page .account-nav__item {
    padding-inline: 0;
  }

  .account-dashboard-page .account-rail {
    grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1fr);
  }

  .account-dashboard-page .account-create-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .account-dashboard-page {
    --account-pad: 20px;
  }

  .account-dashboard-page .account-header {
    padding-inline: var(--account-pad);
  }

  .account-dashboard-page .account-layout {
    width: calc(100% - (var(--account-pad) * 2));
  }

  .account-dashboard-page .account-sidebar {
    top: 0;
    min-height: 0;
  }

  .account-dashboard-page .account-nav__item {
    padding-inline: 12px;
  }

  .account-dashboard-page .account-attention {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-attention h2 {
    min-height: 58px;
  }

  .account-dashboard-page .account-attention__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-dashboard-page .account-rail {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-create-button {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .account-dashboard-page {
    --account-pad: 16px;
  }

  .account-dashboard-page .account-header__brand img {
    height: 34px;
  }

  .account-dashboard-page .account-intro__copy h1 {
    font-size: 30px;
  }

  .account-dashboard-page .account-status-cards,
  .account-dashboard-page .account-attention__grid {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-status-card,
  .account-dashboard-page .account-status-card--payments {
    min-height: 100px;
  }

  .account-dashboard-page .account-table-card__head {
    gap: 12px;
    padding: 15px;
  }

  .account-dashboard-page .account-filters,
  .account-dashboard-page .account-filters label,
  .account-dashboard-page .account-filters input,
  .account-dashboard-page .account-filters select {
    width: 100%;
  }

  .account-dashboard-page .account-projects .account-table {
    min-width: 0;
  }

  .account-dashboard-page .account-table td {
    height: auto;
    padding: 10px 0;
    font-size: 12px;
  }

  .account-dashboard-page .account-projects .project-cell {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .account-dashboard-page {
    --account-pad: 12px;
  }

  .account-dashboard-page .account-layout {
    width: calc(100% - 24px);
  }

  .account-dashboard-page .account-intro__copy h1 {
    font-size: 28px;
  }

  .account-dashboard-page .account-attention h2 {
    padding-inline: 16px;
  }

  .account-dashboard-page .account-projects .project-thumb {
    width: 58px;
    height: 40px;
  }
}

/* Account workspace based on the approved reference */

.account-dashboard-page {
  --account-sidebar: 260px;
  --account-rail: 300px;
  --account-work-max: 1880px;
}

.account-dashboard-page .account-header {
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 24px;
}

.account-dashboard-page .account-header__actions {
  justify-self: end;
}

.account-dashboard-page .account-layout {
  grid-template-columns: var(--account-sidebar) minmax(0, 1fr) var(--account-rail);
  gap: 24px;
  align-items: start;
}

.account-dashboard-page .account-main {
  gap: 18px;
}

.account-dashboard-page .account-status-cards--workspace {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-dashboard-page .account-status-cards--workspace .account-status-card,
.account-dashboard-page .account-status-cards--workspace .account-status-card--payments {
  min-height: 128px;
  padding: 22px 56px 20px 22px;
}

.account-dashboard-page .account-status-cards--workspace .account-status-card p {
  margin-bottom: 12px;
  font-size: 13px;
}

.account-dashboard-page .account-status-cards--workspace .account-status-card strong {
  margin-bottom: 13px;
  font-size: clamp(24px, 1.5vw, 29px);
}

.account-dashboard-page .account-status-cards--workspace .account-status-card__icon {
  top: 21px;
  right: 21px;
  width: 30px;
  height: 30px;
}

.account-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.account-workspace > h1 {
  margin: 0;
  padding: 20px 24px 15px;
  color: var(--graphite);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
}

.account-workspace__summaries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 24px 20px;
}

.workspace-summary-card {
  position: relative;
  display: grid;
  min-height: 84px;
  grid-template-columns: 46px auto minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: center;
  border: 1px solid #ddd9d6;
  border-radius: 7px;
  background: #fff;
  color: var(--graphite);
  padding: 16px 18px;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.workspace-summary-card > svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-summary-card strong {
  min-width: 2ch;
  font-size: 26px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.workspace-summary-card > span {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.workspace-summary-card > i,
.project-row-chevron {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.workspace-summary-card > i::before,
.project-row-chevron::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.workspace-summary-card:hover,
.workspace-summary-card:focus-visible {
  border-color: rgba(178, 34, 34, 0.55);
  background: #fff8f7;
}

.workspace-summary-card.is-active {
  border-color: var(--red);
  background: #fff7f6;
}

.workspace-summary-card:focus-visible,
.workspace-reset-filter:focus-visible,
.workspace-status-filter button:focus-visible,
.project-action-editor button:focus-visible,
.project-status-button:focus-visible,
.project-status-menu button:focus-visible,
.project-row-chevron:focus-visible,
.account-workspace__pagination button:focus-visible,
.account-quick-start__action:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.28);
  outline-offset: 2px;
}

.account-workspace__controls {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 24px;
}

.projects-filter-toolbar__top {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(280px, 1fr) max-content;
  gap: 14px;
  align-items: center;
}

.workspace-search {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.workspace-search svg {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #77716c;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.workspace-search input {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--graphite);
  padding: 0 14px 0 40px;
  font: inherit;
  font-size: 13px;
}

.workspace-search input:focus {
  border-color: rgba(178, 34, 34, 0.55);
  box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.08);
}

.workspace-search input::placeholder {
  color: #817c77;
}

.workspace-reset-filter {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: var(--graphite);
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.workspace-reset-filter svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-reset-filter:hover {
  border-color: #c9c4bf;
  background: #f7f7f6;
}

.workspace-reset-filter.is-active {
  border-color: rgba(178, 34, 34, 0.72);
  background: #fffafa;
  color: var(--red);
}

.workspace-status-filter {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-status-filter > span {
  margin-right: 3px;
  color: #57534f;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.workspace-status-filter button {
  min-height: 38px;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: #55514d;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.workspace-status-filter button:hover {
  border-color: #c9c4bf;
}

.workspace-status-filter button.is-active {
  border-color: var(--red);
  background: #fff7f6;
  color: var(--red);
}

.account-workspace__table-scroll {
  min-width: 0;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.account-work-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}

.account-work-table__project {
  width: 22%;
}

.account-work-table__client {
  width: 10%;
}

.account-work-table__area {
  width: 7%;
}

.account-work-table__action {
  width: 22%;
}

.account-work-table__budget {
  width: 24%;
}

.account-work-table__status {
  width: 12%;
}

.account-work-table__open {
  width: 3%;
}

.account-work-table th,
.account-work-table td {
  border-bottom: 1px solid #ece9e7;
  padding: 12px 14px;
  color: #45413e;
  font-size: 12px;
  text-align: left;
  vertical-align: middle;
}

.account-work-table th {
  background: #faf9f8;
  color: #625e5a;
  font-size: 11px;
  font-weight: 750;
}

.account-work-table tbody tr {
  position: relative;
  height: 78px;
  background: #fff;
  transition: background-color 150ms ease;
}

.account-work-table tbody tr:hover,
.account-work-table tbody tr:focus-visible {
  outline: 0;
  background: #fbfaf9;
}

.account-work-table tbody tr:hover .project-cell__name,
.account-work-table tbody tr:focus-visible .project-cell__name {
  color: var(--red);
}

.account-work-table tr[hidden] {
  display: none !important;
}

.account-work-table .project-cell {
  min-width: 0;
  gap: 11px;
}

.account-work-table .project-thumb {
  width: 66px;
  height: 48px;
  border-radius: 5px;
}

.project-cell__copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.account-work-table .project-cell__name {
  display: block;
  overflow: hidden;
  color: var(--graphite);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 150ms ease;
}

.project-cell__copy small {
  color: #817b76;
  font-size: 10px;
  font-weight: 600;
}

.project-client,
.project-area {
  font-weight: 650;
}

.project-area {
  white-space: nowrap;
}

.project-action-editor {
  display: grid;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  border: 1px solid #e2dfdd;
  border-radius: 6px;
  background: #fff;
  padding: 7px 7px 7px 10px;
}

.project-action-editor > span {
  display: -webkit-box;
  overflow: hidden;
  color: #3f3c39;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-action-editor button {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: transparent;
  color: #625e5a;
}

.project-action-editor button:hover {
  background: #f6f3f1;
  color: var(--red);
}

.project-action-editor button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-action-editor textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
  resize: none;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--graphite);
  padding: 2px;
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
}

.project-budget {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.project-budget p {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
}

.project-budget p strong {
  color: var(--graphite);
  font-size: 11px;
  font-weight: 800;
}

.project-budget p span {
  color: #77716c;
  font-size: 10px;
  font-weight: 600;
}

.project-budget > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 30px;
  gap: 8px;
  align-items: center;
}

.project-budget__track {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #ebe8e6;
}

.project-budget__track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.project-budget b {
  color: #625e5a;
  font-size: 10px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.budget-heading-info {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid #8d8883;
  border-radius: 50%;
  margin-left: 5px;
  font-size: 10px;
  font-style: normal;
}

.project-status-cell {
  position: relative;
}

.account-work-table .project-status-button {
  max-width: 100%;
  cursor: pointer;
  white-space: nowrap;
}

.account-dashboard-page .status-badge--completion {
  border-color: #c8e6c9;
  background: #edf8ed;
  color: #2f7c35;
}

.account-dashboard-page .status-badge--design {
  border-color: #cce2f7;
  background: #edf6ff;
  color: #246da8;
}

.account-dashboard-page .status-badge--done {
  border-color: #dedede;
  background: #f4f4f3;
  color: #77736f;
}

.project-status-menu {
  position: absolute;
  z-index: 18;
  top: calc(50% + 17px);
  right: 10px;
  display: grid;
  width: 156px;
  overflow: hidden;
  border: 1px solid #ddd9d6;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 43, 42, 0.12);
}

.project-status-menu[hidden] {
  display: none;
}

.project-status-menu button {
  min-height: 36px;
  border-bottom: 1px solid #eeeae8;
  background: #fff;
  color: var(--graphite);
  padding: 0 11px;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}

.project-status-menu button:last-child {
  border-bottom: 0;
}

.project-status-menu button:hover {
  background: #faf7f6;
  color: var(--red);
}

.project-open-cell {
  padding-inline: 4px !important;
}

.project-row-chevron {
  color: #625e5a;
}

.project-row-chevron:hover {
  color: var(--red);
}

.account-workspace__empty {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  color: #77716c;
  font-size: 13px;
  text-align: center;
}

.account-workspace__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 13px 24px 0;
  color: #77716c;
  font-size: 11px;
  line-height: 1.35;
}

.account-workspace__note > span {
  display: inline-flex;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #9b9691;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 750;
}

.account-workspace__pagination {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 24px;
  padding: 10px 24px 14px;
}

.account-workspace__pagination label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #77716c;
  font-size: 12px;
  font-weight: 650;
}

.account-workspace__pagination select {
  width: 58px;
  height: 36px;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--graphite);
  padding: 0 8px;
  font: inherit;
}

.account-workspace__pagination > span {
  color: #77716c;
  font-size: 12px;
  font-weight: 650;
}

.account-workspace__pagination nav {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.account-workspace__pagination nav button,
.account-workspace__pagination nav strong {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedbd8;
  border-radius: 7px;
  background: #fff;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 700;
}

.account-workspace__pagination nav button {
  border-color: transparent;
}

.account-workspace__pagination nav button:disabled {
  color: #aaa5a0;
  cursor: default;
}

.account-dashboard-page .account-rail {
  gap: 18px;
}

.account-dashboard-page .account-quick-start__list li {
  min-height: 0;
  grid-template-columns: 31px minmax(0, 1fr);
}

.account-quick-start__interactive {
  display: block !important;
  padding: 0 !important;
}

.account-quick-start__action {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 4px 11px;
  align-items: center;
  background: #fff;
  color: var(--graphite);
  padding: 11px 0;
  text-align: left;
}

.account-quick-start__action:hover strong {
  color: var(--red);
}

.account-quick-start__action > span {
  grid-row: 1 / span 2;
}

.account-quick-start__action strong {
  align-self: end;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  transition: color 150ms ease;
}

.account-quick-start__action small {
  align-self: start;
  color: #77716c;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 1480px) {
  .account-dashboard-page {
    --account-sidebar: 210px;
    --account-rail: 270px;
  }

  .account-dashboard-page .account-layout {
    gap: 18px;
  }

  .account-workspace > h1 {
    font-size: 22px;
  }

  .account-workspace__summaries,
  .account-workspace__controls {
    padding-inline: 18px;
  }

  .account-work-table th,
  .account-work-table td {
    padding-inline: 10px;
  }
}

@media (max-width: 1180px) {
  .account-dashboard-page {
    --account-sidebar: 72px;
  }

  .account-dashboard-page .account-layout {
    grid-template-columns: var(--account-sidebar) minmax(0, 1fr);
  }

  .account-dashboard-page .account-rail {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-dashboard-page .account-status-cards--workspace .account-status-card,
  .account-dashboard-page .account-status-cards--workspace .account-status-card--payments {
    min-height: 112px;
    padding-block: 17px;
  }

  .projects-filter-toolbar__top {
    grid-template-columns: minmax(220px, 1fr) max-content;
  }
}

@media (max-width: 900px) {
  .account-dashboard-page .account-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .account-dashboard-page .account-layout {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-main,
  .account-dashboard-page .account-rail {
    grid-column: auto;
  }

  .account-dashboard-page .account-rail {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-status-cards--workspace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-dashboard-page .account-status-cards--workspace .account-status-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .account-dashboard-page .account-status-cards--workspace,
  .account-workspace__summaries {
    grid-template-columns: 1fr;
  }

  .account-dashboard-page .account-status-cards--workspace .account-status-card:last-child {
    grid-column: auto;
  }

  .account-workspace > h1 {
    padding: 18px 16px 14px;
    font-size: 21px;
  }

  .account-workspace__summaries {
    gap: 10px;
    padding: 0 16px 16px;
  }

  .workspace-summary-card {
    min-height: 76px;
    grid-template-columns: 40px auto minmax(0, 1fr) 18px;
    padding: 13px;
  }

  .workspace-summary-card > svg {
    width: 33px;
    height: 33px;
  }

  .account-workspace__controls {
    padding: 14px 16px;
  }

  .projects-filter-toolbar__top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .workspace-reset-filter {
    width: 100%;
  }

  .workspace-status-filter > span {
    width: 100%;
  }

  .workspace-status-filter button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .account-workspace__table-scroll {
    overflow: visible;
    padding: 10px;
    background: #f8f8f7;
  }

  .account-work-table,
  .account-work-table tbody,
  .account-work-table tr,
  .account-work-table td {
    display: block;
    width: 100%;
  }

  .account-work-table {
    min-width: 0;
  }

  .account-work-table colgroup,
  .account-work-table thead {
    display: none;
  }

  .account-work-table tbody {
    display: grid;
    gap: 10px;
  }

  .account-work-table tbody tr {
    height: auto;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    padding: 10px;
  }

  .account-work-table td {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #eeeae8;
    padding: 9px 0;
    text-align: right;
  }

  .account-work-table td::before {
    flex: 0 0 auto;
    color: #77716c;
    content: attr(data-label);
    font-size: 11px;
    font-weight: 750;
    text-align: left;
  }

  .account-work-table td:first-child {
    display: block;
    padding-top: 0;
    text-align: left;
  }

  .account-work-table td:first-child::before,
  .account-work-table .project-open-cell::before {
    display: none;
  }

  .account-work-table .project-cell {
    min-width: 0;
  }

  .account-work-table .project-thumb {
    width: 74px;
    height: 52px;
  }

  .account-work-table td:nth-child(4),
  .account-work-table td:nth-child(5),
  .account-work-table .project-status-cell {
    display: grid;
    justify-content: stretch;
    text-align: left;
  }

  .account-work-table td:nth-child(4)::before,
  .account-work-table td:nth-child(5)::before,
  .account-work-table .project-status-cell::before {
    margin-bottom: 4px;
  }

  .project-action-editor,
  .project-budget {
    width: 100%;
  }

  .project-status-cell {
    z-index: 2;
  }

  .project-status-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .project-open-cell {
    min-height: 0 !important;
    border-bottom: 0 !important;
    padding: 0 !important;
  }

  .project-row-chevron {
    position: absolute;
    top: 18px;
    right: 13px;
  }

  .account-workspace__note {
    padding-inline: 16px;
  }

  .account-workspace__pagination {
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .workspace-status-filter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-status-filter > span {
    grid-column: 1 / -1;
  }

  .workspace-status-filter button {
    width: 100%;
    white-space: nowrap;
  }

  .project-budget p {
    display: grid;
    gap: 2px;
  }

  .account-workspace__pagination > span {
    order: 3;
    width: 100%;
  }

  .account-workspace__pagination nav {
    margin-left: auto;
  }
}

/* Project cart: final account design alignment */
.cart-page {
  overflow-x: hidden;
  background: #f7f7f5;
}

.cart-page .account-header {
  min-height: 72px;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 24px;
  border-bottom: 1px solid #e6e6e6;
  background: rgba(255, 255, 255, 0.98);
  padding-inline: max(40px, calc((100vw - 1880px) / 2 + 40px));
  box-shadow: none;
}

.cart-page .account-header__brand img {
  width: auto;
  height: 42px;
}

.cart-page .account-header__actions {
  gap: 10px;
}

.cart-page .account-tool {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-color: transparent;
  color: #2b2b2a;
}

.cart-page .account-tool::before,
.cart-page .account-tool::after,
.cart-page .account-user__avatar::before,
.cart-page .account-user__avatar::after {
  display: none;
}

.cart-page .account-tool > svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-page .cart-header-telegram .cart-icon {
  width: 19px;
  height: 19px;
}

.cart-page .account-tool__badge {
  top: -1px;
  right: -2px;
}

.cart-page .account-user {
  display: grid;
  grid-template-columns: 34px minmax(0, auto) 10px;
  gap: 9px;
  border-left: 1px solid #e6e6e6;
  padding-left: 16px;
}

.cart-page .account-user__avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e6e6;
  background: #fafaf8;
  color: #2b2b2a;
  font-size: 11px;
  font-weight: 800;
}

.cart-page .cart-main {
  width: min(100%, 1880px);
  margin-inline: auto;
  padding: 30px 40px 40px;
}

.cart-page .cart-hero {
  grid-template-columns: minmax(0, 1fr) minmax(690px, 780px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 18px;
}

.cart-page .cart-hero__copy {
  align-self: center;
}

.cart-page .cart-back-link {
  margin-bottom: 10px;
  color: #716d68;
  font-size: 13px;
}

.cart-page .cart-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 2.3vw, 44px);
  line-height: 1.04;
}

.cart-page .cart-hero p {
  margin-bottom: 8px;
  font-size: 16px;
}

.cart-page .cart-hero__copy > span {
  color: #6f6a65;
  font-size: 13px;
  line-height: 1.45;
}

.cart-page .cart-hero__cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cart-page .cart-card,
.cart-page .cart-stat-card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.cart-page .cart-stat-card {
  display: grid;
  min-height: 98px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.cart-page .cart-stat-card > span {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  gap: 7px;
}

.cart-page .cart-stat-card .cart-icon {
  width: 24px;
  height: 24px;
  grid-column: 2;
  grid-row: 1;
  color: #b22222;
}

.cart-page .cart-stat-card p {
  color: #6b6762;
  font-size: 12px;
  font-weight: 700;
}

.cart-page .cart-stat-card strong {
  font-size: 19px;
  line-height: 1.18;
}

.cart-page .cart-actions {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-end;
  margin: 0 0 24px auto;
}

.cart-page .cart-outline-button,
.cart-page .cart-primary-button,
.cart-page .cart-table-action {
  min-height: 40px;
  border-color: #e1dfdc;
  border-radius: 9px;
  padding-inline: 14px;
  font-size: 12px;
  font-weight: 750;
}

.cart-page .cart-outline-button .cart-icon {
  width: 17px;
  height: 17px;
}

.cart-page .cart-primary-button {
  min-height: 46px;
  border-color: #b22222;
  border-radius: 9px;
}

.cart-page .cart-layout {
  grid-template-columns: 300px minmax(0, 1fr) 320px;
  gap: 22px;
}

.cart-page .cart-left,
.cart-page .cart-center,
.cart-page .cart-right__sticky {
  gap: 18px;
}

.cart-page .cart-card {
  padding: 20px;
}

.cart-page .cart-card h2 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.2;
}

.cart-page .cart-card > p {
  margin-bottom: 14px;
  font-size: 12.5px;
  line-height: 1.45;
}

.cart-page .cart-progress {
  gap: 9px;
  margin: 18px 0 16px;
}

.cart-page .cart-progress div {
  font-size: 12px;
}

.cart-page .cart-progress__bar {
  height: 4px;
}

.cart-page .cart-progress small {
  font-size: 11.5px;
}

.cart-page .project-structure-list {
  padding-top: 8px;
}

.cart-page .project-structure-list a {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) 32px 104px;
  gap: 8px;
  border-radius: 8px;
  padding: 7px 8px 7px 12px;
  font-size: 12px;
}

.cart-page .project-structure-list span {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cart-page .project-structure-list strong {
  font-size: 11.5px;
  text-align: center;
}

.cart-page .project-structure-list .cart-badge {
  width: 104px;
  min-height: 24px;
  border-radius: 8px;
  font-size: 9.5px;
}

.cart-page .cart-badge--neutral {
  border-color: #e3e1de;
  background: #fafaf8;
}

.cart-page .cart-badge--issued {
  border-color: #eaded7;
  background: #fbf7f4;
}

.cart-page .cart-badge--work {
  border-color: #eee4cf;
  background: #fffaf0;
  color: #8b6724;
}

.cart-page .client-link-card {
  align-content: start;
  gap: 10px;
}

.cart-page .client-link-card p {
  margin: 2px 0 0;
}

.cart-page .client-link-card .cart-outline-button {
  width: 100%;
  margin-top: 4px;
}

.cart-page .cart-products-card {
  padding: 0;
}

.cart-page .cart-products-head {
  grid-template-columns: minmax(210px, 0.8fr) minmax(430px, 1.2fr);
  gap: 18px;
  padding: 20px 20px 16px;
}

.cart-page .cart-products-head h2 {
  font-size: 20px;
}

.cart-page .cart-products-controls {
  width: 100%;
  max-width: 680px;
  gap: 10px;
}

.cart-page .cart-products-filters {
  grid-template-columns: minmax(190px, 1fr) 150px;
  gap: 10px;
}

.cart-page .cart-product-search input,
.cart-page .cart-product-select select {
  height: 40px;
  border-color: #e1dfdc;
  border-radius: 9px;
  background-color: #fff;
  background-image: none;
  font-size: 12px;
}

.cart-page .cart-product-select select {
  appearance: auto;
  padding-right: 10px;
}

.cart-page .cart-bulk-panel {
  padding: 10px 20px;
}

.cart-page .cart-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.cart-page .cart-products-table {
  min-width: 0;
  table-layout: fixed;
}

.cart-page .cart-products-table__select {
  width: 38px;
}

.cart-page .cart-products-table__product {
  width: 27%;
}

.cart-page .cart-products-table__room {
  width: 11%;
}

.cart-page .cart-products-table__qty {
  width: 76px;
}

.cart-page .cart-products-table__availability {
  width: 102px;
}

.cart-page .cart-products-table__client-price {
  width: 130px;
}

.cart-page .cart-products-table__sum {
  width: 98px;
}

.cart-page .cart-products-table__status {
  width: 118px;
}

.cart-page .cart-products-table th {
  background: #fafaf8;
  padding: 11px 8px;
  color: #5f5a55;
  font-size: 10.5px;
}

.cart-page .cart-products-table td {
  padding: 10px 8px;
  font-size: 11.5px;
}

.cart-page .cart-products-table tbody tr:hover {
  background: #fafaf8;
}

.cart-page .cart-product {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
}

.cart-page .cart-product-thumb {
  border-radius: 8px;
}

.cart-page .cart-product strong {
  font-size: 11.5px;
}

.cart-page .cart-products-table td small,
.cart-page .cart-product small {
  font-size: 10px;
}

.cart-page .cart-stepper {
  grid-template-columns: 22px 26px 22px;
  border-radius: 8px;
}

.cart-page .cart-status {
  min-height: 24px;
  border-radius: 8px;
  padding-inline: 7px;
  font-size: 9.5px;
}

.cart-page .cart-table-total {
  grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(112px, max-content));
  background: #fafaf8;
  padding: 13px 20px;
  font-size: 12px;
}

.cart-page .cart-bottom-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.cart-page .cart-comment-card textarea {
  min-height: 72px;
  border-color: #e1dfdc;
  border-radius: 9px;
}

.cart-page .cart-right__sticky {
  top: 92px;
}

.cart-page .cart-summary-card dl,
.cart-page .cart-promo-card dl {
  margin: 14px 0 16px;
}

.cart-page .cart-summary-card dl div,
.cart-page .cart-promo-card dl div {
  min-height: 32px;
  border-bottom-color: #efedeb;
  font-size: 12px;
}

.cart-page .cart-summary-card .cart-outline-button {
  min-height: 42px;
}

.cart-page .cart-documents-card li {
  min-height: 36px;
  grid-template-columns: minmax(78px, 1fr) 70px 34px 26px;
  border-bottom-color: #efedeb;
  padding-block: 7px;
}

.cart-page .cart-documents-card b {
  border-radius: 7px;
}

.cart-page .cart-documents-card button {
  width: 26px;
  height: 26px;
}

.cart-page .cart-promo-card > div {
  gap: 10px;
}

.cart-page .cart-promo-card .cart-outline-button {
  min-width: 0;
  padding-inline: 8px;
}

.cart-page .account-footer {
  border-radius: 0;
  padding: 28px max(40px, calc((100vw - 1880px) / 2 + 40px));
}

@media (max-width: 1560px) {
  .cart-page .cart-main {
    width: 100%;
    padding-inline: 28px;
  }

  .cart-page .account-header,
  .cart-page .account-footer {
    padding-inline: 28px;
  }

  .cart-page .cart-layout {
    grid-template-columns: 260px minmax(0, 1fr) 280px;
    gap: 16px;
  }

  .cart-page .cart-card {
    padding: 18px;
  }

  .cart-page .project-structure-list a {
    grid-template-columns: minmax(0, 1fr) 28px 96px;
    gap: 6px;
    padding-left: 10px;
  }

  .cart-page .project-structure-list .cart-badge {
    width: 96px;
    font-size: 8.8px;
  }

  .cart-page .cart-products-head {
    grid-template-columns: minmax(190px, 0.7fr) minmax(390px, 1.3fr);
    padding-inline: 18px;
  }

  .cart-page .cart-products-table__select {
    width: 32px;
  }

  .cart-page .cart-products-table__product {
    width: 25%;
  }

  .cart-page .cart-products-table__room {
    width: 10%;
  }

  .cart-page .cart-products-table__qty {
    width: 66px;
  }

  .cart-page .cart-products-table__availability {
    width: 78px;
  }

  .cart-page .cart-products-table__client-price {
    width: 104px;
  }

  .cart-page .cart-products-table__sum {
    width: 86px;
  }

  .cart-page .cart-products-table__status {
    width: 120px;
  }

  .cart-page .cart-products-table th,
  .cart-page .cart-products-table td {
    padding-inline: 6px;
  }

  .cart-page .cart-product {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 7px;
  }

  .cart-page .cart-product-thumb {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 1240px) {
  .cart-page .cart-main {
    padding: 26px 24px 34px;
  }

  .cart-page .account-header,
  .cart-page .account-footer {
    padding-inline: 24px;
  }

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

  .cart-page .cart-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 18px;
  }

  .cart-page .cart-right {
    grid-column: 1 / -1;
  }

  .cart-page .cart-right__sticky {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cart-page .cart-products-head {
    grid-template-columns: 1fr;
  }

  .cart-page .cart-products-controls {
    max-width: none;
  }

  .cart-page .cart-products-table {
    min-width: 960px;
  }

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

@media (max-width: 900px) {
  .cart-page .account-header {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-inline: 18px;
  }

  .cart-page .cart-main {
    padding: 22px 18px 30px;
  }

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

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

  .cart-page .cart-right {
    grid-column: auto;
  }

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

  .cart-page .cart-products-table {
    min-width: 940px;
  }

  .cart-page .account-footer {
    padding-inline: 18px;
  }
}

@media (max-width: 760px) {
  .cart-page .account-header__brand img {
    height: 38px;
  }

  .cart-page .account-header__actions {
    gap: 5px;
  }

  .cart-page .account-user {
    grid-template-columns: 32px;
    border-left: 0;
    padding-left: 2px;
  }

  .cart-page .account-user__avatar {
    width: 32px;
    height: 32px;
  }

  .cart-page .account-user__text,
  .cart-page .account-user__chevron {
    display: none;
  }

  .cart-page .cart-main {
    padding-inline: 16px;
  }

  .cart-page .cart-hero h1 {
    font-size: 32px;
  }

  .cart-page .cart-hero__cards,
  .cart-page .cart-actions,
  .cart-page .cart-left,
  .cart-page .cart-products-filters,
  .cart-page .cart-table-total,
  .cart-page .cart-promo-card > div {
    grid-template-columns: 1fr;
  }

  .cart-page .cart-actions {
    display: grid;
    width: 100%;
  }

  .cart-page .cart-outline-button,
  .cart-page .cart-primary-button {
    width: 100%;
  }

  .cart-page .cart-stat-card {
    min-height: 82px;
  }

  .cart-page .cart-products-head {
    padding: 18px 16px 16px;
  }

  .cart-page .cart-products-table {
    min-width: 900px;
  }

  .cart-page .cart-table-total span {
    justify-content: space-between;
  }

  .cart-page .account-footer {
    padding-inline: 16px;
  }
}

@media (max-width: 430px) {
  .cart-page .account-header {
    padding-inline: 12px;
  }

  .cart-page .account-header__brand img {
    max-width: 166px;
    height: 36px;
  }

  .cart-page .account-tool {
    width: 32px;
    height: 32px;
  }

  .cart-page .cart-main {
    padding: 18px 12px 28px;
  }

  .cart-page .cart-hero {
    gap: 16px;
  }

  .cart-page .cart-hero h1 {
    font-size: 29px;
  }

  .cart-page .cart-stat-card {
    padding: 15px;
  }

  .cart-page .cart-card {
    padding: 16px;
  }

  .cart-page .project-structure-list a {
    grid-template-columns: minmax(0, 1fr) 28px 96px;
  }

  .cart-page .cart-products-table {
    min-width: 860px;
  }

  .cart-page .account-footer {
    padding-inline: 12px;
  }
}

/* Project cart: section navigation and editable product statuses */
.cart-page .project-directions-list {
  gap: 0;
  border-top: 1px solid #ece8e6;
  padding-top: 0;
}

.cart-page .project-directions-list .project-direction {
  min-height: 58px;
  grid-template-columns: 54px minmax(0, 1fr) 18px;
  gap: 10px;
  border-bottom: 1px solid #efedeb;
  border-radius: 0;
  padding: 9px 6px 9px 10px;
  font-size: 12px;
  transition: background-color 150ms ease, color 150ms ease;
}

.cart-page .project-directions-list .project-direction:last-child {
  border-bottom: 0;
}

.cart-page .project-directions-list .project-direction:hover,
.cart-page .project-directions-list .project-direction:focus-visible {
  background: #faf8f7;
}

.cart-page .project-directions-list .project-direction:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.3);
  outline-offset: -2px;
}

.cart-page .project-directions-list .project-direction.is-active {
  background: #fbf5f4;
}

.cart-page .project-directions-list .project-direction.is-active::before {
  top: 7px;
  bottom: 7px;
  width: 3px;
}

.cart-page .project-directions-list img {
  display: block;
  width: 54px;
  height: 38px;
  border: 1px solid #ebe7e4;
  border-radius: 6px;
  object-fit: cover;
}

.cart-page .project-directions-list .project-direction > span {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow: visible;
  line-height: 1.25;
  white-space: normal;
  -webkit-box-orient: initial;
  -webkit-line-clamp: initial;
}

.cart-page .project-directions-list .project-direction strong {
  overflow: hidden;
  color: #2b2b2a;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.22;
  text-align: left;
  text-overflow: ellipsis;
}

.cart-page .project-directions-list .project-direction small {
  color: #77716c;
  font-size: 10.5px;
  font-weight: 650;
}

.cart-page .project-directions-list .project-direction > em {
  color: #918b85;
  font-style: normal;
  font-size: 16px;
  text-align: center;
}

.cart-page .project-directions-list .project-direction.is-active > em {
  color: #b22222;
}

.cart-page .cart-product-thumb {
  object-fit: cover;
}

.cart-page [data-product-source] {
  color: #8a837d;
  font-size: 9.5px;
}

.cart-page .cart-status-control {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.cart-page button.cart-status {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.15;
}

.cart-page button.cart-status:not(:disabled):hover,
.cart-page button.cart-status:not(:disabled):focus-visible {
  filter: brightness(0.97);
}

.cart-page button.cart-status:focus-visible {
  outline: 2px solid rgba(178, 34, 34, 0.28);
  outline-offset: 2px;
}

.cart-page button.cart-status:disabled {
  cursor: default;
  opacity: 1;
}

.cart-page .cart-status--neutral {
  border-color: #e3e1de;
  background: #fafaf8;
  color: #6f6963;
}

.cart-page .cart-status-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  width: 172px;
  overflow: hidden;
  border: 1px solid #dedbd8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(43, 43, 42, 0.12);
  padding: 4px;
}

.cart-page .cart-status-menu[hidden] {
  display: none;
}

.cart-page .cart-status-menu button {
  min-height: 32px;
  border-radius: 5px;
  background: #fff;
  padding: 6px 9px;
  color: #2b2b2a;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
}

.cart-page .cart-status-menu button:hover,
.cart-page .cart-status-menu button:focus-visible,
.cart-page .cart-status-menu button[aria-checked="true"] {
  background: #faf5f4;
  color: #b22222;
}

.cart-page .cart-status-menu button:focus-visible {
  outline: 1px solid rgba(178, 34, 34, 0.35);
}

.cart-page .cart-products-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  border-top: 1px solid #ece8e6;
  padding: 28px 20px;
}

.cart-page .cart-products-empty[hidden] {
  display: none;
}

.cart-page .cart-products-empty strong {
  font-size: 16px;
}

.cart-page .cart-products-empty p,
.cart-page .cart-documents-card__empty {
  margin: 0;
  color: #77716c;
  font-size: 12px;
  line-height: 1.45;
}

.cart-page .cart-products-empty > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cart-page .cart-documents-card__empty {
  border-top: 1px solid #efedeb;
  padding: 14px 0 4px;
}

@media (max-width: 1560px) {
  .cart-page .project-directions-list .project-direction {
    min-height: 54px;
    grid-template-columns: 48px minmax(0, 1fr) 16px;
    gap: 8px;
    padding-inline: 8px 4px;
  }

  .cart-page .project-directions-list img {
    width: 48px;
    height: 34px;
  }
}

@media (max-width: 760px) {
  .cart-page .project-directions-list .project-direction {
    grid-template-columns: 54px minmax(0, 1fr) 18px;
    padding-inline: 10px 6px;
  }

  .cart-page .project-directions-list img {
    width: 54px;
    height: 38px;
  }

  .cart-page .cart-products-empty > div {
    display: grid;
    width: 100%;
  }
}

/* Account dashboard: create project action and compact modal */
.account-dashboard-page .account-rail {
  gap: 16px;
}

.account-dashboard-page .project-modal {
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.account-dashboard-page.is-project-modal-open .project-modal {
  transition-delay: 0s;
}

.account-dashboard-page .account-create-project-button {
  grid-column: 1 / -1;
  display: inline-flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 1px solid #9f1e1e;
  border-radius: 11px;
  background: #b22222;
  color: #fff;
  padding: 12px 20px;
  font-family: Inter, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.account-dashboard-page .account-create-project-button:hover {
  border-color: #8f1a1a;
  background: #971d1d;
}

.account-dashboard-page .account-create-project-button:focus-visible {
  outline: 3px solid rgba(178, 34, 34, 0.24);
  outline-offset: 3px;
}

.account-dashboard-page .project-modal__dialog {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border-color: #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(28, 27, 26, 0.18);
}

.account-dashboard-page .project-modal__header {
  padding: 32px 34px 18px;
}

.account-dashboard-page .project-modal__header h2 {
  font-size: 28px;
}

.account-dashboard-page .project-modal__close {
  border-radius: 8px;
}

.account-dashboard-page .account-project-modal__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 0 34px 30px;
}

.account-dashboard-page .account-project-modal__field--full {
  grid-column: 1 / -1;
}

.account-dashboard-page .account-project-modal .project-field {
  gap: 8px;
  font-size: 13px;
}

.account-dashboard-page .account-project-modal .project-field > input,
.account-dashboard-page .account-project-modal .project-field > select {
  height: 46px;
  border-color: #e1dfdd;
  border-radius: 8px;
  font-size: 14px;
}

.account-dashboard-page .account-project-modal .project-field input[aria-invalid="true"] {
  border-color: rgba(178, 34, 34, 0.72);
  background: #fffafa;
}

.account-dashboard-page .account-project-modal__number {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #e1dfdd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-dashboard-page .account-project-modal__number:focus-within {
  border-color: rgba(178, 34, 34, 0.48);
  box-shadow: 0 0 0 2px rgba(178, 34, 34, 0.12);
}

.account-dashboard-page .account-project-modal__number > input {
  width: 100%;
  height: 44px;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 8px 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.account-dashboard-page .account-project-modal__number > input::placeholder {
  color: #aaa49f;
}

.account-dashboard-page .account-project-modal__number > span {
  padding: 0 14px 0 6px;
  color: #77716c;
  font-size: 13px;
  font-weight: 700;
}

.account-dashboard-page .project-modal__footer {
  padding: 18px 34px 28px;
}

.account-dashboard-page .project-modal__button {
  min-width: 132px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.account-dashboard-page .project-modal__button--primary {
  gap: 9px;
}

.account-dashboard-page .project-modal__button:disabled,
.account-dashboard-page .project-modal__close:disabled,
.account-dashboard-page .project-modal__overlay:disabled {
  cursor: wait;
  opacity: 0.68;
}

.account-project-modal__spinner {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: account-project-spinner 700ms linear infinite;
}

.account-project-modal__spinner[hidden] {
  display: none;
}

@keyframes account-project-spinner {
  to {
    transform: rotate(360deg);
  }
}

.account-dashboard-page .account-work-table tbody tr.is-new-project {
  background: #fff5f4;
  box-shadow: inset 3px 0 0 #b22222;
}

@media (max-width: 760px) {
  .account-dashboard-page .project-modal {
    padding-block: 16px;
  }

  .account-dashboard-page .project-modal__dialog {
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
  }

  .account-dashboard-page .project-modal__header {
    padding: 24px 20px 16px;
  }

  .account-dashboard-page .account-project-modal__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px 24px;
  }

  .account-dashboard-page .account-project-modal__field--full {
    grid-column: auto;
  }

  .account-dashboard-page .project-modal__footer {
    padding: 16px 20px 20px;
  }
}

@media (max-width: 430px) {
  .account-dashboard-page .account-create-project-button {
    min-height: 58px;
    font-size: 16px;
  }

  .account-dashboard-page .project-modal__header,
  .account-dashboard-page .account-project-modal__grid,
  .account-dashboard-page .project-modal__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .account-dashboard-page .project-modal__actions {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
