:root {
  --ink: #0c131d;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #cbd4e1;
  --muted: #566170;
  --practice-bg: #e7f1ff;
  --personal-accent: #ffffff;
  --target-color: #0c73fe;
  --target-text: #ffffff;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-grid {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 251, 0.94);
  backdrop-filter: blur(14px);
}

.mobile-menu-toggle,
.site-header .mobile-menu {
  display: none;
}

.site-header nav a,
.header-contact {
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.desktop-nav {
  grid-column: 2;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a:not(.nav-portfolio):hover,
.header-contact:hover,
.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-contact {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
}

.nav-portfolio {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--target-text);
  background: var(--target-color);
}

.ati-road {
  position: relative;
  height: 206px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 28%, rgba(12, 115, 254, 0.15) 0 5px, transparent 6px),
    radial-gradient(circle at 72% 24%, rgba(12, 115, 254, 0.15) 0 5px, transparent 6px),
    linear-gradient(135deg, transparent 0 24%, rgba(12, 115, 254, 0.08) 24.2% 24.6%, transparent 24.8% 62%, rgba(12, 115, 254, 0.08) 62.2% 62.6%, transparent 62.8%),
    #e8f3ff;
}

.ati-road__route {
  position: absolute;
  inset: 0 0 30px;
  background:
    radial-gradient(circle at 30% 42%, #0c73fe 0 4px, transparent 5px),
    radial-gradient(circle at 58% 27%, #0c73fe 0 4px, transparent 5px),
    radial-gradient(circle at 87% 52%, #0c73fe 0 4px, transparent 5px);
  opacity: 0.34;
}

.ati-road__truck {
  position: absolute;
  z-index: 2;
  bottom: 7px;
  left: 0;
  width: clamp(330px, 27vw, 380px);
  animation: ati-truck-drive 13s linear infinite;
  will-change: transform;
}

.ati-road__truck-image {
  display: block;
  width: 100%;
  height: auto;
}

.ati-road__logo {
  position: absolute;
  top: 35%;
  left: 30%;
  width: 25%;
  height: auto;
}

.ati-road__asphalt {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  background:
    repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.72) 36px 76px, transparent 76px 116px) center / auto 3px no-repeat,
    #0c1e2e;
}

@keyframes ati-truck-drive {
  from {
    transform: translate3d(-112%, 0, 0);
  }

  to {
    transform: translate3d(calc(100vw + 12%), 0, 0);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  align-items: start;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(44px, 5vw, 68px) 0 clamp(18px, 2.4vw, 30px);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 24px;
}

.hero h1 {
  max-width: 760px;
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  font-size: clamp(64px, 8.2vw, 118px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero-social-link {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.hero-social-link:hover {
  color: var(--ink);
}

.hero-tags {
  display: flex;
  max-width: 760px;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 2vw, 24px);
}

.hero-tags span {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-tags span:not(:last-child)::after {
  width: 5px;
  height: 5px;
  margin-left: 14px;
  border-radius: 50%;
  background: var(--target-color);
  content: "";
}

.hero-accent {
  max-width: 680px;
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.35;
}

.hero-photo {
  width: calc(100% - 16px);
  max-width: 424px;
  min-height: 0;
  aspect-ratio: 4 / 5;
  justify-self: end;
  margin: 10px 8px 18px 0;
  overflow: hidden;
  border-radius: 28px;
  background: #d8e0eb;
  box-shadow: 0 18px 42px rgba(12, 19, 29, 0.12);
  transform: rotate(2.25deg);
  transform-origin: center;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.section {
  padding-block: clamp(58px, 7vw, 96px);
  scroll-margin-top: 84px;
}

#superpowers {
  padding-top: clamp(36px, 4vw, 56px);
}

.section-heading {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.eyebrow {
  margin: 0;
  padding-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.footer h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.marker-word {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.marker-word::after {
  position: absolute;
  z-index: -1;
  right: -0.04em;
  bottom: 0.04em;
  left: -0.04em;
  height: 0.16em;
  border-radius: 999px 65% 999px 55%;
  background: rgba(12, 115, 254, 0.24);
  content: "";
  transform: rotate(-1.5deg);
}

.strength-list,
.case-catalog,
.experience-list {
  margin-left: 0;
}

.strength-item {
  border-bottom: 1px solid var(--line);
}

.strength-trigger {
  display: grid;
  width: 100%;
  min-height: 84px;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.strength-title,
.experience-copy h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.strength-icon {
  justify-self: end;
  color: var(--target-color);
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
}

.strength-answer {
  max-width: 820px;
  padding: 0 48px 26px 0;
}

.strength-answer[hidden] {
  display: none;
}

.strength-answer p,
.case-detail p,
.experience-item p {
  margin: 0;
}

.strength-answer p {
  color: var(--muted);
}

.tools-strip {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.practice-section .section-heading {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.practice-section .tools-strip {
  margin-bottom: clamp(30px, 4vw, 48px);
}

.tools-title {
  align-self: center;
  margin: 0;
  padding: 22px 24px 22px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 20px 24px;
  border-left: 1px solid var(--line);
}

.tool-item strong {
  font-size: 20px;
  line-height: 1.15;
}

.tool-item span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.case-catalog {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.55fr);
  gap: 28px;
  align-items: start;
}

.case-index {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.case-tab {
  display: grid;
  width: 100%;
  min-height: 82px;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  padding: 15px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, padding 180ms ease;
}

.case-tab:first-child {
  border-top: 1px solid var(--line);
}

.case-tab:hover,
.case-tab:focus-visible {
  padding-left: 14px;
}

.case-tab[aria-selected="true"] {
  color: var(--target-color);
}

.case-tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.case-tab-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.case-tab-title {
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.case-tab-arrow {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.case-tab[aria-selected="true"] .case-tab-arrow {
  color: var(--white);
  background: var(--target-color);
  transform: translateX(2px);
}

.case-detail {
  min-width: 0;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(12, 19, 29, 0.07);
}

.case-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.case-detail-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px 6px;
  border-radius: 999px;
  color: var(--target-color);
  background: rgba(12, 115, 254, 0.11);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-detail-title {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.case-detail-body {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.case-part {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.case-part:last-child {
  border-bottom: 0;
}

.case-part p {
  max-width: none;
  line-height: 1.55;
}

.case-label {
  position: relative;
  display: inline-block;
  width: fit-content;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.case-result {
  font-weight: 400;
}

.case-detail-actions {
  margin-top: 8px;
}

.case-detail-actions:empty {
  display: none;
}

.case-detail-link {
  margin-top: 10px;
}

.practice-section {
  background: var(--practice-bg);
}

.experience-list {
  display: grid;
  gap: clamp(44px, 6vw, 72px);
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 88px);
}

.experience-period {
  padding-top: 5px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.experience-copy {
  display: grid;
  max-width: 760px;
  gap: 12px;
}

.experience-role {
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.experience-copy .experience-role + p {
  margin-top: 6px;
}

.experience-copy p + p:not(.experience-role) {
  margin-top: 4px;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 13px 18px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  color: var(--target-text);
  background: var(--target-color);
}

.button--secondary,
.button--light {
  color: var(--ink);
  background: var(--personal-accent);
  border-color: var(--personal-accent);
}

.button:hover,
.nav-portfolio:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.footer {
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  display: grid;
  min-height: 380px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  padding-block: clamp(68px, 7vw, 92px);
}

.footer-intro h2 {
  max-width: 820px;
  font-size: clamp(48px, 5.6vw, 76px);
}

.footer-card {
  display: grid;
  justify-items: end;
  gap: 24px;
}

.footer-meme {
  --cat-offset: 180px;
  --cat-opacity: 0;
  --cat-rotate: 5deg;
  width: clamp(210px, 19vw, 280px);
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 22px;
  opacity: var(--cat-opacity);
  transform: translateX(var(--cat-offset)) rotate(var(--cat-rotate));
  will-change: opacity, transform;
}

.footer-meme img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 42px;
}

.footer-email {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer .button {
  min-height: 48px;
  margin-top: 0;
}

.footer-telegram,
.footer-max {
  justify-self: start;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  padding-block: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: 5px;
}

.footer-back-to-top:hover {
  color: var(--white);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-header {
    position: fixed;
    grid-template-columns: 1fr auto;
    width: 100%;
    min-height: 60px;
    padding: 0 14px;
  }

  .site-header .desktop-nav,
  .header-contact {
    display: none;
  }

  .site-header + main {
    padding-top: 60px;
  }

  #top,
  #superpowers,
  #practice,
  #experience,
  #contact {
    scroll-margin-top: 76px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
  }

  .mobile-menu-icon {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
  }

  .site-header .mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 2px;
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 247, 251, 0.98);
    backdrop-filter: blur(14px);
  }

  .site-header .mobile-menu[hidden] {
    display: none;
  }

  .site-header .mobile-menu a {
    display: block;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  .site-header .mobile-menu a:hover,
  .site-header .mobile-menu a:focus-visible {
    background: var(--white);
  }

  .mobile-menu-portfolio {
    color: var(--target-color);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
  }

  .hero h1 {
    font-size: clamp(54px, 10vw, 84px);
  }

  .hero-photo {
    max-width: 360px;
  }

  .strength-list,
  .case-catalog,
  .experience-list {
    margin-left: 0;
  }

  .case-catalog {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.4fr);
    gap: 20px;
  }

  .case-tab {
    min-height: 76px;
    grid-template-columns: minmax(0, 1fr) 25px;
    gap: 8px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 17px;
  }

  .page-grid {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 60px;
  }

  .header-contact {
    font-size: 14px;
  }

  .ati-road {
    height: 158px;
  }

  .ati-road__truck {
    bottom: 3px;
    width: clamp(276px, 74vw, 320px);
    animation-duration: 10s;
  }

  .ati-road__asphalt {
    height: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 38px 0 26px;
  }

  #superpowers {
    padding-top: 34px;
  }

  .tools-strip {
    grid-template-columns: 1fr;
  }

  .tools-title {
    padding: 18px 0 14px;
  }

  .tool-item {
    display: grid;
    grid-template-columns: minmax(88px, 0.45fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 520px;
    margin-bottom: 26px;
    font-size: clamp(54px, 17vw, 80px);
  }

  .hero-photo {
    width: calc(100% - 18px);
    max-width: none;
    min-height: 0;
    aspect-ratio: 3 / 2;
    order: -1;
    justify-self: center;
    margin: 8px auto 18px;
    border-radius: 20px;
    transform: rotate(1.5deg);
  }

  .hero-photo img {
    object-position: 50% 30%;
  }

  .hero-tags span {
    font-size: 14px;
  }

  .hero-tags {
    gap: 10px;
  }

  .hero-tags span:not(:last-child)::after {
    margin-left: 10px;
  }

  .section h2,
  .footer h2 {
    font-size: clamp(42px, 13vw, 60px);
  }

  .experience-item,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .case-catalog {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .case-tab,
  .case-tab:first-child {
    display: flex;
    min-height: 60px;
    padding: 11px 12px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
  }

  .case-tab:hover,
  .case-tab:focus-visible {
    padding-left: 12px;
  }

  .case-tab[aria-selected="true"] {
    color: var(--target-text);
    background: var(--target-color);
  }

  .case-tab-arrow,
  .case-tab-label {
    display: none;
  }

  .case-tab-title {
    font-size: 14px;
    line-height: 1.16;
  }

  .case-detail {
    padding: 22px;
    border-radius: 22px;
  }

  .case-detail-title {
    font-size: clamp(28px, 9vw, 38px);
  }

  .case-part {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px 0;
  }

  .strength-trigger {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 10px;
  }

  .strength-answer {
    padding-right: 36px;
    padding-left: 0;
  }

  .experience-item {
    gap: 10px;
  }

  .footer-inner {
    min-height: 0;
    align-items: start;
    padding-block: 72px;
  }

  .footer-actions {
    align-items: flex-start;
    margin-top: 36px;
  }

  .footer-card {
    justify-items: start;
  }

  .footer-meme {
    width: min(240px, 74vw);
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  .case-index {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ati-road__truck {
    animation: none;
    transform: translateX(26vw);
  }

  .footer-meme {
    opacity: 1;
    transform: rotate(2deg);
  }

  .case-tab,
  .case-tab-arrow {
    transition: none;
  }
}
