:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --ink: #121826;
  --muted: #5f6b7a;
  --panel: #ffffff;
  --line: #d9dee7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(5, 9, 18, 0.32), rgba(5, 9, 18, 0.62)),
    url("assets/remotes-bg.png") center / cover no-repeat fixed,
    #111827;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 24px;
}

.browser-tip {
  width: min(100%, 440px);
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid #ead2c3;
  border-radius: 8px;
  color: #2b211c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  background: #fff8f2;
  box-shadow: 0 14px 34px rgba(61, 39, 26, 0.22);
}

.browser-tip-icon {
  width: 58px;
  height: 48px;
  display: grid;
  place-items: center;
}

.browser-tip-icon svg {
  width: 48px;
  height: 48px;
  transform: rotate(18deg);
}

.browser-tip-icon circle {
  fill: #dc2626;
}

.browser-tip-icon path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-panel {
  width: min(100%, 440px);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.brand-mark {
  min-width: 112px;
  height: 52px;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 21px;
  font-weight: 800;
  background: linear-gradient(135deg, #111827 0%, #00d4ff 100%);
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(26px, 7vw, 36px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-button {
  min-height: 74px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  background: #111827;
  box-shadow: 0 12px 24px rgba(18, 24, 38, 0.16);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.contact-button:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.32);
  outline-offset: 3px;
}

.contact-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 32px rgba(18, 24, 38, 0.12);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.18);
}

.icon svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.contact-button strong,
.contact-button small {
  display: block;
}

.contact-button strong {
  font-size: 17px;
  line-height: 1.1;
}

.contact-button small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.viber {
  background: linear-gradient(135deg, #7360f2 0%, #5a45d6 100%);
}

.telegram {
  background: linear-gradient(135deg, #229ed9 0%, #1684c7 100%);
}

.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.telegram-channel {
  background: linear-gradient(135deg, #0088cc 0%, #006da6 100%);
}

.phone {
  background: linear-gradient(135deg, #111827 0%, #334155 100%);
}

.website {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
}

.order {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.order-shell {
  justify-content: flex-start;
  padding-top: clamp(18px, 5vh, 48px);
}

.order-panel {
  width: min(100%, 520px);
  padding: 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.order-brand {
  gap: 12px;
  margin-bottom: 22px;
}

.order-brand h1 {
  font-size: clamp(25px, 6vw, 34px);
}

.order-form {
  display: grid;
  gap: 16px;
}

.form-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(217, 222, 231, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.form-section h2 {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
}

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

.order-form label {
  display: grid;
  gap: 7px;
}

.order-form span {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.order-form small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.file-field {
  padding: 14px;
  border: 1px dashed #b8c2cf;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.8);
}

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

.file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-form .file-picker-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 14px;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  background: #334155;
}

.file-picker-name {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.file-input:focus + .file-picker .file-picker-button {
  outline: 3px solid rgba(31, 122, 140, 0.32);
  outline-offset: 3px;
}

.file-field small {
  margin-top: -1px;
}

.order-form textarea {
  resize: vertical;
  min-height: 112px;
}

.order-form input:focus,
.order-form textarea:focus {
  outline: 3px solid rgba(31, 122, 140, 0.2);
  border-color: #0f766e;
}

.submit-button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #111827 0%, #0f766e 100%);
  box-shadow: 0 12px 24px rgba(18, 24, 38, 0.16);
}

.form-actions {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.submit-button:hover {
  filter: brightness(1.04);
}

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

.submit-button:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.32);
  outline-offset: 3px;
}

.form-status {
  display: none;
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
}

.form-status.success {
  display: block;
  color: #166534;
}

.form-status.error {
  display: block;
  color: #b91c1c;
}

@media (max-width: 380px) {
  .page-shell {
    padding: 14px;
  }

  .contact-panel {
    padding: 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    min-width: 104px;
    height: 48px;
    font-size: 19px;
  }
}

@media (max-width: 520px) {
  .two-column-fields {
    grid-template-columns: 1fr;
  }

  .file-picker {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-height: 760px) {
  .page-shell {
    justify-content: flex-start;
  }
}
