/* ========================================
   tory.kz — Premium Medical Landing
   Mobile-first · Awwwards-level minimalism
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #2F2F2F;
  background-color: #F4FAF6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========== Layout ========== */
.page {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

/* ========== Hero ========== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  gap: 28px;
}

.hero__photo-wrap {
  flex-shrink: 0;
}

.hero__photo {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #4E8B69 0%, #3E7357 100%);
  box-shadow:
    0 12px 40px rgba(78, 139, 105, 0.18),
    0 0 0 6px rgba(255, 255, 255, 0.9),
    0 0 0 8px rgba(78, 139, 105, 0.2);
}

/* Зелёный кружок с инициалами — всегда виден под фото */
.hero__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background: linear-gradient(145deg, #4E8B69 0%, #3E7357 100%);
  border-radius: 50%;
}

.hero__initials {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  user-select: none;
}

/* Фото поверх зелёного фона */
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  border-radius: 50%;
}

/* Если фото не загрузилось — скрываем */
.hero__img.is-hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.hero__name {
  font-size: 28px;
  font-weight: 800;
  color: #2F2F2F;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero__roles {
  font-size: 14px;
  font-weight: 600;
  color: #4E8B69;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.hero__lead {
  font-size: 15px;
  color: #777777;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 28px;
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 650;
  border-radius: 16px;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  min-height: 54px;
  line-height: 1.3;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: #4E8B69;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(78, 139, 105, 0.28);
}

.btn--primary:hover {
  background: #3E7357;
  box-shadow: 0 8px 26px rgba(78, 139, 105, 0.35);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--inline {
  margin-top: 20px;
  width: auto;
  min-width: 200px;
}

.btn__icon {
  font-size: 16px;
  line-height: 1;
}

/* ========== Sections ========== */
.section {
  margin-bottom: 40px;
}

.section__title {
  font-size: 22px;
  font-weight: 750;
  color: #2F2F2F;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-align: center;
}

/* ========== Cards ========== */
.card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 28px 22px;
  box-shadow:
    0 4px 24px rgba(62, 115, 87, 0.06),
    0 1px 4px rgba(62, 115, 87, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 36px rgba(62, 115, 87, 0.1),
    0 2px 8px rgba(62, 115, 87, 0.05);
}

.card--highlight {
  border: 1.5px solid rgba(78, 139, 105, 0.18);
}

.card--note {
  background: linear-gradient(160deg, #FFFFFF 0%, #F8FCF9 100%);
}

.card__title {
  font-size: 19px;
  font-weight: 700;
  color: #2F2F2F;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.card__text {
  font-size: 15px;
  color: #777777;
  line-height: 1.65;
  margin-bottom: 10px;
}

.card__text:last-of-type {
  margin-bottom: 0;
}

/* ========== About ========== */
.about .card {
  margin-bottom: 16px;
}

.about__text {
  font-size: 15px;
  color: #2F2F2F;
  line-height: 1.65;
  margin-bottom: 12px;
}

.about__text:last-child {
  margin-bottom: 0;
}

.education__title {
  font-size: 16px;
  font-weight: 700;
  color: #3E7357;
  margin-bottom: 16px;
}

.education__list {
  list-style: none;
}

.education__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #2F2F2F;
  line-height: 1.5;
  margin-bottom: 11px;
}

.education__list li:last-child {
  margin-bottom: 0;
}

.education__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4E8B69;
}

/* ========== Grid (When) ========== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid__item {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  box-shadow:
    0 3px 16px rgba(62, 115, 87, 0.05),
    0 1px 3px rgba(62, 115, 87, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid__item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px rgba(62, 115, 87, 0.1),
    0 2px 6px rgba(62, 115, 87, 0.05);
}

.grid__icon {
  font-size: 18px;
  color: #4E8B69;
  margin-bottom: 8px;
  font-weight: 700;
}

.grid__label {
  font-size: 13px;
  font-weight: 600;
  color: #2F2F2F;
  line-height: 1.35;
}

/* ========== Steps ========== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow:
    0 3px 16px rgba(62, 115, 87, 0.05),
    0 1px 3px rgba(62, 115, 87, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(62, 115, 87, 0.1),
    0 2px 6px rgba(62, 115, 87, 0.05);
}

.step__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4E8B69, #3E7357);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(78, 139, 105, 0.3);
}

.step__text {
  font-size: 15px;
  color: #2F2F2F;
  line-height: 1.5;
  padding-top: 6px;
}

.step__connector {
  width: 2px;
  height: 16px;
  background: rgba(78, 139, 105, 0.25);
  margin-left: 35px;
}

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 36px 16px 16px;
  border-top: 1px solid rgba(78, 139, 105, 0.12);
  margin-top: 12px;
}

.footer__name {
  font-size: 17px;
  font-weight: 700;
  color: #2F2F2F;
  margin-bottom: 4px;
}

.footer__roles {
  font-size: 13px;
  color: #777777;
  margin-bottom: 14px;
}

.footer__phone {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #4E8B69;
  transition: color 0.2s ease;
}

.footer__phone:hover {
  color: #3E7357;
}

/* ========== Reveal animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Desktop ========== */
@media (min-width: 640px) {
  .page {
    padding: 48px 28px 64px;
  }

  .hero {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 40px;
    margin-bottom: 48px;
  }

  .hero__photo {
    width: 220px;
    height: 220px;
  }

  .hero__initials {
    font-size: 56px;
  }

  .hero__content {
    flex: 1;
  }

  .hero__name {
    font-size: 34px;
  }

  .hero__roles {
    font-size: 15px;
  }

  .hero__lead {
    font-size: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    flex-direction: row;
    max-width: none;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1;
    min-width: 200px;
  }

  .section {
    margin-bottom: 52px;
  }

  .section__title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .card {
    padding: 32px 28px;
  }

  .card__title {
    font-size: 20px;
  }

  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .grid__item {
    padding: 24px 12px;
  }

  .grid__label {
    font-size: 14px;
  }

  .step {
    padding: 22px 24px;
  }

  .step__text {
    font-size: 16px;
  }
}

@media (min-width: 480px) and (max-width: 639px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
