@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
}

:root,
[data-theme="dark"] {
  --bg: #0b1310;
  --bg-deep: #07100c;
  --surface: #111d18;
  --surface-2: #17251f;
  --text: #f4f7f5;
  --muted: #a8b8b0;
  --subtle: #71847a;
  --line: rgba(224, 237, 229, 0.13);
  --line-strong: rgba(224, 237, 229, 0.24);
  --accent: #55cf96;
  --accent-strong: #7be5b3;
  --gold: #e5bb72;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f7f9f7;
  --bg-deep: #edf2ef;
  --surface: #ffffff;
  --surface-2: #f0f5f2;
  --text: #12231c;
  --muted: #53675d;
  --subtle: #73847b;
  --line: rgba(18, 35, 28, 0.11);
  --line-strong: rgba(18, 35, 28, 0.2);
  --accent: #167349;
  --accent-strong: #0d8a54;
  --gold: #95631d;
  --shadow: 0 30px 90px rgba(18, 35, 28, 0.13);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 12%, rgba(85, 207, 150, .08), transparent 30%),
    radial-gradient(circle at 12% 58%, rgba(229, 187, 114, .04), transparent 26%);
}

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

img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 0;
  left: 12px;
  z-index: 10000;
  padding: 10px 15px;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: #06130d;
  font-weight: 800;
  transform: translateY(-120%);
}

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

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
}

.site-nav {
  width: min(1160px, 100%);
  min-height: 60px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(20px) saturate(125%);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .16);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .91rem;
  font-weight: 850;
  white-space: nowrap;
}

.site-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-nav-links a {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.site-nav-links a:hover { color: var(--text); }

.nav-phone {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border-radius: 11px;
  background: var(--accent);
  color: #06130d;
  font-size: .82rem;
  font-weight: 900;
  white-space: nowrap;
}

.nav-phone:hover { background: var(--accent-strong); }

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }

.hero {
  min-height: 850px;
  padding: 135px 24px 84px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 77% 36%, rgba(85, 207, 150, .14), transparent 28%),
    linear-gradient(180deg, transparent, rgba(85, 207, 150, .025));
}

.hero-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: clamp(54px, 8vw, 108px);
  align-items: center;
}

.hero-name,
.section-label,
.section-head > p {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.45vw, 5.55rem);
  line-height: .98;
  letter-spacing: -.057em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 750px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  line-height: 1.76;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  font-size: .88rem;
  font-weight: 800;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

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

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06130d;
}

.button-primary strong { font-size: .92rem; }

.button-secondary {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--text);
}

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

.hero-proof {
  margin-top: 36px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
}

