:root {
  --order-container: 1238px;
  --order-border: #101010;
  --order-muted: #7a7a7a;
  --order-line: #d8d8d8;
  --order-chip-off: #cbcbcb;
  --order-panel: #f1f2ff;
}

body {
  background: var(--white);
}

.order-page {
  min-height: 100vh;
  height: max-content;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
}

.order-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: center;
  background: var(--accent);
}

.order-page .site-header__inner {
  width: min(calc(100% - 40px), 800px);
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--black);
}

.order-page .site-header__logo {
  width: 92px;
  height: 45px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
}

.order-page .site-header__logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.order-page .site-header__logo::before {
  content: none;
}

.order-page .site-nav {
  height: 25px;
  display: flex;
  align-items: center;
  gap: 48px;
  color: var(--white);
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.order-page .site-nav a,
.order-page .account-pill,
.order-page .footer-mini a,
.order-page .burger-button,
.order-page .mobile-menu__panel a,
.choice-chip,
.order-button,
.summary-item__title-row a {
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

.order-page .site-nav a:hover,
.order-page .site-nav a:focus-visible {
  opacity: 0.75;
}

.order-page .account-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--black);
  border-radius: 30px;
  color: var(--white);
  background: var(--black);
  font-size: 16px;
  white-space: nowrap;
}

.order-page .account-pill:hover,
.order-page .account-pill:focus-visible {
  background: var(--black);
  border-color: var(--black);
}

.order-page .account-pill__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--white);
  line-height: 1;
  transition: color var(--transition), background-color var(--transition);
}

.order-page .account-pill:hover .account-pill__icon,
.order-page .account-pill:focus-visible .account-pill__icon {
  color: var(--white);
  background: var(--accent);
}

.order-page .menu-toggle,
.order-page .burger-button,
.order-page .mobile-menu {
  display: none;
}

.order-main {
  flex: 1;
  padding: 91px 0 32px;
}

.order-main__inner {
  width: min(calc(100% - 80px), var(--order-container));
  margin-inline: auto;
}

.order-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.order-step {
  min-height: 51px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

.order-step.is-active {
  padding: 0 17px 0 10px;
  border: 1px solid var(--accent);
  border-radius: 26px;
  color: var(--accent);
}

.order-step__num {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.order-stepper__line {
  width: 15px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--black);
}

.order-intro {
  width: min(100%, 968px);
  margin: 37px 0 0;
}

.order-intro h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
}

.order-intro p {
  max-width: 943px;
  margin: 14px 0 0;
  font-size: 24px;
  line-height: 1.08;
}

.order-layout {
  /* width: min(100%, 968px); */
  display: grid;
  grid-template-columns: minmax(0, 650px) 460px;
  gap: 16px;
  align-items: start;
  margin: 29px auto 0;
}

.order-form {
  min-width: 0;
}

.order-card,
.summary-card {
  border: 2px solid var(--order-border);
  border-radius: 25px;
  background: var(--white);
}

.order-card {
  padding: 12px 12px 14px;
}

.order-card h2,
.summary-card__head h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 28px;
}

.order-fields--contacts {
  margin-top: 11px;
}

.order-field {
  display: block;
}

.order-field--half {
  max-width: 268px;
}

.order-field--full {
  width: 100%;
}

