:root {
  --blue: #347df6;
  --ink: #151a23;
  --line: #dce3ed;
  --wash: #f3f6fa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

header {
  height: 92px;
  padding: 0 clamp(24px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--wash);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 800;
  letter-spacing: -1px;
}

.mark {
  position: relative;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--blue);
  overflow: hidden;
}

.mark::after {
  content: "";
  position: absolute;
  width: 50%;
  inset: 0 0 0 auto;
  background: var(--wash);
  border: 3px solid var(--blue);
  border-left: 0;
  border-radius: 0 25px 25px 0;
}

.nav-link {
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--blue);
  background: #eaf0f8;
  font-weight: 700;
}

.hero {
min-height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0px 4px 0px;
    background: var(--wash);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid #347df626;
  border-radius: 50%;
}

.hero::before { width: 240px; height: 240px; left: -120px; top: 70px; }
.hero::after { width: 310px; height: 310px; right: -80px; bottom: -120px; }
.hero small { margin-bottom: 17px; color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
h1 { margin: 0; color: #5e6879; font-size: clamp(42px, 6vw, 76px); line-height: 1; letter-spacing: -.045em; }
.hero p { margin: 22px 0 0; color: #8a94a5; font-size: clamp(14px, 1.5vw, 18px); }

.work { max-width: 1510px; margin: auto; padding: 50px clamp(20px, 5vw, 78px) 50px; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 66px; }

button {
  min-width: 84px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #445066;
  background: #fff;
  padding: 12px 20px;
  cursor: pointer;
  font: 650 16px Inter, Arial, sans-serif;
  transition: .2s;
}

button:hover { color: var(--blue); border-color: #a8c6fa; transform: translateY(-2px); }
button.active { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 8px 20px #347df633; }

.gallery { columns: 4; column-gap: 22px; }
.project { position: relative; overflow: hidden; break-inside: avoid; margin: -1px 0 22px; height: 330px; border-radius: 9px; background: #e8edf4; animation: appear .4s ease both; }
.project.tall { height: 420px; }
.project.tall2 { height: 520px; }
.project img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s, filter .4s; }
.info { position: absolute; inset: auto 0 0; padding: 70px 24px 22px; color: #fff; opacity: 0; transform: translateY(14px); background: linear-gradient(transparent, #0a111bd1); transition: .3s; }
.info small { letter-spacing: .12em; text-transform: uppercase; }
.info h2 { margin: 5px 0 0; font-size: 21px; }
.project:hover img { transform: scale(1.045); filter: saturate(1.08); }
.project:hover .info { opacity: 1; transform: none; }

@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
}

footer { max-width: 1354px; margin: auto; border-top: 1px solid var(--line); padding: 32px 10px 44px; display: flex; justify-content: space-between; color: #8290a4; font-size: 14px; }
footer b { color: var(--ink); }

@media (max-width: 900px) {
  .gallery { columns: 2; }
  .hero { min-height: 320px; }
}

@media (max-width: 600px) {
  header { height: 76px; padding: 0 18px; }
  .brand { font-size: 20px; }
  .mark { width: 34px; height: 34px; }
  .nav-link { padding: 10px 12px; font-size: 14px; }
  .hero { min-height: 280px; padding-bottom: 58px; }
  h1 { font-size: 48px; }
  .hero p { max-width: 290px; }
  .work { padding: 64px 14px 72px; }
  .filters { justify-content: flex-start; overflow: auto; flex-wrap: nowrap; margin: 0 -14px 38px; padding: 0 14px 8px; }
  .filters button { flex: 0 0 auto; }
  .gallery { columns: 1; }
  .project, .project.tall { height: 430px; }
  .info { opacity: 1; transform: none; }
  footer { margin: 0 18px; flex-direction: column; gap: 8px; }
}
