* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px 20px 30px;
  font-family: "Segoe UI", sans-serif;
  color: #fff8e6;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(218, 173, 91, 0.22), transparent 34%),
    linear-gradient(145deg, #071e25 0%, #0b3440 48%, #241c2c 100%);
}

h1 {
  margin: 20px auto 0;
  max-width: 100%;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
  color: #fff9ec;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
  overflow-wrap: anywhere;
}

.intro {
  max-width: 760px;
  margin: 10px auto 26px;
  color: rgba(255, 248, 230, 0.84);
  line-height: 1.55;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  width: min(920px, 94%);
  margin: 0 auto 24px;
}

.service-card {
  position: relative;
  min-height: 94px;
  margin-top: 0;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid rgba(232, 190, 108, 0.82);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    rgba(16, 70, 82, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.28);
  color: #fffdf6;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 230, 160, 0.24), transparent 34%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #ffd77b;
  background:
    linear-gradient(145deg, rgba(255, 210, 128, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(18, 91, 105, 0.94);
  box-shadow:
    0 0 0 1px rgba(255, 221, 145, 0.2),
    0 16px 30px rgba(0, 0, 0, 0.34);
}

.service-card:hover::before {
  opacity: 1;
}

.toolbar {
  width: min(920px, 94%);
  margin: 0 auto 8px;
  text-align: left;
}

.back-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(232, 190, 108, 0.62);
}

.is-hidden {
  display: none !important;
}

.review-box {
  width: min(820px, 92%);
  margin: 18px auto;
  padding: 20px;
  border: 1px solid rgba(232, 190, 108, 0.6);
  border-radius: 12px;
  background: rgba(10, 41, 50, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
  transition: 0.3s ease;
}

.review-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 123, 0.9);
}

button {
  padding: 9px 18px;
  border: 1px solid rgba(255, 219, 145, 0.58);
  border-radius: 8px;
  background: linear-gradient(135deg, #d9a84f, #91672a);
  color: #fffaf0;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s ease;
}

button:hover {
  background: linear-gradient(135deg, #ffd77b, #b78236);
}

.write-own {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f0c464, #9e6e2c);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  color: #1c1407;
  font-size: 15px;
  font-weight: 700;
}

.write-own-service {
  margin: 0 auto 28px;
}

.write-own-review {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1000;
  padding: 8px 14px;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.write-own:hover {
  background: linear-gradient(135deg, #ffdc82, #bd873c);
  color: #130d04;
}

.powered-by {
  margin: 90px auto 0;
  color: rgba(255, 248, 230, 0.72);
  font-size: 13px;
  line-height: 1.4;
}

.powered-by a {
  color: #ffe1a1;
  font-weight: 700;
  text-decoration: none;
}

.powered-by a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  body {
    padding: 18px 18px 26px;
  }

  h1 {
    font-size: 24px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    min-height: 58px;
    border-radius: 8px;
    font-size: 15px;
  }

  .write-own-service {
    width: fit-content;
    max-width: calc(100% - 32px);
  }

  .write-own-review {
    right: 12px;
    top: 50%;
    padding: 7px 12px;
    font-size: 12px;
  }
}
