:root {
  --bg-page: #060606;
  --bg-panel: #101010;
  --bg-panel-strong: #151515;
  --ink: #f5f0e8;
  --ink-soft: #b8b0a4;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #d7b071;
  --accent-soft: rgba(215, 176, 113, 0.14);
  --font-display: "Exo 2", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(215, 176, 113, 0.18), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #0d0d0d 0%, var(--bg-page) 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto auto 6vh 4vw;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(215, 176, 113, 0.08);
  filter: blur(14px);
  pointer-events: none;
}

body::after {
  inset: 8vh 6vw auto auto;
  width: 120px;
  height: 120px;
}

.page-shell {
  min-height: 100vh;
  width: 100%;
  padding: clamp(24px, 5vw, 48px) 16px;
  perspective: 1800px;
}

.phone-shell {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "nav"
    "logo"
    "profile"
    "contacts"
    "socials"
    "save";
  justify-content: center;
  align-items: start;
  gap: 24px;
  background: transparent;
  isolation: isolate;
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
}

.phone-shell::before {
  display: none;
}

.phone-shell::after {
  content: "";
  position: absolute;
  left: -6%;
  width: min(42vw, 420px);
  bottom: -4%;
  height: 220px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.24) 1px, transparent 1.4px);
  background-size: 10px 10px;
  clip-path: ellipse(72% 50% at 28% 42%);
  opacity: 0.2;
  z-index: -1;
}

.floating-nav {
  grid-area: nav;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}

.floating-nav nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: #060606;
  background: var(--accent);
}

body.is-routing .nav-link {
  pointer-events: none;
}

.logo-frame {
  grid-area: logo;
  display: grid;
  justify-items: center;
  padding: 0;
}

.brand-logo {
  display: block;
  width: min(100%, 176px);
  height: auto;
}

.profile-block {
  grid-area: profile;
  margin-top: 4px;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.avatar-ring {
  position: relative;
  width: 120px;
  height: 120px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(215, 176, 113, 0.38));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 24%;
  filter: contrast(1.02) saturate(0.96);
}

.identity {
  max-width: 360px;
}

.identity h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 2.85rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.location {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-list {
  grid-area: contacts;
  margin-top: 8px;
  display: grid;
  gap: 14px;
  width: 100%;
}

.contact-card,
.save-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: var(--bg-panel);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.contact-card:hover,
.contact-card:focus-visible,
.save-button:hover,
.save-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
  background: var(--bg-panel-strong);
}

.contact-card:focus-visible,
.save-button:focus-visible,
.social-link:focus-visible {
  outline: 3px solid rgba(198, 165, 106, 0.62);
  outline-offset: 3px;
}

.icon-wrap {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.icon-wrap svg,
.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 0.84rem;
  color: rgba(245, 240, 232, 0.72);
  overflow-wrap: anywhere;
}

.social-row {
  grid-area: socials;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-link {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.32);
  background: var(--bg-panel-strong);
}

.save-button {
  grid-area: save;
  margin-top: 0;
  width: auto;
  min-width: 220px;
  justify-self: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 18px;
  max-width: 100%;
}

.save-button .icon-wrap {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

.services-page-shell {
  grid-template-areas:
    "nav"
    "services";
}

.services-section {
  grid-area: services;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  text-align: center;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading :is(h1, h2) {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  line-height: 1.05;
}

.section-copy {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.services-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.service-card {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--ink);
}

.service-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.75;
}

.service-card strong {
  color: var(--ink);
  font-weight: 700;
}

.phone-shell .floating-nav,
.phone-shell .logo-frame,
.phone-shell .profile-block,
.phone-shell .contact-card,
.phone-shell .social-link,
.phone-shell .save-button,
.phone-shell .services-section,
.phone-shell .service-card {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .phone-shell .floating-nav,
body.is-ready .phone-shell .logo-frame,
body.is-ready .phone-shell .profile-block,
body.is-ready .phone-shell .contact-card,
body.is-ready .phone-shell .social-link,
body.is-ready .phone-shell .save-button,
body.is-ready .phone-shell .services-section,
body.is-ready .phone-shell .service-card {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

body.is-ready .phone-shell .floating-nav {
  transition-delay: 20ms;
}

body.is-ready .phone-shell .logo-frame {
  transition-delay: 60ms;
}

body.is-ready .phone-shell .profile-block {
  transition-delay: 100ms;
}

body.is-ready .phone-shell .contact-card:nth-child(1) {
  transition-delay: 160ms;
}

body.is-ready .phone-shell .contact-card:nth-child(2) {
  transition-delay: 240ms;
}

body.is-ready .phone-shell .contact-card:nth-child(3) {
  transition-delay: 320ms;
}

body.is-ready .phone-shell .contact-card:nth-child(4) {
  transition-delay: 400ms;
}

body.is-ready .phone-shell .social-link:nth-child(1) {
  transition-delay: 460ms;
}

body.is-ready .phone-shell .social-link:nth-child(2) {
  transition-delay: 530ms;
}

body.is-ready .phone-shell .social-link:nth-child(3) {
  transition-delay: 600ms;
}

body.is-ready .phone-shell .save-button {
  transition-delay: 660ms;
}

body.is-ready .phone-shell .services-section {
  transition-delay: 120ms;
}

body.is-ready .phone-shell .service-card:nth-child(1) {
  transition-delay: 200ms;
}

body.is-ready .phone-shell .service-card:nth-child(2) {
  transition-delay: 280ms;
}

body.is-ready .phone-shell .service-card:nth-child(3) {
  transition-delay: 360ms;
}

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

  .phone-shell {
    padding: 8px 0 18px;
  }

  .identity h1 {
    font-size: clamp(2rem, 7vw, 2.55rem);
  }

  .subtitle {
    font-size: 0.94rem;
  }

  .contact-list,
  .save-button {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 20px 12px;
  }

  .phone-shell {
    gap: 22px;
  }

  .floating-nav nav {
    width: 100%;
    justify-content: center;
  }

  .nav-link {
    min-width: 0;
    flex: 1 1 0;
    padding: 8px 10px;
  }

  .contact-card,
  .save-button {
    padding: 15px 14px;
  }

  .save-button {
    width: auto;
    min-width: 200px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .icon-wrap {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }

  .contact-label {
    font-size: 0.96rem;
  }

  .contact-value {
    font-size: 0.78rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
  }

  .service-card {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .service-card p,
  .section-copy {
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  .avatar-ring {
    width: 104px;
    height: 104px;
  }

  .contact-card,
  .save-button {
    gap: 12px;
    padding: 14px 12px;
  }

  .save-button {
    min-width: 188px;
    padding: 11px 14px;
  }

  .contact-label {
    font-size: 0.9rem;
  }

  .contact-value {
    font-size: 0.74rem;
  }

  .section-heading :is(h1, h2) {
    font-size: 1.6rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .phone-shell .floating-nav,
  .phone-shell .logo-frame,
  .phone-shell .profile-block,
  .phone-shell .contact-card,
  .phone-shell .social-link,
  .phone-shell .save-button,
  .phone-shell .services-section,
  .phone-shell .service-card {
    opacity: 1;
    transform: none;
  }
}
