/* Визитка darkplaceshop.biz — тёмно-фиолетовое сияние, фон целиком рисуется холстом */

:root {
   --violet: #a855f7;
   --magenta: #ff4fd8;
   --haze: #e2d4ff;
   --ink: #0b0616;
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

li, ul {
   list-style-type: none;
}

html, body {
   min-height: 100%;
}

/* базовая глубина: холст рисует поверх неё и не оставляет чёрных дыр,
   пока грузится страница */
html {
   background: var(--ink);
}

html::before {
   content: '';
   position: fixed;
   inset: 0;
   z-index: -1;
   background:
      radial-gradient(ellipse 80% 60% at 50% 0%, #2a1352 0%, rgba(42, 19, 82, 0) 70%),
      radial-gradient(ellipse 70% 50% at 20% 100%, #3b1061 0%, rgba(59, 16, 97, 0) 65%),
      radial-gradient(ellipse 60% 55% at 90% 80%, #4a0f5e 0%, rgba(74, 15, 94, 0) 60%),
      var(--ink);
}

body {
   background: transparent;
   font-family: 'Gilroy-Bold', 'Segoe UI', Tahoma, sans-serif;
   color: #fff;
   display: flex;
   align-items: center;
   justify-content: center;
   min-height: 100vh;
   min-height: 100dvh;
   padding: 32px 16px;
   overflow-x: hidden;
}

/* виньетка по краям — под холстом, чтобы сияние не уезжало за кадр */
body::before {
   content: '';
   position: fixed;
   inset: 0;
   background: radial-gradient(ellipse at center, rgba(11, 6, 22, 0) 35%, rgba(11, 6, 22, 0.55) 80%, rgba(11, 6, 22, 0.85) 100%);
   pointer-events: none;
   z-index: 1;
}

/* холст с сиянием, пылью и звёздами */
.aurora {
   position: fixed;
   inset: 0;
   width: 100%;
   height: 100%;
   z-index: 2;
   pointer-events: none;
}

.card {
   position: relative;
   z-index: 3;
   width: 100%;
   max-width: 520px;
   text-align: center;
}

.logo {
   position: relative;
   font-size: 56px;
   font-weight: 700;
   letter-spacing: 5px;
   line-height: 1;
   margin-bottom: 12px;
}

.logo-main {
   color: #fff;
   text-shadow:
      0 0 10px rgba(255, 255, 255, 0.9),
      0 0 30px rgba(168, 85, 247, 0.9),
      0 0 64px rgba(124, 58, 237, 0.7),
      0 0 110px rgba(76, 29, 149, 0.6);
}

/* домен переливается из аметиста в фуксию */
.logo-dot {
   background: linear-gradient(90deg, var(--violet), var(--magenta), var(--violet));
   background-size: 200% 100%;
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   filter: drop-shadow(0 0 12px rgba(255, 79, 216, 0.7));
   animation: neonFlow 5s linear infinite;
}

/* сияние, переползающее через логотип */
.logo::after {
   content: '';
   position: absolute;
   left: 50%;
   top: 50%;
   width: 140%;
   height: 150%;
   transform: translate(-50%, -50%);
   background: radial-gradient(ellipse at 50% 60%, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0) 65%);
   filter: blur(7px);
   pointer-events: none;
   animation: haze 11s ease-in-out infinite;
}

@keyframes neonFlow {
   from { background-position: 0% 50%; }
   to   { background-position: 200% 50%; }
}

@keyframes haze {
   0%, 100% { transform: translate(-56%, -48%) scale(1); opacity: 0.5; }
   50%      { transform: translate(-44%, -52%) scale(1.14); opacity: 0.9; }
}

.tagline {
   font-size: 15px;
   letter-spacing: 3px;
   text-transform: uppercase;
   color: rgba(226, 212, 255, 0.72);
   margin-bottom: 30px;
   text-shadow: 0 0 14px rgba(168, 85, 247, 0.5);
}

.links {
   display: flex;
   flex-direction: column;
   gap: 14px;
}

.button {
   transition: transform 0.25s ease;
}

.button:hover {
   transform: translateY(-2px);
}

/* кнопка — тёмное стекло, снизу налит светящийся неон */
.text-btn {
   display: block;
   position: relative;
   overflow: hidden;
   width: 100%;
   font-family: inherit;
   cursor: pointer;
   -webkit-appearance: none;
   appearance: none;
   padding: 16px 28px;
   border-radius: 44px;
   border: 1px solid var(--accent);
   /* неон лежит первым слоем — поверх стекла, иначе тёмное стекло его гасит.
      У <button> свой системный фон, поэтому гасим его явно */
   background-color: transparent;
   background-image:
      linear-gradient(180deg, rgba(168, 85, 247, 0) 0%, var(--liquid) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(14, 7, 28, 0.6) 100%);
   background-repeat: no-repeat;
   background-position: bottom center, top center;
   background-size: 100% 34%, 100% 100%;
   backdrop-filter: blur(14px);
   -webkit-backdrop-filter: blur(14px);
   color: #fff;
   font-size: 20px;
   font-weight: 600;
   letter-spacing: 2px;
   text-transform: uppercase;
   text-decoration: none;
   text-shadow: 0 0 12px var(--accent), 0 2px 4px rgba(0, 0, 0, 0.65);
   box-shadow: 0 6px 22px rgba(7, 3, 16, 0.6), inset 0 0 20px var(--glow);
   transition: background-size 0.4s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* блик, время от времени пробегающий по стеклу */
.text-btn::after {
   content: '';
   position: absolute;
   top: 0;
   left: -60%;
   width: 45%;
   height: 100%;
   background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
   pointer-events: none;
   animation: glassShine 7s ease-in-out infinite;
}

.text-btn:hover,
.text-btn:focus-visible {
   color: #fff;
   text-decoration: none;
   border-color: #fff;
   /* неон поднимается до краёв */
   background-size: 100% 100%, 100% 100%;
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   box-shadow: 0 10px 30px rgba(7, 3, 16, 0.65), 0 0 26px var(--glow), inset 0 0 26px var(--glow);
   outline: none;
}

@keyframes glassShine {
   0%, 72%  { left: -60%; }
   88%      { left: 115%; }
   100%     { left: 115%; }
}

.accent-amethyst {
   --accent: rgba(168, 85, 247, 0.62);
   --glow: rgba(168, 85, 247, 0.3);
   --liquid: rgba(109, 40, 217, 0.5);
}

.accent-magenta {
   --accent: rgba(255, 79, 216, 0.55);
   --glow: rgba(214, 51, 173, 0.26);
   --liquid: rgba(150, 30, 120, 0.48);
}

/* ========== Модалка с отзывами ========== */

.rev-overlay {
   position: fixed;
   inset: 0;
   z-index: 20;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 24px 16px;
   background: rgba(8, 4, 17, 0.78);
   backdrop-filter: blur(7px);
   -webkit-backdrop-filter: blur(7px);
   animation: revFade 0.2s ease;
}

.rev-overlay[hidden] {
   display: none;
}

@keyframes revFade {
   from { opacity: 0; }
   to   { opacity: 1; }
}

/* переливающаяся рамка: градиент живёт в border-box, тёмная заливка в padding-box */
.rev-modal {
   display: flex;
   flex-direction: column;
   width: 100%;
   max-width: 560px;
   max-height: 86vh;
   max-height: 86dvh;
   padding: 22px;
   border: 2px solid transparent;
   border-radius: 20px;
   background:
      linear-gradient(rgba(16, 9, 30, 0.96), rgba(16, 9, 30, 0.96)) padding-box,
      linear-gradient(120deg, var(--violet), #d8b4fe, var(--magenta), var(--violet)) border-box;
   background-size: auto, 300% 300%;
   box-shadow: 0 0 44px rgba(168, 85, 247, 0.25), 0 0 90px rgba(255, 79, 216, 0.12);
   animation: revBorder 8s ease-in-out infinite, revRise 0.25s ease;
}

@keyframes revBorder {
   0%, 100% { background-position: 0 0, 0% 50%; }
   50%      { background-position: 0 0, 100% 50%; }
}

@keyframes revRise {
   from { transform: translateY(14px) scale(0.98); opacity: 0; }
   to   { transform: translateY(0) scale(1); opacity: 1; }
}

.rev-head {
   display: flex;
   align-items: center;
   gap: 10px;
}

.rev-title {
   font-size: 22px;
   font-weight: 700;
   letter-spacing: 2px;
   text-transform: uppercase;
   color: #fff;
   text-shadow: 0 0 16px rgba(168, 85, 247, 0.65);
}

.rev-close {
   flex-shrink: 0;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 34px;
   height: 34px;
   padding: 0;
   font-size: 24px;
   line-height: 1;
   font-family: inherit;
   color: #fff;
   cursor: pointer;
   background: transparent;
   border: 1px solid rgba(168, 85, 247, 0.35);
   border-radius: 50%;
   transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rev-close:hover {
   border-color: var(--magenta);
   box-shadow: 0 0 14px rgba(255, 79, 216, 0.5);
}

/* счётчик стоит в шапке и прижат к крестику: так справа от заголовка
   не остаётся пустой полосы */
.rev-total {
   margin-left: auto;
   padding: 5px 11px;
   font-size: 11px;
   letter-spacing: 1px;
   text-transform: uppercase;
   white-space: nowrap;
   color: rgba(226, 212, 255, 0.7);
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(168, 85, 247, 0.25);
   border-radius: 999px;
}

.rev-list {
   flex: 1;
   overflow-y: auto;
   margin-top: 16px;
   padding-right: 6px;
   display: flex;
   flex-direction: column;
   gap: 12px;
   text-align: left;
}

.rev-list::-webkit-scrollbar {
   width: 5px;
}

.rev-list::-webkit-scrollbar-thumb {
   background: linear-gradient(180deg, var(--violet), var(--magenta));
   border-radius: 3px;
}

.rev-item {
   padding: 14px 16px;
   border-radius: 14px;
   border: 1px solid rgba(168, 85, 247, 0.18);
   border-left: 3px solid var(--violet);
   background: rgba(255, 255, 255, 0.04);
   animation: revItemIn 0.3s ease both;
}

@keyframes revItemIn {
   from { transform: translateY(8px); opacity: 0; }
   to   { transform: translateY(0); opacity: 1; }
}

.rev-item-head {
   display: flex;
   align-items: baseline;
   justify-content: space-between;
   gap: 10px;
   margin-bottom: 8px;
}

.rev-item-name {
   font-size: 15px;
   font-weight: 600;
   color: #fff;
   text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.rev-item-date {
   flex-shrink: 0;
   font-size: 12px;
   color: rgba(226, 212, 255, 0.5);
}

.rev-item-text {
   font-size: 15px;
   line-height: 1.5;
   color: rgba(240, 232, 255, 0.92);
   white-space: pre-wrap;
   word-break: break-word;
}

/* ответ магазина — фуксией, со сдвигом вправо */
.rev-answer {
   margin-top: 10px;
   margin-left: 12px;
   padding: 10px 12px;
   border-left: 2px solid var(--magenta);
   border-radius: 0 10px 10px 0;
   background: rgba(255, 79, 216, 0.08);
}

.rev-answer-label {
   display: block;
   margin-bottom: 4px;
   font-size: 11px;
   letter-spacing: 1px;
   text-transform: uppercase;
   color: #ff9ae6;
}

.rev-answer-text {
   font-size: 14px;
   line-height: 1.5;
   color: rgba(255, 233, 250, 0.9);
   white-space: pre-wrap;
   word-break: break-word;
}

.rev-empty {
   padding: 24px 8px;
   font-size: 14px;
   color: rgba(226, 212, 255, 0.55);
   text-align: center;
}

/* подвал ленты: индикатор догрузки, едет вместе с отзывами */
.rev-foot {
   flex-shrink: 0;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 10px 0 2px;
   font-size: 12px;
   letter-spacing: 1px;
   text-transform: uppercase;
   color: rgba(226, 212, 255, 0.5);
}

.rev-foot.is-hidden {
   display: none;
}

/* неоновое кольцо: видно только пока есть что подгружать */
.rev-spinner {
   width: 18px;
   height: 18px;
   border-radius: 50%;
   border: 2px solid rgba(168, 85, 247, 0.2);
   border-top-color: var(--violet);
   border-right-color: var(--magenta);
   box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
   animation: revSpin 0.7s linear infinite;
}

.rev-foot.is-done .rev-spinner {
   display: none;
}

/* «Загружаем отзывы» мигает, чтобы точно читалось как процесс */
.rev-foot.is-loading .rev-foot-text {
   animation: revPulse 1.2s ease-in-out infinite;
}

@keyframes revSpin {
   to { transform: rotate(360deg); }
}

@keyframes revPulse {
   0%, 100% { opacity: 0.45; }
   50%      { opacity: 1; }
}

body.rev-open {
   overflow: hidden;
}

@media screen and (max-width: 576px) {
   body {
      padding: 24px 14px;
   }

   /* на узком экране подсвечиваем нижние углы, чтобы кадр не выглядел плоским */
   body::before {
      background:
         radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.18) 0%, rgba(168, 85, 247, 0) 42%),
         radial-gradient(circle at 100% 100%, rgba(255, 79, 216, 0.16) 0%, rgba(255, 79, 216, 0) 42%),
         radial-gradient(ellipse at center, rgba(11, 6, 22, 0) 40%, rgba(11, 6, 22, 0.5) 85%, rgba(11, 6, 22, 0.8) 100%);
   }

   .logo {
      font-size: 36px;
      letter-spacing: 3px;
   }

   .tagline {
      font-size: 12px;
      letter-spacing: 2px;
      margin-bottom: 22px;
   }

   .links {
      gap: 11px;
   }

   .text-btn {
      font-size: 15px;
      padding: 14px 18px;
      letter-spacing: 1px;
   }

   .rev-overlay {
      padding: 12px;
   }

   .rev-modal {
      padding: 18px 14px;
      max-height: 92vh;
      max-height: 92dvh;
      border-radius: 16px;
   }

   .rev-head {
      gap: 8px;
   }

   .rev-title {
      font-size: 16px;
      letter-spacing: 0.5px;
   }

   .rev-total {
      padding: 4px 8px;
      font-size: 10px;
      letter-spacing: 0.5px;
   }

   .rev-item-text {
      font-size: 14px;
   }

   .rev-answer {
      margin-left: 6px;
   }

   .rev-foot {
      font-size: 11px;
      letter-spacing: 0.5px;
   }
}

@media (prefers-reduced-motion: reduce) {
   .logo-dot,
   .logo::after,
   .text-btn::after,
   .rev-spinner,
   .rev-foot.is-loading .rev-foot-text { animation: none; }

   .button { transition: none; }
   .aurora { display: none; }

   .rev-overlay,
   .rev-modal,
   .rev-item { animation: none; }
}
