:root {
  --bg-gray: #474747;
  --ink: #3e444c;
  --ink-soft: #3f454d;
  --gold: #feca5e;
  --gold-grad-start: rgba(254, 207, 95, 1);
  --gold-grad-end: rgba(233, 228, 240, 1);
  --badge: #1e2638;
  --avatar-fallback: #ac7672;
  --shell: 1200px;
  --font: "TildaSans", Arial, sans-serif;
  --font-name: Georgia, "Times New Roman", serif;
  --text-glow:
    0 0 8px #fff,
    0 0 18px #fff,
    0 0 36px rgba(255, 255, 255, 0.95),
    0 0 60px rgba(255, 255, 255, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg-gray);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10000;
  padding: 0.6rem 0.9rem;
  background: #000;
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.block {
  position: relative;
  overflow: hidden;
  color: var(--ink);
}

.block__bg,
.block__filter {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.block__bg {
  background-color: var(--bg-gray);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.block__filter--hero,
.block__filter--reviews {
  background-image: linear-gradient(
    to bottom,
    rgba(93, 80, 115, 0.65),
    rgba(247, 247, 247, 0.1)
  );
}

.block__filter--media {
  background-image: linear-gradient(
    to bottom,
    rgba(247, 247, 247, 0.65),
    rgba(93, 80, 115, 0.1)
  );
}

.block__content {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
  padding: 53px 0 80px;
}

.title-badge {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 370px;
}

.title-badge span,
.title-badge--wide span {
  display: block;
  width: 100%;
  padding: 6px 18px;
  border-radius: 150px;
  background: rgba(30, 38, 56, 0.8);
  color: var(--gold);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.title-badge--wide {
  max-width: 582px;
  margin: 0 auto 14px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 120px;
  z-index: 0;
  width: min(900px, 92vw);
  height: 520px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 35%, rgba(255, 255, 255, 0) 72%),
    url("../assets/img/fones.png") center / contain no-repeat;
  opacity: 0.85;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 2rem));
  padding: 44px 0 56px;
  text-align: center;
}

.hero__avatar {
  width: 225px;
  height: 225px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 10px solid #fff;
  background-color: var(--avatar-fallback);
  background-position: 76.315% 18.847%;
  background-size: 120.54%;
  background-repeat: no-repeat;
}

.hero__name {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-name);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: var(--text-glow);
}

.hero__tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin: 0 auto 8px;
  padding: 10px 24px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 20px;
  font-weight: 400;
  text-shadow: var(--text-glow);
}

.hero__tags::before {
  content: "";
  position: absolute;
  inset: 0 -10px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 75%);
}

.hero__phone {
  margin: 10px 0 28px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.55;
  text-shadow: var(--text-glow);
}

.hero__phone a:hover {
  color: #1e2638;
}

.hero__socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 200px;
  margin: 0 auto;
}

.pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 55px;
  padding: 10px 12px;
  border-radius: 30px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  background-image: linear-gradient(0turn, var(--gold-grad-start) 0%, var(--gold-grad-end) 100%);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.pill:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.pill--insta {
  min-height: 62px;
  gap: 2px;
}

.pill__title {
  display: block;
}

.pill__note {
  display: block;
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  line-height: 1.2;
}

/* Videos */
.video-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.video-stack--more {
  margin-top: 28px;
  margin-bottom: 0;
}

.video-row {
  display: grid;
  gap: 20px;
}

.video-row--equal {
  grid-template-columns: 1fr 1fr;
}

.video-row--wide-narrow {
  grid-template-columns: 2fr 1fr;
}

.video-row--narrow-wide {
  grid-template-columns: 1fr 2fr;
}

.media-item {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  background: transparent;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.35s ease;
}

.video-row--wide-narrow .media-item:last-child img,
.video-row--narrow-wide .media-item:first-child img {
  aspect-ratio: 376 / 485;
}

.media-item:hover img {
  transform: scale(1.02);
}

/* Photo slider */
.photo-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.photo-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 32%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.photo-slide {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  scroll-snap-align: start;
  background: transparent;
}

.photo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.photo-slider__nav {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 38, 56, 0.75);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.photo-slider__nav:hover {
  background: rgba(30, 38, 56, 0.95);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: 284px 1fr 369px;
  gap: 24px;
  align-items: start;
}

.reviews-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.reviews-col a {
  display: block;
  overflow: hidden;
  border-radius: 15px;
  background: transparent;
}

.reviews-col img {
  width: 100%;
  height: auto;
}

/* Fixed widgets: WhatsApp + MAX */
.float-widgets {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.float-widgets__item {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  animation: pulse 1.8s ease-in-out infinite;
}

.float-widgets__item--max {
  width: 56px;
  height: 56px;
  background: transparent;
  animation-delay: 0.25s;
}

.float-widgets__item--max img {
  object-fit: cover;
  padding: 0;
}

.float-widgets__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes pulse {
  0%,
  100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Lightbox — по центру экрана */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(247, 247, 247, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-video {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__stage {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 3rem));
  max-height: 85vh;
  margin: 0 auto;
}

.lightbox__stage img,
.lightbox__stage video {
  display: block;
  width: 100%;
  max-height: 85vh;
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
  border-radius: 12px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  border: 0;
  background: rgba(30, 38, 56, 0.8);
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 30px;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

.lightbox.is-video .lightbox__prev,
.lightbox.is-video .lightbox__next {
  display: none;
}

@media (max-width: 900px) {
  .video-row--equal,
  .video-row--wide-narrow,
  .video-row--narrow-wide {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-col:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .photo-slider__track {
    grid-auto-columns: minmax(220px, 70%);
  }
}

@media (max-width: 640px) {
  .hero__avatar {
    width: 150px;
    height: 150px;
    border-width: 7px;
  }

  .hero__name {
    font-size: 30px;
  }

  .title-badge span,
  .title-badge--wide span {
    font-size: 18px;
    padding: 8px 14px;
  }

  .hero__tags {
    font-size: 16px;
    gap: 10px 16px;
    padding: 8px 12px;
  }

  .hero__phone {
    font-size: 26px;
    margin-bottom: 22px;
  }

  .pill {
    width: 180px;
    min-height: 50px;
    font-size: 12px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-col:last-child {
    grid-column: auto;
    display: flex;
  }

  .float-widgets {
    right: 12px;
    bottom: 12px;
  }

  .float-widgets__item {
    width: 60px;
    height: 60px;
  }

  .float-widgets__item--max {
    width: 48px;
    height: 48px;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox__prev { left: 18px; }
  .lightbox__next { right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .float-widgets__item,
  .media-item img,
  .pill {
    animation: none;
    transition: none;
  }
}
