/* Пандерма — страница „Контакти“ */

/* ---------- херо с живи градиентни петна ---------- */
.c-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--head-h) + clamp(50px, 8vw, 110px)) 0 clamp(150px, 16vw, 210px);
  background: linear-gradient(160deg, #f6e3d4 0%, #efcfb6 55%, #e7bea0 100%);
}
.blobs { position: absolute; inset: 0; z-index: -1; filter: blur(60px) saturate(1.2); }
.blobs i { position: absolute; border-radius: 50%; opacity: .75; }
.blobs i:nth-child(1) { width: 46vw; height: 46vw; left: -10vw; top: -18vw; background: #fbe4d2; animation: blob1 18s ease-in-out infinite alternate; }
.blobs i:nth-child(2) { width: 36vw; height: 36vw; right: -8vw; top: -6vw; background: #de9b73; animation: blob2 16s ease-in-out infinite alternate; }
.blobs i:nth-child(3) { width: 30vw; height: 30vw; left: 30vw; bottom: -14vw; background: #c9829a; opacity: .45; animation: blob3 20s ease-in-out infinite alternate; }
.blobs i:nth-child(4) { width: 18vw; height: 18vw; right: 22vw; bottom: 0; background: #fff3ea; animation: blob1 12s ease-in-out infinite alternate-reverse; }
@keyframes blob1 { to { transform: translate(14vw, 8vw) scale(1.2); } }
@keyframes blob2 { to { transform: translate(-12vw, 10vw) scale(.85); } }
@keyframes blob3 { to { transform: translate(-10vw, -8vw) scale(1.3); } }
.c-ring {
  position: absolute; right: -8vw; top: 50%; z-index: -1;
  width: min(60vw, 720px); aspect-ratio: 1; translate: 0 -50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .08), 0 0 0 120px rgba(255, 255, 255, .05);
  animation: rotate 60s linear infinite;
}
.c-ring::before {
  content: ""; position: absolute; top: 12%; left: 12%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--laser); box-shadow: 0 0 20px 6px rgba(255, 61, 46, .5);
}
.c-hero-in { position: relative; }
.c-hero h1 {
  font-size: clamp(46px, 8vw, 118px); font-weight: 800; letter-spacing: -.05em; line-height: .95;
  margin: 22px 0 22px; color: var(--ink); max-width: 13ch;
}
.c-hero h1 em { color: var(--copper); font-size: 1.1em; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(60%) rotate(8deg); filter: blur(8px); animation: chIn .9s var(--ease) forwards; }
@keyframes chIn { to { opacity: 1; transform: none; filter: none; } }
.c-lead { font-size: clamp(16px, 1.4vw, 20px); color: #4a3a36; max-width: 560px; }
.contact-page .c-hero .reveal-up { animation: fadeUp 1s .1s var(--ease) forwards; transition: none; }
.contact-page .c-hero .c-lead.reveal-up { animation-delay: .7s; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 700;
}
.sdot { width: 9px; height: 9px; border-radius: 50%; background: #a39490; flex: none; }
.status.is-open .sdot { background: #25c26e; animation: pulseG 1.8s infinite; }
.status.mini { padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 15px; gap: 8px; }

/* ---------- основна решетка ---------- */
.c-main { position: relative; z-index: 2; margin-top: clamp(-150px, -12vw, -100px); padding-bottom: clamp(50px, 7vw, 90px); }
.c-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 24px; align-items: start; }
.c-grid > *, .c-form, .stage { min-width: 0; }

/* инфо карти */
.c-info { display: grid; gap: 14px; }
.i-card {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 18px;
  border-radius: 22px;
  background: rgba(255, 252, 249, .82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 24px 50px -30px rgba(75, 43, 57, .45);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .9s var(--ease);
  overflow: hidden; isolation: isolate;
}
.i-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad); opacity: 0; transition: opacity .5s;
}
.i-card:not(.i-hours):hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .9) inset, 0 30px 60px -30px rgba(176, 100, 63, .6); }
.i-card:not(.i-hours):hover::before { opacity: .12; }
.i-ic {
  flex: none; width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--ink);
  transition: transform .6s var(--ease), background .4s;
}
.i-card:hover .i-ic { transform: rotate(-8deg) scale(1.06); background: var(--copper); }
.i-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-phone .i-ic svg { fill: #fff; stroke: none; }
.i-phone .i-ic { animation: ringing 4s 1.5s infinite; }
@keyframes ringing { 0%, 86%, 100% { transform: none; } 88% { transform: rotate(-12deg); } 90% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 94% { transform: rotate(6deg); } }
.i-txt { display: grid; min-width: 0; flex: 1; }
.i-txt small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.i-txt b { font-size: 18px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.i-txt span { font-size: 13.5px; color: var(--muted); }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.copy, .go {
  position: relative; z-index: 2;
  flex: none; width: 42px; height: 42px; border-radius: 12px; border: 0;
  display: grid; place-items: center;
  background: rgba(28, 18, 22, .06);
  transition: background .3s, transform .4s var(--ease);
}
.copy:hover { background: var(--ink); transform: scale(1.08); }
.copy svg, .go svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.copy:hover svg { stroke: #fff; }
.i-card:hover .go { background: var(--ink); transform: rotate(45deg); }
.i-card:hover .go svg { stroke: #fff; }
.copy.ok { background: #25c26e; }
.copy.ok svg { stroke: #fff; }

.i-hours { display: block; }
.h-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.week { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.week li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px; border-radius: 12px; font-size: 14.5px;
  transition: background .4s;
}
.week li b { font-weight: 700; }
.week li.off { color: var(--muted); }
.week li.today { background: var(--ink); color: #fff; position: relative; }
.week li.today span::after { content: "днес"; margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--grad); }

/* ---------- формата ---------- */
.c-form-wrap {
  position: relative;
  border-radius: 30px;
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .3));
  box-shadow: 0 50px 100px -40px rgba(75, 43, 57, .55);
  isolation: isolate;
}
.c-form-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 0;
  background: conic-gradient(from var(--a), transparent 0 70%, #f6cfae 80%, #ff3d2e 86%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.c-form-glow {
  position: absolute; inset: 20% 10% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 152, 113, .5), transparent 70%);
  filter: blur(40px);
}
.c-form {
  position: relative; z-index: 1;
  border-radius: 29px;
  background: rgba(255, 252, 249, .94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: clamp(24px, 3.4vw, 44px);
  min-height: 560px;
  display: flex; flex-direction: column;
}

.steps { margin-bottom: 28px; }
.steps-bar { height: 4px; border-radius: 4px; background: rgba(28, 18, 22, .08); overflow: hidden; }
.steps-bar span { display: block; height: 100%; width: 33.33%; border-radius: inherit; background: var(--grad); transition: width .8s var(--ease); box-shadow: 0 0 12px rgba(227, 152, 113, .8); }
.steps ol { list-style: none; margin: 14px 0 0; padding: 0; display: flex; justify-content: space-between; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); transition: color .4s; }
.steps li i {
  font-style: normal; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px;
  background: rgba(28, 18, 22, .06); transition: background .4s, color .4s, transform .5s var(--ease);
}
.steps li.on { color: var(--ink); }
.steps li.on i { background: var(--ink); color: #fff; transform: scale(1.1); }
.steps li.done i { background: var(--copper); color: #fff; }

.stage { position: relative; flex: 1; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: stepIn .7s var(--ease); }
.step.back-in { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.step legend { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; padding: 0; }
.hint { color: var(--muted); font-size: 14.5px; margin: 8px 0 22px; }

/* чипове */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; border: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(28, 18, 22, .12);
  font-size: 14.5px; font-weight: 700;
  opacity: 0; transform: translateY(12px) scale(.96);
  animation: chipPop .55s var(--ease) forwards;
  transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease);
  overflow: hidden; isolation: isolate;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--copper); transform: translateY(-2px); }
.chip .tick {
  width: 0; height: 18px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: #fff; flex: none;
  transition: width .4s var(--ease);
}
.chip .tick svg { width: 12px; height: 12px; fill: none; stroke: var(--copper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .4s; }
.chip[aria-pressed="true"]:hover::before { opacity: 1; }
.chip[aria-pressed="true"] .tick { width: 18px; }
.chip.promo-chip { box-shadow: inset 0 0 0 1.5px var(--laser); }
.chip.promo-chip::after { content: "промо"; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--laser); color: #fff; }
.chip .rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: rip .6s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(4); opacity: 0; } }
@keyframes chipPop { to { opacity: 1; transform: none; } }

/* дни и части от деня */
.days {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 18px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.day {
  flex: none; scroll-snap-align: start;
  width: 76px; padding: 12px 0 10px; border-radius: 18px; border: 0;
  display: grid; justify-items: center; gap: 2px;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(28, 18, 22, .1);
  opacity: 0; animation: chipPop .5s var(--ease) forwards;
  transition: background .35s, color .35s, transform .35s var(--ease), box-shadow .35s;
}
.day small { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); transition: color .35s; }
.day b { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.day span { font-size: 11.5px; color: var(--muted); transition: color .35s; }
.day:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--copper); }
.day[aria-checked="true"] { background: var(--ink); color: #fff; box-shadow: 0 16px 30px -14px rgba(28, 18, 22, .6); transform: translateY(-3px); }
.day[aria-checked="true"] small, .day[aria-checked="true"] span { color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
  display: grid; gap: 2px; padding: 14px 14px; border-radius: 16px; cursor: pointer;
  background: #fff; box-shadow: inset 0 0 0 1.5px rgba(28, 18, 22, .1);
  transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease);
}
.slot b { font-size: 15px; }
.slot small { font-size: 12.5px; color: var(--muted); }
.slot:hover span { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--copper); }
.slot input:checked + span { background: var(--grad); color: #fff; box-shadow: 0 16px 30px -16px rgba(176, 100, 63, .9); }
.slot input:checked + span small { color: rgba(255, 255, 255, .85); }
.slot input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

/* полета с плаващ етикет */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin: 20px 0 14px; }
.field { position: relative; }
.field.full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; border: 0; outline: none;
  padding: 26px 18px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(28, 18, 22, .1);
  font: inherit; font-size: 16px; color: var(--text);
  transition: box-shadow .3s;
  resize: vertical;
}
.field textarea { min-height: 96px; }
.field label {
  position: absolute; left: 18px; top: 18px;
  font-size: 15.5px; color: var(--muted); pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-10px) scale(.78); color: var(--copper); font-weight: 700;
}
.field .ln {
  position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transition: transform .5s var(--ease);
}
.field input:focus ~ .ln, .field textarea:focus ~ .ln { transform: scaleX(1); }
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 1.5px rgba(176, 100, 63, .5), 0 14px 30px -20px rgba(176, 100, 63, .6); }
.field.bad input, .field.bad textarea { box-shadow: inset 0 0 0 1.5px var(--laser); }
.field.good input { box-shadow: inset 0 0 0 1.5px rgba(37, 194, 110, .6); }
.err { color: #d8321f; font-size: 13px; font-weight: 600; min-height: 0; margin-top: 6px; }
.err:empty { display: none; }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: #5a4a46; cursor: pointer; }
.consent input { position: absolute; opacity: 0; }
.consent .box {
  flex: none; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; margin-top: 1px;
  box-shadow: inset 0 0 0 1.5px rgba(28, 18, 22, .25);
  background: #fff; transition: background .3s, box-shadow .3s;
}
.consent .box svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease) .05s; }
.consent input:checked + .box { background: var(--copper); box-shadow: none; }
.consent input:checked + .box svg { stroke-dashoffset: 0; }
.consent input:focus-visible + .box { outline: 2px solid var(--copper); outline-offset: 2px; }
.consent a { color: var(--copper); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* навигация на формата */
.f-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.f-nav [hidden] { display: none; }
.f-nav #nextBtn, .f-nav .send { margin-left: auto; }
.send .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rotate .8s linear infinite; }
.send svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.send.loading { pointer-events: none; }
.send.loading .spin { display: block; }
.send.loading svg { display: none; }
.f-error { color: #d8321f; font-weight: 600; font-size: 14px; margin-top: 12px; text-align: right; }
.f-error:empty { display: none; }

/* успех */
.done { text-align: center; padding: 30px 0 10px; position: relative; animation: stepIn .7s var(--ease); }
.done[hidden] { display: none; }
.check { width: 110px; height: 110px; margin: 0 auto 22px; display: block; }
.check circle { fill: none; stroke: var(--copper); stroke-width: 3; stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .9s var(--ease) forwards; }
.check path { fill: none; stroke: var(--copper); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.04em; margin-bottom: 10px; }
.done p { color: var(--muted); max-width: 420px; margin: 0 auto 26px; }
.done-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.burst { position: absolute; left: 50%; top: 85px; width: 0; height: 0; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; left: -4px; top: -4px; animation: burst 1.2s var(--ease) forwards; }
@keyframes burst { from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(.4); opacity: 0; } }
.c-form.sent .steps, .c-form.sent .f-nav { display: none; }