.hero-proof div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-proof strong {
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-proof span {
  color: var(--subtle);
  font-size: .76rem;
  line-height: 1.45;
}

.hero-portrait {
  position: relative;
  margin: 0;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 8% -8% -7% 10%;
  z-index: -1;
  border-radius: 28px;
  border: 1px solid rgba(85, 207, 150, .28);
  background: linear-gradient(145deg, rgba(85, 207, 150, .11), rgba(229, 187, 114, .04));
  transform: rotate(4deg);
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  object-position: 50% 35%;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-portrait figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 15px 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(8, 15, 12, .76);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-portrait figcaption strong,
.hero-portrait figcaption span {
  font-size: .75rem;
}

.hero-portrait figcaption span { color: rgba(255, 255, 255, .7); }

.proof-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.proof-band-grid {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.proof-band-grid > div {
  min-height: 165px;
  padding: 34px 34px;
  border-right: 1px solid var(--line);
}

.proof-band-grid > div:first-child { padding-left: 0; }
.proof-band-grid > div:last-child { padding-right: 0; border-right: 0; }

.proof-band strong {
  display: block;
  margin-bottom: 9px;
  font-size: .98rem;
  line-height: 1.35;
}

.proof-band span {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.6;
}

.section {
  padding: clamp(88px, 9vw, 132px) 24px;
}

.section > * {
  width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2,
.about-copy h2,
.contact-panel h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(2.25rem, 4.35vw, 4.15rem);
  line-height: 1.03;
  letter-spacing: -.047em;
  text-wrap: balance;
}

.section-head > span {
  display: block;
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.02rem;
}

.services-section { background: var(--bg); }

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

.service-card {
  min-height: 485px;
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .18);
}

.service-index {
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.service-card h3 {
  max-width: 520px;
  margin: 25px 0 15px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.028em;
}

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

.service-card ul {
  margin: 23px 0 28px;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding: 7px 0 7px 20px;
  color: var(--muted);
  font-size: .9rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card > a {
  margin-top: auto;
  padding-top: 23px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  font-weight: 820;
}

.service-card > a::after {
  content: " →";
  color: var(--accent-strong);
}

.about-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(46px, 8vw, 108px);
  align-items: start;
}

.about-copy h2 { margin-bottom: 30px; }

.about-copy p:not(.section-label) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.about-copy strong { color: var(--text); }

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

.expertise-list span {
  min-height: 72px;
  padding: 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.45;
}

.experience-section {
  background:
    linear-gradient(180deg, rgba(85, 207, 150, .035), transparent 24%),
    var(--bg);
}

.section-head-wide { margin-bottom: 64px; }

.timeline {
  position: relative;
  width: min(1000px, 100%);
  margin: 0;
  padding-left: 190px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--line), var(--gold));
}

.timeline-item {
  position: relative;
  margin-bottom: 26px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 30px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-period {
  position: absolute;
  right: calc(100% + 58px);
  top: 27px;
  width: 130px;
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-align: right;
}

.timeline-card {
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.timeline-card h3 {
  margin: 0 0 17px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}

.timeline-card p,
.timeline-card li {
  color: var(--muted);
}

.timeline-card ul {
  margin: 20px 0;
  padding-left: 21px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 23px;
}

.timeline-tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
}

.process-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid article {
  min-height: 310px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}

.process-grid article:last-child { border-right: 0; }

.process-grid span {
  color: var(--accent-strong);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.process-grid h3 {
  margin: 25px 0 14px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .89rem;
}

.projects-section { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.projects-grid a {
  min-height: 270px;
  padding: 32px 34px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}

.projects-grid a:nth-child(even) { border-right: 0; }
.projects-grid a:hover { background: rgba(85, 207, 150, .035); }

.projects-grid span {
  color: var(--accent-strong);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.projects-grid h3 {
  margin: 22px 0 13px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.projects-grid p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  padding-top: 40px;
  background: var(--bg);
}

.contact-panel {
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: clamp(40px, 8vw, 100px);
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background:
    radial-gradient(circle at 92% 10%, rgba(85, 207, 150, .14), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel h2 { margin-bottom: 22px; }

.contact-panel p:not(.section-label) {
  max-width: 680px;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 11px;
  align-content: center;
}

.contact-actions a {
  min-height: 75px;
  padding: 15px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.contact-actions a:hover { border-color: var(--accent); }

.contact-actions span {
  color: var(--subtle);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-actions strong {
  margin-top: 3px;
  font-size: .98rem;
}

.contact-phone {
  background: var(--accent) !important;
  color: #06130d;
  border-color: var(--accent) !important;
}

.contact-phone span { color: rgba(6, 19, 13, .68); }

.site-footer {
  padding: 35px 24px 45px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: .78rem;
}

.site-footer > div {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (max-width: 1040px) {
  .site-nav-links a:nth-child(2),
  .site-nav-links a:nth-child(4) { display: none; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
  }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid article:nth-child(2) { border-right: 0; }
  .process-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .site-nav-links { display: none; }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 32px;
  }

  .hero h1 { font-size: clamp(2.75rem, 7vw, 4.3rem); }

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

  .proof-band-grid > div,
  .proof-band-grid > div:first-child,
  .proof-band-grid > div:last-child {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-band-grid > div:last-child { border-bottom: 0; }

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

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

  .timeline {
    padding-left: 145px;
  }

  .timeline::before { left: 110px; }
  .timeline-period { width: 90px; right: calc(100% + 48px); }
  .timeline-item::before { left: -41px; }

  .contact-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .site-header { top: 10px; padding: 0 12px; }

  .site-nav {
    min-height: 52px;
    padding: 6px 7px 6px 10px;
    border-radius: 15px;
  }

  .site-brand span {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-brand img {
    width: 34px;
    height: 34px;
  }

  .nav-phone {
    margin-left: auto;
    min-height: 36px;
    padding: 0 10px;
    font-size: .72rem;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .hero {
    padding: 102px 18px 64px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero-name { margin-bottom: 14px; }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.55rem);
    line-height: 1.01;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: .97rem;
  }

  .hero-actions {
    width: 100%;
    margin-top: 28px;
  }

  .button { width: 100%; }

  .hero-proof {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-proof div {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: baseline;
  }

  .hero-portrait {
    width: 100%;
    margin-top: 36px;
  }

  .hero-portrait img {
    max-height: 490px;
    aspect-ratio: 4 / 4.5;
  }

  .proof-band-grid {
    width: min(100% - 36px, 600px);
  }

  .section { padding: 72px 18px; }

  .section-head h2,
  .about-copy h2,
  .contact-panel h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .service-card {
    padding: 27px 22px;
    border-radius: 17px;
  }

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

  .timeline {
    padding-left: 27px;
  }

  .timeline::before { left: 6px; }

  .timeline-period {
    position: static;
    width: auto;
    margin-bottom: 9px;
    text-align: left;
  }

  .timeline-item::before {
    left: -27px;
    top: 37px;
    width: 12px;
    height: 12px;
  }

  .timeline-card {
    padding: 23px 20px;
    border-radius: 16px;
  }

  .process-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article,
  .process-grid article:nth-child(2),
  .projects-grid a,
  .projects-grid a:nth-child(even) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .projects-grid a:last-child,
  .process-grid article:last-child { border-bottom: 0; }

  .contact-panel {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .site-footer > div {
    flex-direction: column;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .nav-phone { display: none; }
  .site-brand { margin-right: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
