/* Заставка, мобильное меню, кнопка связи, пасхалка и концепты */

/* ---------- Заставка ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: circle(150% at 50% 50%);
}
.pl-ring {
  position: absolute; left: 50%; top: 50%;
  width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border: 1px solid var(--line); border-radius: 50%;
  animation: orbit-pl 1.6s linear infinite;
}
.pl-ring i { position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); }
@keyframes orbit-pl { to { transform: rotate(360deg); } }
.pl-word { position: relative; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(36px, 6vw, 72px); letter-spacing: -.03em; white-space: nowrap; }
.pl-word span { display: inline-block; }
.pl-count { position: absolute; right: 6vw; bottom: 5vh; font-family: "Unbounded", sans-serif; font-size: clamp(40px, 8vw, 120px); color: var(--muted); line-height: 1; }
html.is-loading, html.is-loading body { overflow: hidden; }

/* ---------- Мобильное меню ---------- */
.nav-right { display: flex; align-items: center; gap: 16px; }
.burger { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(14, 14, 16, .6); cursor: pointer; }
.burger i { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger i:first-child { top: 19px; }
.burger i:last-child { top: 27px; }
.burger[aria-expanded="true"] i:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 23px; transform: rotate(-45deg); }
.mmenu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(120px + env(safe-area-inset-top)) 6vw calc(40px + env(safe-area-inset-bottom));
  background: var(--bg);
  clip-path: circle(0% at calc(100% - 6vw - 24px) 42px);
  visibility: hidden;
}
.mmenu-links { display: grid; gap: 10px; }
.mmenu-links a { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: clamp(32px, 9vw, 56px); line-height: 1.15; }
.mmenu-links a:active { color: var(--accent); }
.mmenu-foot { color: var(--muted); }
@media (max-width: 900px) { .burger { display: block; } }
@media (max-width: 480px) { .nav-cta { display: none; } }

