:root {
  --red: #a78bfa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #0b0b0b;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  overflow: auto;
}

html.is-embedded,
html.is-embedded body {
  background: transparent;
}

p {
  text-wrap: pretty;
}

html,
body,
.mail-composer,
.mail-sidebar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.mail-composer::-webkit-scrollbar,
.mail-sidebar::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

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

button {
  color: inherit;
}

.section-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  padding: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.mail-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 28px 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.mail-sidebar strong {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mail-sidebar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.mail-sidebar button:hover,
.mail-sidebar button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  outline: 0;
}

.mail-sidebar .is-selected {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(109, 70, 190, 0.9), rgba(48, 28, 92, 0.9));
  box-shadow: 0 12px 26px rgba(167, 139, 250, 0.18);
}

.mail-composer {
  min-width: 0;
  overflow: auto;
  padding: clamp(24px, 3vw, 40px);
}

.mail-view[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.9rem, 5.8vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.contact-form {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form b,
.required-note span {
  color: #a78bfa;
  font: inherit;
}

.required-note {
  margin: 0 0 2px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-form .full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.12);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

input:focus,
textarea:focus {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  outline: 0;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(109, 70, 190, 0.95), rgba(48, 28, 92, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 36px rgba(167, 139, 250, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background:
    linear-gradient(135deg, #a78bfa, #5b35ad);
  outline: 0;
}

.social-grid {
  max-width: 760px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: clamp(24px, 3vw, 42px) clamp(18px, 2.4vw, 34px);
  align-items: start;
  margin-top: 12px;
}

.social-folder {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 10px 8px 12px;
  text-align: center;
  transition: transform 160ms ease;
}

.social-folder:hover,
.social-folder:focus-visible {
  outline: 0;
  transform: translateY(-2px);
}

.social-icon {
  width: min(100%, 126px);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
}

.social-folder small {
  margin-top: 3px;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-folder strong {
  width: 100%;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.48);
}

@media (max-width: 760px) {
  .section-page {
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mail-sidebar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    min-height: 54px;
    max-height: 54px;
    padding: 10px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mail-sidebar strong {
    display: none;
  }

  .mail-sidebar button {
    flex: 0 0 auto;
    min-height: 32px;
    height: 32px;
    align-self: center;
    white-space: nowrap;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 12vw, 3.55rem);
    letter-spacing: -0.045em;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .social-icon {
    max-width: 116px;
  }
}

.services-view {
  max-width: 940px;
}

.services-hero {
  max-width: 860px;
}

.services-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 5.4vw, 5.9rem);
}

.services-hero p,
.services-cta p {
  max-width: 780px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.services-lead {
  color: rgba(255, 255, 255, 0.78) !important;
}

.services-block {
  margin-top: clamp(24px, 4vw, 44px);
}

.services-block h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

.service-card {
  min-height: 156px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 139, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.17), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.07);
}

.service-card span {
  color: #a78bfa;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.service-card strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.45;
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(22px, 3vw, 34px);
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.services-cta p {
  margin: 0;
}

.services-cta .button {
  flex: 0 0 auto;
  min-width: 160px;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

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

  .services-cta .button {
    width: 100%;
  }
}

select {
  width: 100%;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(20px) saturate(1.12);
  cursor: pointer;
}

select:focus {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  outline: 0;
}

select option {
  color: #111;
  background: #fff;
}

@media (max-width: 420px) {
  .mail-composer {
    padding: 20px 16px 24px;
  }

  .social-grid {
    gap: 22px 10px;
  }

  .social-icon {
    max-width: 104px;
  }
}

.contact-form {
  max-width: 760px;
  align-items: end;
}

.contact-form select,
.contact-form input,
.contact-form textarea {
  min-height: 42px;
}

.contact-form textarea {
  min-height: 96px;
}

.mail-composer {
  padding-top: clamp(28px, 4vw, 48px);
}

#contactTitle {
  margin-bottom: 28px;
}

.contact-form label span {
  letter-spacing: 0.04em;
}

.contact-form .button.primary {
  margin-top: 2px;
  min-height: 44px;
}

.process-view {
  max-width: 900px;
}

.process-hero {
  max-width: 820px;
}

.process-hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.9rem, 5.4vw, 6rem);
}

.process-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.process-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-top: clamp(24px, 4vw, 42px);
}

.process-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(1.1);
}

.process-step > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(109, 70, 190, 0.95), rgba(48, 28, 92, 0.9));
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.process-step strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.process-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .process-step {
    grid-template-columns: 1fr;
  }

  .process-step > span {
    width: 38px;
    height: 38px;
  }
}

.hidden-field {
  display: none;
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.4;
}

.form-status.is-success {
  color: #7dff9a;
}

.form-status.is-error {
  color: #ff6b6b;
}

.button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.submit-confirmation {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 52px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px) saturate(1.12);
}

.submit-confirmation[hidden] {
  display: none;
}

.submit-confirmation h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.submit-confirmation p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  line-height: 1.6;
}

.confirmation-next {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.confirmation-next strong {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.confirmation-next span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.4;
}

.submit-confirmation .button {
  justify-self: start;
  margin-top: 4px;
}

.screen-message {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  animation: screenFadeIn 180ms ease both;
}

.screen-message[hidden] {
  display: none;
}

.screen-message.is-hiding {
  animation: screenFadeOut 220ms ease both;
}

.screen-message-card {
  width: min(520px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: clamp(18px, 3vw, 26px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.24), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(18, 18, 18, 0.94), rgba(5, 5, 5, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px) saturate(1.18);
  animation: messageSlideUp 220ms ease both;
}

.screen-message-copy {
  display: grid;
  gap: 8px;
}

.screen-message-copy span {
  color: #a78bfa;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.screen-message-copy strong {
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.screen-message-copy p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.55;
}

.screen-message-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.screen-message-close:hover,
.screen-message-close:focus-visible {
  color: #fff;
  background: rgba(109, 70, 190, 0.9);
  outline: 0;
  transform: scale(1.04);
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes screenFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes messageSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .screen-message {
    align-items: end;
  }

  .screen-message-card {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 16px;
  }

  .screen-message-copy strong {
    font-size: 2rem;
  }
}
