/* Jotno 24 home — design tokens layered on Bootstrap 5 */

:root {
  --cyan: #00a9e0;
  --cyan-dark: #0090c4;
  --cyan-soft: #e7f6fc;
  --purple: #8e3a9b;
  --purple-deep: #6d2678;
  --ink: #1b1b1b;
  --muted: #7b7b7b;
  --line: #e6eef3;
  --bg: #f5f8fb;
  --pink: #fdecf1;
  --blue: #e6f6fb;
  --lilac: #f3eefc;
  --orange: #f08a12;
  --green: #1f9d55;
  --green-soft: #e7f8ee;
  --shadow: 0 8px 24px rgba(27, 55, 90, 0.06);
  --shadow-lg: 0 16px 40px rgba(27, 55, 90, 0.12);
  --radius: 16px;
  --tab-h: 74px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-wash: linear-gradient(180deg, #f3f8ff 0%, #ffffff 78%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.45;
}

body.sheet-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 18px;
  height: 18px;
}

/* Keep the icon sprite in the document so <use> can paint it.
   display:none / hidden drops these icons on iOS after upload. */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-wash);
  padding: 10px 0 12px;
  border-bottom: 1px solid transparent;
  transition: padding 0.42s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 36px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(180deg, rgba(27, 55, 90, 0.1), rgba(27, 55, 90, 0));
  transition: opacity 0.3s ease;
}

.site-header.is-instant,
.site-header.is-instant .search,
.site-header.is-instant .search__clip,
.site-header.is-instant .search__field,
.site-header.is-instant .search-toggle {
  transition: none;
  animation: none;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.site-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
  text-decoration: none;
}

.logo__lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo__word {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 560;
  font-size: 1.85rem;
  letter-spacing: -0.035em;
  color: #141414;
  font-optical-sizing: auto;
}

.logo__j {
  position: relative;
  z-index: 0;
  display: inline-block;
  margin: 0 0.03em 0 -0.02em;
  padding: 0 0.06em;
  color: #0086b8;
  font-weight: 650;
}

.logo__j::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0.16em;
  bottom: 0.04em;
  border-radius: 0.28em;
  background: linear-gradient(180deg, rgba(0, 169, 224, 0.22), rgba(142, 58, 155, 0.16));
}

.logo__watch {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
}

.logo__dial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.logo__face {
  fill: #fff;
  stroke: #d5e0e8;
  stroke-width: 1.25;
}

.logo__track {
  fill: none;
  stroke: #e6eef3;
  stroke-width: 2.6;
}

.logo__sweep {
  fill: none;
  stroke: #00a9e0;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 74 22;
}

.logo__ticks {
  stroke: #c3ced6;
  stroke-width: 1.05;
}

.logo__ticks line:nth-child(3n + 1) {
  stroke: #8e3a9b;
  stroke-width: 1.35;
}

.logo__hand {
  stroke: #6d2678;
  stroke-width: 1.35;
}

.logo__marker {
  fill: #00a9e0;
  stroke: #fff;
  stroke-width: 0.6;
}

.logo__hour {
  position: relative;
  z-index: 1;
  margin-top: 1px;
  color: #141414;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo__rule {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.logo__tag {
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d7480;
}

.site-footer a.logo {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.site-footer a.logo:hover {
  color: inherit;
}

.site-footer a.logo:hover .logo__word {
  color: #141414;
}

.logo:hover .logo__face,
.logo:focus-visible .logo__face {
  stroke: #b7d7ea;
}

.logo:hover .logo__sweep,
.logo:focus-visible .logo__sweep {
  stroke: #0090c4;
}

.logo--footer .logo__word {
  font-size: 2.15rem;
}

.logo--footer .logo__watch {
  width: 42px;
  height: 42px;
}

.logo--footer .logo__hour {
  font-size: 0.74rem;
}

.logo__img {
  display: block;
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
}

.logo--footer .logo__img {
  height: 56px;
  max-width: 240px;
}

.address {
  position: relative;
  margin-top: 6px;
}

.address__btn {
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

.address__label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.address__value {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 14px;
}

.address__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 50;
}

.address__option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
}

