/* Base */
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: #f4f5f7;
  color: #333;
  line-height: 1.7;
}

:root {
  --primary: #627bff;
  --text-dark: #2a2d3e;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Header */
header {
  padding: 100px 20px 150px;
  text-align: center;
  background: linear-gradient(135deg, #738dff, #96b1ff);
  color: white;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.logo {
  width: 180px;
  margin-bottom: 20px;
  position: relative;
  left: 25px;
  z-index: 10;
}

/* Hero */
.hero-block {
  position: relative;
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  opacity: 0.45;
  z-index: 1;
  margin-top: -140px; /* ← поднимаем овал вверх */
}

.hero-img {
  width: 260px;
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.15));
  border-radius: 22px;
}

header h1 {
  font-size: 46px;
  margin-bottom: 15px;
  font-weight: 800;
}

header p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* CTA Button */
.cta-btn {
  display: inline-block;
  padding: 16px 36px;
  background: white;
  color: var(--primary);
  border-radius: 14px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: 0.25s;
  box-shadow: 0 4px 10px var(--shadow);
}

.cta-btn:hover {
  background: #eef1ff;
  transform: translateY(-2px);
}

/* General Sections */
.section {
  max-width: 950px;
  margin: 70px auto;
  padding: 0 25px;
}

.section h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 34px;
  color: var(--text-dark);
}

/* Reviews */
.reviews {
  display: grid;
  gap: 22px;
  margin-top: 25px;
}

.review {
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  border-left: 6px solid var(--primary);
}

.review-img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 15px;
  object-fit: cover;
  display: block;
}

/* FAQ */
.faq-item {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.04);
}

.faq-item h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 20px;
  font-weight: 600;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Footer */
footer {
  margin-top: 80px;
  background: var(--primary);
  color: white;
  padding: 50px 20px;
  text-align: center;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

/* ===========================
        MODAL (Square only)
   =========================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal {
  background: white;
  width: 90%;
  max-width: 550px;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
}

.modal-card {
  background: #f8f9ff;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.modal-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.modal-btn.disabled {
  background: #d1d4e8;
  cursor: not-allowed;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.4s ease forwards;
}

.delay-1 { animation-delay: 0.4s; }
.delay-2 { animation-delay: 0.9s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Larger modal for embedded Square booking */
.modal-large {
  width: 95%;
  max-width: 900px;
  padding: 40px;
}

/* Square iframe container */
.square-frame-container {
  width: 100%;
  height: 650px;
  background: #f2f4ff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Placeholder until real Square link appears */
.square-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #4d55aa;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

/* iframe itself */
.square-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
