

:root {
  
  --brand: #8c1821;          
  --brand-link: #911a22;     
  --brand-dark: #6e1319;     
  --brand-soft: #fbf1f2;     
  --brand-line: #e3c4c7;     
  --brand-rgb: 140, 24, 33;  

  
  --ink: #1b1b1b;            
  --ink-mid: #3d4247;        
  --ink-soft: #63676c;       
  --paper: #ffffff;
  --canvas: #f5f6f7;
  --line: #d9dbde;
  --line-strong: #c4c7cb;

  
  --success: #8c1821;
  --danger: #b42318;         

  
  --shadow-card: 0 10px 20px 0 rgba(21, 72, 137, 0.08);
  --shadow: 0 18px 44px rgba(21, 72, 137, 0.18);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select,
label,
input[type="checkbox"] {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 6vw, 4.85rem);
  font-weight: 750;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3.3vw, 2.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  color: white;
  background: var(--ink);
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: 1.07rem;
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.header-contact {
  display: grid;
  text-align: right;
  text-decoration: none;
}

.header-contact__label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.header-contact__value {
  font-weight: 650;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 84% 16%, rgba(var(--brand-rgb), 0.42), transparent 31%),
    linear-gradient(135deg, var(--ink), var(--brand) 58%, #6e1319);
}

.hero::after {
  position: absolute;
  right: -170px;
  bottom: -250px;
  width: 420px;
  height: 420px;
  border: 72px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  content: "";
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 500px;
  align-content: center;
  padding-block: 72px 46px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8b9bd;
}

.hero__lead {
  max-width: 700px;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.trust-line span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.trust-line span::before {
  color: #e8b9bd;
  content: "✓";
}

.trust-line strong {
  color: white;
}

.calculator-picker {
  padding-block: 76px 88px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-card);
}

.service-card--active {
  border-color: rgba(var(--brand-rgb), 0.46);
  box-shadow: var(--shadow-card);
}

.service-card__number {
  margin-bottom: 28px;
  color: #a9adb2;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.service-card__body {
  flex: 1;
}

.service-card__status {
  display: inline-block;
  margin-bottom: 15px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--success);
  background: var(--canvas);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-card__status--muted {
  color: var(--ink-soft);
  background: var(--canvas);
}

.service-card p {
  min-height: 72px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

.service-card__features {
  display: grid;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  list-style: none;
}

.service-card__features li {
  display: flex;
  gap: 8px;
}

.service-card__features li::before {
  color: var(--brand);
  content: "•";
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 700;
  text-align: center;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  color: #8b8f94;
  background: #e9eaec;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  color: white;
  background-color: var(--brand);
  background-image: linear-gradient(180deg, #cb3039 0%, #8c1821 34%, #75121a 100%);
  border-color: transparent;
  box-shadow:
    0 3px 0 0 #6d131a,
    inset 0 4px 8px 4px rgba(255, 255, 255, .12);
  transition: background-image .25s, box-shadow .25s, transform .25s;
}

.button--primary:hover {
  background-image: linear-gradient(180deg, #d93a44 0%, #9a1a23 34%, #82141d 100%);
  box-shadow:
    0 4px 0 0 #6d131a,
    inset 0 4px 10px 4px rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

.button--primary:active {
  background-image: linear-gradient(180deg, #e5444e 0%, #a81d27 34%, #8d1620 100%);
  box-shadow:
    0 0 0 0 #6d131a,
    inset 0 4px 8px 4px rgba(255, 255, 255, .22);
  transform: translateY(2px);
}

@media (prefers-reduced-motion: reduce) {
  .button--primary { transition: none; }
  .button--primary:hover,
  .button--primary:active { transform: none; }
}

.button--primary:hover {
  background-color: var(--brand-dark);
}

#calculateButton:not(:disabled),
#corporateCalculateButton:not(:disabled),
#oralCalculateButton:not(:disabled),
#apostilleCalculateButton:not(:disabled) {
  color: #fff !important;
  background-image: linear-gradient(180deg, #cb3039 0%, #8c1821 34%, #75121a 100%) !important;
  background-color: var(--brand) !important;
  border-color: transparent !important;
}

#calculateButton:disabled,
#corporateCalculateButton:disabled,
#oralCalculateButton:disabled,
#apostilleCalculateButton:disabled {
  color: #fff !important;
  background-image: linear-gradient(180deg, #cb3039 0%, #8c1821 34%, #75121a 100%) !important;
  background-color: var(--brand) !important;
  border-color: transparent !important;
}

.button--secondary {
  border-color: var(--line-strong);
  color: var(--brand);
  background: white;
}

.button--secondary:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.button--wide {
  width: 100%;
}

.button:focus-visible,
.icon-button:focus-visible,
.swap-button:focus-visible,
.quote-edit:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.upload-field:focus-within {
  outline: 3px solid rgba(var(--brand-rgb), 0.3);
  outline-offset: 2px;
}

.process-section {
  padding-block: 60px;
  color: white;
  background: var(--ink);
}

.process-section__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) 1.25fr;
  gap: 70px;
  align-items: center;
}

.process-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.process-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #e8b9bd;
  font-weight: 750;
}

.site-footer {
  padding-block: 22px;
  color: #9a9ea3;
  background: #111111;
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 16px;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog {
  position: relative;
  display: grid;
  width: min(1000px, 100%);
  height: min(590px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.dialog__header {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
}

.dialog__heading {
  min-width: 0;
  text-align: center;
}

.dialog__label {
  display: block;
  margin-bottom: 1px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dialog__heading h2 {
  margin: 0;
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--brand);
  background: white;
  font-size: 1.4rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.icon-button > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
}

.dialog__close > span {
  transform: translateY(-1px);
}

.dialog__back {
  visibility: hidden;
}

.dialog__back.is-visible {
  visibility: visible;
}

.dialog__view {
  min-height: 0;
}

.calculator-layout {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 57%) minmax(0, 43%);
}

.calculator-pane {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  border-right: 1px solid var(--line);
}

.calculator-pane__body {
  min-height: 0;
  padding: 12px 18px 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.calculator-pane__footer {
  padding: 9px 18px 12px;
  border-top: 1px solid var(--line);
  background: white;
}

.compact-section + .compact-section {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.corporate-calculator-view .compact-section + .compact-section {
  margin-top: 6px;
  padding-top: 6px;
}

.compact-section h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.language-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.language-pair.oral-language-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field__label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.field__label--section {
  font-size: 16px;
  font-weight: 700;
}

.field__label em,
.field__inside-placeholder em,
.consent-row em {
  color: var(--danger);
  font-style: normal;
}

.field--inside-label {
  position: relative;
  display: block;
}

.field__inside-placeholder {
  position: absolute;
  top: 50%;
  left: 12px;
  color: #74787d;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}

.field--inside-label input:focus ~ .field__inside-placeholder,
.field--inside-label input:not(:placeholder-shown) ~ .field__inside-placeholder,
.field--inside-label textarea:focus ~ .field__inside-placeholder,
.field--inside-label textarea:not(:placeholder-shown) ~ .field__inside-placeholder {
  opacity: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: white;
}

.field textarea {
  resize: vertical;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #a8abaf;
}

.field input:focus::placeholder,
.field textarea:focus::placeholder {
  color: transparent;
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 13px;
}

.swap-button {
  display: grid;
  width: 40px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--brand);
  background: white;
  font-size: 1.05rem;
}

.swap-button:hover {
  background: var(--brand-soft);
}

.page-section {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.page-field input {
  text-align: center;
}

.stepper.page-stepper {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-stepper button,
.page-stepper input {
  height: 42px;
}

.page-note {
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.corporate-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.corporate-section-heading h3 {
  margin-bottom: 7px;
}

.corporate-volume-note {
  margin: -2px 0 8px;
  color: var(--ink-soft);
  font-size: 12px;
}

.corporate-volume-modes {
  display: grid;
  gap: 7px;
}

.corporate-volume-mode {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.corporate-volume-mode.is-active {
  border-color: rgba(var(--brand-rgb), 0.52);
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.09);
}

.corporate-volume-mode__heading {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.corporate-volume-mode__heading span {
  min-width: 0;
  white-space: nowrap;
}

.corporate-volume-mode__heading input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
}

.corporate-volume-mode__content {
  padding: 0 10px 9px 35px;
}

.corporate-volume-mode__content[hidden] {
  display: none;
}

.inline-action {
  padding: 2px 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.corporate-volume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
  align-items: start;
}

.corporate-upload-wrap {
  min-width: 0;
}

.corporate-upload-field {
  position: relative;
  display: flex;
  min-height: 67px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--canvas);
}

.corporate-upload-field:hover,
.corporate-upload-field.is-dragging {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.corporate-upload-field.is-analyzing {
  overflow: hidden;
  border-style: solid;
  border-color: var(--line-strong);
  background: var(--canvas);
  cursor: progress;
}

.corporate-upload-field.is-analyzing::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background-image: linear-gradient(90deg, transparent, var(--ink-soft), transparent);
  background-repeat: no-repeat;
  background-size: 40% 100%;
  animation: polosa-razbora 1.2s linear infinite;
  content: "";
}

@keyframes polosa-razbora {
  from { background-position: -45% 0; }
  to { background-position: 145% 0; }
}

.corporate-upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.corporate-upload-field__icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 10px;
  background: white;
  box-shadow: var(--shadow-card);
}

.corporate-upload-field__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.corporate-upload-field__copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.corporate-upload-field__copy small,
.corporate-page-field small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
}

.smartcaptcha-slot {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-mid);
  background: var(--canvas);
}

.calculation-captcha {
  min-height: 0;
}

.calculation-captcha .cms-captcha-note,
.standalone-smartcaptcha-wrap .cms-captcha-note,
.dialog .cms-captcha-note,
.standalone-order-dialog .cms-captcha-note {
  color: var(--ink-soft);
  font-size: 12px;
}

.smartcaptcha-slot.is-live {
  height: 100px;
  padding: 0;
  border: 0;
  background: transparent;
}

.smartcaptcha-slot strong {
  font-size: 12px;
}

.smartcaptcha-slot small {
  font-size: 12px;
  line-height: 1.3;
}

.corporate-page-field {
  gap: 5px;
}

.corporate-page-field--compact,
.corporate-page-field--compact .page-stepper {
  width: 150px;
}

.corporate-page-field input {
  text-align: center;
}

.corporate-file-list {
  display: grid;
  min-height: 0;
  gap: 4px;
  margin-top: 6px;
}

.corporate-file-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto 28px;
  gap: 7px;
  align-items: center;
  padding: 4px 5px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--canvas);
}

.corporate-file-row.is-error {
  border-color: #e7b3b3;
  background: #fff6f6;
}

.corporate-file-row__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.3;
}

.corporate-file-row__pages {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.corporate-file-row.is-error .corporate-file-row__pages {
  color: var(--danger);
}

.corporate-file-row__remove {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--ink-soft);
  background: white;
  font-size: 1rem;
  line-height: 1;
}

.corporate-file-row__remove:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: #fff4f4;
}

.corporate-paste-panel {
  margin-top: 6px;
}

.corporate-paste-panel textarea {
  min-height: 62px;
  max-height: 92px;
  font-size: 13px;
  resize: vertical;
}

.analysis-status,
.privacy-inline {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.32;
}

.analysis-status.is-error {
  color: var(--danger);
}

.analysis-status.is-warning {
  color: #8a6418;
}

.privacy-inline {
  padding-left: 17px;
  color: var(--ink-soft);
}

.privacy-inline::before {
  float: left;
  margin-left: -17px;
  color: var(--success);
  content: "✓";
  font-weight: 800;
}

.corporate-topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.corporate-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 7px;
}

.corporate-checks--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-check {
  display: grid;
  min-width: 0;
  min-height: 45px;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.compact-check:has(input:checked) {
  border-color: rgba(var(--brand-rgb), 0.5);
  background: var(--brand-soft);
}

.compact-check input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
}

.compact-check span {
  display: grid;
  min-width: 0;
}

.compact-check strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-check small {
  color: var(--ink-soft);
  font-size: 12px;
}

.compact-field-grid,
.compact-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.compact-field-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-choice {
  display: grid;
  min-width: 0;
  min-height: 50px;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.compact-choice:has(input:checked) {
  border-color: rgba(var(--brand-rgb), 0.52);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.09);
}

.compact-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.compact-choice span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.compact-choice strong {
  font-size: 13px;
}

.compact-choice small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.25;
}