/* ---------- Плавающая кнопка связи ---------- */
.fab {
  position: fixed; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  opacity: 0; transform: translateY(30px) scale(.8);
  pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease);
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab-btn { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 10px 30px rgba(255, 91, 46, .35); }
.fab-btn .mag-inner { display: grid; place-items: center; }
.fab-panel {
  display: grid; gap: 8px; padding: 10px;
  border-radius: 20px;
  background: rgba(26, 26, 29, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  transform-origin: bottom right;
  transform: scale(.6); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .3s;
}
.fab.open .fab-panel { transform: none; opacity: 1; pointer-events: auto; }
.fab-link { padding: 14px 20px; border-radius: 14px; font-weight: 600; white-space: nowrap; transition: background .3s; }
.fab-link:hover { background: rgba(255, 91, 46, .15); }

/* ---------- Форма: ловушка для ботов и ссылка на Telegram ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-alt { color: var(--muted); }
.form-alt a { color: var(--fg); border-bottom: 1px solid var(--accent); }

/* ---------- Пасхалка ---------- */
.egg-hint { opacity: .5; }
/* на время пасхалки убираем дорогое размытие фона */
.egg-active .plan, .egg-active .fab-panel, .egg-active .nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
.egg-toast {
  position: fixed; left: 50%; top: 50%; z-index: 1500;
  transform: translate(-50%, -50%);
  font-family: "Unbounded", sans-serif; font-weight: 800;
  font-size: clamp(28px, 5vw, 64px); text-align: center;
  pointer-events: none; opacity: 0;
}
.egg-toast small { display: block; margin-top: 12px; font-family: "Manrope", sans-serif; font-weight: 500; font-size: 18px; color: var(--muted); }

/* ---------- Концепты ---------- */
.concepts { padding-top: 12vh; padding-bottom: 14vh; border-top: 1px solid var(--line); }
.concepts-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; align-items: end; margin-bottom: 6vh; }
.concepts-head .section-title { margin-bottom: 0; }
.concepts-head p { color: var(--muted); font-size: 18px; line-height: 1.5; }
@media (max-width: 900px) { .concepts-head { grid-template-columns: 1fr; gap: 20px; } }
.c-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.c-tab { padding: 14px 26px; border-radius: 99px; border: 1px solid var(--line); background: rgba(14, 14, 16, .5); color: var(--fg); font: 600 16px "Manrope", sans-serif; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.c-tab.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.c-frame { border-radius: 22px; overflow: hidden; border: 1px solid rgba(242, 240, 235, .15); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.c-bar { display: flex; align-items: center; gap: 18px; height: 48px; padding: 0 18px; background: #e2dfd8; }
.c-bar .mock-dots { gap: 7px; }
.c-bar .mock-dots i { width: 11px; height: 11px; }
.c-url { padding: 6px 16px; border-radius: 99px; background: #f2f0eb; color: #6b6861; font-size: 13px; min-width: 200px; }
.c-view { position: relative; height: min(70vh, 660px); overflow-y: auto; container-type: inline-size; scrollbar-width: thin; }
.c-hint { margin-top: 16px; color: var(--muted); font-size: 14px; }
.cpt { display: none; min-height: 100%; padding: 0 5cqw 6cqw; font-family: "Manrope", sans-serif; }
.cpt.active { display: block; }
.cpt h3 { letter-spacing: -.03em; }
.cpt button { font: inherit; cursor: pointer; border: 0; }

/* Кофейня */
.cpt-coffee { background: #f3ece2; color: #3b2418; }
.cc-nav, .cb-nav, .cd-nav { display: flex; align-items: center; gap: 3cqw; padding: 3cqw 0; font-size: clamp(12px, 1.6cqw, 16px); }
.cc-nav b, .cb-nav b, .cd-nav b { margin-right: auto; font-family: "Unbounded", sans-serif; font-size: clamp(16px, 2.4cqw, 26px); }
.cc-cart { padding: 8px 16px; border-radius: 99px; background: #3b2418; color: #f3ece2; }
.cc-cart i { font-style: normal; }
.cc-cart.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.15); } }
.cc-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4cqw; align-items: center; padding: 4cqw 0 6cqw; }
.cc-hero h3 { font-size: clamp(30px, 6.4cqw, 76px); line-height: 1; font-weight: 800; }
.cc-hero em { font-style: normal; color: #c8743a; }
.cc-hero p { margin: 2.4cqw 0 3.4cqw; font-size: clamp(14px, 1.8cqw, 19px); line-height: 1.5; opacity: .75; }
.cc-btn { display: inline-block; padding: 1.6cqw 3.4cqw; border-radius: 99px; background: #c8743a; color: #fff; font-weight: 700; font-size: clamp(13px, 1.7cqw, 17px); }
.cc-cup { position: relative; aspect-ratio: 1; border-radius: 50%; background: #e7d8c4; }
.cup { position: absolute; left: 28%; top: 40%; width: 40%; height: 32%; border-radius: 0 0 40% 40%; background: #fff; box-shadow: inset 0 -1cqw 0 #ead9c6; }
.cup::before { content: ""; position: absolute; left: 6%; right: 6%; top: 6%; height: 18%; border-radius: 50%; background: #8a5a3b; }
.cup::after { content: ""; position: absolute; right: -22%; top: 18%; width: 26%; height: 40%; border: 1.4cqw solid #fff; border-left: 0; border-radius: 0 50% 50% 0; }
.saucer { position: absolute; left: 18%; top: 70%; width: 64%; height: 7%; border-radius: 50%; background: #fff; }
.steam { position: absolute; top: 18%; width: 3%; height: 18%; border-radius: 99px; background: rgba(255, 255, 255, .9); animation: steam 2.4s ease-in-out infinite; }
.steam:nth-child(1) { left: 38%; }
.steam:nth-child(2) { left: 47%; animation-delay: .6s; }
.steam:nth-child(3) { left: 56%; animation-delay: 1.2s; }
@keyframes steam { 0% { transform: translateY(20%) scaleY(.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-40%) scaleY(1.1); opacity: 0; } }
.cc-h, .cb-h { font-family: "Unbounded", sans-serif; font-size: clamp(20px, 3.4cqw, 36px); margin-bottom: 2.4cqw; }
.cc-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqw; }
.cc-item { display: grid; gap: 4px; padding: 2.4cqw; border-radius: 2.4cqw; background: #fff; }
.bean { position: relative; width: 4.4cqw; height: 6cqw; min-width: 26px; min-height: 34px; border-radius: 50%; background: var(--c); margin-bottom: 1.4cqw; }
.bean::after { content: ""; position: absolute; left: 48%; top: 15%; bottom: 15%; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .5); }
.cc-item b { font-size: clamp(13px, 1.8cqw, 18px); }
.cc-item small { opacity: .55; }
.cc-row { display: flex; justify-content: space-between; align-items: center; margin-top: 1.4cqw; font-weight: 700; }
.cpt .cc-add { width: 34px; height: 34px; border-radius: 50%; background: #3b2418; color: #f3ece2; font-size: 20px; line-height: 1; transition: transform .2s; }
.cpt .cc-add:active { transform: scale(.85); }
.cc-promo { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 5cqw 0 3cqw; padding: 4cqw; border-radius: 3cqw; background: #3b2418; color: #f3ece2; }
.cc-promo b { font-family: "Unbounded", sans-serif; font-size: clamp(18px, 3cqw, 32px); }
.cc-foot { opacity: .6; font-size: 14px; }

/* Барбершоп */
.cpt-barber { background: #111; color: #eee; }
.cb-nav span:not(.cb-btn) { opacity: .6; }
.cb-btn { padding: 8px 18px; border: 1px solid #d8b45a; color: #d8b45a; border-radius: 4px; }
.cb-hero { display: grid; grid-template-columns: 1fr auto; gap: 4cqw; align-items: center; padding: 6cqw 0; border-bottom: 1px solid #2a2a2a; }
.cb-hero h3 { font-size: clamp(28px, 6.6cqw, 80px); line-height: .98; font-weight: 800; text-transform: uppercase; }
.cb-hero em { font-style: normal; color: #d8b45a; }
.cb-pole { width: 8cqw; height: 30cqw; min-width: 44px; border-radius: 99px; overflow: hidden; border: 4px solid #d8b45a; }
.cb-pole span { display: block; height: 200%; background: repeating-linear-gradient(-45deg, #e33 0 14px, #fff 14px 28px, #24f 28px 42px, #fff 42px 56px); animation: pole 3s linear infinite; }
@keyframes pole { to { transform: translateY(-50%); } }
.cb-list { display: grid; padding: 3cqw 0 5cqw; }
.cb-list div { display: flex; align-items: baseline; gap: 12px; padding: 2cqw 0; font-size: clamp(15px, 2.2cqw, 22px); }
.cb-list i { flex: 1; border-bottom: 1px dashed #444; }
.cb-list b { color: #d8b45a; }
.cb-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.cpt .cb-slots button { padding: 2cqw 0; border-radius: 6px; background: #1d1d1d; color: #eee; border: 1px solid #333; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.cpt .cb-slots button:hover:not(:disabled) { border-color: #d8b45a; }
.cpt .cb-slots button:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.cpt .cb-slots button.picked { background: #d8b45a; color: #111; }
.cb-done { margin-top: 3cqw; opacity: .7; }
.cb-done.ok { color: #d8b45a; opacity: 1; font-weight: 700; }

/* Стоматология */
.cpt-dent { background: #fff; color: #10302e; }
.cd-nav b em { font-style: normal; color: #12a39a; }
.cd-nav span:not(.cd-phone) { opacity: .6; }
.cd-phone { font-weight: 700; color: #12a39a; }
.cd-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 4cqw; align-items: center; padding: 5cqw 0; }
.cd-badge { display: inline-block; padding: 8px 14px; border-radius: 99px; background: #e6f6f5; color: #12a39a; font-weight: 700; font-size: clamp(12px, 1.5cqw, 15px); margin-bottom: 2.4cqw; }
.cd-hero h3 { font-size: clamp(28px, 5.8cqw, 70px); line-height: 1.02; font-weight: 800; }
.cd-tooth { position: relative; aspect-ratio: 1; border-radius: 50%; background: #12a39a; }
.tooth { position: absolute; left: 27%; top: 22%; width: 46%; height: 34%; background: #fff; border-radius: 45% 45% 30% 30%; }
.tooth::before, .tooth::after { content: ""; position: absolute; top: 70%; width: 38%; height: 75%; background: #fff; border-radius: 0 0 50% 50%; }
.tooth::before { left: 6%; transform: rotate(8deg); }
.tooth::after { right: 6%; transform: rotate(-8deg); }
.spark { position: absolute; width: 8%; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: spark 1.8s ease-in-out infinite; }
.spark:nth-child(2) { left: 72%; top: 18%; }
.spark:nth-child(3) { left: 18%; top: 66%; animation-delay: .9s; }
@keyframes spark { 50% { transform: scale(1.6) rotate(45deg); } }
.cd-quiz { padding: 4cqw; border-radius: 3cqw; background: #e6f6f5; }
.cd-q { display: block; font-family: "Unbounded", sans-serif; font-size: clamp(18px, 2.8cqw, 30px); margin-bottom: 2.4cqw; }
.cd-opts { display: flex; flex-wrap: wrap; gap: 1.4cqw; }
.cpt .cd-opts button { padding: 1.6cqw 2.6cqw; border-radius: 99px; background: #fff; color: #10302e; font-weight: 600; transition: background .2s, color .2s; }
.cpt .cd-opts button.picked { background: #12a39a; color: #fff; }
.cd-res { max-height: 0; overflow: hidden; margin-top: 0; font-weight: 600; transition: max-height .5s, margin-top .5s; }
.cd-res.show { max-height: 80px; margin-top: 2.4cqw; }
.cd-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; margin-top: 5cqw; }
.cd-docs div { display: grid; gap: 4px; justify-items: start; padding: 2.6cqw; border: 1px solid #e3eeed; border-radius: 2.4cqw; }
.ava { display: grid; place-items: center; width: 7cqw; height: 7cqw; min-width: 44px; min-height: 44px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; margin-bottom: 1.4cqw; }
.cd-docs small { opacity: .6; }

@container (max-width: 560px) {
  .cc-hero, .cd-hero { grid-template-columns: 1fr; }
  .cc-cup, .cd-tooth { width: 60%; justify-self: center; }
  .cc-menu { grid-template-columns: 1fr 1fr; }
  .cd-docs { grid-template-columns: 1fr; }
  .cc-nav span:not(.cc-cart), .cb-nav span:not(.cb-btn), .cd-nav span:not(.cd-phone) { display: none; }
  .cb-pole { height: 40cqw; }
}
