:root {
  --bg: #edf0f4;
  --card: #ffffff;
  --text: #2b2d42;
  --muted: #7a7f96;
  --label: #9aa0b4;
  --line: #e8ebf1;
  --soft: #f4f6f9;
  --icon-bg: #eef1f6;
  --blue: #4169e1;
  --blue-deep: #3558c8;
  --shadow: 0 18px 40px rgba(40, 50, 80, 0.08);
  --radius: 28px;
  --font: "Poppins", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.page {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 40px 16px 56px;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.profile {
  padding: 28px 24px 24px;
  position: sticky;
  top: 28px;
}

.profile__top {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile__photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
  border-radius: 28px;
  object-fit: cover;
}

.profile__name {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2a2f45;
  word-break: break-word;
}

.profile__badge {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.contacts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contacts__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.contacts__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.contacts__icon i {
  line-height: 1;
}

.contacts__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  font-weight: 500;
  margin-bottom: 2px;
}

.contacts__item > div {
  min-width: 0;
}

.contacts__item a,
.contacts__item span:not(.contacts__label):not(.contacts__icon) {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(65, 105, 225, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
}

.content {
  padding: 36px 40px 32px;
  overflow: hidden;
}

.section + .section {
  margin-top: 36px;
}

.section__title {
  margin: 0 0 18px;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #2a2f45;
  position: relative;
  padding-bottom: 12px;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
}

.section__body {
  color: var(--muted);
  font-size: 0.95rem;
}

.section__body p {
  margin: 0 0 14px;
}

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

.section__body strong {
  color: var(--text);
  font-weight: 600;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 24px 22px;
  border-radius: 18px;
  background: var(--soft);
  min-width: 0;
}

.service__icon {
  width: 40px;
  height: 40px;
  margin-top: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.service h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2a2f45;
  line-height: 1.3;
}

.service p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.ventures {
  overflow: hidden;
  padding-bottom: 8px;
  width: 100%;
}

.ventures .swiper-slide {
  height: auto;
  width: auto;
}

.ventures__item {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
}

.ventures__item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.ventures__item:hover img {
  opacity: 1;
}

.ventures__dots {
  position: static;
  margin-top: 18px;
}

.ventures__dots .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  margin: 0 4px !important;
  background: #d5dae6;
  opacity: 1;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}

.ventures__dots .swiper-pagination-bullet-active {
  width: 24px;
  background: var(--blue);
}

/* Tablet */
@media (max-width: 1100px) {
  .page {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 20px;
    padding: 28px 16px 40px;
  }

  .content {
    padding: 28px 24px 24px;
  }

  .services {
    gap: 14px;
  }

  .service {
    padding: 18px 16px;
    gap: 12px;
  }

  .service h3 {
    font-size: 0.95rem;
  }

  .service p {
    font-size: 0.82rem;
  }
}

/* Mobile / stacked */
@media (max-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    max-width: 640px;
    padding: 48px 14px 36px;
    gap: 18px;
  }

  .profile {
    position: static;
    margin-top: 24px;
    padding: 22px 18px 18px;
  }

  .profile__photo {
    width: 112px;
    height: 112px;
    border-radius: 22px;
    margin-top: -56px;
    box-shadow: 0 10px 24px rgba(40, 50, 80, 0.12);
  }

  .content {
    padding: 24px 18px 20px;
  }

  .section + .section {
    margin-top: 28px;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service {
    padding: 18px 16px;
  }

  .ventures__item {
    height: 72px;
  }

  .ventures__item img {
    max-height: 48px;
  }
}

@media (max-width: 420px) {
  .page {
    padding: 40px 10px 28px;
  }

  .profile,
  .content {
    border-radius: 22px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .contacts__item {
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .contacts__icon {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .contacts__item a,
  .contacts__item span:not(.contacts__label):not(.contacts__icon) {
    font-size: 0.86rem;
  }

  .section__body {
    font-size: 0.9rem;
  }
}
