:root {
  --row-white: #ffffff;
  --row-black: #000000;
  --row-pink: #e14690;

  --row-red: #d92d20;
  --row-red-soft: rgba(217, 45, 32, 0.10);
  --row-red-border: rgba(217, 45, 32, 0.55);

  --row-pink-soft: rgba(225, 70, 144, 0.10);
  --row-pink-soft-strong: rgba(225, 70, 144, 0.16);

  --row-gray: #666666;
  --row-gray-light: #f6f6f7;
  --row-border: rgba(0, 0, 0, 0.08);

  --row-radius-xl: 30px;
  --row-radius-lg: 24px;
  --row-radius-md: 18px;

  --row-shadow-soft: 0 16px 42px rgba(0, 0, 0, 0.07);
  --row-shadow-button: 0 16px 32px rgba(0, 0, 0, 0.15);
  --row-shadow-pink: 0 16px 36px rgba(225, 70, 144, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #ffffff;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", Arial, sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

button,
input,
textarea {
  font-family: "Manrope", Arial, sans-serif;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.row-app {
  width: 100%;
  min-height: 100vh;
  padding: 24px 20px;
  background: #ffffff;
  color: #000000;
}

.row-shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.row-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 22px;
  width: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: row-card-in 420ms cubic-bezier(.2, .9, .2, 1) both;
}

/**
 * LEFT HERO
 */
.row-hero {
  position: relative;
  min-height: 500px;
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--row-radius-xl);
  background:
    radial-gradient(circle at 80% 12%, rgba(225, 70, 144, 0.20), transparent 30%),
    linear-gradient(145deg, #000000 0%, #151515 56%, #000000 100%);
  color: #ffffff;
  overflow: hidden;
}

.row-hero::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: rgba(225, 70, 144, 0.20);
  pointer-events: none;
}

.row-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.row-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.row-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--row-pink);
  box-shadow: 0 0 0 6px rgba(225, 70, 144, 0.18);
}

.row-hero-title {
  margin: 32px 0 0;
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.row-hero-title span {
  color: var(--row-pink);
}

.row-hero-text {
  max-width: 520px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.row-hero-bottom {
  margin-top: auto;
  padding-top: 36px;
}

.row-hero-points {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row-hero-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 14px;
  line-height: 1.5;
}

.row-hero-point-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  background: var(--row-pink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

/**
 * RIGHT FORM PANEL
 */
.row-form-panel {
  position: relative;
  padding: clamp(24px, 3.4vw, 42px);
  border-radius: var(--row-radius-xl);
  background: #ffffff;
  border: 1px solid var(--row-border);
}

.row-form-panel::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--row-pink-soft);
  transform: rotate(10deg);
  pointer-events: none;
}

.row-kicker {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--row-pink-soft);
  color: var(--row-pink);
  font-size: 13px;
  font-weight: 800;
}

.row-kicker svg {
  width: 16px;
  height: 16px;
}

.row-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.row-title span {
  color: var(--row-pink);
}

.row-subtitle {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--row-gray);
  font-size: 16px;
  line-height: 1.65;
}

/**
 * RATING
 */
.row-rating-zone {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--row-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.row-rating-zone.is-invalid {
  border-color: var(--row-red-border);
  background: linear-gradient(180deg, #ffffff, rgba(217, 45, 32, 0.025));
  box-shadow:
    0 0 0 5px var(--row-red-soft),
    0 10px 28px rgba(0, 0, 0, 0.035);
}

.row-rating-label {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  font-size: 14px;
  color: #777777;
  font-weight: 700;
}

.row-rating-label strong {
  color: #000000;
}

.row-stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 9px;
}

.row-star {
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 62px;
  border-radius: 18px;
  background: #ffffff;
  color: rgba(0, 0, 0, 0.16);
  font-size: 32px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.row-star:hover {
  transform: translateY(-3px);
  color: var(--row-pink);
  box-shadow:
    inset 0 0 0 1px rgba(225, 70, 144, 0.30),
    0 12px 24px rgba(225, 70, 144, 0.14);
}

.row-star.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--row-pink), #f176b1);
  box-shadow: var(--row-shadow-pink);
}