.oral-duration-modes {
  display: grid;
  gap: 7px;
}

.oral-duration-mode {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.oral-duration-mode.is-active {
  border-color: rgba(var(--brand-rgb), 0.52);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), 0.09);
}

.oral-duration-mode__heading {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.oral-duration-mode__heading input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.oral-duration-mode__content {
  padding: 0 10px 9px 36px;
  background: white;
}

.oral-duration-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
}

.oral-hours-stepper,
.oral-subject-field,
.oral-subject-field select {
  width: 100%;
}

.oral-hours-stepper,
.oral-hours-stepper button,
.oral-hours-stepper input {
  background: white;
}

.oral-extra-fields {
  margin-top: 7px;
}

.apostille-order-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.apostille-calculator-view .field input,
.apostille-calculator-view .field select,
.apostille-calculator-view .page-stepper,
.apostille-calculator-view .page-stepper button,
.apostille-calculator-view .page-stepper input {
  height: 44px;
  min-height: 44px;
}

.apostille-calculator-view .field select {
  padding-block: 0;
  line-height: 44px;
}

.apostille-region-grid {
  align-items: end;
}

.apostille-region-grid .field {
  grid-template-rows: 18px 44px;
}

.apostille-document-field {
  display: block;
  margin-bottom: 7px;
}

