/* Движение главной страницы: аудиосигнал, пульт сценариев и отклик карточек. */
.hero-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 9px;
}
.home-hero .hero-intro .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  white-space: nowrap;
}
.intro-equalizer {
  display: inline-flex;
  align-items: end;
  gap: 3px;
  height: 23px;
}
.intro-equalizer i {
  width: 4px;
  height: 12px;
  border-radius: 5px;
  background: var(--orange);
  transform-origin: center bottom;
}
.intro-equalizer i:nth-child(2) { height: 20px; }
.intro-equalizer i:nth-child(3) { height: 16px; }
.intro-equalizer i:nth-child(4) { height: 9px; }
.home-hero.sound-awake .intro-equalizer i { animation: equalizer-groove .64s ease-in-out infinite alternate; }
.home-hero.sound-awake .intro-equalizer i:nth-child(2) { animation-duration: .49s; animation-delay: -.2s; }
.home-hero.sound-awake .intro-equalizer i:nth-child(3) { animation-duration: .72s; animation-delay: -.35s; }
.home-hero.sound-awake .intro-equalizer i:nth-child(4) { animation-duration: .56s; animation-delay: -.12s; }
@keyframes equalizer-groove {
  0% { transform: scaleY(.4); opacity: .72; }
  35% { transform: scaleY(.85); opacity: 1; }
  70% { transform: scaleY(.55); opacity: .82; }
  100% { transform: scaleY(1.15); opacity: 1; }
}
.intro-trace {
  flex: 1;
  height: 34px;
  overflow: hidden;
  opacity: .46;
}
.intro-trace svg { width: 100%; height: 100%; overflow: visible; }
.intro-trace path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.home-hero.intro-playing .intro-trace path {
  stroke-dasharray: 1100;
  animation: trace-in 1.25s cubic-bezier(.2,.75,.18,1) both;
}
.home-hero.intro-playing .intro-equalizer i {
  animation: intro-bars .6s ease-in-out 2 alternate;
}
.home-hero.intro-playing .intro-equalizer i:nth-child(2) { animation-delay: .09s; }
.home-hero.intro-playing .intro-equalizer i:nth-child(3) { animation-delay: .17s; }
.home-hero.intro-playing .intro-equalizer i:nth-child(4) { animation-delay: .23s; }
@keyframes trace-in { from { stroke-dashoffset: 1100; } to { stroke-dashoffset: 0; } }
@keyframes intro-bars { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@keyframes hero-rise { from { opacity: .55; transform: translateY(13px); } to { opacity: 1; transform: translateY(0); } }
.home-hero.intro-playing .hero-card { animation: hero-rise .62s ease-out both; }
.home-hero.intro-playing .hero-small:first-child { animation-delay: .13s; }
.home-hero.intro-playing .hero-small:last-child { animation-delay: .23s; }

.hero-primary .hero-signal {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .3;
  background: radial-gradient(circle 190px at var(--spot-x, 55%) var(--spot-y, 38%), rgba(255, 178, 99, .24), transparent 72%);
  transition: opacity .32s ease;
}
.hero-primary .signal-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  left: var(--spot-x, 55%);
  top: var(--spot-y, 38%);
  border: 1px solid rgba(255, 198, 139, .57);
  border-radius: 50%;
  box-shadow: 0 0 0 33px rgba(255, 200, 144, .11), 0 0 0 73px rgba(255, 200, 144, .06);
  transform: translate(-50%, -50%);
}
.hero-primary.is-tracking .hero-signal { opacity: 1; }
.hero-primary.is-tracking .hero-photo,
.hero-primary:hover .hero-photo {
  transform: scale(1.055) translate3d(var(--photo-x, 0px), var(--photo-y, 0px), 0);
}
.hero-small { transition: box-shadow .3s ease, transform .3s ease; }
.hero-small:hover,
.hero-small:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 192, 121, .72), 0 13px 32px rgba(31, 24, 19, .13);
  transform: translateY(-3px);
}
.hero-small .corner-arrow,
.hero-primary .hero-action b { transition: transform .28s ease; display: inline-block; }
.hero-card:hover .corner-arrow,
.hero-card:focus-visible .corner-arrow,
.hero-card:hover .hero-action b,
.hero-card:focus-visible .hero-action b { transform: translateX(5px); }