.row-mood {
  display: none;
  margin-top: 15px;
  padding: 13px 15px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--row-pink-soft);
  color: #2a2a2a;
}

.row-mood.is-visible {
  display: block;
  animation: row-soft-in 220ms ease both;
}

/**
 * FIELDS
 */
.row-fields {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.row-field {
  animation: row-soft-in 240ms ease both;
}

.row-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 800;
  transition: color 160ms ease;
}

.row-required {
  color: var(--row-pink);
  transition: color 160ms ease;
}

.row-input,
.row-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #ffffff;
  color: #000000;
  border-radius: 18px;
  outline: none;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.row-input:focus,
.row-textarea:focus {
  border-color: rgba(225, 70, 144, 0.70);
  box-shadow: 0 0 0 5px rgba(225, 70, 144, 0.10);
  transform: translateY(-1px);
}

.row-textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.55;
}

/**
 * INVALID FIELDS
 */
.row-field.is-invalid .row-field-label {
  color: var(--row-red);
}

.row-field.is-invalid .row-required {
  color: var(--row-red);
}

.row-field.is-invalid .row-input,
.row-field.is-invalid .row-textarea {
  border-color: var(--row-red-border);
  background: linear-gradient(180deg, #ffffff, rgba(217, 45, 32, 0.025));
  box-shadow: 0 0 0 5px var(--row-red-soft);
}

.row-field.is-invalid {
  animation: row-invalid-pulse 240ms ease both;
}

/**
 * ACTIONS
 */
.row-actions {
  display: none;
  margin-top: 18px;
}

.row-actions.is-visible {
  display: block;
  animation: row-soft-in 240ms ease both;
}

.row-submit {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 21px;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: var(--row-shadow-button);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    opacity 180ms ease;
}

.row-submit:hover {
  transform: translateY(-2px);
  background: #111111;
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.20);
}

.row-submit:active {
  transform: translateY(0);
}

.row-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.row-submit.is-error {
  background: var(--row-red);
  box-shadow: 0 16px 32px rgba(217, 45, 32, 0.20);
}

.row-note {
  margin-top: 13px;
  color: #858585;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.row-note a {
  color: var(--row-pink);
  text-decoration: none;
  font-weight: 800;
}

.row-note a:hover {
  text-decoration: underline;
}

/**
 * STATUS
 */
.row-status-card,
.row-noscript {
  width: min(680px, calc(100% - 32px));
  margin: 40px auto;
  padding: 32px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid var(--row-border);
  box-shadow: var(--row-shadow-soft);
  text-align: center;
  animation: row-card-in 380ms cubic-bezier(.2, .9, .2, 1) both;
}

.row-status-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--row-pink-soft);
  color: var(--row-pink);
  font-size: 36px;
}

.row-status-title {
  margin: 0;
  font-size: clamp(25px, 3.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.row-status-text {
  margin: 14px auto 0;
  max-width: 520px;
  color: #666666;
  font-size: 16px;
  line-height: 1.65;
}

/**
 * MODAL
 */
.row-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.58);
  animation: row-fade-in 160ms ease both;
}

.row-modal {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
  text-align: center;
  animation: row-modal-in 280ms cubic-bezier(.2, .9, .2, 1) both;
}

.row-modal-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: #000000;
  color: #ffffff;
  font-size: 40px;
  box-shadow: var(--row-shadow-pink);
}

.row-modal-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.row-modal-text {
  margin: 14px 0 0;
  color: #626262;
  font-size: 16px;
  line-height: 1.6;
}

.row-modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.row-yandex-link,
.row-modal-close {
  min-height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.row-yandex-link {
  background: var(--row-pink);
  color: #ffffff;
  box-shadow: var(--row-shadow-pink);
}

.row-yandex-link:hover {
  filter: brightness(0.98);
}

.row-modal-close {
  border: 0;
  background: #f0f0f0;
  color: #000000;
}

/**
 * LIGHT OPTIONAL PARTICLES
 * По умолчанию выключены в JS.
 */
.row-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.row-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(225, 70, 144, 0.20);
}

