/* Clean static stylesheet. No Tilda, jQuery or vendor JS required. */
:root {
  --blue: #0f3f7a;
  --blue-deep: #0b315f;
  --accent: #ff8562;
  --text: #111111;
  --muted: #4d4d4d;
  --gray: #e0e0e0;
  --card: #ededed;
  --white: #ffffff;
  --black: #000000;
  --page-width: 1200px;
  --content-width: 980px;
  --radius-pill: 999px;
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 40px, var(--page-width));
  margin: 0 auto;
}

.container--narrow {
  width: min(100% - 40px, var(--content-width));
}

.section-title {
  margin: 0 0 42px;
  color: var(--text);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.hero {
  min-height: 55vh;
  height: clamp(420px, 55vh, 620px);
  position: relative;
  overflow: visible;
  background:
    linear-gradient(180deg, rgba(15, 63, 122, 0.50), rgba(15, 63, 122, 0.20)),
    url("CV_files/24.jpg") center center / cover no-repeat;
}

.hero__portrait-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -82px;
  z-index: 2;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.hero__portrait-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__portrait {
  display: block;
  width: 160px;
  height: 160px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
  object-fit: cover;
  object-position: center center;
  background-color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.intro {
  padding: 105px 0 68px;
  text-align: center;
}

.intro__name {
  margin: 0 0 4px;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.25;
  font-weight: 700;
}

.intro__role,
.intro__experience {
  margin: 0;
  font-weight: 700;
}

.intro__role {
  font-size: 23px;
}

.intro__experience {
  font-size: 20px;
}

.intro__lead {
  max-width: 860px;
  margin: 36px auto 24px;
  font-size: 20px;
  line-height: 1.48;
  font-weight: 600;
}

.button {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 58px;
  border-radius: var(--radius-pill);
  color: var(--white);
  background: var(--blue);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.specialization {
  padding: 58px 0 78px;
  background: var(--gray);
}

.timeline {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--blue);
}

.timeline__item {
  width: 50%;
  min-height: 96px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.38;
  font-weight: 700;
}

.timeline__item:nth-child(odd) {
  margin-right: auto;
  padding: 13px 58px 13px 0;
  justify-content: flex-end;
  text-align: right;
}

.timeline__item:nth-child(even) {
  margin-left: auto;
  padding: 13px 0 13px 58px;
  justify-content: flex-start;
  text-align: left;
}

.timeline__item::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  border: 2px solid var(--gray);
  border-radius: 50%;
  background: var(--blue);
  transform: translateY(-50%);
  z-index: 1;
}

.timeline__item:nth-child(odd)::before {
  right: -9px;
}

.timeline__item:nth-child(even)::before {
  left: -9px;
}

.biography {
  padding: 36px 0 74px;
}

.biography__grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  width: min(100%, 1040px);
  margin: 0 auto;
}

.biography__image {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.biography__text {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 600;
  text-align: justify;
}

.biography__text p {
  margin: 0 0 18px;
}

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

.clients {
  padding: 0 0 42px;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.clients__card {
  min-height: 400px;
  display: flex;
  align-items: center;
  padding: 34px 38px;
  background: var(--card);
}

.clients__list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--blue);
  font-size: 20px;
  line-height: 1.52;
  font-weight: 700;
}

.clients__list li {
  margin: 0;
}

.contact-bar {
  padding: 30px 0;
  background: var(--blue);
  text-align: center;
}

.contact-bar__email {
  display: inline-block;
  color: var(--white);
  font-size: clamp(22px, 2.8vw, 26px);
  line-height: 1.25;
  font-weight: 700;
  text-decoration: none;
}

.contact-bar__email:hover,
.contact-bar__email:focus-visible {
  text-decoration: underline;
}

.site-footer {
  padding: 18px 0 24px;
  background: var(--black);
  color: var(--white);
}

.site-footer__inner {
  text-align: center;
  font-size: 16px;
  line-height: 1.48;
}

.site-footer__inner p {
  margin: 4px 0;
}

.telegram-share {
  display: inline-block;
  margin-top: 10px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.floating-phone {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 18px 26px;
  border-radius: 40px;
  color: var(--white);
  background: var(--accent);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.40);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, filter 180ms ease;
}

.floating-phone:hover,
.floating-phone:focus-visible {
  transform: translateY(-2px);
  filter: brightness(0.98);
}

@media (max-width: 900px) {
  .container,
  .container--narrow {
    width: min(100% - 32px, var(--page-width));
  }

  .hero {
    height: 430px;
    min-height: 430px;
  }


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

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px 0 14px 56px;
    justify-content: flex-start;
    text-align: left;
  }

  .timeline__item::before,
  .timeline__item:nth-child(odd)::before,
  .timeline__item:nth-child(even)::before {
    left: 9px;
    right: auto;
  }

  .biography__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .biography__image-wrap {
    width: min(100%, 420px);
    margin: 0 auto;
  }

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

  .clients__card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    height: 400px;
    min-height: 400px;
  }

  .hero__portrait-wrap {
    bottom: -52px;
    width: 100px;
    height: 100px;
  }

  .hero__portrait {
    width: 100px;
    height: 100px;
  }

  .intro {
    padding: 65px 0 52px;
  }

  .intro__role {
    font-size: 21px;
  }

  .intro__experience,
  .intro__lead,
  .timeline__item,
  .biography__text,
  .clients__list {
    font-size: 18px;
  }

  .intro__lead {
    margin-top: 28px;
  }

  .button {
    width: 100%;
    max-width: 360px;
    padding-inline: 24px;
  }

  .specialization {
    padding: 46px 0 58px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .biography {
    padding: 34px 0 56px;
  }

  .clients__card {
    padding: 26px 24px;
  }

  .site-footer__inner {
    font-size: 15px;
  }

  .floating-phone {
    right: 16px;
    bottom: 16px;
    min-height: 56px;
    padding: 16px 20px;
    font-size: 12px;
    letter-spacing: 0.7px;
  }
}