.apostille-document-field select,
.apostille-term-field select {
  width: 100%;
}

@media (min-width: 681px) {
  .apostille-document-field select {
    font-size: 13px;
  }
}

.apostille-count-stepper {
  grid-template-columns: 42px minmax(52px, 1fr) 42px !important;
}

.apostille-count-stepper button,
.apostille-count-stepper input {
  display: grid;
  place-items: center;
  border-radius: 0;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.apostille-count-stepper button {
  appearance: none;
  font-size: 1rem;
}

.apostille-count-stepper button:active:not(:disabled) {
  background: var(--brand-soft);
}

.apostille-term-note {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.4;
}

.services-section h3 {
  margin-bottom: 8px;
}

.service-options {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-option {
  display: grid;
  min-height: 49px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 5px 9px;
  background: white;
}

.service-option + .service-option {
  border-top: 1px solid var(--line);
}

.service-option.is-enabled {
  background: var(--canvas);
}

.service-option--no-quantity {
  grid-template-columns: 1fr;
}

.check-row {
  display: grid;
  min-width: 0;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.check-row input {
  position: absolute;
  opacity: 0;
}

.check-row__box {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: white;
}

.check-row input:checked + .check-row__box {
  border-color: var(--brand);
  background: var(--brand);
}

.check-row input:checked + .check-row__box::after {
  color: white;
  content: "✓";
  font-size: 13px;
  font-weight: 800;
}

.check-row input:focus-visible + .check-row__box {
  outline: 3px solid rgba(var(--brand-rgb), 0.3);
  outline-offset: 2px;
}

.check-row__copy {
  display: grid;
  min-width: 0;
  gap: 0;
}

.check-row__copy strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-row__copy small {
  color: var(--ink-soft);
  font-size: 12px;
}

.service-note {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.2;
}

.quantity-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
}

.stepper {
  display: grid;
  grid-template-columns: 31px 36px 31px;
  overflow: hidden;
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
}

.stepper button,
.stepper input {
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: white;
  text-align: center;
}

.stepper button {
  color: var(--brand);
  font-weight: 700;
}

.stepper button:hover:not(:disabled) {
  background: var(--brand-soft);
}

.stepper button:disabled,
.stepper input:disabled {
  color: #a0a4a8;
  background: var(--canvas);
  cursor: default;
}

.stepper input {
  border-inline: 1px solid var(--brand-line);
  appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.quote-pane {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 18px 18px 12px;
  flex-direction: column;
  background: var(--paper);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.quote-placeholder {
  display: grid;
  min-height: 100%;
  align-content: center;
  justify-items: center;
  padding: 24px;
  color: var(--ink-soft);
  text-align: center;
}

.quote-placeholder__mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 1.5rem;
  font-weight: 700;
}

.quote-placeholder h3 {
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 16px;
}

.quote-placeholder p {
  max-width: 260px;
  margin: 0;
  font-size: 13px;
}

.quote-result {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.quote-edit {
  display: none;
  align-self: flex-start;
  padding: 4px 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.quote-result__top {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(var(--brand-rgb), 0.16);
}

.quote-result__top span {
  color: var(--ink-soft);
  font-size: 13px;
}

.quote-result__top strong {
  color: var(--brand);
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1;
}

.quote-result__route {
  margin: 13px 0 11px;
  color: var(--ink-soft);
  font-size: 13px;
}

.quote-breakdown {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 11px 0;
  border-block: 1px solid rgba(var(--brand-rgb), 0.16);
}

.quote-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.quote-breakdown dt,
.quote-breakdown dd {
  margin: 0;
  font-size: 13px;
}

.quote-breakdown dt {
  color: var(--ink-soft);
}

.quote-breakdown dd {
  font-weight: 650;
  white-space: nowrap;
}

.quote-result__note,
.quote-result__disclaimer,
.quote-result__discount {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.38;
}

.quote-result__discount {
  padding: 8px 9px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
}

.quote-result .button {
  margin-top: auto;
}

.application-view {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.dialog__body {
  min-height: 0;
  overflow-y: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.dialog__body--application {
  padding: 10px 18px;
}

.dialog__footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line);
  background: white;
}

.contact-grid {
  display: grid;
  gap: 10px;
}

.contact-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-control {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
}

.phone-control select {
  min-height: 42px;
  padding-inline: 8px 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: var(--canvas);
  font-size: 13px;
}

.phone-number-wrap {
  min-width: 0;
}

.phone-number-wrap input {
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.task-composer {
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: white;
}

.task-composer.is-single .comment-field textarea {
  min-height: 86px;
}

.upload-field {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 0;
  border-top: 1px dashed var(--line-strong);
  border-radius: 0;
  background: var(--canvas);
}

.upload-field-wrap {
  display: block;
}

.upload-field:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.upload-field.is-dragging {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.upload-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-field__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  color: var(--brand);
  background: white;
  font-size: 1.2rem;
  box-shadow: var(--shadow-card);
}

.upload-field__copy {
  display: grid;
  gap: 2px;
}

.upload-field__copy strong {
  color: #74787d;
  font-size: 13px;
  font-weight: 500;
}

.upload-field__copy small {
  color: var(--ink-soft);
  font-size: 12px;
}

.comment-field textarea {
  height: 64px;
  min-height: 64px;
  max-height: 92px;
  border: 0;
  border-radius: 0;
}

.comment-field .field__inside-placeholder {
  top: 13px;
  transform: none;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.file-list__item {
  display: inline-flex;
  min-width: 0;
  max-width: 220px;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--canvas);
  font-size: 12px;
}

.file-list__item span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-smartcaptcha-status {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink-mid);
  background: var(--canvas);
}

.application-smartcaptcha-status.is-passed {
  border-color: var(--line-strong);
  color: var(--ink-mid);
  background: var(--canvas);
}

.application-smartcaptcha-status strong {
  font-size: 13px;
}

.application-smartcaptcha-status small {
  font-size: 12px;
  line-height: 1.3;
}

.consents {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 10px 16px;
  margin-top: 10px;
}

.consent-row {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
}

.consent-row a {
  color: var(--brand);
}

.corporate-application-note {
  margin: 0 0 9px;
  padding: 8px 10px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  color: var(--ink-mid);
  background: var(--canvas);
  font-size: 12px;
  line-height: 1.35;
}

.corporate-application-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand);
  font-size: 13px;
}

.corporate-application-note ul {
  margin: 0 0 4px;
  padding-left: 17px;
}

.corporate-application-note li + li {
  margin-top: 1px;
}

.corporate-application-note small {
  display: block;
  font-size: 12px;
}

.success-state {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  padding: 24px;
  text-align: center;
}

.success-state__icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--success);
  font-size: 1.5rem;
}

.success-state h3 {
  font-size: 1.35rem;
}

.success-state p {
  max-width: 470px;
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  z-index: 150;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100% - 40px));
  padding: 12px 15px;
  border-radius: 11px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 13px;
}

