@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSansCondensed-400.ttf") format("truetype");
}

@font-face {
  font-family: "IBM Plex Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/IBMPlexSansCondensed-700.ttf") format("truetype");
}

@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/Oxanium-400.ttf") format("truetype");
}

@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/Oxanium-500.ttf") format("truetype");
}

@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/Oxanium-600.ttf") format("truetype");
}

@font-face {
  font-family: "Oxanium";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/Oxanium-700.ttf") format("truetype");
}

:root {
  --bg-color: #050706;
  --text-main: #edf2ef;
  --text-supporting: #a1aca6;
  --it-accent: #73d7ae;
  --media-accent: #63b8e6;
  --bg: #050706;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --text: #edf2ef;
  --muted: #a1aca6;
  --it: #73d7ae;
  --media: #63b8e6;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --border: rgba(255, 255, 255, 0.12);
  --panel: rgba(255, 255, 255, 0.02);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  font-family: "Oxanium", "Segoe UI", system-ui, sans-serif;
  background-color: var(--bg-color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.font-condensed {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  letter-spacing: 0.01em;
}

.lang-switcher {
  position: absolute;
  top: 40px;
  right: 40px;
  display: flex;
  gap: 12px;
  z-index: 100;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--text-supporting);
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.lang-switcher button.active {
  color: var(--text-main);
}

.lang-switcher button:hover:not(.active) {
  color: #fff;
}

.wordmark {
  margin-top: 120px;
  text-align: center;
  width: 560px;
}

.name {
  font-size: 64px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.045em;
  margin-bottom: 12px;
}

.services {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 4px;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  --services-shift: clamp(0px, 5vw, 60px);
  transform: translateX(var(--services-shift));
}

.plus {
  opacity: 0.2;
  font-weight: 400;
}

.it-accent {
  color: var(--it-accent);
}

.media-accent {
  color: var(--media-accent);
}

.tagline {
  margin-top: 24px;
  color: var(--text-supporting);
  text-transform: lowercase;
  font-family: "Oxanium", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.8;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
  line-height: 1.4;
}

.tagline-lead,
.tagline-tail,
.tagline-separator {
  display: inline;
}

.poster-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  width: min(560px, calc(100% - 48px));
  margin-top: 100px;
  column-gap: 44px;
  justify-content: center;
  align-items: flex-start;
}

.branch-it {
  width: max-content;
}

.branch-media {
  width: max-content;
}

.link-compact {
  display: block;
  margin-bottom: 32px;
  text-decoration: none;
  color: inherit;
}

.link-title {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  transition: color 0.2s ease;
}

.link-title.big {
  font-size: 24px;
}

.link-subtitle {
  margin-bottom: 4px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-supporting);
  text-transform: uppercase;
}

.link-subtitle-mixed {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  text-transform: none;
  letter-spacing: 0.02em;
}

.link-subtitle-prefix,
.link-subtitle-separator,
.link-subtitle-meta {
  opacity: 0.95;
}

.link-subtitle-username {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-variant-caps: normal;
}

.link-description {
  margin: 0;
  max-width: 300px;
  color: var(--text-supporting);
  font-size: 11px;
  line-height: 1.5;
}

.uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

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

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

.arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.55;
  vertical-align: middle;
}

.short-line {
  width: 20px;
  height: 1px;
  margin: 16px 0 0;
  background-color: var(--text-supporting);
  opacity: 0.35;
}

.media-line {
  background-color: var(--media-accent);
  opacity: 0.75;
}

.archive {
  opacity: 0.55;
}

