:root {
  --main-bg: #f9f7f0;
  --text-color: #2f4858;
  --accent-color: #e7dccb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: var(--main-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

header {
  background-color: var(--accent-color);
  padding: 1px 0;
  border-radius: 16px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.hero .text {
  flex: 5;
  max-width: 500px;
}

.hero img {
  width: 300px;
  border-radius: 16px;
}

.work h2 {
  text-align: center;
}
.work h2 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.work h2 a:hover {
  color: #1c2c37;
  text-decoration: underline;
}

.about h2,
.contact h2 {
  text-align: left;
  margin: 3rem 0 1rem;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  width: 220px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.about .container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.about .photo img {
  width: 250px;
  border-radius: 12px;
}
.about .photo {
  margin-left: auto;
}

.contact {
  text-align: center;
  margin: 4rem 0;
}
.contact h2 {
  text-align: center;
}
.icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.icons img {
  width: 32px;
}

footer {
  text-align: left;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}
.figma-prototype {
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
}
.works-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.work-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.work-item.reverse {
  flex-direction: row-reverse;
}

.work-image img {
  width: 440px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.work-text {
  flex: 1;
}

.work-text h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
