/* ==========================================================================
   Katerina Kashtanova — Vice City inspired website
   Palette is taken from the SoberMind mobile app (lib/theme/app_themes.dart)
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kaushan Script";
  src: url("../fonts/KaushanScript-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --pink: #ff2a9d;
  --pink-bright: #ff5bb0;
  --pink-soft: #ff8ac6;
  --violet: #b15ad6;
  --violet-soft: #d18bff;
  --bg-deep: #2a1247;
  --surface: rgba(50, 26, 84, 0.78);
  --surface-strong: rgba(38, 18, 64, 0.96);
  --surface-high: rgba(69, 37, 114, 0.72);
  --text: #f7efff;
  --muted: rgba(247, 239, 255, 0.72);
  --muted-2: rgba(247, 239, 255, 0.52);
  --line: rgba(255, 42, 157, 0.28);
  --line-soft: rgba(255, 255, 255, 0.1);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-h: 82px;
  --shadow: 0 24px 60px rgba(18, 6, 38, 0.38);
  --glow: 0 0 32px rgba(255, 42, 157, 0.35);
  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system,
    "Noto Sans", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari",
    "Noto Sans Thai", "Noto Sans CJK", sans-serif;
  --font-display: "Kaushan Script", "Montserrat", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 42, 157, 0.34), transparent 38%),
    radial-gradient(circle at 92% 14%, rgba(177, 90, 214, 0.38), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(255, 122, 192, 0.22), transparent 46%),
    linear-gradient(135deg, #5e2588 0%, #b3479e 36%, #7e2e86 68%, #3d1c5c 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 0.6px, transparent 0.6px);
  background-size: 24px 24px;
  mix-blend-mode: soft-light;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: rgba(255, 42, 157, 0.55);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 600;
}

a {
  color: inherit;
}

img,
svg {
  max-width: 100%;
}

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

button {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--pink-bright);
  outline-offset: 3px;
}

/* ---------- Layout helpers ---------- */

