/* Custom overrides extracted from legacy inline styles. */

/* Shared spacing and theme variables */
:root {
  --spacing-small: 15px;
  --spacing-medium: 25px;
  --border-radius: 8px;
  --caption-font-size: 32px;
  --caption-font-size-sm: 24px;
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --transition-speed: 0.3s;
}

/* General container padding */
.uk-container,
.uk-section {
  padding: var(--spacing-medium);
}

/* Typographic tweaks */
.video-info__subtitle {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

/* Icon cards */
.block-icon__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.block-icon__icon img,
.block-icon__icon i {
  max-width: 100%;
  max-height: 100%;
  font-size: 60px;
  line-height: 60px;
  text-align: center;
}

.block-icon--small {
  transform: scale(0.8);
  transform-origin: top center;
  opacity: 0.9;
  transition: transform var(--transition-speed),
    opacity var(--transition-speed);
}

.small-cards-wrapper {
  display: flex;
  justify-content: space-between;
}

@media (max-width: 767px) {
  .small-cards-wrapper {
    justify-content: flex-start;
    width: 100%;
  }

  .small-cards-wrapper .block-icon--small {
    transform-origin: top left;
  }
}

/* Team grid helpers */
.team-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 15px;
}

.team-grid .uk-inline-clip img {
  width: 100% !important;
  height: auto;
  object-fit: cover !important;
  aspect-ratio: 3 / 4;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed),
    box-shadow var(--transition-speed);
  display: block !important;
}

.team-grid .uk-inline-clip:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.team-grid .uk-position-bottom {
  background: var(--overlay-bg);
  padding: 6px 0;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  text-align: center;
}

.team-grid .uk-position-bottom strong {
  color: #fff;
  font-size: 16px;
  display: block;
}

@media (max-width: 640px) {
  .team-grid .uk-position-bottom strong {
    font-size: 14px;
  }
}

/* About section gallery */
.section-about__gallery img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Video thumbnail grid */
.video-thumb-grid ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-small);
  list-style: none;
  padding: 0;
  margin: 0;
}

.video-thumb-grid li {
  flex: 1 1 calc(25% - var(--spacing-small));
}

.video-thumb-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  transition: transform var(--transition-speed);
}

.video-thumb-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb-grid__item:hover {
  transform: scale(1.03);
}

.video-thumb-grid__caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  color: #fff;
  font-weight: bold;
  font-size: var(--caption-font-size);
  line-height: 1;
  text-align: center;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .video-thumb-grid li {
    flex: 1 1 calc(50% - var(--spacing-small));
  }

  .video-thumb-grid__caption {
    font-size: var(--caption-font-size-sm);
  }
}

/* Slideshow text */
.slideshow-item__desc {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Subscribe form helpers */
.phone-placeholder {
  text-align: center;
  font-size: 32px;
}

.phone-placeholder::placeholder {
  font-size: 32px;
  text-align: center;
  color: #333;
}

.text-accent {
  color: #e63619;
}

.text-nowrap {
  white-space: nowrap;
}

/* Packages page layout tweaks */
.page-shop .uk-container {
  max-width: none;
}

.page-shop .uk-section {
  padding: 0;
}

.page-shop .uk-section-large {
  padding: var(--spacing-medium);
}

.page-shop .products-items.uk-grid {
  flex-wrap: nowrap !important;
}

@media (max-width: 767px) {
  .page-shop .products-items.uk-grid {
    flex-wrap: wrap !important;
  }

  .page-shop .products-items.uk-grid > div {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.footer-padding {
  padding: 25px 0;
}

/* Language specific font override */
html[lang="en"],
html[lang="en"] body,
html[lang="en"] *,
html[lang="ru"],
html[lang="ru"] body,
html[lang="ru"] * {
  font-family: "Poppins", sans-serif !important;
}
