:root {
  --text-color: #1d1d1f;
  --bg-color: #ffffff;
  --accent-color: #00b3a4;
  --light-accent: #e0f7f5;
  --gray: #f5f5f5;
  --font-main: 'Open Sans', sans-serif;
}

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

body {
  font-family: var(--font-main);
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

a {
  font-size: 20px;
  color: var(--accent-color);
  text-decoration: none;
  line-height: 1;
}

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

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  margin-bottom: 120px;
}

.header-wrapper {
  display: flex;
  align-items: center;
  gap: 58px;
}

.header-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-link {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-link:hover {
  color: var(--accent-color);
}

/* Sections spacing */
main > section {
  margin-bottom: 120px;
}

/* Intro Section */
.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 70px;
  margin-top: 0;
  margin-bottom: 120px;
}

.intro-text {
  flex: 1;
}

.intro-title {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 130px;
  margin-bottom: 20px;
}

.intro-subtitle {
  font-size: 40px;
  color: var(--accent-color);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 40px;
}

.intro-photo {
  border-radius: 50%;
  flex-shrink: 0;
}

/* About Section */
.about-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 40px;
  text-align: left;
  letter-spacing: -0.2px;
}

.text-wrapper {
  max-width: 800px;
  line-height: 1.5;
}

.text-wrapper p {
  margin-bottom: 15px;
}

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

/* Skills Section */
.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 36px;
}

.skills-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0;
}

.skills-sort {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 400;
  color: var(--text-color);
}

.skills-label {
  font-size: 20px;
}

.skills-button {
  background-color: transparent;
  padding: 8px 14px;
  border: 1px solid var(--accent-color);
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--accent-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.skills-button:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.skill-list {
  margin: 30;
  padding: 0;
  line-height: 1;
}

.skill-list dt {
  margin-bottom: 8px;
  padding: 6px 0 5px 38px;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 30px;
}

.skill-level {
  margin: 4px 0 14px;
  padding: 2px;
  font-size: 0;
  border: 1px solid var(--text-color);
  border-radius: 24px;
}

.skill-level div {
  height: 14px;
  background-color: var(--accent-color);
  border-radius: 24px;
}

.skill-item {
  text-transform: lowercase;
}

.skill-item-html {
  background-image: url("../img/Icon-html.svg");
}

.skill-item-css {
  background-image: url("../img/Icon-css.svg");
}

.skill-item-cpp {
  background-image: url("../img/Icon-c++.svg");
}

.skill-item-python {
  background-image: url("../img/Icon-python.svg");
}


/* Interests Section */
.interests-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 40px;
}

.interests .text-wrapper p {
  margin-bottom: 15px;
}

/* Contacts Section */
.contacts-title {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 40px;
}

.contacts-wrapper {
  display: flex;
  flex-direction: column;
}

.contacts-list {
  display: flex;
  gap: 40px; 
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.contacts-item {
  margin: 0;
}

.contacts-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 12px 40px; 
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 28px;
  color: var(--text-color);
  transition: color 0.2s ease;
}

.contacts-link-phone {
  background-image: url("../img/ContactsIcon-tele.svg");
}

.contacts-link-mail {
  background-image: url("../img/ContactsIcon-Mail.svg");
}

.contacts-link:hover {
  color: var(--accent-color);
}

.contacts-socials {
  display: flex;
  gap: 22px;
}

.contacts-social {
  width: 48px;
  height: 48px;
  display: inline-block;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.contacts-social:hover {
  background-color: var(--accent-color);
}

.contacts-social-github {
  background-image: url("../img/Icon-github.svg");
}

.contacts-social-vk {
  background-image: url("../img/Icon-vk.svg");
}

.contacts-social-telegram {
  background-image: url("../img/Icon-tg.svg");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Footer */
.footer {
  width: 100%;
  padding: 55px 0;
  background-color: #1d1d1f;
}

.footer-text {
  font-size: 20px;
  color: #777;
  margin: 0;
}