/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Header ===== */
.header {
  text-align: center;
  padding: 60px 20px 40px;
}

.header__logo{
  max-width: 350px;
  margin: 0 auto;
  width: 100%;
}

.header__box {
  display: inline-block;
  border: 2px solid #1a1a1a;
  padding: 24px 48px;
}

.header__title {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 12px;
  text-transform: uppercase;
  line-height: 1.2;
}

.header__subtitle {
  font-size: 16px;
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===== Intro ===== */
.intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.intro__text {
  font-size: 18px;
  line-height: 1.7;
}

/* ===== Compositions ===== */
.compositions {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.compositions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.compositions__item {
  text-align: center;
  display: block;
}

.compositions__item:hover .compositions__item-name{
  opacity: .7;
}

.compositions__item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 16px;
}

.compositions__item-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: all .2s ease;
}

.compositions__item-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.compositions__item-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* ===== Videos ===== */
.videos {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.videos__item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  min-height: 491px;
}

.videos__item iframe{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.videos__item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.videos__item-bg--opera {
  background: linear-gradient(135deg, #8a7e74 0%, #6b5e52 40%, #4a3f35 100%);
}

.videos__item-bg--baroque {
  background: linear-gradient(135deg, #7a8a7e 0%, #5e6b5a 40%, #3f4a3d 100%);
}

.videos__item-content {
  position: relative;
  z-index: 1;
  padding: 32px;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
}

.videos__item-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.videos__item-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  max-width: 600px;
}

.videos__item-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.2s;
}

.videos__item:hover .videos__item-play {
  transform: translate(-50%, -50%) scale(1.1);
}

.videos__item-play::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent #1a1a1a;
  margin-left: 4px;
}

/* ===== Contacts ===== */
.contacts {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.contacts__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
}

.contacts__text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contacts__email {
  display: block;
  font-size: 16px;
  margin-bottom: 16px;
}

.contacts__location {
  display: block;
  font-size: 16px;
  margin-bottom: 32px;
}

.contacts__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.contacts__social-link {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.contacts__social-link:hover {
  background: #333;
}

.contacts__social-link svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #1a1a1a;
  text-align: center;
  padding: 24px 20px;
}

.footer__text {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .header__title {
    font-size: 36px;
    letter-spacing: 8px;
  }

  .header__subtitle {
    font-size: 14px;
    letter-spacing: 4px;
  }

  .compositions__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .videos__item {
    min-height: 260px;
  }

  .videos__item-title {
    font-size: 18px;
  }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
  .header {
    padding: 40px 16px 30px;
  }

  .header__box {
    padding: 16px 24px;
  }

  .header__title {
    font-size: 28px;
    letter-spacing: 6px;
  }

  .header__subtitle {
    font-size: 12px;
    letter-spacing: 3px;
  }

  .intro {
    padding: 0 16px 60px;
  }

  .intro__text {
    font-size: 16px;
  }

  .compositions {
    padding: 0 16px 40px;
  }

  .compositions__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .compositions__item-name {
    font-size: 16px;
  }

  .videos {
    padding: 0 16px 40px;
  }

  .videos__item {
    min-height: 220px;
  }

  .videos__item-content {
    padding: 20px;
  }

  .videos__item-title {
    font-size: 16px;
  }

  .videos__item-desc {
    font-size: 13px;
  }

  .videos__item-play {
    width: 52px;
    height: 52px;
  }

  .videos__item-play::after {
    border-width: 10px 0 10px 18px;
  }

  .contacts {
    padding: 30px 16px 40px;
  }

  .contacts__title {
    font-size: 28px;
  }
}