:root {
  --color-primary: #d96169;
  --color-primary-dark: #bd4d56;
  --color-primary-soft: #fcebed;
  --color-ink: #252525;
  --color-muted: #686868;
  --color-line: #eadfe0;
  --color-surface: #ffffff;
  --color-surface-soft: #fbf9f9;
  --color-footer: #292929;
  --shadow-soft: 0 18px 50px rgba(38, 31, 31, 0.08);
  --container: 1120px;
  --header-height: 78px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(217, 97, 105, 0.42);
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--color-footer);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(37, 37, 37, 0.06);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--color-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 400;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
}

.main-nav,
.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: clamp(24px, 3vw, 48px);
}

.main-nav ul {
  gap: clamp(20px, 2.5vw, 42px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--color-primary);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.button-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.button-secondary {
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: #b8b4b4;
}

.button-secondary:hover {
  color: var(--color-primary-dark);
  border-color: var(--color-primary);
}

.header-cta {
  min-height: 42px;
  padding-inline: 22px;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #faf8f7;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 57%;
  background: #eee9e5 url("../images/hero-illustration.svg?v=1.0.0") center / cover no-repeat;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #faf8f7 0%, rgba(250, 248, 247, 0.2) 17%, transparent 40%);
  content: "";
}

.hero-inner {
  position: relative;
  display: flex;
  min-height: 560px;
  align-items: center;
}

.hero-copy {
  z-index: 1;
  width: 48%;
  padding-block: 72px;
}

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

.hero h1 {
  margin: 0;
  color: var(--color-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 5.6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero-role {
  margin: 24px 0 18px;
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.17;
}

.hero-company {
  display: block;
  max-width: 470px;
  margin-top: 7px;
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.hero-intro {
  max-width: 520px;
  margin: 0;
  color: #3f3f3f;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.section {
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 44px;
  text-align: center;
}

.section-heading h2 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.section-heading h2::after {
  display: block;
  width: 38px;
  height: 2px;
  margin: 13px auto 0;
  background: var(--color-primary);
  content: "";
}

.about-content {
  display: grid;
  max-width: 840px;
  grid-template-columns: 132px 1fr;
  gap: 46px;
  align-items: center;
  margin: 0 auto;
}

.about-photo {
  display: block;
  width: 124px;
  height: 124px;
  object-fit: cover;
  object-position: 55% 40%;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-primary-soft), 0 10px 28px rgba(146, 61, 68, 0.16);
}

.about-copy p {
  margin: 0 0 12px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.section-skills {
  background: var(--color-surface-soft);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px 48px;
}

.skill-card {
  max-width: 290px;
  margin-inline: auto;
  text-align: center;
}

.skill-icon {
  width: 52px;
  height: 52px;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.skill-card h3 {
  margin: 15px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.skill-card p {
  margin: 9px 0 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.timeline {
  max-width: 960px;
  margin: 0 auto;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 54px;
  padding: 0 0 52px 36px;
}

.timeline-item::before {
  position: absolute;
  top: 13px;
  bottom: -13px;
  left: 6px;
  width: 1px;
  background: var(--color-primary);
  content: "";
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  top: 7px;
  left: 0;
  width: 13px;
  height: 13px;
  background: var(--color-primary);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--color-primary);
}

.timeline-date {
  margin: 0;
  color: var(--color-primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-company {
  margin: 5px 0 0;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.timeline-context {
  margin: 6px 0 0;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.timeline-content h3 {
  margin: -2px 0 8px;
  font-size: 1.12rem;
}

.timeline-content p {
  margin: 0;
  color: var(--color-muted);
}

.timeline-content h4 {
  margin: 16px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-list {
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.timeline-list li + li {
  margin-top: 4px;
}

.timeline-summary .timeline-dot {
  background: #fff;
}

.section-formation {
  background: var(--color-surface-soft);
}

.profile-details {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  margin: 0 auto;
}

.profile-detail-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 22px;
  align-items: start;
}

.profile-detail-icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  border-radius: 50%;
}

.profile-detail-icon svg {
  width: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.profile-detail-card h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.profile-detail-card p {
  margin: 0;
  color: var(--color-muted);
}

.profile-detail-card-wide {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.digital-skills-note {
  margin-bottom: 13px !important;
}

.digital-skills-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.84rem;
  list-style: none;
}

.digital-skills-list li {
  position: relative;
  padding-left: 13px;
}

.digital-skills-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  content: "";
}

.profile-detail-meta {
  margin-top: 4px !important;
  color: var(--color-primary-dark) !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.language-list {
  margin: 0;
}

.language-list div {
  display: flex;
  gap: 12px;
}

.language-list div + div {
  margin-top: 5px;
}

.language-list dt {
  min-width: 72px;
  font-weight: 700;
}

.language-list dd {
  margin: 0;
  color: var(--color-muted);
}

.cv-banner {
  padding: 30px 0;
  background: linear-gradient(100deg, #fdf5f5, #fae8ea);
  border-top: 1px solid #f5dcde;
}

.cv-inner,
.cv-message {
  display: flex;
  align-items: center;
}

.cv-inner {
  justify-content: space-between;
  gap: 32px;
}

.cv-message {
  gap: 20px;
}

.document-icon {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.document-icon svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cv-message h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.cv-message p {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer {
  color: #fff;
  background: var(--color-footer);
}

.contacts {
  display: grid;
  max-width: 900px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-block: 34px;
}

.contact-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 24px;
  color: #eeeeee;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-item + .contact-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.contacts a.contact-item:hover {
  color: #f38d94;
}

.contact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.35;
}

.contact-copy strong {
  color: #f38d94;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contacts svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: var(--color-primary);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.footer-bottom {
  padding: 16px 24px;
  color: #bdbdbd;
  background: #232323;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 960px) {
  .main-nav {
    gap: 20px;
  }

  .main-nav ul {
    gap: 18px;
  }

  .header-cta {
    display: none;
  }

  .hero-copy {
    width: 55%;
  }

  .hero-image {
    width: 54%;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 42px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 36px), var(--container));
  }

  .site-header {
    backdrop-filter: none;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 11px 9px;
    place-content: center;
    gap: 5px;
    color: var(--color-primary);
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    z-index: 101;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: block;
    padding: 20px 18px 30px;
    background: #fff;
    border-top: 1px solid var(--color-line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav ul {
    display: block;
  }

  .main-nav li {
    border-bottom: 1px solid var(--color-line);
  }

  .nav-link {
    display: flex;
    min-height: 52px;
    justify-content: center;
  }

  .nav-link::after {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 610px;
  }

  .hero-image {
    right: 0;
    bottom: auto;
    width: 100%;
    height: 100%;
    background-position: 56% center;
  }

  .hero-image::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 255, 255, 0.35) 100%);
  }

  .hero-inner {
    align-items: flex-end;
  }

  .hero-copy {
    width: 100%;
    max-width: 520px;
    padding: 86px 0 70px;
  }

  .eyebrow {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.2rem);
  }

  .hero-role {
    font-size: 1.55rem;
  }

  .hero-intro {
    max-width: 390px;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 26px;
    text-align: center;
  }

  .about-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 18px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 30px;
  }

  .profile-details {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .cv-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .cv-inner .button {
    align-self: flex-start;
    margin-left: 84px;
  }

  .contacts {
    grid-template-columns: 1fr;
    padding-block: 22px;
  }

  .contact-item {
    min-height: 52px;
    justify-content: flex-start;
  }

  .contact-item + .contact-item {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero,
  .hero-inner {
    min-height: 590px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    padding-inline: 17px;
  }

  .skill-card h3 {
    font-size: 0.95rem;
  }

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

  .skill-card {
    max-width: 330px;
  }

  .digital-skills-list {
    grid-template-columns: 1fr;
  }

  .cv-message {
    align-items: flex-start;
  }

  .document-icon {
    width: 56px;
    height: 56px;
  }

  .cv-inner .button {
    width: 100%;
    margin-left: 0;
  }
}

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

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .cv-banner {
    display: none;
  }

  .section,
  .hero-copy {
    padding-block: 30px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-image {
    display: none;
  }

  .hero-copy {
    width: 100%;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
