:root {
  --bg: #140f17;
  --bg-soft: #1d1420;
  --text: #fff4ef;
  --muted: #e8cfc7;
  --soft: #cfaea4;
  --accent: #ff8a65;
  --accent-2: #ff5fa2;
  --accent-3: #ffc27a;
  --line: rgba(255, 255, 255, 0.11);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  --header-height: 88px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at top right, rgba(255, 138, 101, 0.12), transparent 24%),
    radial-gradient(circle at 0% 10%, rgba(255, 95, 162, 0.09), transparent 20%),
    linear-gradient(160deg, var(--bg), var(--bg-soft) 58%, #120d15);
  min-height: 100vh;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: 0.2s ease;
}

a:hover {
  color: var(--accent-3);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
}

.nav-wrap {
  width: min(1160px, 88%);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 15, 23, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:hover {
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  gap: 8px;
}

.lang-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(255, 95, 162, 0.16);
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
}

main {
  width: min(1160px, 88%);
  margin: 0 auto;
  padding-top: 130px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 64px;
  align-items: start;
  padding: 54px 0 70px;
}

.eyebrow {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  line-height: 1.15; /* чуть больше */
  margin-bottom: 22px;
  padding-bottom: 8px; /* увеличили */
  display: inline-block; /* 👈 ВАЖНО */

  background: linear-gradient(
    135deg,
    #fff4ef 0%,
    #ffc27a 30%,
    #ff8a65 60%,
    #ff5fa2 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 1.28rem;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 18px;
}

.hero-text {
  color: var(--muted);
  max-width: 720px;
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  text-align: center;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: white;
  box-shadow: 0 10px 24px rgba(255, 95, 162, 0.16);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 40px;
}

.hero-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card-label {
  display: inline-block;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 24px;
}

.section-kicker {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 0.78rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 34px;
}

.about-main p {
  color: var(--muted);
  max-width: 760px;
}

.about-main p + p {
  margin-top: 14px;
}

.soft-box {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.soft-title {
  color: var(--accent-3);
  font-weight: 700;
  margin-bottom: 12px;
}

.soft-box ul {
  padding-left: 18px;
  color: var(--muted);
}

.soft-box li + li {
  margin-top: 6px;
}

.timeline {
  display: grid;
  gap: 24px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: start;
}

.timeline-year {
  color: var(--soft);
  font-size: 0.95rem;
  padding-top: 4px;
}

.timeline-body {
  padding-left: 22px;
  border-left: 2px solid rgba(255, 194, 122, 0.25);
}

.timeline-body h3 {
  font-size: 1.14rem;
  margin-bottom: 4px;
}

.place {
  color: var(--accent-3);
  margin-bottom: 10px;
}

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

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

.skill-block {
  padding: 22px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.skill-block h3 {
  color: var(--accent-3);
  margin-bottom: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  transition: 0.2s ease;
}

.pill:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

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

.focus-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
}

.focus-card h3 {
  color: var(--accent-3);
  margin-bottom: 12px;
}

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

.cv-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 95, 162, 0.08), rgba(255, 138, 101, 0.08));
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.contact-text {
  color: var(--muted);
  max-width: 640px;
}

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

.contact-item {
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-label {
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .skills-grid,
  .focus-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-body {
    padding-left: 0;
    padding-top: 14px;
    border-left: none;
    border-top: 2px solid rgba(255, 194, 122, 0.25);
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    border-radius: 28px;
    min-height: auto;
    padding: 14px 16px;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .header-actions {
    margin-left: auto;
  }

  main {
    padding-top: 150px;
  }

  .hero {
    gap: 34px;
    padding: 34px 0 50px;
  }
}

@media (max-width: 640px) {
  .nav-wrap,
  main {
    width: 92%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch {
    flex-wrap: wrap;
  }

  .nav-cta {
    padding: 10px 14px;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-actions,
  .cv-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

.nav-links.show {
  display: flex;
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
  }

  .nav-wrap {
    width: 92%;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding: 6px 0;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    padding-top: 0;
  }

  .hero-card,
  .focus-card,
  .skill-block,
  .contact-item,
  .soft-box {
    padding: 18px;
  }

  .contact-banner {
    padding: 22px;
  }

  .section {
    padding: 34px 0;
  }

  .timeline-year {
    font-size: 0.9rem;
  }
}

.hero-copy {
  overflow: visible;
}
.hero-panel {
  animation: fadeUp 0.9s ease both;
}

.hero-panel {
  animation-delay: 0.15s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-card,
.skill-block,
.focus-card,
.contact-item,
.soft-box {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover,
.skill-block:hover,
.focus-card:hover,
.contact-item:hover,
.soft-box:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 194, 122, 0.35);
  box-shadow: 0 20px 45px rgba(255, 95, 162, 0.10);
}

.hero {
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 194, 122, 0.35),
    rgba(255, 95, 162, 0.25),
    transparent
  );
}

.section {
  padding: 56px 0;
}