.order-field span,
.order-section h3 {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.order-field input,
.order-field textarea {
  width: 100%;
  border: 2px solid var(--order-border);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
}

.order-field input {
  height: 36px;
  padding: 0 10px;
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: #a6a6a6;
}

.order-section {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--order-line);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.choice-chip {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 2px solid var(--order-border);
  border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1;
}

.choice-chip.is-selected {
  border-color: var(--accent);
  color: var(--accent);
}

.choice-chip.is-selected::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.choice-chip.is-disabled {
  border-color: var(--order-chip-off);
  color: var(--order-chip-off);
  pointer-events: none;
}

.order-field textarea {
  height: 61px;
  resize: none;
  padding: 10px;
}

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

.order-check {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.18;
}

.order-check + .order-check {
  margin-top: 13px;
}

.order-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-check__box {
  width: 22px;
  height: 22px;
  position: relative;
  border-radius: 8px;
  background: var(--accent);
}

.order-check__box::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.order-check a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-check__box {
  border: 1px solid #101010;
  background: var(--white);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.order-check__box::before {
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.order-check input:checked + .order-check__box {
  border-color: var(--accent);
  background-color: var(--accent);
}

.order-check input:checked + .order-check__box::before {
  background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.4 11.05L9.1 14.55L16.6 7.45' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.order-note {
  margin: 17px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--order-line);
  color: #8f8f8f;
  font-size: 16px;
  line-height: 1.1;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 10px;
}

.order-button {
  min-height: 33px;
  display: inline-grid;
  place-items: center;
  padding: 6px 28px;
  border: 2px solid var(--order-border);
  border-radius: 18px;
  color: var(--order-border);
  background: var(--white);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.order-button--back {
  min-width: 210px;
}

.order-button--submit {
  min-width: 180px;
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent);
}

.order-button:hover,
.order-button:focus-visible {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

.summary-card {
  padding: 12px 12px 13px;
}

.summary-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.summary-card__head span {
  color: var(--order-muted);
  font-size: 16px;
  line-height: 1;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
}

.summary-item {
  min-height: 72px;
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 7px 10px;
  border: 2px solid var(--order-border);
  border-radius: 16px;
}

.summary-item__icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #4b4b4b;
  background: #e2e2e2;
  font-size: 18px;
  line-height: 1;
}

.summary-item__body {
  min-width: 0;
}

.summary-item__title-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.summary-item__title-row h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.summary-item__title-row a {
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.summary-item__title-row a:hover,
.summary-item__title-row a:focus-visible {
  color: var(--black);
}

.summary-item p {
  margin: 7px 0 0;
  color: #6f6f6f;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-next {
  margin-top: 14px;
  padding: 11px 11px 9px;
  border: 2px solid var(--accent);
  border-radius: 16px;
  background: var(--order-panel);
}

.summary-next h3 {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.summary-next__list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next-steps;
}

.summary-next__list li {
  position: relative;
  min-height: 31px;
  padding-left: 41px;
  font-size: 16px;
  line-height: 1.12;
}

.summary-next__list li::before {
  counter-increment: next-steps;
  content: counter(next-steps);
  width: 29px;
  height: 29px;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  border: 2px solid var(--order-border);
  border-radius: 50%;
  color: var(--order-border);
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1;
}

.order-page .footer-mini {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0;
  color: var(--white);
  background: var(--black);
}

.order-page .footer-mini__inner {
  width: min(calc(100% - 80px), var(--order-container));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
}

.order-page .footer-mini a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.order-page .footer-mini a:hover,
.order-page .footer-mini a:focus-visible {
  color: var(--white);
}

@media (max-width: 1280px) {
  :root {
    --order-container: 1080px;
  }

  .order-page .site-nav {
    gap: 48px;
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
  }
}

@media (max-width: 1100px) {
  .order-page .site-header__inner,
  .order-main__inner,
  .order-page .footer-mini__inner {
    width: min(calc(100% - 48px), 920px);
  }

  .order-page .site-header__inner {
    width: min(calc(100% - 40px), 800px);
  }

  .order-page .site-nav {
    gap: 48px;
    font-size: 14px;
  }

  .order-intro,
  .order-layout {
    width: 100%;
  }

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

  .summary-card {
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  .order-page .site-header {
    height: 58px;
  }

  .order-page .site-header__inner {
    width: calc(100% - 24px);
    height: 58px;
  }

  .order-page .site-header__logo {
    width: 82px;
    height: 40px;
  }

  .order-page .site-header__logo::before {
    font-size: 34px;
    line-height: 1.1;
  }

  .order-page .site-nav,
  .order-page .account-pill {
    display: none;
  }

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

  .order-page .burger-button {
    position: relative;
    z-index: 12;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .order-page .burger-button span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
    transition: transform 240ms ease, opacity 180ms ease, top 240ms ease;
  }

  .order-page .burger-button span:nth-child(1) { top: 14px; }
  .order-page .burger-button span:nth-child(2) { top: 20px; }
  .order-page .burger-button span:nth-child(3) { top: 26px; }

  .order-page .menu-toggle:checked + .burger-button {
    background: var(--black);
  }

  .order-page .menu-toggle:checked + .burger-button span:nth-child(1) {
    top: 20px;
    transform: rotate(45deg);
  }

  .order-page .menu-toggle:checked + .burger-button span:nth-child(2) {
    opacity: 0;
  }

  .order-page .menu-toggle:checked + .burger-button span:nth-child(3) {
    top: 20px;
    transform: rotate(-45deg);
  }

  .order-page .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: block;
    visibility: hidden;
    opacity: 0;
    padding: 98px 24px 40px;
    background: var(--white);
    transform: translateY(-10px);
    transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease;
  }

  .order-page .menu-toggle:checked ~ .mobile-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .order-page .mobile-menu__panel {
    min-height: calc(100vh - 138px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1;
    text-align: center;
  }

  .order-main {
    padding: 82px 0 56px;
  }

  .order-main__inner,
  .order-page .footer-mini__inner {
    width: calc(100% - 24px);
  }

  .order-stepper {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
    font-size: 15px;
    scrollbar-width: none;
  }

  .order-stepper::-webkit-scrollbar {
    display: none;
  }

  .order-step {
    min-height: 42px;
  }

  .order-step__num {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .order-intro {
    margin-top: 24px;
  }

  .order-intro h1 {
    font-size: 26px;
  }

  .order-intro p {
    font-size: 18px;
  }

  .order-fields {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-field--half,
  .summary-card {
    max-width: none;
  }

  .summary-item__title-row {
    flex-wrap: wrap;
  }

  .order-actions {
    flex-direction: column;
    gap: 10px;
  }

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

@media (max-width: 520px) {
  .order-stepper {
    gap: 10px;
  }

  .order-step span:last-child {
    max-width: 130px;
    white-space: normal;
  }

  .order-card,
  .summary-card {
    padding-inline: 10px;
    border-radius: 20px;
  }

  .choice-chip,
  .summary-item p,
  .summary-next__list li,
  .order-note {
    font-size: 14px;
  }

  .summary-item__title-row h3 {
    font-size: 18px;
  }
}
