/* Styles for assets/css/page-kompaniya.css */

.company-page {
  --company-surface: #ffffff;
  --company-surface-strong: #f5f2eb;
  --company-feature-overlay: linear-gradient(180deg, rgba(20, 12, 10, 0.02) 0%, rgba(20, 12, 10, 0.12) 38%, rgba(20, 12, 10, 0.8) 100%);
  --company-card-shadow: 0 22px 50px rgba(23, 20, 17, 0.14);
  --company-gap: clamp(16px, 2vw, 24px);
  background: linear-gradient(180deg, #f5f7fb 0%, #efe9de 100%);
}

.company-page .container.first {
  padding-bottom: 28px;
}

p.section-description {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.68);
    max-width: 760px;
    margin: 0 auto 40px 0;
}

.company-page .section-header {
  margin-bottom: 0;
}

.company-overview .container {
  padding-top: 0;
  padding-bottom: 64px;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  grid-template-rows: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: var(--company-gap);
  align-items: stretch;
}

.company-card {
  position: relative;
  display: flex;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
  box-shadow: var(--company-card-shadow);
}

.company-card__media,
.company-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.company-card__video {
  object-fit: cover;
}

.company-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
}

.company-card__content::before,
.company-card__content::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.company-card__content::before {
  right: 28px;
  bottom: 28px;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.company-card__content::after {
  right: 44px;
  bottom: 44px;
  z-index: 2;
  width: 20px;
  height: 20px;
  background: url("../img/icons/chevron-right.svg") center / contain no-repeat;
  filter: invert(99%) sepia(4%) saturate(542%) hue-rotate(234deg) brightness(117%) contrast(100%);
  transition: transform 0.25s ease;
}

.company-card__title {
  margin: 0;
  max-width: 12ch;
  color: #ffffff;
}

.company-card__summary {
  max-width: 34ch;
  margin: 0;
  padding-right: 72px;
  color: rgba(255, 255, 255, 0.9);
}

.company-card--feature {
  grid-row: 1 / span 2;
  min-height: 620px;
  background: #150f0f;
}

.company-card--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--company-feature-overlay);
}

.company-card--feature .company-card__title {
  max-width: 10ch;
}

.company-card--link {
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.company-card--link::before,
.company-card--link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.company-card--link::before {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 36%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.company-card--secondary {
  background:
    linear-gradient(180deg, rgba(16, 20, 36, 0.12) 0%, rgba(16, 20, 36, 0.48) 100%),
    linear-gradient(135deg, #8f3844 0%, #2f354e 100%);
}

.company-card--accent {
  background:
    linear-gradient(180deg, rgba(82, 24, 6, 0.08) 0%, rgba(82, 24, 6, 0.3) 100%),
    linear-gradient(135deg, #ec4920 0%, #ff7b0d 100%);
}

.company-card--link:hover,
.company-card--link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 56px rgba(23, 20, 17, 0.2);
}

.company-card--link:hover .company-card__content::after,
.company-card--link:focus-visible .company-card__content::after {
  transform: translateX(4px);
}

.company-copy .container {
  padding-top: 0;
}

.company-activities .container {
  padding-top: 0;
  padding-bottom: 64px;
}

.company-activities__panel {
    padding: clamp(24px, 3vw, 36px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.company-activities__header {
  max-width: 920px;
  margin-bottom: 28px;
}

.company-activities__title {
  margin: 0 0 16px;
}

.company-activities__lead {
  margin: 0;
}

.company-activities__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 0;
  padding-left: 22px;
}

.company-activities__list li {
  padding-right: 10px;
}

@media (max-width: 960px) {
  .company-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .company-card--feature {
    grid-row: auto;
    min-height: 500px;
  }

  .company-card--secondary,
  .company-card--accent {
    min-height: 260px;
  }

  .company-activities__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .company-page .container.first {
    padding-bottom: 24px;
  }

  .company-overview .container {
    padding-bottom: 44px;
  }

  .company-activities .container {
    padding-bottom: 44px;
  }

  .company-card {
    border-radius: 22px;
  }

  .company-card--feature {
    min-height: 420px;
  }

  .company-card--secondary,
  .company-card--accent {
    min-height: 220px;
  }

  .company-card__content::before {
    right: 22px;
    bottom: 22px;
  }

  .company-card__content::after {
    right: 38px;
    bottom: 38px;
  }
}
