﻿.modeling-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 24px 112px;
  display: flex;
  flex-direction: column;
  gap: 108px;
}

.model-hero {
  text-align: center;
}

.model-hero-title {
  margin: 0 0 12px;
  font-size: var(--type-hero-title);
  line-height: var(--line-heading);
  font-weight: 500;
}

.model-hero-subtitle {
  margin: 0 0 44px;
  font-size: var(--type-body);
  line-height: var(--line-body);
  opacity: 0.95;
}

.model-hero-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
}

.model-hero-actions .hero-button {
  width: min(100%, var(--button-min-width));
  height: var(--button-height);
  border-radius: var(--button-radius);
  padding: 0 var(--button-padding-x);
  font-size: var(--type-ui);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.model-details {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 42px;
  font-size: var(--type-body);
  line-height: var(--line-body);
}

.model-details-block h2 {
  margin: 0 0 12px;
  font-size: var(--type-subsection-title);
  line-height: var(--line-heading);
  font-weight: 500;
}

.model-details-block p {
  margin: 0 0 8px;
}

.model-details-block ul {
  margin: 0;
  padding-left: 30px;
}

.model-tools {
  text-align: center;
}

.model-tools h2 {
  margin: 0 0 30px;
  font-size: var(--type-section-title);
  line-height: var(--line-heading);
  font-weight: 500;
}

.model-tools-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 88px;
  margin-bottom: 18px;
}

.model-tools-icons img {
  width: 102px;
  height: 102px;
  object-fit: contain;
}

.model-tools-caption {
  margin: 0;
  font-size: var(--type-body);
  line-height: var(--line-body);
}

.model-examples h2,
.model-cta h2 {
  margin: 0 0 48px;
  text-align: center;
  font-size: var(--type-section-title);
  line-height: var(--line-heading);
  font-weight: 500;
}

.model-carousel {
  position: relative;
  width: min(100%, 1160px);
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 90px;
}

.model-carousel-stage {
  position: relative;
  width: 100%;
  height: 640px;
}

.model-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 600px);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 35px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translate(-50%, -50%) scale(0.88);
  opacity: 0;
}

.model-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.model-slide.is-active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
}

.model-slide.is-left {
  transform: translate(-102%, -50%) scale(0.92);
  opacity: 0.9;
  z-index: 2;
}

.model-slide.is-right {
  transform: translate(2%, -50%) scale(0.92);
  opacity: 0.9;
  z-index: 2;
}

.model-slide.is-hidden {
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  z-index: 1;
}

.model-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: rgba(217, 217, 217, 0.35);
  color: #ffffff;
  font-size: 30px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.model-arrow:hover {
  opacity: 0.9;
  transform: translateY(-50%) scale(1.03);
}

.model-arrow:active {
  opacity: 0.8;
  transform: translateY(-50%) scale(0.97);
}

.model-arrow--prev {
  left: 10px;
}

.model-arrow--next {
  right: 10px;
}

.model-cta {
  text-align: center;
}

.model-cta h2 {
  margin-bottom: 30px;
}

.model-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, var(--button-min-width));
  max-width: 100%;
  height: var(--button-height);
  border-radius: var(--button-radius);
  padding: 0 var(--button-padding-x);
  background: rgba(217, 217, 217, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: var(--type-ui);
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.model-cta-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.model-cta-button:active {
  opacity: 0.85;
  transform: translateY(0);
}

@media (max-width: 1440px) {
  .modeling-main {
    gap: 92px;
  }

  .model-tools-caption {
    font-size: var(--type-body);
  }
}

@media (max-width: 1080px) {
  .modeling-main {
    padding: 80px 18px 100px;
    gap: 74px;
  }

  .model-details {
    max-width: 680px;
    font-size: var(--type-body);
  }

  .model-details-block h2 {
    font-size: var(--type-subsection-title);
  }

  .model-tools-icons {
    gap: 52px;
  }

  .model-tools-icons img {
    width: 88px;
    height: 88px;
  }

  .model-tools-caption {
    font-size: var(--type-body);
  }

  .model-carousel {
    padding: 0 64px;
  }

  .model-carousel-stage {
    height: 520px;
  }

  .model-slide {
    width: min(100%, 470px);
  }

  .model-slide.is-left {
    transform: translate(-92%, -50%) scale(0.9);
  }

  .model-slide.is-right {
    transform: translate(-8%, -50%) scale(0.9);
  }
}

@media (max-width: 700px) {
  .modeling-main {
    padding: 56px 12px 88px;
    gap: 58px;
  }

  .model-hero-actions {
    gap: 14px;
  }

  .model-details {
    font-size: var(--type-body-small);
    gap: 28px;
  }

  .model-tools h2 {
    margin-bottom: 20px;
  }

  .model-tools-icons {
    gap: 24px;
    margin-bottom: 12px;
  }

  .model-tools-icons img {
    width: 68px;
    height: 68px;
  }

  .model-tools-caption {
    font-size: var(--type-body-small);
  }

  .model-examples h2,
  .model-cta h2 {
    margin-bottom: 26px;
  }

  .model-carousel {
    padding: 0 0 68px;
  }

  .model-carousel-stage {
    height: min(82vw, 390px);
  }

  .model-slide {
    width: min(100%, 390px);
    border-radius: 24px;
  }

  .model-slide.is-left,
  .model-slide.is-right,
  .model-slide.is-hidden {
    opacity: 0;
    z-index: 1;
  }

  .model-slide.is-active {
    z-index: 3;
  }

  .model-arrow {
    top: auto;
    bottom: 0;
    width: 46px;
    height: 46px;
    font-size: 24px;
    transform: none;
  }

  .model-arrow:hover,
  .model-arrow:active {
    transform: none;
  }

  .model-arrow--prev {
    left: calc(50% - 58px);
  }

  .model-arrow--next {
    right: calc(50% - 58px);
  }

}


@media (max-width: 560px) {
  .model-hero-actions {
    flex-wrap: wrap;
  }

  .model-hero-actions .hero-button {
    width: 100%;
    max-width: 360px;
  }
}

