:root {
  --background: #f4f5f7;
  --surface: #ffffff;
  --primary: #2d4bff;
  --text: #1a1c1e;
  --text-muted: #4a4f56;
  --accent: #ff6b6b;
  --max-width: 1100px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

header {
  background: radial-gradient(circle at top left, rgba(45, 75, 255, 0.12), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 107, 107, 0.12), transparent 55%),
    var(--surface);
  border-bottom: 1px solid rgba(26, 28, 30, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0.75rem;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.navbar__brand:hover,
.navbar__brand:focus {
  color: var(--primary);
}

.navbar__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.navbar__links a {
  font-weight: 500;
  color: var(--text);
  opacity: 0.85;
  position: relative;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.navbar__links a:hover,
.navbar__links a:focus {
  opacity: 1;
  color: var(--primary);
}

.navbar__links a.is-active {
  color: var(--primary);
  opacity: 1;
}

.navbar__links a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.hero {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  align-items: center;
}

.hero h1 {
  margin-top: 0;
  font-size: clamp(2.25rem, 2.5vw + 1.5rem, 3rem);
  line-height: 1.2;
}

.hero__subtitle {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero__description {
  margin-top: 1.5rem;
}

.hero__image {
  justify-self: center;
  background: linear-gradient(135deg, rgba(45, 75, 255, 0.1), rgba(255, 107, 107, 0.1));
  padding: 0.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(26, 28, 30, 0.08);
}

.hero__image img {
  display: block;
  width: min(280px, 70vw);
  border-radius: 1rem;
}

main {
  padding: 0 1.5rem 3rem;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 3.5rem;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(26, 28, 30, 0.04);
  border: 1px solid rgba(26, 28, 30, 0.05);
}

.section--compact {
  padding: 2.5rem;
}

.section h2 {
  margin-top: 0;
  font-size: 1.75rem;
}

.section__intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid--two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-category + .project-category {
  margin-top: 3rem;
}

.project-category h2 {
  margin-bottom: 1.5rem;
  font-size: 1.65rem;
}

.project-subsection + .project-subsection {
  margin-top: 2.5rem;
}

.project-subsection h3 {
  margin-bottom: 1rem;
}

.card {
  padding: 1.5rem;
  background: rgba(45, 75, 255, 0.03);
  border-radius: 1.25rem;
  border: 1px solid rgba(45, 75, 255, 0.08);
}

.project-card {
  padding: 1.5rem;
  background: rgba(45, 75, 255, 0.03);
  border-radius: 1.25rem;
  border: 1px solid rgba(45, 75, 255, 0.08);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
}

.project-card h3,
.project-card h4 {
  margin: 0;
  font-size: 1.25rem;
}

.project-card h4 {
  font-size: 1.15rem;
}

.project-card--media {
  gap: 1.5rem;
}

.project-card--media figure {
  margin: 0;
  text-align: center;
}

.project-card--media figure img {
  width: min(100%, 320px);
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(26, 28, 30, 0.12);
}

.project-card__image--small {
  width: min(100%, 220px) !important;
  display: block;
  margin-inline: auto;
}

.project-card--media figcaption {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
}

.card p {
  margin-bottom: 1rem;
}

.card ul,
.card ol {
  margin: 0 0 0 1.25rem;
  padding: 0;
}

.card figure {
  margin: 1.5rem 0 0;
  text-align: center;
}

.card figure img {
  width: min(100%, 380px);
  border-radius: 1rem;
  box-shadow: 0 15px 30px rgba(26, 28, 30, 0.12);
}

.card figure figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
  background: var(--surface);
  border-radius: 1.25rem;
  border: 1px solid rgba(45, 75, 255, 0.12);
  box-shadow: 0 12px 35px rgba(26, 28, 30, 0.06);
  color: inherit;
}

.cta-card:hover,
.cta-card:focus {
  text-decoration: none;
  border-color: rgba(45, 75, 255, 0.3);
  box-shadow: 0 18px 40px rgba(26, 28, 30, 0.1);
}

.cta-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

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

.cta-card__action {
  font-weight: 600;
  color: var(--primary);
}

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2vw + 1.5rem, 2.5rem);
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

.list-columns {
  columns: 2;
  column-gap: 2.5rem;
}

.list-columns li {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.25rem;
}

.contact-label {
  font-weight: 600;
  color: var(--text);
}

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(26, 28, 30, 0.03);
  border-left: 4px solid var(--primary);
  border-radius: 0.75rem;
  color: var(--text-muted);
}

footer {
  padding: 2rem 1.5rem 3rem;
  background: #101218;
  color: rgba(255, 255, 255, 0.88);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.social-links img {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section {
    padding: 1.75rem;
  }

  .list-columns {
    columns: 1;
  }
}
