
/* UI Typography Base */
.custom-ui-block {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
}

/* OVERRIDE TILDA'S BUILT-IN PADDING */
.t911 {
  padding-top: 0 !important; 
  padding-bottom: 0 !important;
}
.t911__container {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

/* Fix Top Photo Shape & Remove Margins */
.t911__img {
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Fix Title and Subtitle Spacing */
.t911__title {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
}
.page-subtitle {
  font-weight: 700 !important;
  font-size: 15px !important;
  color: #666666 !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Contact Buttons (Images) */
.contact-buttons-wrapper {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center; /* Keep icons vertically centered if heights differ */
  margin: 15px 0 25px 0;
}
.contact-img-btn {
  display: inline-block;
  transition: transform 0.2s ease;
}
.contact-img-btn:hover {
  transform: translateY(-2px);
}
.contact-img-btn img {
  height: 42px; /* Base height */
  width: auto;
  display: block;
}
/* Reduce Telegram icon size by ~15% (from 42px to 36px) */
.contact-img-btn.tg-btn img {
  height: 36px; 
}

/* Accordion */
.accordion-section {
  margin: 40px auto;
  max-width: 650px;
  text-align: left;
}
.accordion-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.accordion-item {
  margin-bottom: 12px;
  border-radius: 40px; /* Pill shape */
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.accordion-item:hover {
  border-color: #d0d0d0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.accordion-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  background-color: #ffffff;
  transition: background-color 0.2s;
}
.accordion-header:hover {
  background-color: #fcfcfc;
}
.accordion-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}
/* Pink bold checkmark */
.accordion-check {
  width: 22px;
  height: 22px;
  stroke: #F7A8AA;
  stroke-width: 3.5;
  flex-shrink: 0;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  padding: 0 20px;
  color: #444;
  font-size: 15px;
  line-height: 1.5;
}
.accordion-item.active .accordion-content {
  padding: 0 20px 20px 56px;
  max-height: 500px;
}
.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  fill: #888;
  flex-shrink: 0;
}
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  fill: #222;
}

/* Bottom Section (Redesigned) */
.bottom-consultation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin: 60px auto 40px;
  max-width: 650px;
  padding: 40px 30px;
  background: #f8f8f8;
  border-radius: 20px;
}
.bottom-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0;
  color: #222;
}
.bottom-text {
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  max-width: 550px;
}
.bottom-photo {
  width: 100%;
  max-width: 320px; /* Constrain width so it looks good vertically */
  height: auto;
  border-radius: 12px; /* Slight rounding, not a circle */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

@media (max-width: 600px) {
  .accordion-item.active .accordion-content {
    padding: 0 20px 20px 20px;
  }
  .bottom-consultation {
    padding: 30px 20px;
  }
}
