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

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

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

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

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f2f2f2;
  --color-text: #000000;
  --color-muted: #666666;
  --color-border: #e5e5e5;
  --color-accent: #000000;
  --color-accent-hover: #2b2b2b;
  --color-shadow: rgba(0, 0, 0, 0.08);

  --container: 1040px;
  --radius-md: 24px;

  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 96px;
}

[data-theme="dark"] {
  --color-bg: #18191c;
  --color-surface: #232428;
  --color-surface-soft: #2c2d31;
  --color-text: #f5f5f4;
  --color-muted: #c2c2c2;
  --color-border: #373a40;
  --color-accent: #d97b6a;
  --color-accent-hover: #e48d7f;
  --color-shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--space-xl) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 86%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 600;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--color-accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.button,
.theme-toggle {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  gap: 8px;
  border-radius: 6px;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.button--small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  gap: 8px;
}

.button--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.button--secondary:hover {
  color: var(--color-accent);
  background: transparent;
  border-color: var(--color-accent);
}

.theme-toggle {
  width: 72px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface-soft);
}

.theme-toggle__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle__icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

[data-theme="light"] .theme-toggle__icon:first-child,
[data-theme="dark"] .theme-toggle__icon:last-child {
  background: var(--color-surface);
  box-shadow: 0 2px 8px var(--color-shadow);
}

[data-theme="dark"] .theme-toggle__icon img {
  filter: brightness(0) invert(1);
}

.hero {
  min-height: auto;
  display: block;
  padding: 48px 0 96px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 56px;
}

.eyebrow {
  display: grid;
  gap: var(--space-md);
  margin: 0 0 var(--space-md);
  color: var(--color-accent);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow::after {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
}

h1 {
  max-width: 680px;
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: clamp(42px, 4.4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

h2 {
  margin-top: 0;
  margin-bottom: var(--space-md);
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.hero__text {
  max-width: 620px;
  margin-bottom: 24px;
  color: var(--color-muted);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero__photo,
.about__photo {
  display: flex;
  justify-content: center;
}

.hero__portrait {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  object-position: 50% 12%;
}

.about__portrait {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 24px;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scaleX(-1);
}

.about__photo {
  width: min(100%, 340px);
  aspect-ratio: 17 / 20;
  justify-self: center;
  overflow: hidden;
  border-radius: 24px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: var(--space-lg);
}

.section-heading p:not(.eyebrow),
.about__content p:not(.eyebrow),
.principles p,
.article-link p,
.contacts__content p:not(.eyebrow) {
  color: var(--color-muted);
}

.section-heading p:not(.eyebrow),
.about__content p:not(.eyebrow),
.contacts__content p:not(.eyebrow) {
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: normal;
}

.section-heading p:not(.eyebrow):last-child {
  margin-bottom: 0;
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: end;
  gap: 0 var(--space-lg);
}

.section-heading--split .eyebrow {
  grid-column: 1;
}

.section-heading--split h2 {
  grid-column: 1;
  grid-row: 2;
}

.section-heading--split p:not(.eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 620px;
  margin-left: auto;
  font-size: 18px;
}

.section-heading--split p:not(.eyebrow):last-child {
  margin-bottom: var(--space-md);
}

.section-heading--split p:not(.eyebrow) span {
  display: block;
  white-space: nowrap;
}

.companies,
.experience,
.articles {
  background: color-mix(in srgb, var(--color-surface-soft) 72%, var(--color-bg));
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 32px;
  padding: 0 0 16px;
}

.logo-grid__item {
  min-width: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.logo-grid img {
  width: 100%;
  height: 64px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.82);
  mix-blend-mode: multiply;
  opacity: 0.58;
}

[data-theme="dark"] .logo-grid img {
  filter: grayscale(1) invert(1) contrast(0.75);
  mix-blend-mode: screen;
}

.logo-grid__item:hover {
  transform: translateY(-3px);
}

.logo-grid__item:hover img {
  filter: none;
  opacity: 1;
}

[data-theme="dark"] .logo-grid__item:hover img {
  mix-blend-mode: normal;
}

[data-theme="dark"] .logo-grid__item:hover .logo-grid__image--light-dark {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .logo-grid__item:hover .logo-grid__image--bright-dark {
  filter: brightness(3);
}

.about__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  column-gap: var(--space-lg);
  row-gap: 0;
  margin-bottom: var(--space-lg);
}

.about__speech {
  position: relative;
  display: block;
  padding: 32px;
  border-radius: 24px;
  background: var(--color-surface-soft);
}

.about__speech::after {
  content: "";
  position: absolute;
  top: 132px;
  right: -16px;
  width: 32px;
  height: 32px;
  border-radius: 0 6px 0 0;
  background: var(--color-surface-soft);
  transform: rotate(45deg);
}

@media (min-width: 981px) {
  .about__content {
    display: contents;
  }

  .about__content > .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .about__speech {
    grid-column: 1;
    grid-row: 2;
  }

  .about__photo {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

}

.about__content p:not(.eyebrow) {
  max-width: 820px;
}

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

.about__interests-label {
  margin-bottom: var(--space-md);
}

.interests {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.interest-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.interest-card__icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.82);
  mix-blend-mode: multiply;
}

.interest-card__icon--mirrored {
  transform: translateX(-10px) scaleX(-1);
}

.interest-card__icon--gamepad {
  transform: translateX(6px);
}

.interest-card h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
}

.interest-card p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 13px;
}

[data-theme="dark"] .interest-card__icon {
  filter: grayscale(1) invert(1) contrast(0.75);
  mix-blend-mode: screen;
}

.experience__inner,
.articles__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 72px;
  align-items: start;
}

.experience__inner {
  gap: var(--space-lg);
}

.approach__inner {
  display: grid;
  gap: var(--space-md);
}

.approach .section-heading {
  margin-bottom: 0;
}

.approach h2 {
  margin-bottom: 0;
}

.section-heading--sticky {
  position: sticky;
  top: 128px;
}

.experience-archive {
  width: 100%;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-md);
  align-items: start;
}

.experience-folders {
  display: grid;
  gap: 4px;
}

.experience-folder {
  position: relative;
  width: 100%;
  height: 90px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  align-content: center;
  gap: 0 8px;
  padding: 0 32px 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--color-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease-out, background 220ms ease-out, border-color 220ms ease-out;
}

.experience-folder::after {
  content: "↗";
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--color-accent);
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 220ms ease-out;
}

