/* =============================================
   SMARTBUILD — About Us Section (О нас)
   ============================================= */

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

.about__title {
  font-size: 54px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2.7px;
  color: var(--color-dark);
  padding: 0 var(--content-padding);
  margin-bottom: 60px;
}

/* Grid container — 3 equal columns for grid alignment */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 0 var(--content-padding);
}

/* Row 1: contents → video + side become grid items */
.about__row {
  display: contents;
}

/* Video block */
.about__video {
  grid-column: span 2;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.about__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about__video::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: var(--radius-md);
}

.about__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 85px;
  height: 85px;
  transition: transform 0.3s ease;
}

/* Hover: slightly scale up the play button */
.about__video:hover .about__video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Pulse ring — always animated (not just on hover) */
.about__video::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  z-index: 1;
  pointer-events: none;
  animation: about-play-pulse 2s ease-out infinite;
}

@keyframes about-play-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* Active state: iframe playing */
.about__video--playing {
  cursor: default;
}

.about__video--playing::before,
.about__video--playing::after {
  display: none;
}

.about__video-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 3;
  border-radius: var(--radius-md);
}

/* Right column: 2 stacked cards */
.about__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card base */
.about__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: var(--radius-md);
  height: 350px;
}

.about__card--yellow {
  background-color: var(--color-yellow);
}

.about__card--bordered {
  border: 1px solid var(--color-graphite);
}

.about__card-title {
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  line-height: var(--h4-line-height);
  letter-spacing: var(--h4-letter-spacing);
  color: var(--color-dark);
}

.about__card-text {
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--color-graphite);
}

/* Bank logos row in mortgage card */
.about__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.about__banks {
  display: flex;
  align-items: center;
}

.about__bank {
  width: 69px;
  height: 40px;
  margin-right: -31px;
  flex-shrink: 0;
}

.about__bank:last-child {
  margin-right: 0;
}

/* Stat cards row — contents → stats become grid items */
.about__stats {
  display: contents;
}

.about__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: var(--radius-md);
  height: 350px;
}

.about__stat--yellow {
  background-color: var(--color-yellow);
}

.about__stat--bordered {
  border: 1px solid var(--color-graphite);
}

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

.about__stat-number {
  font-size: 78px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -3.9px;
  color: var(--color-dark);
}

.about__stat-label {
  font-size: var(--h5-size);
  font-weight: var(--h5-weight);
  line-height: var(--h5-line-height);
  letter-spacing: var(--h5-letter-spacing);
  color: var(--color-dark);
}

.about__stat-text {
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  color: var(--color-graphite);
}