.row-particle:nth-child(1) { left: 8%; top: 14%; }
.row-particle:nth-child(2) { left: 18%; top: 78%; width: 12px; height: 12px; }
.row-particle:nth-child(3) { left: 82%; top: 18%; }
.row-particle:nth-child(4) { left: 92%; top: 72%; width: 10px; height: 10px; }
.row-particle:nth-child(5) { left: 48%; top: 6%; }
.row-particle:nth-child(6) { left: 58%; top: 88%; width: 14px; height: 14px; }

/**
 * ANIMATIONS
 */
@keyframes row-card-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes row-soft-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes row-invalid-pulse {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-4px);
  }
  70% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes row-modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes row-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/**
 * ADAPTIVE
 */
@media (max-width: 980px) {
  .row-app {
    padding: 20px 14px;
  }

  .row-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .row-hero {
    min-height: auto;
  }

  .row-hero-bottom {
    padding-top: 32px;
  }
}

@media (max-width: 560px) {
  .row-app {
    padding: 12px 10px;
  }

  .row-card {
    gap: 12px;
  }

  .row-hero {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .row-hero-title {
    margin-top: 28px;
    font-size: clamp(32px, 10.5vw, 46px);
    line-height: 1.04;
  }

  .row-hero-text {
    font-size: 15px;
    line-height: 1.6;
  }

  .row-hero-bottom {
    padding-top: 28px;
  }

  .row-form-panel {
    padding: 24px 17px;
    border-radius: 24px;
  }

  .row-form-panel::before {
    width: 52px;
    height: 52px;
    border-radius: 17px;
    right: 17px;
    top: 17px;
  }

  .row-title {
    font-size: clamp(28px, 8.7vw, 36px);
    line-height: 1.08;
  }

  .row-rating-zone {
    margin-top: 22px;
    padding: 15px;
    border-radius: 21px;
  }

  .row-stars {
    gap: 7px;
  }

  .row-star {
    height: 52px;
    border-radius: 15px;
    font-size: 27px;
  }

  .row-submit {
    min-height: 56px;
  }

  .row-modal {
    padding: 24px 18px;
    border-radius: 28px;
  }

  .row-modal-title {
    font-size: 27px;
  }
}

@media (max-width: 390px) {
  .row-stars {
    gap: 5px;
  }

  .row-star {
    height: 48px;
    font-size: 24px;
    border-radius: 14px;
  }

  .row-hero-title {
    font-size: 31px;
  }

  .row-title {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}


/**
 * PHOTO UPLOAD
 */
.row-photo-drop {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 20px;
  background: #ffffff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.row-photo-drop:hover {
  border-color: rgba(225, 70, 144, 0.45);
  background: rgba(225, 70, 144, 0.025);
}

.row-field.is-invalid .row-photo-drop {
  border-color: var(--row-red-border);
  background: linear-gradient(180deg, #ffffff, rgba(217, 45, 32, 0.025));
  box-shadow: 0 0 0 5px var(--row-red-soft);
}

.row-photo-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.row-photo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.row-photo-text {
  display: grid;
  gap: 3px;
}

.row-photo-title {
  font-size: 14px;
  font-weight: 900;
  color: #000000;
}

.row-photo-description {
  font-size: 12px;
  line-height: 1.45;
  color: #777777;
}

.row-photo-button {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 14px;
  background: #000000;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.row-photo-button:hover {
  transform: translateY(-1px);
  background: #111111;
}

.row-photo-counter {
  font-size: 12px;
  color: #858585;
}

.row-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.row-photo-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid rgba(0, 0, 0, 0.07);
}

.row-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.row-photo-remove {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.row-photo-remove:hover {
  background: var(--row-pink);
}

@media (max-width: 560px) {
  .row-photo-head {
    align-items: stretch;
    flex-direction: column;
  }

  .row-photo-button {
    width: 100%;
  }

  .row-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .row-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}