.footer {
  margin-top: auto;
  margin-bottom: 60px;
  color: var(--text-supporting);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.footer a {
  margin: 0 20px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .lang-switcher {
    right: 20px;
  }

  .wordmark,
  .poster-grid {
    width: min(560px, calc(100% - 48px));
  }

  .poster-grid {
    gap: 32px;
  }
}

@media (max-width: 720px) {
  body {
    min-height: auto;
  }

  .lang-switcher {
    top: 20px;
    right: 20px;
  }

  .wordmark {
    width: calc(100% - 48px);
    margin-top: 100px;
  }

  .name {
    font-size: clamp(2.6rem, 10.5vw, 64px);
  }

  .services {
    font-size: clamp(1.7rem, 6vw, 28px);
    --services-shift: 0px;
  }

  .tagline {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .tagline {
    display: block;
    text-align: center;
  }

  .tagline-lead,
  .tagline-tail,
  .tagline-separator {
    display: block;
  }

  .tagline-separator {
    display: none;
  }

  .tagline-tail {
    margin-top: 2px;
  }

  .poster-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 48px);
    margin-top: 56px;
    gap: 16px;
    margin-bottom: 28px;
    justify-content: stretch;
    align-items: stretch;
  }

  .branch-it,
  .branch-media {
    width: 100%;
    justify-self: stretch;
    padding: 18px 18px 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
      var(--bg-soft);
    box-shadow: var(--shadow);
  }

  .branch-it::before,
  .branch-media::before {
    display: block;
    margin-bottom: 14px;
    font-family: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .branch-it::before {
    content: "IT";
    color: var(--it-accent);
  }

  .branch-media::before {
    content: "Media";
    color: var(--media-accent);
  }

  .link-compact {
    margin-bottom: 22px;
  }

  .branch-it .link-title.big,
  .branch-media .link-title.big {
    font-size: 1.5rem;
  }

  .branch-it .link-title,
  .branch-media .link-title {
    font-size: 1.2rem;
  }

  .branch-it .link-subtitle,
  .branch-media .link-subtitle,
  .branch-it .link-description,
  .branch-media .link-description {
    font-size: 0.92rem;
  }

  .short-line {
    display: none;
  }

  .footer {
    width: calc(100% - 48px);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 0;
    margin-bottom: 40px;
    text-align: center;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .footer a {
    margin: 0 14px;
  }
}

body.legal-page {
  background:
    radial-gradient(circle at top, rgba(121, 208, 164, 0.08), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(72, 201, 255, 0.08), transparent 22%),
    var(--bg);
}

.legal-shell {
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 0 32px;
}

.legal-header {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.legal-topbar .lang-switcher {
  position: static;
  right: auto;
  top: auto;
  margin-left: auto;
  font-size: 9px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.legal-back:hover {
  color: var(--text);
  border-color: rgba(237, 242, 239, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.legal-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.legal-brand .it,
.legal-brand .media {
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  letter-spacing: 0.01em;
}

.legal-brand .it {
  color: var(--it);
}

.legal-brand .media {
  color: var(--media);
}

.legal-hero {
  display: grid;
  gap: 20px;
  max-width: 48rem;
}

.legal-title {
  margin: 0;
  font-family: "IBM Plex Sans Condensed", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}

.legal-title-breakable {
  width: 100%;
  max-width: 100%;
}

.legal-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-main {
  display: grid;
  gap: 18px;
  padding: 10px 0 28px;
}

.legal-section {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 22px;
  scroll-margin-top: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-section h3 {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-section p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--text);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-section li {
  margin: 0 0 8px;
  line-height: 1.6;
}

.legal-section a {
  color: var(--it);
  text-decoration: none;
  border-bottom: 1px solid rgba(117, 207, 161, 0.2);
}

.legal-section a:hover {
  border-bottom-color: currentColor;
}

.placeholder {
  color: var(--muted);
  border-bottom: 1px dashed rgba(143, 154, 149, 0.45);
}

.legal-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.legal-footer a {
  text-decoration: none;
  transition: color 160ms ease;
}

.legal-footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .legal-shell {
    width: min(100% - 28px, 960px);
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .legal-topbar {
    align-items: stretch;
  }

  .legal-back {
    width: 100%;
    justify-content: center;
  }

  .legal-brand {
    width: 100%;
    justify-content: center;
  }

  .legal-section {
    padding: 18px;
    border-radius: 18px;
  }

  .legal-footer {
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .legal-title {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .legal-title-breakable {
    width: 100%;
    max-width: 100%;
  }

  .legal-intro {
    font-size: 0.92rem;
  }
}