.standalone-order-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #1b1b1b;
}

.standalone-modal-stage {
  position: fixed;
  inset: 0;
  display: grid;
  padding: 16px;
  place-items: center;
}

.standalone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 27, 0.78);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.standalone-order-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}

.standalone-order-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(900px, 100%);
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0, 1fr);
}

.standalone-order-dialog__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line);
}

.standalone-order-dialog__header h1 {
  max-width: none;
  margin: 0;
  font-size: 1.3rem;
}

.standalone-order-dialog__close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink-soft);
  background: white;
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
}

.standalone-order-dialog__close:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.standalone-order-dialog__body {
  min-height: 0;
  padding: 18px 20px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.standalone-task-composer {
  margin-top: 12px;
}

.standalone-task-composer .comment-field textarea {
  min-height: 92px;
  max-height: 180px;
}

.standalone-task-composer .comment-field .field__inside-placeholder {
  right: 12px;
  max-width: calc(100% - 24px);
  line-height: 1.3;
}

.standalone-upload-field {
  min-height: 68px;
}

.standalone-file-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.standalone-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 5px 6px 5px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}

.standalone-file-row__name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

.standalone-file-row small {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.standalone-file-row__remove {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: white;
  font-size: 1.05rem;
}

.standalone-file-row__remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.standalone-smartcaptcha-wrap {
  width: min(360px, 100%);
  min-height: 100px;
  margin-top: 12px;
}

.standalone-smartcaptcha {
  min-height: 100px;
  align-content: center;
}

.standalone-smartcaptcha.is-live {
  width: 100%;
  min-height: 100px;
}

.standalone-consents {
  margin-top: 14px;
}

.standalone-order-actions {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.standalone-success-state {
  min-height: 440px;
}

.standalone-success-state .button {
  width: min(320px, 100%);
}

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 220px;
    gap: 14px;
    align-items: start;
  }

  .service-card__number {
    margin: 7px 0 0;
  }

  .service-card p {
    min-height: 0;
  }

  .service-card__features {
    grid-template-columns: repeat(3, auto);
    margin-bottom: 0;
  }

  .service-card .button {
    align-self: center;
  }

  .process-section__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .dialog {
    width: min(920px, 100%);
  }

  .calculator-layout {
    grid-template-columns: minmax(0, 59%) minmax(0, 41%);
  }

  .calculator-pane__body {
    padding-inline: 16px;
  }

  .quote-pane {
    padding: 18px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header__inner {
    min-height: 64px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .header-contact__label,
  .header-contact__value {
    display: none;
  }

  .header-contact::after {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 11px;
    content: "☎";
  }

  .hero__inner {
    min-height: 500px;
    padding-block: 64px 38px;
  }

  h1 {
    font-size: clamp(2.3rem, 12vw, 3.45rem);
  }

  .hero__lead {
    margin-bottom: 34px;
  }

  .trust-line {
    display: grid;
    gap: 8px;
  }

  .calculator-picker {
    padding-block: 54px 60px;
  }

  .service-card {
    display: flex;
    padding: 22px;
  }

  .compact-field-grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-field-grid--three .field:last-child {
    grid-column: 1 / -1;
  }

  .apostille-order-row {
    grid-template-columns: 142px minmax(0, 1fr);
  }

  .corporate-volume-mode__heading {
    font-size: 14px;
  }

  .oral-duration-mode__heading {
    font-size: 14px;
  }

  .service-card__number {
    margin-bottom: 20px;
  }

  .service-card__features {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .process-list li {
    grid-template-columns: 34px 1fr;
    align-items: center;
  }

  .site-footer__inner {
    flex-direction: column;
  }

  .modal {
    padding: 0;
    place-items: stretch;
  }

  .dialog {
    width: 100%;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .dialog__header {
    min-height: 62px;
    padding: 9px 12px;
  }

  .dialog__heading h2 {
    font-size: 1rem;
  }

  .dialog__label {
    font-size: 12px;
  }

  .dialog__back {
    visibility: visible;
  }

  .calculator-layout {
    display: block;
    height: 100%;
  }

  .calculator-pane {
    height: 100%;
    border-right: 0;
  }

  .calculator-pane__body {
    padding: 14px 14px 10px;
    overflow-y: auto;
  }

  .calculator-pane__footer,
  .dialog__footer {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }

  .quote-pane {
    display: none;
    height: 100%;
    padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .calculator-view.is-result .calculator-pane {
    display: none;
  }

  .calculator-view.is-result .quote-pane {
    display: flex;
  }

  .quote-edit {
    display: inline-flex;
    margin-bottom: 14px;
  }

  .quote-result__top strong {
    font-size: 2.4rem;
  }

  .language-pair {
    grid-template-columns: 1fr 40px;
  }

  .language-pair .field:first-child {
    grid-column: 1 / -1;
  }

  .language-pair .swap-button {
    grid-column: 2;
    grid-row: 2;
    transform: rotate(90deg);
  }

  .language-pair .field:last-child {
    grid-column: 1;
    grid-row: 2;
  }

  .language-pair.oral-language-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-pair.oral-language-pair .field:first-child,
  .language-pair.oral-language-pair .field:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .page-section {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 10px;
  }

  .corporate-upload-field {
    min-height: 72px;
    padding-inline: 8px;
  }

  .corporate-upload-field__copy strong {
    white-space: normal;
  }

  .corporate-upload-field__copy small {
    display: block;
    max-height: 3.9em;
    overflow: hidden;
    font-size: 11px;
  }

  .corporate-checks {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .compact-check {
    min-height: 39px;
  }

  .compact-check strong {
    font-size: 13px;
  }

  .corporate-volume-mode__content {
    padding-left: 9px;
  }

  .service-option {
    padding-inline: 8px;
  }

  .check-row__copy strong {
    font-size: 13px;
  }

  .quantity-inline > span {
    display: none;
  }

  .stepper {
    grid-template-columns: 29px 34px 29px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .stepper input {
    font-size: 17px !important;
    line-height: 1.2;
    touch-action: manipulation;
  }

  .dialog__body--application {
    padding: 10px 14px;
    overflow-y: auto;
  }

  .contact-grid--three,
  .consents {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }

  .standalone-modal-stage {
    padding: 8px;
  }

  .standalone-order-dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .standalone-order-dialog__header {
    min-height: 58px;
    padding: 8px 10px 8px 14px;
  }

  .standalone-order-dialog__header h1 {
    font-size: 1.08rem;
  }

  .standalone-order-dialog__body {
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
  }

  .standalone-task-composer .comment-field textarea {
    min-height: 104px;
  }

  .standalone-file-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .standalone-file-row small {
    grid-column: 1;
    grid-row: 2;
  }

  .standalone-file-row__remove {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .standalone-order-actions .button {
    width: 100%;
  }
}

@media (min-width: 681px) and (max-height: 650px) {
  .calculator-pane__body,
  .quote-pane,
  .dialog__body {
    overflow-y: auto;
  }
}

@media (max-width: 380px) {
  .brand__text {
    font-size: 15px;
  }

  .page-section {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .check-row__copy small {
    font-size: 12px;
  }

  .stepper {
    grid-template-columns: 27px 31px 27px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  
  .corporate-upload-field.is-analyzing::after {
    background-image: none;
    background-color: var(--line-strong);
    animation: none;
  }
}
