:root {
  --bg: #ededee;
  --surface: #f7f7f8;
  --text: #131316;
  --muted: #6a6a73;
  --brand: #4f5fff;
  --brand-soft: #e8eaff;
  --line: #d9d9de;
  --shadow: 0 18px 36px rgba(20, 20, 24, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, #f4f5ff 0%, rgba(244, 245, 255, 0) 42%),
    radial-gradient(circle at 90% 0%, #f6f7ff 0%, rgba(246, 247, 255, 0) 44%),
    var(--bg);
  color: var(--text);
}

.app {
  min-height: 100vh;
}

.hero {
  position: relative;
  height: 44vh;
  min-height: 320px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 1.2s ease forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(39, 25, 15, 0.15), rgba(39, 25, 15, 0.55));
  z-index: 1;
}

.company-card {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(1020px, calc(100% - 24px));
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}

.company-card > div {
  min-width: 0;
}

.company-logo {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.company-tag {
  margin: 0;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
}

.company-card h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
}

.company-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-section {
  width: min(1020px, calc(100% - 24px));
  margin: 20px auto 36px;
  background: #ececee;
  border: 1px solid #e2e2e6;
  border-radius: 24px;
  padding: 16px;
}

.services-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.services-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.services-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.5s ease forwards;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(22, 22, 28, 0.1);
  border-color: #cbceda;
}

.service-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.service-text {
  min-width: 0;
}

.service-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid #dce0ff;
  flex-shrink: 0;
}

.service-body h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.16rem);
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

.service-text p {
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.service-meta-line {
  text-transform: lowercase;
}

.service-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: 8px;
}

.service-price {
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 700;
  color: #111216;
}

.enter-btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 1.9rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.details-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.details-modal.open {
  display: flex;
}

.details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 8, 0.55);
}

.details-panel {
  position: relative;
  width: min(860px, calc(100% - 22px));
  max-height: 92vh;
  overflow: auto;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1;
  display: grid;
  grid-template-columns: 42% 58%;
  animation: panelIn 0.25s ease;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.details-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.details-content {
  padding: 24px 20px;
}

.details-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.details-content p {
  margin-top: 0;
  color: var(--muted);
}

.service-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.service-meta li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.service-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.service-meta strong {
  font-size: 1rem;
}

.booking-form {
  display: grid;
  gap: 10px;
}

.booking-form label {
  display: grid;
  gap: 6px;
  color: #3d352d;
  font-size: 0.9rem;
}

.booking-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

.booking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-form button {
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(120deg, #9a3412, #c2410c 55%, #ea580c);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.booking-feedback {
  min-height: 18px;
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #0f766e;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.04);
  }
}

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

@media (max-width: 820px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 12px;
  }

  .hero-bg {
    height: 240px;
  }

  .hero-overlay {
    height: 240px;
    bottom: auto;
  }

  .company-card {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 12px auto 0;
    width: calc(100% - 16px);
    align-items: center;
  }

  .details-panel {
    grid-template-columns: 1fr;
  }

  .details-image {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .hero-bg {
    height: 210px;
  }

  .hero-overlay {
    height: 210px;
  }

  .company-card {
    border-radius: 16px;
    padding: 12px;
    gap: 10px;
    margin-top: 10px;
  }

  .company-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
  }

  .company-card h1 {
    font-size: 1.12rem;
  }

  .service-card {
    padding: 10px;
    gap: 8px;
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-thumb {
    width: 44px;
    height: 44px;
  }

  .service-body {
    gap: 10px;
  }

  .service-body h3 {
    font-size: 0.95rem;
  }

  .service-body p {
    font-size: 0.78rem;
  }

  .service-right {
    gap: 4px;
  }

  .service-price {
    font-size: 1rem;
    white-space: nowrap;
  }

  .enter-btn {
    width: 26px;
    height: 26px;
    font-size: 1.5rem;
  }

  .booking-row {
    grid-template-columns: 1fr;
  }
}
