@font-face {
  font-family: "TikTok Sans 28pt Expanded";
  src: url("../assets/fonts/TikTokSans_28pt_Expanded-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TikTok Sans 18pt Expanded";
  src: url("../assets/fonts/TikTokSans_18pt_Expanded-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: var(--color-black);
  background-color: #ffffff;
}

:root {
  --color-gray: #999999;
  --color-black: #292929;
  --color-accent: #76ae96;
  --color-light: #f5f5f5;
  --color-light-hover: #e6e6e6;
  --color-white: #ffffff;
  --color-border: #e6e6e6;
  --font-port2-text: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-port2-h-display: "TikTok Sans 28pt Expanded", "TikTok Sans Expanded", "Manrope", "Segoe UI", Arial, sans-serif;
  --font-port2-h-small: "TikTok Sans 18pt Expanded", "TikTok Sans Expanded", "Manrope", "Segoe UI", Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-port2-h-display);
}

h1,
.text-h1 {
  font-family: var(--font-port2-h-display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
}

h2,
.text-h2 {
  font-family: var(--font-port2-h-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

h3,
.text-h3 {
  font-family: var(--font-port2-h-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}

h4,
.text-h4 {
  font-family: var(--font-port2-h-small);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.text-plus {
  font-family: var(--font-port2-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.text-body {
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.text-small {
  font-family: var(--font-port2-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.container {
  width: min(100% - 32px, 1680px);
  margin-inline: auto;
}

.header {
  padding-top: 40px;
  padding-bottom: 90px;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo-link {
  display: inline-flex;
  line-height: 0;
}

.header__logo {
  display: block;
  width: 200px;
  height: 36px;
}

.header__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__menu-link,
.header__cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
  background-color: var(--color-light);
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.header__menu-link--active {
  position: relative;
  justify-content: flex-start;
  color: var(--color-black);
  border-color: transparent;
  background-color: var(--color-light);
}

.header__menu-link--active::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 8px;
  background-color: var(--color-black);
}

.header__cv-button {
  color: var(--color-white);
  background-color: var(--color-accent);
}

.header__menu-link:hover,
.header__menu-link:focus-visible:not(.header__menu-link--active) {
  background-color: var(--color-light-hover);
}

.header__cv-button:hover,
.header__cv-button:focus-visible {
  opacity: 0.7;
}

.header__menu-link:focus-visible,
.header__cv-button:focus-visible {
  outline: 2px solid #141414;
  outline-offset: 2px;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-bottom: 120px;
}

.hero__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero__heading {
  width: 100%;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.hero__title {
  margin: 0;
  font-family: var(--font-port2-h-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--color-black);
}

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

.hero__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero__photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.hero__photo--first {
  max-width: 398px;
  align-self: flex-start;
}

.hero__photo--second {
  max-width: 398px;
}

.hero__photo--third {
  max-width: 540px;
}

.contact-card {
  padding: 16px;
  border-radius: 20px;
  background-color: var(--color-light);
}

.contact-card__label {
  margin: 0 0 4px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.contact-card__line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card__link {
  flex: 1;
  min-width: 0;
  font-family: var(--font-port2-h-small);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-card__link:hover,
.contact-card__link:focus-visible {
  opacity: 0.7;
}

.copy-button {
  flex-shrink: 0;
  block-size: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.copy-button:focus-visible,
.contact-card__link:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.copy-button__icon {
  display: block;
  inline-size: 24px;
  block-size: 24px;
  object-fit: contain;
  opacity: 0.9;
}

.toast {
  position: fixed;
  left: 50%;
  top: 40px;
  bottom: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%) translateY(-20px);
  z-index: 100;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
  background-color: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success::before,
.toast--error::before {
  content: "";
  display: block;
  inline-size: 18px;
  block-size: 18px;
  flex-shrink: 0;
}

.toast--success::before {
  background-color: var(--color-accent);
  mask: url("../assets/icons/32х32/Stroked/Select.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("../assets/icons/32х32/Stroked/Select.svg") center / 18px 18px no-repeat;
}

.toast--error::before {
  background-color: #b95c5c;
  mask: url("../assets/icons/32х32/Stroked/To_close.svg") center / 18px 18px no-repeat;
  -webkit-mask: url("../assets/icons/32х32/Stroked/To_close.svg") center / 18px 18px no-repeat;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0 0 0 0);
}

/* ─── Focus & Achievements ─── */

.focus {
  padding-bottom: 120px;
}

.focus__header {
  margin-bottom: 60px;
}

.focus__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.focus__title {
  margin: 0;
}

.focus__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.focus-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-block: 20px;
  border-top: 1px solid var(--color-border);
}

.focus-card:last-child {
  border-bottom: 1px solid var(--color-border);
}

.focus-card__label {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.focus-card__heading {
  margin: 0;
  font-family: var(--font-port2-h-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-black);
}

.focus-card__description {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-black);
}

@media (min-width: 992px) {
  .focus-card {
    flex-direction: row;
    align-items: flex-end;
    gap: 30px;
  }

  .focus-card__left {
    flex: 0 0 968px;
    max-width: 968px;
  }

  .focus-card__description {
    flex: 0 0 397px;
    width: 397px;
  }
}

/* ─── Projects ─── */

.projects {
  padding-bottom: 120px;
}

.projects__header {
  margin-bottom: 60px;
}

.projects__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.projects__title {
  margin: 0;
}

.projects__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card:not(:first-child) {
  padding-top: 60px;
}

.project-card:not(:last-child) {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
}

.project-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 968 / 600;
  border-radius: 20px;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  transform-style: preserve-3d;
}

.project-card__photo.tilt-resetting {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card__body {
  display: flex;
  flex-direction: column;
}

.project-card__dates {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.project-card__title {
  margin: 8px 0 0;
}

.project-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background-color: var(--color-light);
  font-family: var(--font-port2-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
}

.project-card__divider {
  margin: 16px 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.project-card__columns {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
}

.project-card__column {
  flex: 1;
}

.project-card__col-name {
  margin: 0 0 4px;
  font-family: var(--font-port2-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.project-card__col-text {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
}

.project-card-accent-info {
  color: var(--color-accent);
}

.project-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 16px 20px;
  margin-top: 16px;
  border-radius: 999px;
  border: none;
  background-color: var(--color-light);
  color: var(--color-black);
  text-decoration: none;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.project-card__button:hover,
.project-card__button:focus-visible {
  background-color: var(--color-light-hover);
}

.project-card__button:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* ─── Extra Projects ─── */

.extra-projects {
  padding-bottom: 120px;
}

.extra-projects__header {
  margin-bottom: 60px;
}

.extra-projects__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.extra-projects__title {
  margin: 0;
}

.extra-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.extra-card__placeholder {
  width: 100%;
  aspect-ratio: 540 / 360;
  border-radius: 20px;
  background-color: var(--color-light);
  margin-bottom: 16px;
}

.extra-card__info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extra-card__name {
  flex: 1;
  margin: 0;
  font-family: var(--font-port2-h-small);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-black);
}

.extra-card__info .chip {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─── Reviews ─── */

.reviews {
  padding-bottom: 120px;
}

.reviews__header {
  margin-bottom: 60px;
}

.reviews__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.reviews__title {
  margin: 0;
}

.reviews__list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-card__top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

.review-card__person {
  display: flex;
  align-items: center;
  gap: 20px;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background-color: var(--color-light);
}

.review-card__person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-card__person-name {
  margin: 0;
  font-family: var(--font-port2-h-small);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
}

.review-card__person-company {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-card__meta-value {
  margin: 0;
  font-family: var(--font-port2-h-small);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-black);
}

.review-card__meta-label {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.review-card__divider {
  margin: 0 0 20px;
  border: none;
  border-top: 1px solid var(--color-border);
}

.review-card__text {
  max-width: 682px;
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-black);
}

@media (max-width: 767px) {
  .review-card__top {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 600px) {
  .extra-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .extra-projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .project-card {
    flex-direction: row;
    align-items: stretch;
  }

  .project-card__photo {
    flex: 0 0 58%;
    max-width: 968px;
    width: 58%;
    height: auto;
    aspect-ratio: 968 / 600;
  }

  .project-card__body {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .header__container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header__menu {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .hero__title {
    font-size: 28px;
  }
}

/* ─── Contacts ─── */

.contacts {
  padding-bottom: 120px;
}

.contacts__header {
  margin-bottom: 60px;
}

.contacts__eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.contacts__title {
  margin: 0;
}

.contacts__body {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 40px;
}

.contacts__left {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.contacts__photo {
  display: block;
  width: 100%;
  max-width: 398px;
  height: auto;
  aspect-ratio: 398 / 200;
  border-radius: 20px;
  object-fit: cover;
}

.contacts__info {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contacts__info-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 12px;
}

.contacts__info-label {
  flex-shrink: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
  white-space: nowrap;
}

.contacts__info-line {
  flex: 1;
  border-bottom: 1px solid var(--color-border);
  align-self: flex-end;
  margin-bottom: 3px;
}

.contacts__info-value {
  flex-shrink: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
  white-space: nowrap;
}

.contacts__right {
  width: 100%;
}

.contacts__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.contacts__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--color-light);
  color: var(--color-black);
  text-decoration: none;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.contacts__chip:hover,
.contacts__chip:focus-visible {
  background-color: var(--color-light-hover);
}

.contacts__chip:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

.contacts__chip--accent {
  color: var(--color-white);
  background-color: var(--color-accent);
}

.contacts__chip--accent:hover,
.contacts__chip--accent:focus-visible {
  background-color: var(--color-accent);
  opacity: 0.7;
}

@media (min-width: 992px) {
  .contacts__body {
    flex-direction: row;
    gap: 172px;
  }

  .contacts__left {
    flex: 0 0 968px;
    flex-direction: row;
    gap: 172px;
  }

  .contacts__photo {
    flex-shrink: 0;
    width: 398px;
    height: 200px;
  }

  .contacts__info {
    flex: 1;
    min-width: 0;
  }

  .contacts__right {
    flex: 0 0 540px;
  }

  .contacts__chips {
    justify-content: flex-end;
  }
}

@media (min-width: 992px) {
  .hero__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
  }

  .hero__heading {
    max-width: 968px;
  }

  .hero__contacts {
    width: 405px;
    gap: 16px;
  }

  .hero__photos {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 172px;
  }
}

/* ─── Footer ─── */

.footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 20px;
  border-top: 1px solid var(--color-border);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo-link {
  display: inline-flex;
  line-height: 0;
}

.footer__logo {
  display: block;
  width: 200px;
  height: 36px;
}

.footer__description {
  margin: 0;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-gray);
}

.footer__menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 16px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-port2-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-black);
  background-color: var(--color-light);
  transition: background-color 0.2s ease;
}

.footer__menu-link--active {
  position: relative;
  justify-content: flex-start;
}

.footer__menu-link--active::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: 8px;
  background-color: var(--color-black);
}

.footer__menu-link:hover,
.footer__menu-link:focus-visible:not(.footer__menu-link--active) {
  background-color: var(--color-light-hover);
}

.footer__menu-link:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