.address__option:hover,
.address__option[aria-selected="true"] {
  background: var(--cyan-soft);
}

.brand-block {
  min-width: 0;
  flex: 1;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  flex-shrink: 0;
}

.desktop-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.desktop-nav a {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="true"] {
  color: var(--cyan);
  background: var(--cyan-soft);
}

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid #d5e2ea;
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}

.lang__btn {
  width: 36px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  color: #9aa3ad;
  font-weight: 700;
  font-size: 13px;
}

.lang__btn.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e4eaf0;
  background: #fff;
  color: var(--cyan);
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
}

.icon-btn.is-bump {
  animation: bump 0.35s ease;
}

.search-toggle {
  display: none;
}

.search-toggle__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 2px #fff;
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-toggle.has-query .search-toggle__dot {
  transform: scale(1);
}

.search-toggle.is-active {
  color: var(--cyan-dark);
  background: linear-gradient(180deg, #f7fcff, #e7f6fc);
  border-color: #9fd9f2;
  box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.12);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.search {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 12px;
}

.search__clip {
  min-height: 0;
  overflow: visible;
}

.search__field {
  position: relative;
}

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3ad;
  pointer-events: none;
  transition: color 0.2s ease;
}

.search:focus-within .search__icon {
  color: var(--cyan);
}

.search input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  padding: 0 14px 0 42px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.search input::-webkit-search-decoration,
.search input::-webkit-search-cancel-button,
.search input::-webkit-search-results-button,
.search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search input::placeholder {
  color: #a0a7b0;
}

.search input:focus-visible {
  outline: none;
  border-color: #8fd4ee;
  box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.14);
}

.search.has-value input {
  padding-right: 44px;
}

.search__clear {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8b95a1;
  transform: translateY(-50%);
}

.search__clear[hidden] {
  display: none;
}

