@font-face {
  font-family: "NT Somic";
  src: url("https://framerusercontent.com/assets/GKI7HcCBF7E6Lkx3lcMaA62cC8c.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "NT Somic";
  src: url("https://framerusercontent.com/assets/dYHpfK5FEu3xWerOwDIcgSMd78c.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "NT Somic";
  src: url("https://framerusercontent.com/assets/nXnRShzZV6KxQbjRsQCcTaI4SlA.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "NT Somic";
  src: url("https://framerusercontent.com/assets/eTswbjtE9em1Id3d3AagnzSdgr0.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #efeff1;
  --line: #d9d9dd;
  --line-strong: #c9c9ce;
  --text: #202024;
  --muted: #707077;
  --quiet: #a2a2aa;
  --accent: #6d6af7;
  --accent-2: #18a778;
  --shadow: 0 1px 3px rgba(20, 20, 24, 0.18);
  font-family: "NT Somic", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
}

body:has(.case-site) {
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 120px 22px 22px;
}

.topbar {
  position: fixed;
  top: 38px;
  left: 50%;
  z-index: 100;
  width: min(346px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}

.nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dfdfe2;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(40, 40, 48, 0.07);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #cfcfd2;
  background: transparent;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
  transition: color 160ms ease;
}

.nav a:first-child,
.nav a:hover,
.nav a:focus-visible {
  color: #050505;
  outline: none;
}

.hero {
  display: flex;
  min-height: 166px;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  padding: 28px 32px;
  background: var(--surface-2);
  border-radius: 28px;
}

.hero h1 {
  margin: 0 0 14px;
  color: #030303;
  font-size: clamp(26px, 2.3vw, 32px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.hero h1 a {
  color: #6d4aff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero p {
  margin: 0;
  color: #898990;
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.18;
  font-weight: 400;
  letter-spacing: 0;
}

.tabs-wrap {
  margin: 10px 0 0;
  overflow-x: auto;
  padding: 28px 31px 4px;
  background: var(--surface-2);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  grid-auto-flow: column;
  gap: 14px;
  min-width: 960px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.tab {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tab:hover,
.tab:focus-visible {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 0 0 6px #f5f5f5;
  transform: none;
  outline: none;
}

.tab.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 106, 247, 0.92), var(--shadow);
}

.tab.is-active:hover,
.tab.is-active:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(109, 106, 247, 0.92), var(--shadow);
  transform: none;
}

.logo-img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.logo-img[src$=".jpg"],
.logo-img[src$=".jpeg"],
.logo-img[src$=".png"] {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 6px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 42px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.count {
  color: var(--quiet);
  font-size: 15px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 6px 31px 28px;
  background: var(--surface-2);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.project-card {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr);
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-info {
  position: relative;
  min-height: 78px;
  padding: 16px 64px 12px 14px;
  border-bottom: 1px solid var(--line-strong);
}

.project-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.project-info p {
  margin: 0;
  color: #606073;
  font-size: 14px;
  line-height: 1.22;
}

.arrow {
  position: absolute;
  top: 13px;
  right: 14px;
  display: block;
  width: 42px;
  height: 42px;
  background: #ffffff;
  background-image: url("./assets/arrow-icon-def.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
  border: 2px solid #dedee2;
  border-radius: 999px;
  margin: 0;
  transition: background-image 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.project-card:hover .arrow,
.project-card:focus-visible .arrow {
  background-image: url("./assets/arrow-icon-hover.svg");
  border-color: #dedee2;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.project-image {
  min-height: 220px;
  margin: 16px 12px 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e1e1e3;
  border-radius: 8px;
}

.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.project-image img[src$=".svg"] {
  object-fit: cover;
  object-position: center;
}

.visual {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--visual-bg, #ececf2);
}

.screen {
  width: min(100%, 520px);
  aspect-ratio: 16 / 10;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.16);
}

.screen-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 20px;
}

.screen-bar i {
  display: block;
  width: 8px;
  height: 8px;
  background: #d4d4d8;
  border-radius: 999px;
}

.screen-grid {
  display: grid;
  grid-template-columns: 0.68fr 0.32fr;
  gap: 12px;
}

.screen-main,
.screen-side,
.screen-row,
.phone-line {
  border-radius: 7px;
  background: linear-gradient(135deg, var(--mock-1), var(--mock-2));
}

.screen-main {
  min-height: 170px;
}

.screen-side {
  min-height: 170px;
  opacity: 0.78;
}

.screen-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.screen-row {
  height: 54px;
  opacity: 0.74;
}

.phone {
  width: min(100%, 210px);
  aspect-ratio: 9 / 18;
  display: grid;
  gap: 12px;
  padding: 20px 15px;
  background: #111115;
  border: 8px solid #24242a;
  border-radius: 32px;
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.22);
}

.phone-line {
  min-height: 34px;
}

.phone-line:nth-child(2) {
  min-height: 120px;
}

.case-page {
  max-width: 1032px;
  margin: 0 auto;
  padding: 26px 0 90px;
}

.case-site {
  background: #ffffff;
}

.back {
  position: fixed;
  top: 28px;
  left: 30px;
  z-index: 110;
  display: flex;
  width: 154px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  margin: 0;
  color: #3a3a40;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dfdfe2;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(40, 40, 48, 0.07);
  backdrop-filter: blur(10px);
  font-size: 16px;
  transition: color 160ms ease, border-color 160ms ease;
}

.back:hover,
.back:focus-visible {
  color: #050505;
  border-color: #d2d2d6;
  outline: none;
}

.case-hero {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 80px 0 42px;
  text-align: center;
}

.case-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #333333;
  font-size: clamp(52px, 5.3vw, 80px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.case-hero p {
  max-width: 760px;
  margin: 0;
  color: #333333;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 400;
}

.case-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
}

.case-link {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  background: #ffffff;
  border: 1px solid #e5e5e8;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.case-link:hover,
.case-link:focus-visible {
  border-color: #e5e5e8;
  box-shadow: 0 0 0 6px #f5f5f5, 0 1px 3px rgba(0, 0, 0, 0.16);
  outline: none;
}

.case-link-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.case-media {
  margin: 0 0 72px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.case-media img {
  display: block;
  width: 100%;
  max-height: none;
  object-fit: contain;
}

.case-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0 auto;
}

.case-section {
  min-height: 0;
  padding: 0 0 42px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.case-section h2 {
  margin: 0 0 18px;
  color: #111111;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 500;
}

.case-section p,
.case-section li {
  color: #4c4c52;
  font-size: 20px;
  line-height: 1.55;
}

.case-section p {
  margin: 0 0 10px;
}

.case-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.case-inline-media {
  margin: 8px 0 72px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.case-inline-media img {
  display: block;
  width: 100%;
  object-fit: contain;
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 34px 0 8px;
  color: var(--quiet);
  font-size: 15px;
}

@media (max-width: 900px) {
  .site {
    padding: 104px 16px 16px;
  }

  .hero,
  .case-hero,
  .case-content,
  .section-head,
  .footer {
    grid-template-columns: 1fr;
  }

  .project-info {
    min-height: 78px;
    border-bottom: 1px solid var(--line);
  }

  .visual {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .site {
    padding: 96px 12px 12px;
  }

  .topbar {
    top: 24px;
    width: min(346px, calc(100vw - 24px));
  }

  .back {
    top: 24px;
    left: 18px;
    width: 150px;
    min-height: 52px;
  }

  .nav {
    min-height: 52px;
    padding: 0 12px;
  }

  .hero {
    min-height: 158px;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .case-hero {
    min-height: 190px;
    padding: 62px 0 32px;
  }

  .case-hero h1 {
    font-size: 42px;
  }

  .case-hero p {
    font-size: 20px;
  }

  .case-links {
    gap: 10px;
    margin-top: 16px;
  }

  .case-link {
    width: 58px;
    height: 58px;
  }

  .case-media,
  .case-inline-media {
    margin-bottom: 44px;
  }

  .case-section {
    padding-bottom: 34px;
  }

  .case-section h2 {
    font-size: 28px;
  }

  .case-section p,
  .case-section li {
    font-size: 18px;
  }

  .hero p {
    font-size: 18px;
    line-height: 1.26;
  }

  .nav a {
    padding: 0 8px;
    font-size: 15px;
  }

  .screen-grid,
  .screen-rows {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-auto-columns: 210px;
    grid-template-columns: repeat(5, 210px);
    min-width: 0;
  }

  .tabs-wrap,
  .projects {
    padding-left: 14px;
    padding-right: 14px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 27px;
  }

  .case-section {
    padding: 18px;
  }

  .project-info {
    padding: 16px 64px 12px 14px;
  }
}