.sound-selector {
  margin-top: 36px;
  padding: 27px 28px 28px;
  background: #171f23;
  color: #e7ebec;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(20, 29, 33, .12);
}
.sound-selector-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 21px;
}
.sound-overline {
  color: #ff9b63;
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 800;
}
.sound-selector h2 { color: #fff; font-size: clamp(27px, 2.8vw, 38px); margin: 6px 0 0; }
.sound-selector-heading p { color: #b9c5c9; margin: 0 0 3px; }
.sound-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.sound-tab {
  min-width: 0;
  min-height: 69px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border-radius: 11px;
  border: 1px solid #425059;
  color: #d9e0e2;
  background: #29343a;
  font-weight: 750;
  font-size: 16px;
  cursor: pointer;
  transition: background .22s, border-color .22s, box-shadow .22s, transform .22s;
}
.sound-tab:hover { background: #344148; border-color: #e68b60; transform: translateY(-2px); }
.sound-tab.is-active {
  background: linear-gradient(130deg, #603b2e 0%, #31363a 65%);
  border-color: #f47c43;
  box-shadow: inset 0 -3px 0 var(--orange), 0 0 0 1px rgba(240, 100, 50, .25);
  color: #fff;
}
.sound-tab:focus-visible,
.sound-panel-links a:focus-visible { outline: 3px solid #ffa06d; outline-offset: 3px; }
.sound-tab-index { color: #ff9b63; font-size: 12px; font-variant-numeric: tabular-nums; }
.sound-tab-bars { display: flex; gap: 2px; align-items: end; height: 18px; margin-left: auto; opacity: .35; }
.sound-tab-bars i { display: block; width: 3px; height: 8px; border-radius: 3px; background: #ff9259; }
.sound-tab-bars i:nth-child(2) { height: 16px; }
.sound-tab-bars i:nth-child(3) { height: 11px; }
.sound-tab.is-active .sound-tab-bars,
.sound-tab:hover .sound-tab-bars { opacity: 1; }
.sound-tab.is-active .sound-tab-bars i { animation: tab-bars .75s ease-in-out 2 alternate; }
.sound-tab.is-active .sound-tab-bars i:nth-child(2) { animation-delay: .1s; }
.sound-tab.is-active .sound-tab-bars i:nth-child(3) { animation-delay: .18s; }
@keyframes tab-bars { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
.sound-panel[hidden] { display: none; }
.sound-panel {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  margin-top: 15px;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid #47545b;
  border-radius: 12px;
  background: #263137;
  animation: panel-appear .34s ease-out both;
}
@keyframes panel-appear { from { opacity: .45; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.sound-panel-image { position: relative; min-height: 292px; overflow: hidden; background: #323334; }
.sound-panel-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, rgba(33, 40, 43, .27)); }
.sound-panel-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.sound-panel:hover .sound-panel-image img { transform: scale(1.045); }
.sound-image-wave {
  position: absolute;
  bottom: 13px;
  right: 15px;
  z-index: 1;
  width: 180px;
  height: 55px;
  overflow: visible;
  opacity: .86;
}
.sound-image-wave path {
  fill: none;
  stroke: #ff9961;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(255, 132, 73, .8));
}
.sound-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(22px, 3vw, 48px); }
.sound-panel-label { color: #ff9b63; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.sound-panel h3 { color: #fff; font-size: clamp(27px, 2.8vw, 40px); margin: 12px 0 10px; }
.sound-panel p { max-width: 550px; color: #c1cccf; font-size: 17px; line-height: 1.45; margin-bottom: 19px; }
.sound-panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sound-panel-links a {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border: 1px solid #637079;
  border-radius: 25px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 13px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.sound-panel-links a span { color: #ff995f; font-size: 19px; line-height: .7; }
.sound-panel-links a:hover { background: #f06432; color: #fff; border-color: #f06432; transform: translateY(-2px); }
.sound-panel-links a:hover span { color: #fff; }

/* У всех карточек одинаковый визуальный отклик. */
.category-tile,
.rating-tile,
.feature-card { overflow: hidden; }
.category-tile img,
.rating-tile img,
.feature-card img { transition: transform .45s cubic-bezier(.2,.75,.3,1); }
.category-tile:hover img,
.category-tile:focus-within img,
.rating-tile:hover img,
.rating-tile:focus-visible img,
.feature-card:hover img,
.feature-card:focus-visible img { transform: scale(1.045); }
.category-tile li span,
.rating-tile .tile-arrow,
.feature-card .tile-arrow { transition: transform .25s ease, color .25s ease; }
.category-tile li a:hover span,
.category-tile li a:focus-visible span,
.rating-tile:hover .tile-arrow,
.feature-card:hover .tile-arrow { transform: translate(3px, -2px); }
.feature-card:hover .vs,
.feature-card:focus-visible .vs { transform: translate(-50%, -50%) rotate(10deg) scale(1.06); }
.feature-card .vs { transition: transform .3s ease, box-shadow .3s ease; }
.editorial-panel .method-icon { transition: transform .35s ease, color .35s ease; }
.editorial-panel .method-columns > div:hover .method-icon { transform: translateY(-4px) rotate(-5deg); color: #e54b16; }

@media (max-width: 900px) {
  .sound-selector-heading { align-items: start; flex-direction: column; gap: 7px; }
  .sound-panel { grid-template-columns: 40% 1fr; }
  .sound-panel-copy { padding: 22px; }
  .sound-panel-links a { font-size: 12px; padding: 8px 10px; }
}
@media (max-width: 700px) {
  .hero-intro { gap: 10px; }
  .home-hero .hero-intro .eyebrow { gap: 7px; font-size: 14px; }
  .intro-equalizer { transform: scale(.78); transform-origin: left center; width: 19px; }
  .intro-trace { height: 26px; }
  .sound-selector { margin-top: 28px; padding: 19px 16px 17px; }
  .sound-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .sound-tab { font-size: 14px; min-height: 56px; padding: 9px; gap: 6px; }
  .sound-tab-bars { display: none; }
  .sound-panel { grid-template-columns: 1fr; }
  .sound-panel-image { min-height: 0; height: 190px; }
  .sound-panel-copy { padding: 20px; }
  .sound-panel h3 { font-size: 27px; margin: 7px 0; }
  .sound-panel p { font-size: 15px; margin-bottom: 15px; }
  .sound-image-wave { width: 145px; height: 45px; }
}
@media (max-width: 430px) {
  .intro-trace { min-width: 25px; }
  .sound-tab { font-size: 13px; }
  .sound-tab-index { font-size: 10px; }
  .sound-panel-image { height: 165px; }
}
@media (hover: none), (pointer: coarse) {
  .hero-primary .hero-signal { opacity: .42; }
  .hero-primary .signal-ring { left: 55%; top: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero.intro-playing *,
  .home-hero.sound-awake .intro-equalizer i,
  .sound-panel,
  .sound-tab.is-active .sound-tab-bars i { animation: none !important; }
  .hero-card:hover .hero-photo,
  .category-tile:hover img,
  .rating-tile:hover img,
  .feature-card:hover img,
  .sound-panel:hover img { transform: none; }
}

/* Сохраняем пропорции первого экрана после сужения общего контейнера. */
@media (min-width: 901px) {
  .home-hero h1 { font-size: clamp(42px, 3.8vw, 61px); }
  .hero-grid { height: auto; min-height: 420px; aspect-ratio: 2.7 / 1; }
}