.search__clear:hover {
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.search__kbd {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid #e1e8ee;
  background: linear-gradient(180deg, #fff, #f4f7fa);
  color: #8b95a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 1px 0 #d5dee6;
  pointer-events: none;
}

.search__kbd-close {
  display: none;
}

.notify {
  position: absolute;
  top: calc(100% + 8px);
  right: 52px;
  width: min(280px, 70vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  z-index: 50;
}

.notify strong {
  display: block;
  margin-bottom: 4px;
}

.notify p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Page sections */

.page {
  padding-bottom: 8px;
}

.section,
.hero,
#welcome {
  scroll-margin-top: calc(var(--header-h, 120px) + 16px);
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.welcome,
.section-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.welcome {
  margin: 18px 0 14px;
  font-size: 1.25rem;
}

.section-title {
  font-size: 1.15rem;
}

.section > .section-title {
  margin-bottom: 12px;
}

button,
.svc,
.cat,
.other-card,
.text-link,
.store-btn {
  cursor: pointer;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-right: -12px;
  padding: 2px 12px 6px 2px;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.scroller > * {
  scroll-snap-align: start;
}

.scroller.is-expanded {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  margin-right: 0;
  padding-right: 0;
}

.scroller.is-expanded > * {
  flex: none;
  width: auto;
  min-width: 0;
}

/* Service cards */

.svc {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 118px;
  overflow: hidden;
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc--instant { background: linear-gradient(160deg, #ffffff, #f3f8ff); }
.svc--special { background: linear-gradient(160deg, #f7f4fb, #eef3fb); }
.svc--store { background: linear-gradient(160deg, #f8f2fb, #fdeff6); }
.svc--lab { background: linear-gradient(160deg, #f4fafc, #eaf5fb); }

.svc__copy {
  position: relative;
  z-index: 1;
  max-width: 62%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.svc__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.svc__title--brand {
  color: var(--purple);
}

.svc__price {
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

.svc__price s {
  color: #b5b5b5;
  font-weight: 500;
  font-size: 12px;
  margin-left: 4px;
}

.svc__flash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #c0267a;
  font-weight: 700;
  font-size: 13px;
}

.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: #7b3aa0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
}

.svc__art {
  position: absolute;
  right: 2px;
  bottom: 0;
  width: 50%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

/* Other services */

.other-card {
  flex: 0 0 108px;
  width: 108px;
  background: none;
  border: 0;
  padding: 0;
  text-align: center;
  color: inherit;
}

.other-card__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.other-card img {
  width: 108px;
  height: 108px;
  object-fit: cover;
}

.other-card figcaption,
.other-card span:last-child {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.starts-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 6px;
}

/* Carousel */

.hero {
  position: relative;
  margin-top: 22px;
}

.hero__viewport {
  overflow: hidden;
  border-radius: 18px;
}

.hero__track {
  display: flex;
  transition: transform 0.45s ease;
}

.hero__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.hero__slide img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 18px;
}

.hero__dots {
  width: min(210px, 58%);
  margin: 10px auto 0;
  background: #eceff3;
  border-radius: 999px;
  padding: 7px 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hero__dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: #c5ced6;
}

.hero__dot.is-active {
  width: 18px;
  background: var(--cyan);
}

.hero__arrow {
  display: none;
  position: absolute;
  top: 72px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  place-items: center;
}

.hero__arrow--prev { left: 10px; }
.hero__arrow--next { right: 10px; }
.hero__arrow--prev .icon { transform: rotate(90deg); }
.hero__arrow--next .icon { transform: rotate(-90deg); }

/* Concerns */

.concern {
  flex: 0 0 78%;
  min-height: 188px;
  border: 0;
  border-radius: 18px;
  padding: 16px 16px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.concern--blue { background: var(--blue); }
.concern--pink { background: var(--pink); }
.concern--lilac { background: var(--lilac); }

.concern strong {
  font-size: 16px;
  line-height: 1.3;
  max-width: 14ch;
}

.concern img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  object-position: center bottom;
}

/* Doctors */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 12px;
  padding-bottom: 2px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6e6e6;
  background: #fff;
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  color: #4b4b4b;
}

.chip.is-active {
  background: var(--cyan-soft);
  border-color: transparent;
  color: var(--cyan);
}

.doctor {
  display: flex;
  flex-direction: column;
  flex: 0 0 68%;
  background: #fff;
  border: 1px solid #f0f3f6;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 12px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor__open {
  display: block;
  color: inherit;
  border-radius: 14px;
}

.doctor__view {
  display: inline-flex;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.doctor__photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 10px;
  object-fit: cover;
  background: var(--cyan-soft);
}

.doctor h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.doctor__spec {
  margin: 4px 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 2.6em;
}

.doctor__fee {
  margin: 0;
  font-weight: 700;
}

.book-btn {
  background: none;
  border: 0;
  color: var(--cyan);
  font-weight: 700;
  padding: 8px 0 0;
  margin-top: auto;
}

.book-profile {
  display: inline-block;
  margin: -2px 0 12px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

.product-empty,
.doctor-empty {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

/* Partners */

.partner-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.partner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 6px 10px;
  text-align: center;
}

.partner img {
  width: 100%;
  height: 72px;
  object-fit: contain;
}

.partner figcaption {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
}

/* Packages */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}

.tabs__btn {
  background: none;
  border: 0;
  border-bottom: 2px solid #eceff3;
  padding: 10px 8px;
  color: #8a8a8a;
  font-weight: 700;
}

.tabs__btn.is-active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.pack {
  flex: 0 0 88%;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid #f0f3f6;
  padding: 16px 14px 14px;
}

.pack__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.pack__top h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  max-width: 16ch;
}

.pack__price {
  margin: 0;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.pack__price strong {
  display: block;
  color: var(--cyan);
  font-size: 16px;
}

.pack__body {
  position: relative;
  margin-top: 22px;
  border: 1px solid #eceff3;
  border-radius: 16px;
  padding: 22px 14px 12px;
}

.pack__pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #eceff3;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pack__body h4 {
  margin: 10px 0 6px;
  font-size: 14px;
}

.pack__body ul {
  margin: 0;
  padding-left: 18px;
  color: #3a3a3a;
  font-size: 13px;
}

.pack__body li + li {
  margin-top: 4px;
}

.pack__btn,
.btn-solid,
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-weight: 700;
  border: 0;
  margin-top: 14px;
}

.pack__btn,
.btn-solid {
  background: var(--cyan);
  color: #fff;
}

.pack__btn:hover,
.btn-solid:hover {
  background: var(--cyan-dark);
}

.btn-line {
  background: #fff;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}

.sheet__actions {
  display: grid;
  gap: 8px;
}

.sheet__actions .btn-solid,
.sheet__actions .btn-line {
  margin-top: 0;
}

/* Brands */

.brand {
  flex: 0 0 30%;
  background: none;
  text-align: center;
}

.brand img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.brand figcaption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* Categories */

.cat-panel {
  margin-top: 22px;
  background: linear-gradient(180deg, #fff6f8 0%, #ffffff 42%);
  border-radius: 24px;
  padding: 22px 12px 18px;
}

.cat-panel__kicker,
.cat-panel__title {
  text-align: center;
  margin: 0;
}

.cat-panel__kicker {
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

.cat-panel__title {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.cat-panel__rule {
  width: 74px;
  height: 3px;
  border: 0;
  border-radius: 99px;
  background: var(--cyan);
  margin: 8px auto 16px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 8px;
}

.cat {
  text-align: center;
  color: inherit;
}

.cat__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #ffe7a3;
  overflow: hidden;
}

.cat__art img {
  width: 86%;
  height: 78%;
  object-fit: contain;
}

.cat__tag {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat__name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

/* Products */

.product-card {
  flex: 0 0 46%;
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__media {
  position: relative;
  background: #f7f8fa;
  border-radius: 12px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.product-card__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.product-card__off {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 6px;
  text-align: center;
  line-height: 1.15;
}

.product-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 8px 0 4px;
  line-height: 1.35;
  min-height: 2.7em;
}

.price-row {
  margin: 0 0 8px;
}

.price-now {
  font-weight: 700;
}

.price-was {
  color: #b0b0b0;
  font-size: 12px;
  margin-left: 4px;
}

.btn-add {
  margin-top: auto;
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--cyan);
  background: #fff;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
}

.btn-add:hover,
.btn-add.is-added {
  background: var(--cyan-soft);
}

/* Footer */

.site-footer {
  margin-top: 36px;
  background: #f4f8fb;
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
}

.footer-intro {
  font-size: 15px;
  font-weight: 700;
  max-width: 28ch;
  margin-bottom: 8px;
}

.site-footer h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

.site-footer a,
.site-footer button.linky {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  margin-bottom: 8px;
}

.site-footer a:hover,
.site-footer button.linky:hover {
  color: var(--cyan);
}

.footer-meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.store-btn:hover {
  color: #fff;
  background: #000;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-base__copy p {
  margin: 0 0 4px;
}

.footer-base__copy p:last-child {
  margin-bottom: 0;
}

.footer-credit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.footer-credit__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.site-footer .footer-credit__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 7px 12px 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(27, 55, 90, 0.04);
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-footer .footer-credit__link:hover {
  color: var(--cyan);
  border-color: #b7e6f6;
  box-shadow: 0 6px 16px rgba(0, 169, 224, 0.14);
}

.footer-credit__icon {
  width: 13px;
  height: 13px;
  flex: none;
}

/* Bottom navigation */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid #f0f3f6;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  box-shadow: 0 -6px 24px rgba(27, 55, 90, 0.05);
}

.tabbar__item {
  position: relative;
  flex: 1;
  height: var(--tab-h);
  border: 0;
  background: none;
  color: #9aa3ad;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
}

.tabbar__item.is-active {
  color: var(--cyan);
}

.tabbar__bar {
  position: absolute;
  top: 0;
  width: 42px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: transparent;
}

.tabbar__item.is-active .tabbar__bar {
  background: var(--cyan);
}

.tabbar__fab {
  width: 62px;
  height: 62px;
  margin-top: -30px;
  margin-bottom: 2px;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(0, 169, 224, 0.35);
}

.tabbar__fab .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.7;
}

.tabbar__item--doctor {
  color: #9aa3ad;
  justify-content: flex-end;
}

/* Floating actions: scroll progress, then WhatsApp */

.float-dock {
  position: fixed;
  z-index: 46;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.to-top {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--cyan-dark);
  box-shadow:
    0 10px 28px rgba(27, 55, 90, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, box-shadow 0.2s ease;
}

.to-top.is-on,
.wa-btn {
  pointer-events: auto;
}

.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top.is-on:active,
.wa-btn:active {
  transform: scale(0.96);
}

.to-top:hover {
  box-shadow:
    0 14px 32px rgba(0, 169, 224, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.to-top__track,
.to-top__progress {
  fill: none;
  stroke-width: 2.6;
}

.to-top__track {
  stroke: #e4eef3;
}

.to-top__progress {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 157.08;
  stroke-dashoffset: 157.08;
  transition: stroke-dashoffset 0.12s linear;
}

.to-top__face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
}

.to-top__arrow {
  width: 13px;
  height: 13px;
  display: block;
}

.to-top__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top__pct {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.wa-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(165deg, #3ee072 0%, #25d366 46%, #1daf55 100%);
  box-shadow:
    0 12px 26px rgba(29, 175, 85, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 32px rgba(29, 175, 85, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.wa-btn__icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  display: block;
}

.wa-btn__icon path {
  fill: currentColor;
}

.wa-btn__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: wa-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

.wa-btn__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 12px;
  background: #142033;
  color: #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
}

.wa-btn__tip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #142033;
  transform: translateY(-50%) rotate(45deg);
}

.wa-btn__tip strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.wa-btn__tip span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #c5d0dc;
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .wa-btn:hover .wa-btn__tip,
  .wa-btn:focus-visible .wa-btn__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.42); opacity: 0; }
}

/* Sheets */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
  border: 0;
  padding: 0;
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: min(82vh, 680px);
  overflow: auto;
  padding: 8px 16px calc(18px + env(safe-area-inset-bottom));
}

.sheet__grip {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #e1e6eb;
  margin: 6px auto 10px;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sheet__head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.sheet__close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: grid;
  place-items: center;
}

.sheet p {
  color: #3f3f3f;
}

.profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.profile__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
}

.profile h2 {
  margin: 0;
  font-size: 1.1rem;
}

.profile p {
  margin: 2px 0 0;
  color: var(--muted);
}

.menu-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.menu-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  font-weight: 600;
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__name {
  font-weight: 600;
}

.cart-line__meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-weight: 700;
}

.qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}

.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: inherit;
  width: 100%;
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.form-error {
  color: #c2414b;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 8px;
}

.form-success {
  background: var(--green-soft);
  color: var(--green);
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
}

.partner-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.partner-sheet-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.partner-sheet-list strong {
  display: block;
}

.partner-sheet-list span {
  color: var(--muted);
  font-size: 14px;
}

/* Desktop */

@media (max-width: 420px) {
  .site-header__top {
    gap: 8px;
  }

  .site-header__actions {
    gap: 4px;
  }

  .logo__lockup {
    gap: 5px;
  }

  .logo__word {
    font-size: 1.38rem;
  }

  .logo__j {
    margin-right: 0.01em;
    padding: 0 0.04em;
  }

  .logo__watch {
    width: 28px;
    height: 28px;
  }

  .logo__hour {
    font-size: 0.52rem;
  }

  .logo__tag {
    font-size: 0.56rem;
    letter-spacing: 0.12em;
  }

  .logo__img {
    height: 40px;
    max-width: 150px;
  }
}

@media (min-width: 768px) {
  .hero__slide img {
    height: 240px;
  }

  .hero__arrow {
    display: grid;
  }

  .hero__arrow--next {
    right: max(12px, calc(96px - (100vw - 100%) / 2));
  }

  .welcome {
    font-size: 1.45rem;
  }
}

@media (min-width: 992px) {
  body {
    background: var(--bg);
  }

  .page {
    padding-top: 8px;
    padding-bottom: 28px;
  }

  .site-header__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .desktop-nav {
    display: flex;
  }

  .search {
    max-width: none;
    transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1), margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .search__clip {
    overflow: hidden;
    padding: 6px 4px 8px;
    opacity: 1;
    transition: opacity 0.22s ease, padding 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .search__field {
    transform: translateY(0);
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .search input {
    height: 48px;
    border-radius: 14px;
    padding-right: 52px;
    box-shadow: 0 1px 2px rgba(27, 55, 90, 0.04);
  }

  .search:not(.has-value) .search__kbd {
    display: inline-flex;
  }

  .site-header.is-search-collapsed {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header.is-search-collapsed .search-toggle {
    display: grid;
    animation: search-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.is-search-collapsed:not(.is-search-open) .search {
    grid-template-rows: 0fr;
    margin-top: 0;
    pointer-events: none;
  }

  .site-header.is-search-collapsed:not(.is-search-open) .search__clip {
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
  }

  .site-header.is-search-collapsed:not(.is-search-open) .search__field {
    transform: translateY(-8px);
  }

  .site-header.is-search-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: transparent;
    box-shadow: 0 12px 32px rgba(27, 55, 90, 0.08);
  }

  .site-header.is-search-open::after {
    opacity: 1;
  }

  .site-header.is-search-open .search__kbd-find {
    display: none;
  }

  .site-header.is-search-open .search__kbd-close {
    display: inline;
  }

  .site-header.is-search-open .search input {
    height: 52px;
    border-color: transparent;
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(120deg, rgba(0, 169, 224, 0.9), rgba(142, 58, 155, 0.62)) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.12);
  }

  .hero__slide img {
    height: 300px;
  }

  .scroller.scroller--cards,
  .scroller.scroller--doctors,
  .scroller.scroller--brands,
  .scroller.scroller--products,
  .scroller.scroller--concerns,
  .scroller.scroller--other,
  .scroller.scroller--packs,
  .scroller.is-expanded.scroller--doctors,
  .scroller.is-expanded.scroller--brands,
  .scroller.is-expanded.scroller--products,
  .scroller.is-expanded.scroller--concerns,
  .scroller.is-expanded.scroller--other,
  .scroller.is-expanded.scroller--packs {
    display: grid;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
    scroll-snap-type: none;
  }

  .sheet__panel {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(480px, calc(100% - 32px));
    max-height: min(80vh, 680px);
    border-radius: 20px;
    transform: translate(-50%, -50%);
    padding-bottom: 18px;
  }

  .sheet__grip {
    display: none;
  }

  .scroller.scroller--other {
    grid-template-columns: repeat(5, 148px);
    justify-content: start;
    gap: 28px;
  }

  .scroller--other .other-card {
    width: 148px;
    flex: none;
  }

  .scroller--other .other-card img,
  .scroller--other .other-card__media {
    width: 148px;
    height: 148px;
  }

  .scroller.scroller--concerns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .concern {
    flex: none;
    min-height: 220px;
  }

  .scroller.scroller--doctors {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .doctor {
    flex: none;
  }

  .scroller.scroller--brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .brand {
    flex: none;
  }

  .scroller.scroller--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-card {
    flex: none;
  }

  .scroller.scroller--packs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pack {
    flex: none;
  }

  .cat-grid {
    gap: 18px 16px;
  }

  .cat__name {
    font-size: 14px;
  }

  .partner img {
    height: 96px;
  }

  .notify {
    right: 0;
  }

  .float-dock {
    right: max(24px, env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  }
}

@media (hover: hover) and (pointer: fine) {
  .svc:hover,
  .product-card:hover,
  .doctor:hover,
  .pack:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .search-toggle:hover {
    border-color: #b7e4f6;
    background: #f3fbfe;
  }

  .search-toggle.is-active:hover {
    color: var(--cyan-dark);
    background: linear-gradient(180deg, #f7fcff, #e7f6fc);
    border-color: #9fd9f2;
  }
}

@media print {
  .float-dock {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__track,
  .svc,
  .product-card,
  .doctor,
  .pack,
  .icon-btn.is-bump,
  .footer-credit__link,
  .to-top,
  .to-top__progress,
  .wa-btn,
  .wa-btn__tip,
  .site-header,
  .site-header::after,
  .search,
  .search__clip,
  .search__field,
  .search input,
  .search-toggle,
  .search-toggle__dot {
    transition: none;
    animation: none;
  }

  .wa-btn__pulse {
    animation: none;
    opacity: 0;
  }
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes search-pop {
  0% { opacity: 0; transform: scale(0.72); }
  100% { opacity: 1; transform: scale(1); }
}

/* Inner pages — same tokens, page hero, and content cards */

.subhero {
  margin: 18px 0 8px;
  padding: 22px 20px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e7f6fc 0%, #ffffff 52%, #f3eefc 100%);
  border: 1px solid var(--line);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.crumb a {
  color: var(--cyan);
}

.subhero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.subhero__lead {
  margin: 8px 0 0;
  max-width: 68ch;
  color: #3a3a3a;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cta-row .btn-solid,
.cta-row .btn-line {
  width: auto;
  min-width: 168px;
  margin-top: 0;
  padding: 0 18px;
}

.stat-row,
.card-grid,
.split,
.article-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.stat-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat,
.panel,
.plain-card,
.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.stat,
.plain-card,
.article-card {
  padding: 16px;
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan-dark);
  font-size: 1.15rem;
}

.stat span,
.plain-card p,
.article-card p,
.legal p,
.legal li,
.steps li {
  color: #3a3a3a;
}

.plain-card h2,
.panel h2,
.article-card h2,
.article-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.plain-card a,
.legal a,
.steps a {
  color: var(--cyan-dark);
  font-weight: 700;
}

.panel {
  padding: 18px 16px 8px;
}

.panel .btn-solid {
  margin-bottom: 12px;
}

.split {
  align-items: start;
}

.article-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 12px;
  background: var(--cyan-soft);
}

.article-card__meta {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 8px 0 0;
  color: #3a3a3a;
}

.legal h2,
.steps h2 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.legal ul,
.steps ol {
  margin: 0;
  padding-left: 18px;
}

.legal li + li,
.steps li + li {
  margin-top: 6px;
}

.steps ol {
  display: grid;
  gap: 10px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 14px 58px;
  position: relative;
  box-shadow: var(--shadow);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-weight: 800;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.contact-list strong {
  display: block;
  margin-bottom: 2px;
}

.page .scroller--doctors,
.page .scroller--products,
.page .scroller--packs {
  margin-top: 4px;
}

@media (min-width: 768px) {
  .card-grid,
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Single doctor profile */

.dmissing {
  margin-top: 12px;
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dmissing h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.dmissing p {
  margin: 0;
  max-width: 46ch;
  color: #3a3a3a;
}

.dmissing .btn-solid {
  max-width: 220px;
}

.dhero {
  display: grid;
  gap: 16px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(0, 169, 224, 0.16), transparent 62%),
    radial-gradient(380px 200px at 100% 0%, rgba(142, 58, 155, 0.1), transparent 64%),
    #fff;
  box-shadow: var(--shadow);
}

.dhero__photo {
  position: relative;
  width: 112px;
  height: 112px;
}

.dhero__photo img {
  width: 112px;
  height: 112px;
  border-radius: 32px;
  object-fit: cover;
  background: var(--cyan-soft);
  box-shadow: 0 12px 28px rgba(0, 144, 196, 0.18);
}

.dhero__badge {
  position: absolute;
  left: 8px;
  bottom: -8px;
  padding: 4px 8px;
  border: 1px solid #d7f3e3;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.dhero__kicker {
  margin: 0;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dhero h1 {
  margin: 4px 0 0;
  font-family: Fraunces, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dhero__spec {
  margin: 8px 0 0;
  font-weight: 700;
}

.dhero__place {
  margin: 2px 0 0;
  color: var(--muted);
}

.dhero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.dhero__meta li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.dstars {
  color: #e2a008;
  letter-spacing: 0.5px;
}

.dhero__fee {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.dhero__fee span,
.dhero__fee small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dhero__fee strong {
  display: block;
  margin: 2px 0;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.dhero__fee .btn-solid {
  margin-top: 12px;
}

.dhero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.dhero__stats div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.dhero__stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dhero__stats dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
}

.dlayout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0 8px;
}

.dbook {
  scroll-margin-top: 96px;
  order: -1;
  padding: 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.dbook h2 {
  margin: 0;
  font-size: 1.15rem;
}

.dbook__lead,
.dbook__note,
.follow-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dvisits {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.dvisit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  text-align: left;
  font-weight: 800;
}

.dvisit small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.dvisit.is-on {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: inset 0 0 0 1px var(--cyan);
}

.dfield {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.dfield legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.ddays {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ddays::-webkit-scrollbar {
  display: none;
}

.dday {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 8px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  line-height: 1.15;
}

.dday small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dday strong {
  display: block;
  margin: 3px 0;
  font-size: 18px;
}

.dday.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.dday.is-on small {
  color: rgba(255, 255, 255, 0.72);
}

.dday:disabled {
  opacity: 0.45;
}

.dslots__label {
  margin: 8px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dslots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dslot {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7fbfd;
  font-size: 13px;
  font-weight: 800;
}

.dslot.is-on {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #fff;
}

.dslot:disabled {
  background: #f3f4f6;
  color: #9a9a9a;
  text-decoration: line-through;
}

.dslots__empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dbook__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 2px 0 0;
  font-weight: 800;
}

.dbook__total strong {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.field__opt {
  color: var(--muted);
  font-weight: 600;
}

.dcard {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dcard + .dcard {
  margin-top: 14px;
}

.dcard h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.dcard p {
  margin: 0;
  color: #333;
}

.dexpert {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dexpert li {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.dtime {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dtime li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
}

.dtime time {
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 800;
}

.dtime strong,
.dtime em {
  display: block;
}

.dtime em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.dreview + .dreview {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.dreview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dreview p {
  margin-top: 6px;
}

.dreview time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dsimilar-list {
  display: grid;
  gap: 10px;
}

.dsimilar {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.dsimilar img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--cyan-soft);
}

.dsimilar strong,
.dsimilar em,
.dsimilar b {
  display: block;
}

.dsimilar em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.dsimilar b {
  font-size: 14px;
}

.dvisits[hidden],
.dslots[hidden],
.dslots__label[hidden],
.dbook-bar[hidden] {
  display: none !important;
}

.dbook-bar {
  position: fixed;
  z-index: 44;
  left: 12px;
  right: 84px;
  bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}

.dbook-bar__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dbook-bar__copy strong {
  font-size: 16px;
}

.dbook-bar__copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dbook-bar .btn-solid {
  width: auto;
  height: 42px;
  margin: 0;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .dhero {
    grid-template-columns: auto minmax(0, 1fr) 230px;
    align-items: center;
    padding: 22px;
  }

  .dhero__stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dhero__photo,
  .dhero__photo img {
    width: 128px;
    height: 128px;
  }
}

@media (min-width: 992px) {
  .dlayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .dbook {
    order: 0;
    position: sticky;
    top: 92px;
  }

  .dbook-bar {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  body.has-bookbar {
    padding-bottom: calc(var(--tab-h) + 78px + env(safe-area-inset-bottom));
  }
}

@media (hover: hover) and (pointer: fine) {
  .dsimilar:hover,
  .dday:hover:not(:disabled),
  .dslot:hover:not(:disabled),
  .dvisit:hover {
    border-color: #b7e4f6;
  }

  .doctor__open:hover h3 {
    color: var(--cyan-dark);
  }
}

/* Grid, page width, and the mobile tab bar.
   These classes also live in Bootstrap; they are repeated here so the
   layout still holds when that file is blocked or missing on the host. */
.container-xl {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-right: auto;
  margin-left: auto;
}

.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col-6 {
  flex: 0 0 auto;
  width: 50%;
}

.g-2 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}

.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.d-flex {
  display: flex !important;
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 768px) {
  .col-md-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

@media (min-width: 992px) {
  .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .g-lg-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .d-lg-none {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .container-xl {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container-xl {
    max-width: 1320px;
  }
}
