/* ===== HERO ===== */
.gm-hero {
  width: 100%;
  background: var(--white);
  margin: 40px 0;
}

.gm-hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px 34px;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 28px;
}

.gm-offer-card__price-prefix {
  margin-right: 4px;
}

.gm-hero__kicker {
  font-size: 14.4px; /* 12 * 1.2 */
  font-weight: 500; /* medium */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(11, 11, 20, 0.55);
  margin-bottom: 10px;
}

.gm-hero__title {
  margin: 0 0 14px;
  font-size: 64.8px; /* 54 * 1.2 */
  line-height: 1.02;
  font-weight: 800; /* extra bold */
  letter-spacing: -0.03em;
}

.gm-hero__desc {
  margin: 0 0 22px;
  font-size: 16.8px; /* 14 * 1.2 */
  line-height: 1.55;
  font-weight: 400;
  color: rgba(11, 11, 20, 0.65);
}

.btn-primary.gm-hero__cta {
  font-size: 18px;
}

.gm-hero__cta {
  width: fit-content;
}

/* Right image */
.gm-hero__right {
  position: relative;
  min-height: 380px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.gm-hero__img {
  width: min(680px, 120%);
  height: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== DIRECTIONS ===== */
.gm-directions {
  width: 100%;
  background: var(--white);
}

.gm-directions__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 42px 20px 70px;
}

.gm-directions__head {
  text-align: center;
  margin-bottom: 28px;
}

.gm-directions__title {
  margin: 14px 0 10px;
  font-size: 40.8px; /* 34 * 1.2 */
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gm-directions__subtitle {
  margin: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.6;
  color: rgba(11, 11, 20, 0.6);
}

.gm-directions__grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* Cards */
.gm-card {
  position: relative;
  padding: 26px 26px 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 14px 30px rgba(11, 11, 20, 0.06);
  overflow: hidden;
  min-height: 140px;
}

.gm-card__icon img {
  width: 25px;
}

.gm-card__stars {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.gm-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 26.4px; /* 22 * 1.2 */
  margin-bottom: 14px;
}

.gm-card__title {
  margin: 0 0 10px;
  font-size: 19.2px; /* 16 * 1.2 */
  line-height: 1.2;
  font-weight: 700;
}

.gm-card__text {
  margin: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.55;
  color: rgba(11, 11, 20, 0.65);
}

/* Background variants */
.gm-card--blue   { background: #ecfbff; }
.gm-card--purple { background: #eeedff; }
.gm-card--beige  { background: #fff5dd; }

/* Icon color variants */
.gm-card__icon--cyan   { background: rgba(0, 197, 255, 0.18); color: #006c88; }
.gm-card__icon--violet { background: rgba(87, 81, 225, 0.18); color: #2e2aa8; }
.gm-card__icon--gold   { background: rgba(255, 177, 0, 0.20); color: #7a4f00; }

/* ===== OFFERS (bg section + tabs + cards) ===== */
.gm-offers {
  width: 100%;
  background: url("./../images/bg1.png") center / cover no-repeat;
}

.gm-offers__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 20px 56px;
}

.gm-offers__head {
  text-align: center;
}

.gm-offers__title {
  margin: 14px 0 10px;
  font-size: 40.8px; /* 34 * 1.2 */
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gm-offers__subtitle {
  margin: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.6;
  color: rgba(11, 11, 20, 0.6);
}

/* Tabs */
.gm-tabs {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
}

.gm-tab {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px 6px;

  font-family: var(--font);
  font-size: 15.6px; /* 13 * 1.2 */
  font-weight: 500;
  color: rgba(11, 11, 20, 0.62);
  transition: color 120ms ease;
}

.gm-tab.is-active {
  color: rgba(11, 11, 20, 0.92);
  font-weight: 600;
}

.gm-tabs__line {
  position: relative;
  margin: 6px auto 0;
  height: 2px;
  width: min(720px, 90%);
  background: rgba(87, 81, 225, 0.18);
  border-radius: 999px;
}

.gm-tabs__indicator {
  position: absolute;
  left: 0;
  top: -1px;
  height: 4px;
  width: 92px; /* будет обновляться JS */
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(87, 81, 225, 0.25);
  transition: transform 180ms ease, width 180ms ease;
}

/* Cards grid */
.gm-offers__grid {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap; /* на узких экранах упадет вниз */
}

.gm-offer-card {
  width: 280px; /* подгони под макет если надо */
  max-width: 100%;
}

/* Card */
.gm-offer-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(11, 11, 20, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gm-offer-card__img {
  height: 150px;
  background: url("./../images/services/index-video-editing.svg") center no-repeat;
  background: #FFF;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gm-offer-card__img img {
  width: 300px;
  height: 150px;
}

.gm-offer-card__body {
  padding: 14px 14px 16px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 210px;
}

.gm-offer-card__tag {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13.2px; /* 11 * 1.2 */
  font-weight: 600;
  background: rgba(87, 81, 225, 0.10);
  color: rgba(11, 11, 20, 0.72);
}

.gm-offer-card__name {
  margin: 0;
  font-size: 14.4px; /* 12 * 1.2 */
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: rgba(11, 11, 20, 0.92);
}

.gm-offer-card__desc {
  margin: 0;
  font-size: 13.2px; /* 11 * 1.2 */
  line-height: 1.55;
  color: rgba(11, 11, 20, 0.62);
}

/* Footer in card */
.gm-offer-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gm-offer-card__price {
  font-size: 16.8px; /* 14 * 1.2 */
  font-weight: 800;
  color: var(--primary);
}

/* ===== OUTLINE BUTTON (white/black version for "Больше") ===== */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 36px;
  padding: 0 14px;
  border: rgba(11, 11, 20, 0.85) 2px solid;
  border-radius: 999px;

  background: #ffffff;
  color: rgba(11, 11, 20, 0.92);
  text-decoration: none;

  font-weight: 600;
  font-size: 14.4px; /* 12 * 1.2 */

  box-shadow: 3px 5px 0 rgba(11, 11, 20, 0.85);
  transition: all 0.1s ease;
  user-select: none;
}

.btn-outline:hover {
  background: rgba(11, 11, 20, 0.92);
  color: #ffffff;
}

.btn-outline:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(11, 11, 20, 0.85);
}

.btn-outline__arrow {
  font-size: 16.8px; /* 14 * 1.2 */
  line-height: 1;
}

/* Offers footer CTA */
.gm-offers__footer {
  margin-top: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  max-width: 1040px; /* чтобы выглядело как в макете */
  margin-left: auto;
  margin-right: auto;
}

.gm-offers__footer-text {
  font-size: 16.8px; /* 14 * 1.2 */
  font-weight: 600;
  color: rgba(11, 11, 20, 0.75);
}

.gm-offers__footer-btn {
  height: 42px; /* чуть компактнее */
  padding: 0 18px;
}

/* ===== ABOUT DIRECTOR ===== */
.gm-about {
  width: 100%;
  background: var(--white);
}

.gm-about__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 20px;
}

.gm-about__grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 54px;
  align-items: center;
}

/* LEFT media */
.gm-about__media {
  display: flex;
  justify-content: center;
}

.gm-about__photo-wrap {
  position: relative;
  width: 370px;      /* обёртка = ширина фото */
  max-width: 100%;
}

.gm-about__photo {
  width: 100%;       /* фото заполняет обёртку */
  height: 430px;
  object-fit: cover;
  border-radius: 18px;
  border-bottom-right-radius: 0;
  display: block;
  position: relative;
  z-index: 2;
}

/* yellow base behind photo */
.gm-about__base {
  position: absolute;
  bottom: -17px;
  left: 60px;
  width: 84%;
  height: 86px;
  border-radius: 14px;
  border-bottom-right-radius: 0;
  background: #ffbf1f;
  z-index: 1;
}

/* vertical badge */
.gm-about__badge {
  position: absolute;
  right: -76px;
  bottom: -17px;

  width: 76px;
  height: 250px;
  border-radius: 14px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  background: #6c6c7a;
  color: #fff;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 10px 18px 10px;

  z-index: 3;
}

.gm-about__badge-num {
  font-size: 62.4px; /* 52 * 1.2 */
  line-height: 1;
  font-weight: 800;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  /* margin-bottom: 10px; */
}

.gm-about__badge-text {
  font-weight: 600;
  line-height: 1.4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 8px;
  font-size: 19.2px; /* 16 * 1.2 */
}

/* RIGHT content */
.gm-about__content {
  position: relative;
  max-width: 640px;
}

.gm-about__pill {
  margin-bottom: 14px;
}

.gm-about__title {
  margin: 0 0 16px;
  font-size: 40.8px; /* 34 * 1.2 */
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gm-about__lead {
  margin: 0 0 18px;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.65;
  color: rgba(11, 11, 20, 0.68);
}

.gm-about__two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
  margin: 18px 0 22px;
}

.gm-about__quote {
  margin: 0;
  padding-left: 0;
  font-size: 14.4px; /* 12 * 1.2 */
  line-height: 1.65;
  color: rgba(11, 11, 20, 0.55);
}

/* List */
.gm-about__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gm-about__li {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.35;
  color: rgba(11, 11, 20, 0.82);
}

.gm-about__li b {
  font-weight: 800;
}

/* yellow dot like in макете */
.gm-about__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffbf1f;
  border: 2px solid rgba(11, 11, 20, 0.25);
  box-shadow: 0 4px 0 rgba(11, 11, 20, 0.12);
  flex: 0 0 22px;
}

/* ===== WORK TOGETHER / MASTER GROUP ===== */
.gm-work {
  width: 100%;
  background: var(--white);
}

.gm-work__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 20px;
}

.gm-work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.gm-work__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-work__img {
  width: 100%;
  width: 484px;
  height: 484px;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  rotate: none;
  transition: all 1s ease;
}

/* Smooth cursor-follow rotation */
#img-rotate {
  transform-origin: 50% 50%;
  will-change: transform;
  transition: filter 0.2s ease; /* можно убрать */
  /* если хочешь чуть “премиальнее”: */
  filter: drop-shadow(0 10px 5px rgba(11, 11, 20, 0.10));
}

.gm-work__media {
  perspective: 1000px; /* даёт ощущение объёма */
}

.gm-work__content {
  max-width: 560px;
}

.gm-work__pill {
  margin-bottom: 14px;
}

.gm-work__title {
  margin: 0 0 12px;
  font-size: 40.8px; /* 34 * 1.2 */
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gm-work__subtitle {
  margin: 0 0 18px;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.6;
  color: rgba(11, 11, 20, 0.6);
}

.gm-work__point {
  margin: 10px 0 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gm-work__dot {
  margin-top: 3px;
}

.gm-work__text {
  margin: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.65;
  color: rgba(11, 11, 20, 0.65);
}

.gm-work__btn {
  width: fit-content;
}

/* ===== NEWS (LAST POST) ===== */
.gm-news {
  width: 100%;
  background: var(--white);
}

.gm-news__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 20px;
}

.gm-news__head {
  text-align: center;
  margin-bottom: 28px;
}

.gm-news__title {
  margin: 14px 0 10px;
  font-size: 40.8px; /* 34 * 1.2 */
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gm-news__subtitle {
  margin: 0;
  font-size: 15.6px; /* 13 * 1.2 */
  line-height: 1.6;
  color: rgba(11, 11, 20, 0.6);
}

.gm-news__grid {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

/* Card */
.gm-news-card {
  width: min(920px, 100%);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(11, 11, 20, 0.06);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.gm-news-card__media {
  min-height: 210px;
  background: rgba(87, 81, 225, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gm-news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(87, 81, 225, 0.22), transparent 55%),
              radial-gradient(circle at 80% 60%, rgba(255, 191, 31, 0.22), transparent 55%);
  pointer-events: none;
}

.gm-news-card__media-text {
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(11, 11, 20, 0.82);
  padding: 18px;
  text-align: center;
}

.gm-news-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gm-news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gm-news-card__date {
  font-size: 13.2px; /* 11 * 1.2 */
  font-weight: 600;
  color: rgba(11, 11, 20, 0.55);
}

.gm-news-card__tag {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13.2px; /* 11 * 1.2 */
  font-weight: 600;
  background: rgba(87, 81, 225, 0.10);
  color: rgba(11, 11, 20, 0.72);
}

.gm-news-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: rgba(11, 11, 20, 0.92);
}

.gm-news-card__desc {
  margin: 0;
  font-size: 14.4px; /* 12 * 1.2 */
  line-height: 1.65;
  color: rgba(11, 11, 20, 0.62);
}

.gm-news-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gm-news-card__more {
  text-decoration: none;
}

.gm-news-card__hint {
  font-size: 13.2px;
  font-weight: 600;
  color: rgba(11, 11, 20, 0.55);
}
/* 

.BTN-W-I {
  background: url("./../images/logos/BTN\ W\ I.svg") center / cover no-repeat;
  width: 17%;
  position:absolute;
  bottom: 2%;
  left: 11%;

}
.BTN-C-I {
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: all .2s;
}
.BTN-C-I:hover {
  opacity: 0;
} */
/* =========================================================
   MOBILE STYLES (INDEX SECTIONS ONLY)
   Header/Footer styles stay in header-footer.css
   ========================================================= */

/* 1024px */
@media (max-width: 1024px) {
  /* HERO */
  .gm-hero { margin: 24px 0; }

  .gm-hero__container {
    grid-template-columns: 1fr;
    padding: 36px 16px 18px;
    gap: 22px;
  }

  .gm-hero__right {
    justify-content: center;
    min-height: unset;
  }

  .gm-hero__title { font-size: 42.84px; } /* было 50.4 */
  .gm-directions__container { padding: 34px 16px 54px; }
  .gm-offers__container { padding: 44px 16px 44px; }
  .gm-work__container { padding: 54px 16px; }
  .gm-about__container { padding: 54px 16px; }

  /* DIRECTIONS */
  .gm-directions__grid { grid-template-columns: 1fr; }

  /* WORK */
  .gm-work__grid { grid-template-columns: 1fr; }
  .gm-work__content { max-width: 680px; }
  .gm-work__img { max-width: 600px; }

  /* ABOUT */
  .gm-about__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gm-about__media{
    display: none;
    justify-content: flex-start; /* вместо “по центру” */
  }

  .gm-card.gm-card--blue {
    display: none;
  }
}

/* 860px */
@media (max-width: 860px) {
  /* HERO: центрирование */
  .gm-hero__left { text-align: center; }
  .gm-hero__cta { margin: 0 auto; }
  .gm-hero__right { justify-content: center; }

  .gm-hero__img {
    width: 100%;
    position: relative;
    max-width: 530px;
  }

  /* NEWS (карточка в одну колонку) */
  .gm-news-card { grid-template-columns: 1fr; }
  .gm-news-card__media { min-height: 160px; }

  /* ABOUT (fix mobile composition) */
  .gm-about__media{
    display: none;
    justify-content: flex-start; /* вместо “по центру” */
  }
}

/* 640px */
@media (max-width: 640px) {
  /* HERO */
  .gm-hero__container {
    padding: 26px 14px 12px;
    gap: 18px;
  }
  .gm-hero__kicker { font-size: 11.22px; } /* было 13.2 */
  .gm-hero__title { font-size: 34.68px; }  /* было 40.8 */
  .gm-hero__desc { font-size: 12.75px; }   /* было 15 */
  .gm-hero__img { max-width: 520px; }

  /* DIRECTIONS */
  .gm-directions__container { padding: 28px 14px 44px; }
  .gm-directions__title { font-size: 26.52px; }     /* было 31.2 */
  .gm-directions__subtitle { font-size: 12.75px; }  /* было 15 */
  .gm-directions__grid { gap: 14px; }
  .gm-card { padding: 20px; border-radius: 16px; }

  /* OFFERS */
  .gm-offers__container { padding: 70px 14px 44px; }
  .gm-offers__title { font-size: 26.52px; } /* было 31.2 */

  .gm-tabs { gap: 16px; }
  .gm-tab { font-size: 13.26px; padding: 10px 4px; } /* было 15.6 */

  .gm-tabs__line { width: 100%; }
  .gm-tabs__indicator { height: 4px; }

  .gm-offers__grid {
    margin-top: 26px;
    gap: 14px;
  }

  .gm-offer-card {
    width: 100%;
    max-width: 320px;
  }

  .gm-offers__footer {
    margin-top: 36px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* WORK */
  .gm-work__container { padding: 74px 14px; }
  .gm-work__grid { gap: 26px; }
  .gm-work__title { font-size: 26.52px; }    /* было 31.2 */
  .gm-work__subtitle { font-size: 12.75px; } /* было 15 */
  .gm-work__text { font-size: 12.75px; }     /* было 15 */

  /* ABOUT */
  .gm-about__content { max-width: 100%; }
  .gm-about__title { font-size: 26.52px; } /* было 31.2 */
  .gm-about__lead { font-size: 12.75px; }  /* было 15 */

  .gm-about__two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gm-about__badge-num { font-size: 46.92px; }  /* было 55.2 */
  .gm-about__badge-text { font-size: 14.28px; } /* было 16.8 */

  /* NEWS */
  .gm-news__container { padding: 70px 14px; }
  .gm-news__title { font-size: 26.52px; } /* было 31.2 */
  .gm-news-card__body { padding: 16px 14px 18px; }

  /* ABOUT (fix mobile composition) */
  .gm-about__media{
    display: none;
    justify-content: flex-start; /* вместо “по центру” */
  }

  /* звезда: выше, чтобы не закрывала текст */
  .gm-about__star{
    top: 2px;             /* подними (значение подстрой) */
    right: 10px;          /* чтобы не лезла на заголовок */
    opacity: 0.55;        /* чуть тише визуально */
    z-index: 0;           /* всегда под текстом */
    pointer-events: none;
  }
}

/* 520px */
@media (max-width: 520px) {
  .gm-hero__title { font-size: 36.72px; } /* было 43.2 */
}

/* 420px */
@media (max-width: 420px) {
  .gm-hero__title { font-size: 30.6px; } /* было 36 */
}

