/* Hero */
.sm-hero {
  position: relative;
  min-height: 854px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
  color: var(--sm-grey-900);
}

.sm-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sm-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 35%, rgba(255, 255, 255, 0) 60%);
}

.sm-hero__content {
  position: relative;
  z-index: 1;
  max-width: 616px;
  padding-top: 180px;
}

.sm-hero__title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  white-space: pre-line;
  margin-bottom: 24px;
}

.sm-hero__text {
  font-size: 20px;
  line-height: 1.45;
  color: var(--sm-grey-600);
  margin-bottom: 24px;
  max-width: 560px;
}

.sm-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.sm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Stats */
.sm-stats {
  padding: 40px 0;
}

.sm-stats__inner {
  background-image: linear-gradient(105deg, #fffee9 0%, #fff1a4 98%);
  border-radius: var(--sm-radius-lg);
  padding: 66px 86px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  min-height: 205px;
  align-items: center;
}

.sm-stats__value {
  font-family: var(--sm-font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 48px;
}

.sm-stats__label {
  color: var(--sm-grey-600);
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

/* Features */
.sm-features {
  padding: 64px 0 102px;
}

.sm-features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* About */
.sm-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sm-about__media {
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  aspect-ratio: 616 / 520;
  background: var(--sm-main-100);
}

.sm-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-about__title {
  white-space: pre-line;
  margin-bottom: 20px;
}

.sm-about__text {
  color: var(--sm-grey-600);
  white-space: pre-line;
  margin-bottom: 28px;
}

/* Team */
.sm-team {
  overflow: hidden;
}

.sm-team__grid {
  display: grid;
  grid-template-columns: 452px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.sm-team__grid > [data-slider] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sm-team__slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.sm-team__slider::-webkit-scrollbar {
  display: none;
}

.sm-team__card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  border-radius: var(--sm-radius);
  overflow: hidden;
  background: var(--sm-bg);
  position: relative;
  height: 417px;
  border: 1px solid var(--sm-main-900-a10);
  box-shadow: 0 4px 20px rgba(37, 37, 37, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.sm-team__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.sm-team__card-body {
  position: relative;
  z-index: 1;
  padding: 0;
  background: none;
  color: var(--sm-grey-900);
}

.sm-team__card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 209px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 62%);
  z-index: 0;
  pointer-events: none;
}

.sm-team__name {
  font-family: var(--sm-font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  margin: 0 0 8px;
}

.sm-team__bio {
  font-size: 14px;
  line-height: 18px;
  color: var(--sm-grey-600);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-team__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sm-team__tag {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 24px;
  font-weight: 500;
  background: rgba(97, 206, 170, 0.5);
  color: var(--sm-grey-900);
}

.sm-team__tag--exp {
  background: #fff1a4;
}

.sm-team__role {
  font-size: 14px;
  opacity: 0.9;
}

/* Services */
.sm-services__head {
  max-width: 616px;
  margin-bottom: 40px;
}

.sm-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sm-services__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 178px;
  padding: 32px;
  background: var(--sm-white);
  border: 1px solid var(--sm-main-900-a10);
  border-radius: 16px;
  transition: background var(--sm-transition), border-color var(--sm-transition), box-shadow var(--sm-transition), transform var(--sm-transition);
}

.sm-services__card h3 {
  margin: 0;
  font-family: var(--sm-font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.sm-services__card p {
  margin: 0;
  flex: 1;
  color: var(--sm-grey-600);
  font-size: 16px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-services__card:hover,
.sm-services__card--active {
  background: #fff6c7;
  border: 2px solid #ffeb79;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.sm-services__link {
  font-size: 14px;
  font-weight: 700;
}

.sm-services__more {
  text-align: left;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.sm-services__all {
  font-size: 14px;
  font-weight: 700;
}

/* Visit */
.sm-visit {
  position: relative;
  overflow: hidden;
  padding: 102px 0;
}

.sm-visit .sm-container {
  position: relative;
}

.sm-visit__head {
  text-align: center;
  max-width: 616px;
  margin: 0 auto 40px;
}

.sm-visit__giraffe {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: min(320px, 40vw);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.95;
}

.sm-visit__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.sm-visit__step {
  background: var(--sm-white);
  border: 1px solid var(--sm-main-900-a10);
  border-radius: var(--sm-radius);
  padding: 16px 32px 32px;
  min-height: 230px;
}

.sm-visit__step h3 {
  margin: 0 0 8px;
  font-family: var(--sm-font-body);
  font-size: 20px;
  line-height: 24px;
}

.sm-visit__step p {
  margin: 0;
  color: var(--sm-grey-600);
  font-size: 16px;
  line-height: 20px;
}

.sm-visit__num {
  font-family: var(--sm-font-body);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #cfefe4 0%, #b5f0dc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sm-visit__note {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--sm-white);
  border: 1px solid var(--sm-main-900-a10);
  border-radius: var(--sm-radius);
  padding: 24px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.sm-visit__note-media {
  border-radius: var(--sm-radius);
  overflow: hidden;
  width: 252px;
  height: 156px;
  background: var(--sm-main-200);
}

.sm-visit__note-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-visit__note-text {
  color: var(--sm-grey-600);
  white-space: pre-line;
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  max-width: 550px;
}

.sm-visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Gallery */
.sm-gallery {
  overflow: hidden;
}

.sm-gallery [data-slider] {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.sm-gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.sm-gallery__track::-webkit-scrollbar {
  display: none;
}

.sm-gallery__item {
  flex: 0 0 min(365px, 80vw);
  scroll-snap-align: start;
  border-radius: var(--sm-radius);
  overflow: hidden;
  aspect-ratio: 365 / 455;
  background: var(--sm-main-100);
}

.sm-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Reviews */
.sm-reviews__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--sm-bg);
  border-radius: var(--sm-radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.sm-reviews__score {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
}

.sm-reviews__stars {
  color: #f5c518;
  letter-spacing: 2px;
}

.sm-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sm-reviews__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.sm-reviews__card {
  background: var(--sm-bg);
  border-radius: var(--sm-radius);
  padding: 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sm-main-900-a10);
}

.sm-reviews__quote {
  flex: 1;
  color: var(--sm-grey-600);
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 20px;
}

.sm-reviews__author {
  font-weight: 700;
  margin: 0;
}

.sm-reviews__date {
  color: var(--sm-grey-500);
  font-size: 14px;
  margin: 4px 0 0;
}

/* FAQ */
.sm-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.sm-faq__media {
  border-radius: var(--sm-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sm-main-100);
}

.sm-faq__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-block-faq {
  background: linear-gradient(135deg, var(--sm-main-100), var(--sm-main-200));
}

.sm-block-faq .sm-accordion__item {
  background: rgba(255, 255, 255, 0.55);
}

/* CTA */
.sm-cta__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--sm-main-100);
  border-radius: var(--sm-radius-lg);
  padding: 48px;
}

.sm-cta__form {
  background: var(--sm-white);
  border-radius: var(--sm-radius);
  padding: 32px;
  box-shadow: var(--sm-shadow-card);
}

.sm-cta__form-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.sm-cta__phone {
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  margin: 16px 0 8px;
}

.sm-cta__address {
  color: var(--sm-grey-600);
  max-width: 420px;
}

@media (max-width: 1100px) {
  .sm-features__grid,
  .sm-visit__steps,
  .sm-reviews__grid,
  .sm-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sm-team__grid,
  .sm-about__grid,
  .sm-faq__grid,
  .sm-cta__inner,
  .sm-visit__note {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sm-visit__note-media {
    width: 100%;
    height: 180px;
  }

  .sm-visit__giraffe {
    display: none;
  }

  .sm-stats__inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 28px 24px;
  }

  .sm-hero {
    min-height: 720px;
    align-items: flex-end;
  }

  .sm-hero__bg::after {
    background: linear-gradient(180deg, rgba(248, 249, 246, 0.15) 20%, rgba(248, 249, 246, 0.95) 70%);
  }

  .sm-hero__content {
    max-width: none;
    padding-top: 280px;
  }
}

@media (max-width: 600px) {
  .sm-features__grid,
  .sm-visit__steps,
  .sm-reviews__grid,
  .sm-reviews__grid--3,
  .sm-stats__inner,
  .sm-services__grid {
    grid-template-columns: 1fr;
  }

  .sm-hero__actions .sm-btn {
    width: 100%;
  }

  .sm-cta__inner {
    padding: 24px 16px;
  }
}