.experience-folder:hover::after,
.experience-folder--active::after {
  transform: translate(2px, calc(-50% - 2px));
}

.experience-folder:hover {
  z-index: 2;
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-accent) 64%, transparent);
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.experience-folder--active {
  z-index: 1;
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-surface) 84%, transparent);
}

.experience-folder--active:hover {
  transform: none;
}

.experience-folder:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.experience-folder__icon {
  position: relative;
  isolation: isolate;
  grid-row: 1 / 3;
  width: 70px;
  height: 64px;
  margin-block: 12px;
  display: grid;
  place-items: center;
  background: url("assets/icons/folder.svg") center / contain no-repeat;
}

[data-theme="dark"] .experience-folder__icon {
  background-image: url("assets/icons/folder-dark.svg");
}

.experience-folder__icon img {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 25px;
  margin-top: 18px;
  object-fit: contain;
  pointer-events: none;
}

.experience-folder__icon--rwb img {
  width: 48px;
  filter: brightness(0);
}

.experience-folder__icon--merusoft img {
  width: 45px;
  height: 30px;
}

.experience-folder__icon--digitalstrategy img {
  width: 31px;
  height: 31px;
  filter: grayscale(1) brightness(0);
}

.experience-folder__icon--kite img {
  width: 55px;
  height: 30px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.experience-folder__icon--toproi img {
  width: 48px;
  height: 30px;
}

.experience-folder__icon--2gis img {
  width: 60px;
  height: 35px;
}

.experience-folder__name {
  position: relative;
  top: 7px;
  min-width: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.experience-folder__period {
  display: inline-flex;
  align-items: center;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.experience-panel {
  width: 100%;
  min-width: 0;
  min-height: 424px;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  box-shadow: 0 16px 40px var(--color-shadow);
  backdrop-filter: blur(12px);
}

.experience-panel__header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
}

.experience-panel__logo {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.experience-panel__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-panel__logo--darken img {
  filter: brightness(0);
}

[data-theme="dark"] .experience-panel__logo--darken img {
  filter: brightness(0) invert(1);
}

.experience-panel__logo--severstal img {
  width: 84%;
  height: 84%;
}

.experience-panel__logo--2gis {
  background: #fbfaf8;
}

.experience-panel__logo--2gis img {
  width: 84%;
  height: 84%;
}

.experience-panel__company {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.experience-panel__role {
  margin: 8px 0 0;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.experience-panel__description {
  margin: var(--space-md) 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.experience-panel__meta {
  display: grid;
  grid-template-columns: 1fr;
}

.experience-panel__meta-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}

.experience-panel__meta-row:last-child {
  border-bottom: 0;
}

.experience-panel__meta-row > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.experience-panel__meta-row span,
.experience-panel__meta-row strong {
  display: block;
}

.experience-panel__meta-row svg {
  width: 20px;
  height: 20px;
  fill: none;
  color: var(--color-accent);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.experience-panel__meta-row span {
  color: var(--color-muted);
  font-size: 12px;
}

.experience-panel__meta-row strong {
  min-width: 0;
  margin-top: 0;
  justify-self: end;
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.principles span,
.article-link > span:last-child {
  color: var(--color-accent);
  font-weight: 800;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: var(--space-lg);
}

.principles article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px 24px;
  align-items: baseline;
  padding: 32px 0;
}

.principles article > div {
  display: contents;
}

.principles h3 {
  margin: 0;
}

.principles article:nth-child(2),
.principles article:nth-child(3),
.principles article:nth-child(5),
.principles article:nth-child(6) {
  border-top: 1px solid var(--color-border);
}

.principles p {
  grid-column: 2;
  max-width: 600px;
  margin: 0;
}

.article-list {
  display: grid;
}

.article-link {
  display: grid;
  grid-template-columns: 112px 1fr 32px;
  gap: var(--space-md);
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.article-link:first-child {
  padding-top: 0;
}

.article-link__logo {
  width: 96px;
  height: 32px;
  display: flex;
  align-items: flex-start;
}

.article-link__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) contrast(0.9);
  mix-blend-mode: multiply;
}

[data-theme="dark"] .article-link__logo img {
  filter: grayscale(1) invert(1) contrast(0.85);
  mix-blend-mode: screen;
}

.article-link__logo--vc {
  width: 104px;
  height: 48px;
  padding-top: 0;
}

.article-link h3 {
  margin-top: 0;
}

.article-link > span:last-child {
  font-size: 24px;
  transition: transform 0.2s ease;
}

.article-link:hover > span:last-child {
  transform: translate(4px, -4px);
}

.article-link p {
  margin-bottom: 0;
}

.article-link:last-child {
  border-bottom: 0;
}

.contacts {
  padding-bottom: var(--space-lg);
}

.contacts__inner {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: var(--space-xl);
}

.contacts__content {
  padding-bottom: 40px;
}

.contacts__content p:not(.eyebrow) {
  max-width: 520px;
}

.contacts__button {
  margin-top: var(--space-md);
}

.contacts__button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-links {
  align-self: center;
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  margin: 0;
}

.contact-links a,
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.contact-email {
  position: relative;
}

.email-toast[hidden] {
  display: none;
}

.email-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  min-width: 220px;
  min-height: 56px;
  display: grid;
  grid-template-columns: 20px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 55%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  box-shadow: 0 12px 32px var(--color-shadow);
  backdrop-filter: blur(16px);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.email-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.email-toast--hiding {
  opacity: 0;
  transform: translateY(10px);
}

.email-toast__icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-toast__close {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}

.email-toast__close:hover {
  color: var(--color-text);
  opacity: 1;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 72px;
  z-index: 90;
  width: calc(100% - 32px);
  max-width: 960px;
  display: grid;
  grid-template-columns: max-content auto;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 16px 48px var(--color-shadow);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.cookie-banner--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-banner__message {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.cookie-banner__icon {
  font-size: 20px;
  line-height: 1.4;
}

.cookie-banner__message p {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.cookie-banner__message p + p {
  margin-top: 4px;
  color: var(--color-muted);
}

.cookie-banner__actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cookie-banner__actions .button {
  width: auto;
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
  white-space: nowrap;
}

.contact-links svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  padding: 0 0 48px;
  color: var(--color-muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  font-size: 14px;
}

.footer p {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 72px 0;
  }

  .hero__inner,
  .section-heading--split,
  .about__top,
  .experience__inner,
  .articles__inner,
  .contacts__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .section-heading--split {
    min-width: 0;
    gap: 0;
  }

  .section-heading--split .eyebrow,
  .section-heading--split h2,
  .section-heading--split p:not(.eyebrow) {
    grid-column: 1;
    grid-row: auto;
  }

  .section-heading--split p:not(.eyebrow) {
    width: 100%;
    min-width: 0;
    max-width: 620px;
    margin-left: 0;
    overflow-wrap: anywhere;
  }

  .section-heading--split p:not(.eyebrow):last-child {
    margin-bottom: 0;
  }

  .section-heading--split h2 {
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .section-heading--split p:not(.eyebrow) span {
    white-space: normal;
  }

  .section-heading--sticky {
    position: static;
  }

  .logo-grid,
  .interests {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__inner {
    align-items: start;
  }

  .contact-links {
    align-self: start;
  }

  .contacts__content {
    padding-bottom: 0;
  }

  .about__speech::after {
    display: none;
  }

  .footer__inner {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .experience__inner,
  .articles__inner,
  .contacts__inner {
    gap: 32px;
  }

  .experience__inner > .section-heading,
  .articles__inner > .section-heading {
    margin-bottom: 0;
  }

  .companies .section-heading--split h2 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .companies .section-heading--split p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.6;
  }

  .header__inner {
    min-height: 68px;
  }

  .button--small {
    display: none;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 40px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .logo-grid__item {
    height: 48px;
  }

  .logo-grid img {
    height: 36px;
  }

  .experience-archive {
    grid-template-columns: 1fr;
  }

  .experience-panel {
    padding: var(--space-sm);
    scroll-margin-top: 84px;
  }

  .article-link {
    grid-template-columns: 1fr 32px;
  }

  .article-link__logo {
    grid-column: 1 / -1;
  }

  .principles {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }

  .principles article:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .principles article {
    grid-template-columns: 48px 1fr;
  }

  .contacts__button {
    width: 100%;
  }

  .about__speech {
    padding: var(--space-md);
  }

  .contact-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .email-toast {
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner {
    bottom: 16px;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cookie-banner__actions .button {
    width: 100%;
  }

  .cookie-banner__message p {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition-duration: 0.01ms;
  }
}