/* ---------- карта ---------- */
.c-map-sec { padding-bottom: clamp(60px, 8vw, 110px); }
.c-map { position: relative; height: clamp(340px, 42vw, 480px); border-radius: 30px; overflow: hidden; background: var(--peach); box-shadow: var(--shadow); }
.c-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.75) sepia(.25) saturate(1.2) contrast(.98); transition: filter .6s; }
.c-map:hover iframe { filter: none; }
.map-pin { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.map-pin span { position: absolute; width: 120px; height: 120px; margin: -60px; border-radius: 50%; border: 2px solid var(--copper); animation: ring 2.4s infinite; }
.map-card {
  position: absolute; left: 20px; bottom: 20px; right: auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 12px 12px 16px; border-radius: 20px;
  background: rgba(255, 252, 249, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.map-card img { width: 52px; height: auto; }
.map-card b { display: block; font-size: 16px; }
.map-card div span { display: block; font-size: 13px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  transform: translate(-50%, 150%); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- мобилни ---------- */
@media (max-width: 1000px) {
  .c-grid { grid-template-columns: 1fr; }
  .c-form-wrap { order: -1; }
  .c-info { grid-template-columns: 1fr 1fr; }
  .i-hours { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .c-hero { padding-bottom: 130px; }
  .c-hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .c-ring { width: 90vw; right: -40vw; top: 30%; }
  .c-main { margin-top: -100px; }
  .c-info { grid-template-columns: 1fr; gap: 10px; }
  .i-card { padding: 14px; gap: 14px; }
  .i-ic { width: 46px; height: 46px; border-radius: 14px; }
  .i-txt b { font-size: 16.5px; }
  .c-form { min-height: 0; padding: 22px 18px; }
  .c-form-wrap { border-radius: 26px; }
  .c-form { border-radius: 25px; }
  .steps li { font-size: 12px; }
  .chip { padding: 11px 15px; font-size: 14px; }
  .slots { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .f-nav .btn { flex: 1; justify-content: center; }
  .map-card { left: 12px; right: 12px; bottom: 12px; }
  .map-card div { flex: 1; min-width: 0; }
  .map-card img { display: none; }
}
.i-txt .status span { font-size: inherit; color: inherit; }
