/* Scoped styles only for the pricing section */
p.intro {
    position: relative;
    max-width: 90vw;
    margin: 0.5rem auto 0 auto;
    text-align: center;
    font-size: calc(0.9rem + 0.4vw);
    padding: 1rem;
}

.price-table{
  max-width: 1100px;
  margin: 0.5rem auto 60px;
  padding: 0 16px;
}

.price-table .price-ui{
  background: #f6f7fb;
  border-radius: 22px;
  padding: 26px 16px 32px;
  border: 1px solid rgba(17,24,39,.06);
  filter: drop-shadow(0px 0px 6px rgba(31, 41, 55, .06));
}

.price-table .segmented{
  width: fit-content;
  margin: 0 auto 10px;
  background: #dde7f3;
  border-radius: 999px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  box-shadow: 0 8px 20px rgba(17,24,39,.06);
  user-select: none;
}

.price-table .segmented button{
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  color: rgba(17,24,39,.75);
  transition: transform .15s ease, color .15s ease, background .15s ease;
  white-space: nowrap;
}

.price-table .segmented button:hover{ transform: translateY(-1px); }
.price-table .segmented button[aria-selected="true"]{
  background: #fff;
  color: #111827;
}

.price-table .hint{
  text-align: center;
  color: #6b7280;
  margin: 6px 0 18px;
  font-size: 14px;
}

.price-table .grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-table .card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(17,24,39,.08);
  padding: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.price-table .badge{
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(17,24,39,.03);
  color: rgba(17,24,39,.75);
}

.price-table .title{
  font-size: 18px;
  font-weight: 900;
  margin: 2px 0 8px;
}

.price-table .price{
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.02em;
  margin: 6px 0 2px;
  line-height: 1.05;
}

.price-table .price small{
  font-size: 14px;
  font-weight: 700;
  color: #6b7280;
  margin-left: 8px;
}

.price-table .sub{
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 12px;
}

.price-table .divider{
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0;
}

.price-table ul.features{
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.price-table .feature{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(17,24,39,.92);
  font-size: 14px;
  line-height: 1.35;
}

.price-table .check{
  width: 18px;
  height: 18px;
  margin-top: 2px;
  opacity: .9;
}

.price-table .cta{
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.price-table .btn{
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 10px 18px rgba(17,24,39,.10);
  transition: transform .15s ease, filter .15s ease;
}

.price-table .btn:hover{ transform: translateY(-1px); filter: brightness(1.03); }
.price-table .btn:active{ transform: translateY(0px); }

.price-table .btn.blue{ background: #3b82f6; }
.price-table .btn.purple{ background: #a855f7; }
.price-table .btn.orange{ background: #f59e0b; }

.price-table .link{
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
}

.price-table .link:hover{ text-decoration: underline; }

.price-table .fade{
  animation: fade .18s ease;
}

@keyframes fade{
  from{ opacity: .2; transform: translateY(4px); }
  to{ opacity: 1; transform: translateY(0); }
}

.price-table .error{
  color: #b91c1c;
  background: rgba(185,28,28,.08);
  border: 1px solid rgba(185,28,28,.18);
  border-radius: 14px;
  padding: 12px 14px;
}

@media (max-width: 990px){
  .price-table .grid{ grid-template-columns: 1fr; }
  .price-table .card{ min-height: unset; }
  .price-table .segmented{ width: 100%; max-width: 520px; }
  .price-table .segmented button{ width: 100%; }
}


/* ===== Calm Fotos-Baby palette overrides ===== */
.price-table .price-ui{
  background: #f7f2ea;              /* warm ivory */
  border-color: rgba(31,41,55,.06);
}

.price-table .segmented{
  background: #eae1d7;              /* warm beige for the switch */
}

.price-table .hint,
.price-table .sub,
.price-table .link{
  color: #6b5f55;                   /* warm muted text */
}

.price-table .card{
  border-color: #eadfce;
  box-shadow: 0 12px 28px rgba(17,24,39,.06); /* softer shadow */
}

/* Badges: calmer, less contrasty */
.price-table .badge{
  background: rgba(176,137,90,.10);
  border-color: rgba(176,137,90,.18);
  color: #6b5f55;
}

/* Buttons: muted (keep class names so JS stays unchanged) */
.price-table .btn.blue{   background: #6f8f86; }  /* soft sage */
.price-table .btn.purple{ background: #8b7180; }  /* dusty mauve */
.price-table .btn.orange{ background: #b0895a; }  /* warm caramel */

.price-table .btn{
  color: #fff;
}

.price-table .btn:hover{
  filter: brightness(1.04) saturate(0.90);
}

/* ===== Segmented: stack vertically on very small screens ===== */
@media (max-width: 420px){
  .price-table .segmented{
    display: grid;
    grid-template-columns: 1fr;   /* one per row */
    gap: 8px;

    width: 100%;
    max-width: 360px;             /* чтобы красиво по центру */
    margin: 0 auto 12px;

    padding: 10px;
    border-radius: 18px;
  }

  .price-table .segmented button{
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 14px;

    /* на всякий случай */
    white-space: normal;
  }
}