.container {
  position: relative;
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: -100px;
  inset-inline-start: 1rem;
  z-index: 500;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  background: #fff;
  color: #2e174d;
  font-weight: 600;
  text-decoration: none;
  transition: inset-block-start 0.2s ease;
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--brand {
  fill: currentColor;
  stroke: none;
}

/* ---------- Shared components ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 42, 157, 0.24);
  border-radius: 999px;
  background: rgba(255, 42, 157, 0.08);
  color: var(--pink-soft);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2a9d 0%, #d62f9b 48%, #b15ad6 100%);
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 12px 30px rgba(255, 42, 157, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(255, 42, 157, 0.42),
    0 0 26px rgba(255, 42, 157, 0.32);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.btn--ghost {
  background: rgba(50, 26, 84, 0.35);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(69, 37, 114, 0.58);
  border-color: var(--pink-soft);
}

.btn--small {
  padding: 0.62rem 1.1rem;
  font-size: 0.81rem;
}

.btn--large {
  padding: 1.05rem 2rem;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink-soft);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link:hover {
  color: #fff;
}

.reveal {
  will-change: opacity, transform;
}

.reveal.is-visible {
  animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.grid .reveal:nth-child(2) {
  animation-delay: 0.05s;
}
.grid .reveal:nth-child(3) {
  animation-delay: 0.1s;
}
.grid .reveal:nth-child(4) {
  animation-delay: 0.15s;
}
.grid .reveal:nth-child(5) {
  animation-delay: 0.2s;
}
.grid .reveal:nth-child(6) {
  animation-delay: 0.25s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 42, 157, 0.16);
  background: linear-gradient(180deg, rgba(46, 23, 77, 0.9), rgba(46, 23, 77, 0.64));
  backdrop-filter: blur(18px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(38, 18, 64, 0.96);
  box-shadow: 0 12px 34px rgba(15, 5, 30, 0.38);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 2px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 42, 157, 0.96), rgba(177, 90, 214, 0.62));
  box-shadow: var(--glow);
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  background: #2e174d;
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.12;
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 18px rgba(255, 42, 157, 0.45);
  white-space: nowrap;
}

.brand__role {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.2rem;
}

.nav__link {
  position: relative;
  padding-block: 0.4rem;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  box-shadow: 0 0 10px var(--pink);
  transition: width 0.25s ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: #fff;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__cta {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.header__book {
  white-space: nowrap;
}

.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(50, 26, 84, 0.45);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.lang:hover {
  border-color: var(--line);
  background: rgba(69, 37, 114, 0.62);
}

.lang__globe {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--pink-soft);
}

.lang select {
  max-width: 132px;
  padding: 0 1.1rem 0 0;
  border: 0;
  outline: none;
  appearance: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.lang select option {
  background: #2e174d;
  color: var(--text);
}

.lang::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.72rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-inline-end: 1.5px solid var(--muted);
  border-block-end: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(69, 37, 114, 0.55);
  color: #fff;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 42, 157, 0.16);
  border-color: rgba(255, 42, 157, 0.5);
}

.menu-toggle__close {
  display: none;
}

.site-header.nav-open .menu-toggle__open {
  display: none;
}

.site-header.nav-open .menu-toggle__close {
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 8vw, 6.5rem)) clamp(4.5rem, 9vw, 8rem);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.hero__glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(24px);
  pointer-events: none;
}

.hero__glow--one {
  inset-inline-start: -180px;
  top: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(255, 42, 157, 0.42), transparent 66%);
}

.hero__glow--two {
  inset-inline-end: -240px;
  bottom: -220px;
  width: 660px;
  height: 660px;
  background: radial-gradient(circle, rgba(177, 90, 214, 0.48), transparent 66%);
}

.hero__grid-lines {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 0;
  height: 48%;
  opacity: 0.38;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 42, 157, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 157, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 82%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 82%);
}

.hero__title {
  max-width: 100%;
  margin-bottom: 1.4rem;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  color: #fff;
  background: linear-gradient(100deg, #fff 0%, #ffe1f2 38%, #ff8ac6 72%, #d18bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 42, 157, 0.28));
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title {
    color: #fff;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

.hero__subtitle {
  max-width: 58ch;
  margin-bottom: 2rem;
  color: rgba(247, 239, 255, 0.82);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.4rem;
  margin: 2.2rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line-soft);
  list-style: none;
}

.hero__features li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(69, 37, 114, 0.6);
  color: var(--pink-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feature-icon .icon {
  width: 20px;
  height: 20px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.portrait {
  position: relative;
  width: min(100%, 430px);
}

.portrait__frame {
  position: relative;
  overflow: hidden;
  padding: 1px;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 42, 157, 0.9),
    rgba(177, 90, 214, 0.45) 45%,
    rgba(255, 91, 176, 0.85)
  );
  box-shadow:
    0 30px 80px rgba(18, 6, 38, 0.55),
    0 0 60px rgba(255, 42, 157, 0.22);
}

.portrait__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(46, 23, 77, 0) 55%, rgba(46, 23, 77, 0.55) 100%);
}

.portrait__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 27px;
  filter: saturate(0.92) contrast(1.04);
}

.portrait__ring {
  position: absolute;
  inset: -14px;
  z-index: -1;
  border: 1px solid rgba(255, 42, 157, 0.25);
  border-radius: 40px;
  transform: rotate(-3deg);
  pointer-events: none;
}

.portrait__badge {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-width: 190px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(38, 18, 64, 0.84);
  box-shadow: 0 16px 36px rgba(18, 6, 38, 0.42);
  backdrop-filter: blur(12px);
}

.portrait__badge strong {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.1;
}

.portrait__badge span {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait__badge--years {
  inset-inline-start: -1.2rem;
  top: 12%;
}

.portrait__badge--clients {
  inset-inline-end: -1.2rem;
  bottom: 12%;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--tinted {
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(30, 14, 54, 0.18), rgba(30, 14, 54, 0.36));
}

.section__header {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__header h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section__lede {
  color: var(--muted);
  font-size: 1.03rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(69, 37, 114, 0.74), rgba(50, 26, 84, 0.86));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset-inline: -40%;
  top: -60%;
  height: 120%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0, rgba(255, 42, 157, 0.16), transparent 60%);
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 42, 157, 0.5);
  box-shadow:
    0 30px 70px rgba(18, 6, 38, 0.48),
    0 0 30px rgba(255, 42, 157, 0.16);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 42, 157, 0.16), rgba(177, 90, 214, 0.12));
  color: var(--pink-bright);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card__icon .icon {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.14rem;
  line-height: 1.32;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.card--method {
  padding-top: 2.3rem;
}

.card__number {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1.2rem;
  color: rgba(255, 255, 255, 0.14);
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.about h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
}

.about__role {
  margin-bottom: 1.4rem;
  color: var(--pink-soft);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.about__lead {
  color: rgba(247, 239, 255, 0.9);
  font-size: 1.04rem;
}

.about p {
  color: var(--muted);
}

.about__subtitle {
  margin: 2rem 0 1rem;
  font-size: 1.14rem;
}

.checks {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.check-icon {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.24rem;
  color: var(--pink-bright);
}

.about__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.about__photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(50, 26, 84, 0.6);
  box-shadow: var(--shadow);
}

.about__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.92) contrast(1.04);
}

.about__photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(180deg, rgba(38, 18, 64, 0.8), rgba(38, 18, 64, 0.96));
}

.about__photo figcaption strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

.about__photo figcaption span {
  color: var(--muted);
  font-size: 0.77rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.stat {
  padding: 1rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(50, 26, 84, 0.62);
  text-align: center;
}

.stat dt {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 42, 157, 0.3);
}

.stat dd {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(150deg, rgba(69, 37, 114, 0.8), rgba(38, 18, 64, 0.92));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.contact-panel__glow {
  position: absolute;
  inset-block-start: -220px;
  inset-inline-start: 50%;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 42, 157, 0.28), transparent 65%);
  transform: translateX(-50%);
}

.contact-panel h2 {
  position: relative;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.contact-panel__text {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: var(--muted);
}

.contact-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.6rem;
  margin: 2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-panel__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-panel__meta .icon {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--pink-soft);
}

.contact-panel__social-title {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  text-align: start;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(50, 26, 84, 0.6);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 157, 0.55);
  background: rgba(69, 37, 114, 0.75);
}

.social-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 42, 157, 0.18), rgba(177, 90, 214, 0.12));
  color: var(--pink-bright);
}

.social-card__icon .icon {
  width: 22px;
  height: 22px;
}

.social-card__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.social-card__text strong {
  font-size: 0.94rem;
}

.social-card__text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card__arrow {
  width: 1rem;
  height: 1rem;
  margin-inline-start: auto;
  flex: none;
  color: var(--muted-2);
  transition:
    transform 0.25s ease,
    color 0.25s ease;
}

.social-card:hover .social-card__arrow {
  color: var(--pink-bright);
  transform: translate(2px, -2px);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  margin-top: auto;
  padding-block: 4rem 1.5rem;
  border-top: 1px solid rgba(255, 42, 157, 0.2);
  background: linear-gradient(180deg, rgba(30, 14, 54, 0.55), rgba(20, 8, 38, 0.94));
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer__brand p {
  max-width: 36ch;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer h3 {
  margin-bottom: 1rem;
  color: var(--pink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

.footer__socials {
  display: flex;
  gap: 0.6rem;
}

.footer__socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.footer__socials a:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(255, 42, 157, 0.18);
  color: #fff;
}

.footer__socials .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer__contact .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--pink-soft);
}

.footer__contact a {
  font-size: 0.85rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-2);
  font-size: 0.78rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__disclaimer {
  margin-top: 1rem;
}

.footer__disclaimer p {
  max-width: 90ch;
  margin: 0;
  color: rgba(247, 239, 255, 0.38);
  font-size: 0.7rem;
  line-height: 1.6;
}

.footer .brand__name {
  font-size: 1.5rem;
}

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal--privacy {
  z-index: 130;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 4, 26, 0.74);
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease both;
}

.modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid rgba(255, 42, 157, 0.38);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(58, 30, 96, 0.98), rgba(38, 18, 64, 0.99));
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(255, 42, 157, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: modal-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  scrollbar-color: var(--pink) transparent;
  scrollbar-width: thin;
}

.modal__dialog--wide {
  width: min(760px, 100%);
}

.modal__close {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.modal__close:hover {
  border-color: var(--line);
  background: rgba(255, 42, 157, 0.18);
  color: #fff;
}

.modal__dialog h2 {
  margin-bottom: 0.7rem;
  padding-inline-end: 2.2rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.modal__lede {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

/* ---------- Form ---------- */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.field label {
  color: rgba(247, 239, 255, 0.85);
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  outline: none;
  background: rgba(30, 14, 54, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.91rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 239, 255, 0.38);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink);
  background: rgba(30, 14, 54, 0.82);
  box-shadow:
    0 0 0 3px rgba(255, 42, 157, 0.18),
    0 0 24px rgba(255, 42, 157, 0.12);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #ff6b8a;
  box-shadow: 0 0 0 3px rgba(255, 80, 120, 0.15);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.select-wrap {
  position: relative;
  display: block;
}

.select-wrap::after {
  content: "";
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-inline-end: 1.5px solid var(--muted);
  border-block-end: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.field select {
  padding-inline-end: 2.2rem;
  appearance: none;
  cursor: pointer;
}

.field select option {
  background: #2e174d;
  color: var(--text);
}

.form__privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin: 1.2rem 0 1.4rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.81rem;
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 0.14rem;
  flex: none;
  accent-color: var(--pink);
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.85rem;
}

.form-status.is-success {
  border-color: rgba(80, 255, 190, 0.35);
  background: rgba(80, 255, 190, 0.1);
  color: #a9ffdf;
}

.form-status.is-error {
  border-color: rgba(255, 80, 120, 0.4);
  background: rgba(255, 80, 120, 0.1);
  color: #ffb3c4;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.prose p {
  color: var(--muted);
  font-size: 0.91rem;
}

.prose p:last-child {
  margin-bottom: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- RTL ---------- */

[dir="rtl"] .social-card__arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .social-card:hover .social-card__arrow {
  transform: scaleX(-1) translate(-2px, -2px);
}

[dir="rtl"] .hero__grid-lines,
[dir="rtl"] .contact-panel__glow {
  direction: ltr;
}

/* ---------- Non-Latin typography ---------- */

/* Long unbroken words (German, Russian, Chinese, Japanese) need a little
   more room than the default display size allows. */
:lang(ru) .hero__title,
:lang(uk) .hero__title,
:lang(tg) .hero__title {
  font-size: clamp(1.9rem, 4.8vw, 3.8rem);
}

:lang(de) .hero__title {
  font-size: clamp(1.75rem, 4.6vw, 3.4rem);
}

:lang(pl) .hero__title {
  font-size: clamp(1.9rem, 5vw, 4.1rem);
}

:lang(zh) .hero__title,
:lang(ja) .hero__title {
  font-size: clamp(2rem, 4.2vw, 3.7rem);
}

:lang(ar) body,
:lang(fa) body,
:lang(he) body {
  line-height: 1.85;
}

:lang(ar) .hero__title,
:lang(fa) .hero__title,
:lang(he) .hero__title,
:lang(ar) h2,
:lang(fa) h2,
:lang(he) h2,
:lang(ar) h3,
:lang(fa) h3,
:lang(he) h3 {
  line-height: 1.28;
  letter-spacing: 0;
}

:lang(hi) .hero__title,
:lang(hi) h2,
:lang(hi) h3,
:lang(th) .hero__title,
:lang(th) h2,
:lang(th) h3 {
  line-height: 1.38;
  letter-spacing: 0;
}

:lang(zh) .hero__title,
:lang(ja) .hero__title,
:lang(zh) h2,
:lang(ja) h2,
:lang(zh) h3,
:lang(ja) h3 {
  letter-spacing: 0;
}

:lang(ru) .brand__name,
:lang(uk) .brand__name,
:lang(tg) .brand__name,
:lang(ar) .brand__name,
:lang(fa) .brand__name,
:lang(he) .brand__name,
:lang(hi) .brand__name,
:lang(th) .brand__name,
:lang(zh) .brand__name,
:lang(ja) .brand__name {
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(255, 42, 157, 0.32);
}

:lang(ru) .about__photo figcaption strong,
:lang(uk) .about__photo figcaption strong,
:lang(tg) .about__photo figcaption strong,
:lang(ar) .about__photo figcaption strong,
:lang(fa) .about__photo figcaption strong,
:lang(he) .about__photo figcaption strong,
:lang(hi) .about__photo figcaption strong,
:lang(th) .about__photo figcaption strong,
:lang(zh) .about__photo figcaption strong,
:lang(ja) .about__photo figcaption strong {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero__content {
    max-width: 700px;
  }

  .hero__visual {
    justify-content: flex-start;
  }

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

  .about__aside {
    position: static;
    width: min(100%, 540px);
  }

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

  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1.2fr;
  }
}

@media (max-width: 1279px) {
  .nav {
    position: absolute;
    inset-block-start: calc(100% + 0.6rem);
    inset-inline: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(38, 18, 64, 0.99);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav__link {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link:focus-visible {
    background: rgba(255, 42, 157, 0.1);
  }

  .nav__cta {
    display: inline-flex;
    margin-top: 0.55rem;
  }

  .header__book {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

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

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

  .footer__brand {
    grid-column: 1 / -1;
  }

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

  .modal {
    padding: 0.75rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .hero {
    padding-block-start: calc(var(--header-h) + 2.5rem);
  }

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

  .hero__actions .btn {
    width: 100%;
  }

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

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

  .footer__brand {
    grid-column: auto;
  }

  .portrait__badge--years {
    inset-inline-start: 0.5rem;
  }

  .portrait__badge--clients {
    inset-inline-end: 0.5rem;
  }

  .brand__role {
    display: none;
  }

  .lang select {
    max-width: 78px;
  }

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

  .contact-panel {
    border-radius: 24px;
  }

  .stats {
    gap: 0.45rem;
  }

  .stat {
    padding: 0.85rem 0.5rem;
  }

  .stat dt {
    font-size: 1.4rem;
  }

  .stat dd {
    font-size: 0.57rem;
  }
}

@media (max-width: 430px) {
  .header__inner {
    gap: 0.5rem;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand__mark img {
    border-radius: 12px;
  }

  .brand__name {
    font-size: 1.08rem;
  }

  :lang(ru) .brand__name,
  :lang(uk) .brand__name,
  :lang(tg) .brand__name,
  :lang(ar) .brand__name,
  :lang(fa) .brand__name,
  :lang(he) .brand__name,
  :lang(hi) .brand__name,
  :lang(th) .brand__name,
  :lang(zh) .brand__name,
  :lang(ja) .brand__name {
    font-size: 0.98rem;
  }

  .lang {
    padding: 0.3rem 0.5rem;
  }

  .lang__globe {
    display: none;
  }

  .lang select {
    max-width: 64px;
    padding-inline-end: 0.9rem;
    font-size: 0.72rem;
  }

  .lang::after {
    inset-inline-end: 0.55rem;
    width: 5px;
    height: 5px;
  }

  .portrait__badge {
    padding: 0.5rem 0.7rem;
    border-radius: 13px;
  }

  .portrait__badge strong {
    font-size: 1rem;
  }

  .portrait__badge span {
    font-size: 0.56rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal.is-visible {
    animation: none;
  }
}
