﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg-1: #f6f9ff;
  --bg-2: #e9f0ff;
  --bg-3: #dbe7ff;
  --ink: #0b1b3a;
  --muted: #4a5a78;
  --accent: #2f76ff;
  --accent-strong: #1258ff;
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 24px 60px rgba(11, 27, 58, 0.12);
  --glow: 0 0 40px rgba(47, 118, 255, 0.25);
  --face-bg: linear-gradient(135deg, #2b6bff, #0e44c7);
  --face-shadow: rgba(6, 23, 60, 0.35);
  --face-ink: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(52, 120, 255, 0.12), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(17, 88, 255, 0.12), transparent 45%),
    linear-gradient(140deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;
}

.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.4;
  animation: drift 16s ease-in-out infinite;
}

.blob--one {
  background: radial-gradient(circle, rgba(47, 118, 255, 0.35), transparent 65%);
  top: -80px;
  left: -40px;
}

.blob--two {
  background: radial-gradient(circle, rgba(23, 86, 214, 0.35), transparent 65%);
  bottom: -120px;
  right: 10%;
  animation-delay: -4s;
}

.blob--three {
  background: radial-gradient(circle, rgba(78, 153, 255, 0.25), transparent 65%);
  top: 15%;
  right: -100px;
  animation-delay: -8s;
}

.page {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(11, 27, 58, 0.25));
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand__tag {
  font-size: 14px;
  color: var(--muted);
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--card-border);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
}

.hero__subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.rating-card {
  background: var(--card);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  display: grid;
  gap: 22px;
}

.rating-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.face {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: transparent;
  position: relative;
  box-shadow: none;
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}

.face__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.eye {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--face-ink);
  top: 56px;
  transition: all 0.25s ease;
  z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(6, 23, 60, 0.55));
}

.eye--left {
  left: 45px;
}

.eye--right {
  right: 45px;
}

.heart {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  transform: rotate(-45deg);
  border-radius: 4px;
  display: none;
  top: 54px;
  filter: drop-shadow(0 6px 10px rgba(18, 88, 255, 0.45));
  z-index: 4;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
}

.heart::before {
  top: -8px;
  left: 0;
}

.heart::after {
  left: 8px;
  top: 0;
}

.heart--left {
  left: 42px;
}

.heart--right {
  right: 42px;
}

.cheek {
  position: absolute;
  width: 20px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  top: 82px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.25s ease;
  z-index: 3;
}

.cheek--left {
  left: 30px;
}

.cheek--right {
  right: 30px;
}

.brow {
  position: absolute;
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: var(--face-ink);
  top: 42px;
  z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(6, 23, 60, 0.55));
}

.brow--left {
  left: 40px;
  transform: rotate(-6deg);
}

.brow--right {
  right: 40px;
  transform: rotate(8deg);
}

.mouth {
  position: absolute;
  width: 60px;
  height: 22px;
  border-bottom: 5px solid var(--face-ink);
  border-radius: 0 0 40px 40px;
  left: 50%;
  transform: translateX(-50%);
  top: 90px;
  transition: transform 0.3s ease, border-radius 0.3s ease, top 0.3s ease;
  z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(6, 23, 60, 0.55));
}

.hand {
  position: absolute;
  width: 26px;
  height: 18px;
  border-radius: 16px;
  background: #e2edff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  bottom: 26px;
  right: 38px;
  transform: rotate(-12deg);
  animation: ponder 2.8s ease-in-out infinite;
  z-index: 3;
}

.mood {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mood__label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
}

