


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

html, body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Fira Code', monospace;
  background: #111111;
  color: #F6F6F6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0;
}


section {
  width: 100%;
  max-width: 1200px;
  position: relative;
  margin: 0 auto;
}





header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.2rem;
  line-height: 1.3;
}

nav {
  display: flex;
  gap: 40px;
}

nav a {
  color: #F6F6F6;
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 0.6; }

.lang {
  text-align: right;
  font-size: 1.2rem;
  line-height: 1.3;
}

.lang a {
  color: #F6F6F6;
  text-decoration: none;
}

.lang .active { font-weight: 600; }



.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  gap: 40px;
  position: relative;
  z-index: 5;
}

.left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
}

.headline {
  display: flex;
  align-items: center;
  gap: 280px;
  padding: 40px 0;
}

.secondline {
  display: flex;
  align-items: center;
  gap: 350px;
}

.title {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pill {
  display: inline-block;
  padding: 20px 60px;
  background: #F6F6F6;
  color: #111111;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pill:hover { background: #EAEAEA; }

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #F6F6F6;
  color: #111111;
  border-radius: 50%;
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.circle:hover { background: #EAEAEA; }

.subtitle-main {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #F6F6F6;
  text-align: left;
}

.subtitle-main b {
  color: #F6F6F6;
  font-weight: 600;
}

.dev {
  align-self: flex-end;
}





.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 40px auto 0 auto;
  position: relative;
  z-index: 4;
}

.links a {
  border: 1px solid #B8B8B8;
  border-radius: 50px;
  padding: 10px 25px;
  color: #F6F6F6;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.links a:hover {
  background: #F6F6F6;
  color: #111111;
  border-color: #F6F6F6;
}





.about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  padding-top: 150px;
  position: relative;
  z-index: 3;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.title-second {
  font-size: 1.8rem;
  font-weight: 700;
}

.intro {
  color: #B8B8B8;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: right;
}

.intro b { color: #f6f6f6; }


.card {
  border: 1px solid #B8B8B8;
  border-radius: 55px;
  padding: 28px 36px;
  line-height: 1.6;
  width: fit-content;
  min-width: 550px;
  position: relative;
  min-height: 160px;
  background: transparent;
}

.card h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: #BFBFBF;
}

.card p {
  color: #F6F6F6;
  font-size: 1.05rem;
}


.card-front {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.git-duo {
  display: flex;
  align-items: center;
  position: relative;
}


.circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}


.circle.git {
  border: 1.5px solid #F6F6F6;
  background: transparent;
  z-index: 1;
}

.circle.git img {
  width: 38px;
  height: 38px;
  filter: invert(1);
}


.circle.arrow {
  border: 1.5px solid #F6F6F6;
  background: #F6F6F6;
  color: #111111;
  margin-left: -30px;
  z-index: 2;
  text-decoration: none;
  box-shadow: 0 0 0 1px #F6F6F6 inset;
}

.circle.arrow svg {
  width: 40px;
  height: 40px;
  stroke: #111111;
}

.circle.arrow:hover {
  background: #F6F6F6;
  transform: translateX(2px);
}



.card-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.tools {
  color: #B8B8B8;
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 40px;
}

.tools b { color: #f6f6f6; }

.card.small {
  min-width: 180px;
  min-height: 160px;
}

.card.devops {
  margin-left: 14px;
}





.work {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0 auto;
  position: relative;

}

.work-title {
  font-size: 2.3rem;
  font-weight: 700;
  text-align: right;
  margin: 0 0 20px 0;
  padding-top: 10px;
}

.work-table {
  border-top: 1px solid #B8B8B8;
  width: 100%;
  border-collapse: collapse;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  align-items: center;
  border-bottom: 1px solid #B8B8B8;
  padding: 20px 0;
  border-left: 1px solid #B8B8B8;
  border-right: 1px solid #B8B8B8;
}

.col {
  padding: 0 20px;
}

.col.time {
  color: #B8B8B8;
  padding-left: 40px;
}

.col.time h3 {
  font-size: 1.4rem;
  font-weight: 500;
  color: #B8B8B8;
}

.col.time p {
  font-size: 0.9rem;
  color: #B8B8B8;
  margin-top: 5px;
}

.col.place{
  font-size: 1.3rem;
  color: #F6F6F6;
  padding-left: 60px;
}

.col.role {
  font-size: 1.3rem;
  color: #F6F6F6;
  text-align: right;
}

.work-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 25px 20px 0 0;
  color: #F6F6F6;
}

.work-summary h4 {
  font-size: 1.3rem;
  color: #F6F6F6;
  margin-top: 6px;
}

.work-exp {
  font-size: 1.3rem;
  font-weight: 400;
  color: #B8B8B8;
  margin-top: 6px;
}



.projects {
  width: 100%;
  max-width: 1200px;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
}


.project {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.project.left {
  justify-content: flex-start;
}

.project.right {
  justify-content: flex-end;
}

.project-content {
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}


.project-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
}


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

.tags span {
  border: 1px solid #B8B8B8;
  border-radius: 50px;
  padding: 5px 30px;
  font-size: 1.3rem;
  color: #B8B8B8;
}


.desc {
  color: #f6f6f6;
  font-size: 1.3rem;
  line-height: 1.6;
}


.buttons {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.git-duo {
  display: flex;
  align-items: center;
  position: relative;
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.circle.second {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.circle.git {
  border: 1px solid #f6f6f6;
  background: transparent;
  z-index: 1;
}

.circle.git img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.circle.arrow {
  background: #f6f6f6;
  color: #111;
  margin-left: -15px;
  z-index: 2;
}

.circle.arrow svg {
  width: 25px;
  height: 25px;
  stroke: #111;
}



.contacts {
  width: 100%;
  max-width: 1200px;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}


.contacts-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  gap: 150px;
}


.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: left;
}

.contact-nav {
  display: flex;
  gap: 30px;
  margin-left: 100px;
}

.contact-nav a {
  text-decoration: none;
  color: #F6F6F6;
  font-size: 1.3rem;
  transition: opacity 0.2s;
}

.contact-nav a:hover {
  opacity: 0.6;
}


.contact-card {
  border: 1px solid #B8B8B8;
  border-radius: 40px;
  padding: 25px 40px;
  font-size: 1rem;
  line-height: 1.5;
  color: #F6F6F6;
  max-width: 260px;
}

.contact-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}


.contacts-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contacts-center h1 {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1.1;
}

.contacts-center h1 .bold {
  font-weight: 800;
}

.subtitle-contacts {
  font-size: 1.2rem;
  color: #B8B8B8;
  margin: 15px 0 60px 0;
}


.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 30px;
  justify-items: center;
}

.link {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #B8B8B8;
  border-radius: 50px;
  padding: 10px 25px;
  color: #F6F6F6;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.link img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.link:hover {
  background: #F6F6F6;
  color: #111;
}







header     { z-index: 10; }
.hero      { z-index: 8; }
.links     { z-index: 6; }
.about     { z-index: 4; }

@media (max-width: 1800px) {
  body { padding: 40px 0; }
  .title { font-size: clamp(3rem, 6vw, 6rem); }
  .project-content { width: 50%; }
}

@media (max-width: 1400px) {
  header, section { max-width: 1000px; }
  .headline, .secondline { gap: 150px; }
  .title { font-size: clamp(2.5rem, 5vw, 5rem); }
  .card { min-width: 450px; }
}


@media (max-width: 1200px) {
  header { flex-wrap: wrap; gap: 20px; }
  nav { gap: 20px; flex-wrap: wrap; }
  .hero { flex-direction: column; align-items: flex-start; gap: 40px; }
  .headline, .secondline { flex-wrap: wrap; gap: 40px; }
  .project-content { width: 80%; }
  .contact-links { grid-template-columns: repeat(2, 1fr); }
  .contacts-layout { gap: 80px; flex-direction: column; align-items: center; }
}

@media (max-width: 900px) {
  header { padding: 0 20px; }
  .logo, .lang { font-size: 1rem; }
  .title { font-size: clamp(2rem, 8vw, 3.8rem); text-align: left; }
  .pill { padding: 12px 30px; font-size: 1rem; }
  .circle { width: 45px; height: 45px; }
  .subtitle-main { font-size: 1.2rem; }
  .card { width: 100%; min-width: unset; border-radius: 30px; }
  .card h1 { font-size: 1.3rem; }
  .card h3 { font-size: 1.1rem; }
  .projects { gap: 80px; }
  .project-content { width: 100%; padding: 0 20px; }
  .work-row { grid-template-columns: 1fr 1fr; }
  .col.role { text-align: left; }
}

@media (max-width: 600px) {
  header { flex-direction: column; align-items: center; gap: 10px; }
  nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .hero { padding: 0 15px; align-items: center; text-align: center; }
  .headline, .secondline { flex-direction: column; align-items: center; gap: 20px; }
  .title { font-size: clamp(1.8rem, 10vw, 3rem); }
  .subtitle-main { font-size: 1rem; line-height: 1.4; }
  .pill { padding: 10px 25px; }
  .circle { width: 40px; height: 40px; }
  .links { flex-wrap: wrap; gap: 10px; }
  .links a { padding: 8px 18px; font-size: 0.9rem; }
  .about { padding-top: 100px; gap: 25px; }
  .intro { text-align: center; font-size: 1rem; }
  .work-title { text-align: center; }
  .work-row { grid-template-columns: 1fr; text-align: center; }
  .work-summary { align-items: center; }
  .projects { padding-top: 60px; gap: 60px; }
  .contacts-center h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .contact-links { grid-template-columns: 1fr; gap: 12px; }
  .contact-nav { flex-wrap: wrap; justify-content: center; margin-left: 0; }
  .contact-card { max-width: 220px; padding: 15px 25px; font-size: 0.9rem; }
}






html {
  font-size: clamp(14px, 0.9vw + 0.4rem, 18px);
}


@media (max-width: 1500px) {
  body {
    padding: 40px 0;
  }
  .title {
    font-size: clamp(3rem, 6vw, 5.5rem);
  }
  .card {
    min-width: 400px;
  }

}


@media (max-width: 1100px) {
  header {
    padding: 0 40px;
  }
  .hero {
    padding: 0 40px;
  }

  .headline,
  .secondline {
    gap: 100px;
  }

  .title {
    font-size: clamp(2.5rem, 5vw, 4rem);
  }

  .emply {
    padding: 0 300px;
  }

  .pill {
    padding: 14px 35px;
    font-size: 1rem;
  }

  .subtitle-main {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .card {
    min-width: 100%;
    font-size: 0.95rem;
    padding: 24px 30px;
  }

  .projects {
    padding-top: 80px;
  }
}


@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
  }

  nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 25px;
  }

  .headline,
  .secondline {
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
  }

  .left {
    width: 100%;
  }

  .title {
    font-size: clamp(2.2rem, 7vw, 3.5rem);
  }

  .emply {
    padding: 0 80px;
  }

  .subtitle-main {
    font-size: 1rem;
  }

  .about {
    padding: 80px 25px 0;
  }

  .card,
  .card.small {
    width: 100%;
    min-width: unset;
    border-radius: 35px;
    padding: 22px 26px;
  }

  .card h1 {
    font-size: 1.3rem;
  }
  .card h3 {
    font-size: 1.1rem;
  }

  .project {
    justify-content: center;
  }

  .project-content {
    width: 90%;
    text-align: left;
  }

  .projects {
    gap: 70px;
  }

  .contacts-layout {
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  .contacts-left {
    align-items: center;
  }

  .contact-nav {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contacts-center h1 {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }

  .contact-links {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 650px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero {
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .title {
    font-size: clamp(1.8rem, 9vw, 2.6rem);
  }

  .emply {
    padding: 0 80px;
  }

  .subtitle-main {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .pill {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .circle {
    width: 42px;
    height: 42px;
  }

  .about {
    padding: 60px 15px 0;
    gap: 20px;
  }

  .intro {
    text-align: center;
    font-size: 0.95rem;
  }

  .card {
    padding: 18px 22px;
    border-radius: 25px;
    font-size: 0.9rem;
  }

  .work-row {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 15px 0;
  }

  .col {
    padding: 0 10px;
  }

  .work-summary {
    align-items: center;
    padding: 20px 0;
  }

  .projects {
    padding-top: 60px;
    gap: 50px;
  }

  .project-content {
    width: 100%;
    padding: 0 15px;
  }

  .desc {
    font-size: 1rem;
    line-height: 1.5;
  }

  .contacts {
    padding-top: 60px;
    gap: 40px;
  }

  .contacts-center h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .link {
    font-size: 0.9rem;
    padding: 8px 18px;
  }
}


@media (max-width: 400px) {
  .emply {
    padding: 0 20px;
  }

  .title {
    font-size: 1.8rem;
  }

  .subtitle-main {
    font-size: 0.9rem;
  }

  .pill {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .circle {
    width: 36px;
    height: 36px;
  }

  .desc {
    font-size: 0.95rem;
  }

  .contact-card {
    padding: 15px 20px;
    font-size: 0.8rem;
  }
}