.mood__text {
  font-size: 22px;
  font-weight: 600;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.star {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(47, 118, 255, 0.15);
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.star svg {
  width: 24px;
  height: 24px;
  fill: transparent;
  stroke: #86a2d6;
  stroke-width: 1.6px;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.star:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 24px rgba(47, 118, 255, 0.25);
}

.star.is-active svg {
  fill: var(--accent);
  stroke: var(--accent);
}

.comment {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.comment label {
  font-weight: 600;
  font-size: 14px;
}

.comment textarea {
  resize: vertical;
  min-height: 110px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 14px;
  font-family: "Manrope", sans-serif;
  background: rgba(255, 255, 255, 0.8);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.comment textarea:focus {
  border-color: #2f76ff;
  box-shadow: 0 0 0 3px rgba(47, 118, 255, 0.18);
}

.submit {
  border: none;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(130deg, #4f8dff, #1a5cff);
  color: #f7faff;
  box-shadow: 0 18px 28px rgba(26, 92, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 32px rgba(26, 92, 255, 0.35);
}

.submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.result {
  min-height: 24px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.result.show {
  opacity: 1;
  transform: translateY(0);
}

.reviews {
  display: none;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(236, 244, 255, 0.9));
  border: 1px solid rgba(47, 118, 255, 0.15);
  box-shadow: 0 18px 36px rgba(11, 27, 58, 0.12);
}

.reviews__title {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--muted);
}

.reviews__buttons {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.review-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid rgba(47, 118, 255, 0.15);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 20px rgba(11, 27, 58, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(11, 27, 58, 0.16);
}

.review-logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  font-size: 14px;
  line-height: 1;
}

.review-btn.yandex .review-logo {
  background: linear-gradient(135deg, #ff4b55, #c60f1a);
}

.review-btn.gis .review-logo {
  background: linear-gradient(135deg, #2ad18b, #0a8d54);
  font-size: 12px;
  letter-spacing: -0.02em;
}

.review-btn.google .review-logo {
  background: linear-gradient(135deg, #5aa2ff, #1a5cff);
}

.info-grid {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 118, 255, 0.08);
  box-shadow: var(--shadow);
  animation: rise 8s ease-in-out infinite;
}

.info-card:nth-child(2) {
  animation-delay: -2s;
}

.info-card:nth-child(3) {
  animation-delay: -4s;
}

.info-card h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.page[data-rating="1"] {
  --accent: #5c78b8;
}

.page[data-rating="2"] {
  --accent: #6a86c1;
}

.page[data-rating="3"] {
  --accent: #2f76ff;
}

.page[data-rating="4"] {
  --accent: #2b6bff;
}

.page[data-rating="5"] {
  --accent: #1f5fff;
}

.page[data-rating="1"] .eye {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  top: 60px;
}


.page[data-rating="2"] .eye {
  width: 22px;
  height: 7px;
  border-radius: 999px;
  top: 60px;
  opacity: 0.9;
}


.page[data-rating="3"] .eye {
  width: 14px;
  height: 14px;
}

.page[data-rating="3"] .eye {
  animation: blink 4.8s ease-in-out infinite;
}

.page[data-rating="4"] .eye {
  width: 22px;
  height: 10px;
  background: transparent;
  border-top: 4px solid var(--face-ink);
  border-radius: 999px;
  top: 60px;
}


.page[data-rating="5"] .eye {
  opacity: 0;
}


.page[data-rating="1"] .brow--left {
  transform: rotate(26deg);
  top: 40px;
}

.page[data-rating="1"] .brow--right {
  transform: rotate(-26deg);
  top: 40px;
}

.page[data-rating="2"] .brow--left {
  transform: rotate(14deg);
  top: 42px;
}

.page[data-rating="2"] .brow--right {
  transform: rotate(-14deg);
  top: 42px;
}

.page[data-rating="1"] .mouth {
  border-bottom: none;
  border-top: 6px solid var(--face-ink);
  border-radius: 40px 40px 0 0;
  width: 64px;
  top: 102px;
}

.page[data-rating="2"] .mouth {
  border-bottom: none;
  border-top: 6px solid var(--face-ink);
  border-radius: 30px 30px 0 0;
  width: 58px;
  top: 100px;
}

.page[data-rating="3"] .mouth {
  border-bottom: none;
  border-top: 6px solid var(--face-ink);
  border-radius: 10px;
  width: 56px;
  height: 0;
  top: 98px;
}

.page[data-rating="4"] .mouth {
  width: 70px;
  height: 28px;
  top: 86px;
}

.page[data-rating="5"] .mouth {
  width: 76px;
  height: 32px;
  top: 84px;
}

.page[data-rating="4"] .cheek,
.page[data-rating="5"] .cheek {
  opacity: 0.7;
  transform: scale(1);
}

.page[data-rating="5"] .heart {
  display: block;
  animation: heartPulse 1.4s ease-in-out infinite;
}

.page[data-rating="4"] .hand,
.page[data-rating="5"] .hand {
  opacity: 0;
  transform: scale(0.6);
}

.page[data-rating="0"] .mouth {
  border-bottom: 5px solid var(--face-ink);
  width: 56px;
  top: 96px;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes angryShake {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3px);
  }
}

@keyframes sadSway {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes happyBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  94%,
  96% {
    transform: scaleY(0.15);
  }
}

@keyframes ponder {
  0%,
  100% {
    transform: rotate(-12deg) translateY(0);
  }
  50% {
    transform: rotate(-16deg) translateY(-2px);
  }
}

@keyframes heartPulse {
  0%,
  100% {
    transform: rotate(-45deg) scale(1);
  }
  50% {
    transform: rotate(-45deg) scale(1.12);
  }
}

@keyframes rise {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .rating-card__head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .mood {
    align-items: center;
  }

  .face {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .stars {
    gap: 8px;
  }

  .star {
    width: 40px;
    height: 40px;
  }

  .face {
    width: 130px;
    height: 130px;
  }
}
