/* ============================================================
   BASE / RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--dark-1000);   /* #0F0F0F — базовый фон страницы (под блоками) */
  color: var(--light-1000);
  font-family: var(--ff-body);
  font-weight: 400;
  letter-spacing: var(--ls-body);   /* тонкий текст (Geologica) = −6% трекинг по умолчанию */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Иконка-глиф: одноцветная SVG как маска, цвет берётся из `color`
   (позволяет красить одну иконку в разные цвета по контексту). */
.icon {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-position: center;          mask-position: center;
  -webkit-mask-size: contain;             mask-size: contain;
  -webkit-mask-repeat: no-repeat;         mask-repeat: no-repeat;
}

/* ░░░ A2HS — «Dodaj na ekran główny» (баннер + модалка инструкции, только mobile) ░░░ */
.a2hs {
  position: fixed; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 1200; margin: 0 auto; max-width: 360px;
  display: flex; flex-direction: column;
  transform: translateY(-160%); opacity: 0;
  transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .42s ease;
}
.a2hs.is-in { transform: translateY(0); opacity: 1; }
.a2hs[hidden] { display: none; }
@media (min-width: 769px) { .a2hs, .a2hs-modal { display: none !important; } }

.a2hs__card {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #141414; border-radius: 16px; padding: 12px;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.7);
}
.a2hs__icon {
  width: 48px; height: 48px; flex: none; border-radius: 13px;
  overflow: hidden; display: grid; place-items: center;
  border: .5px solid rgba(255,255,255,.5);
}
.a2hs__icon img { width: 100%; height: 100%; object-fit: cover; }
.a2hs__tx { min-width: 0; }
.a2hs__title { margin: 0; font-family: var(--ff-body); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.a2hs__sub { margin: 2px 0 0; font-family: var(--ff-body); font-weight: 400; font-size: 14px; line-height: 20px; color: rgba(255,255,255,.6); }
.a2hs__sub b { color: #fff; font-weight: 700; }
.a2hs__close {
  position: absolute; top: 4px; right: 4px; left: auto; z-index: 2;
  width: 24px; height: 24px; flex: none;
  border-radius: 100px; background: rgba(255,255,255,.08); border: 0;
  display: grid; place-items: center; color: #fff; cursor: pointer;
}
.a2hs__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 12px; height: 40px; background: #fff; color: #0f0f0f;
  border: 0; border-radius: 0 0 16px 16px; cursor: pointer;
  font-family: var(--ff-body); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .01em; text-transform: uppercase;
}
.a2hs__cta:active { background: #ececec; }
.a2hs__arrow { display: inline-flex; }

/* модалка инструкции — на базе .modal («Umów wizytę»): только свой заголовок + плашки-шаги */
#a2hs-modal { z-index: 1300; }                          /* выше плашки (z1200) */
#a2hs-modal .modal__panel { gap: 24px; }
@media (min-width: 769px) { #a2hs-modal .modal__panel { max-width: 440px; } }
.a2hs-steps { width: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.a2hs-step {
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  border: 0; border-radius: 16px;
  background-color: #0f0f0f;
  /* пунктир 1:1 с дизайном (бренд-штрих 8/8, скругление 16) — SVG-обводка вместо CSS dashed,
     т.к. браузерный border:dashed даёт мелкие «точки», а не штрихи как в Figma */
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100%25'%20height='100%25'%3E%3Crect%20width='100%25'%20height='100%25'%20rx='16'%20ry='16'%20fill='none'%20stroke='rgba(255,255,255,0.12)'%20stroke-width='2'%20stroke-dasharray='8%208'/%3E%3C/svg%3E"),
    linear-gradient(0deg, rgba(255,255,255,.04), rgba(255,255,255,.04));
  background-repeat: no-repeat; background-size: 100% 100%, 100% 100%;
}
.a2hs-step__head { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0; }
.a2hs-step__n {
  width: 28px; height: 28px; flex: none; border-radius: 100px; background: #fff; color: #000;
  font-family: var(--ff-body); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.a2hs-step__label { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-body); font-weight: 700; font-size: 16px; line-height: 24px; letter-spacing: .02em; color: #fff; }
.a2hs-step__ic { flex: none; }
.a2hs-step__img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* ░░░ Cookie banner (печенюшка слева внизу; разворот по клику) ░░░ */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 1150;   /* в один уровень с плавающей звонилкой (.hero__call: right24 bottom24) */
  display: flex; align-items: center; gap: 16px; padding: 0;
  max-width: calc(100vw - 48px);
  /* свёрнуто = только круглая печенюшка, без подложки/блюра (фон появляется лишь при разворачивании) */
  transform: translateY(24px); opacity: 0;
  transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .42s ease, border-radius .3s ease, background .3s ease;
}
.cookie.is-in { transform: translateY(0); opacity: 1; }
.cookie.is-out { transform: translateY(24px); opacity: 0; }
.cookie[hidden] { display: none; }
.cookie__btn {
  width: 76px; height: 76px; flex: none; padding: 0; cursor: pointer;   /* 1:1 со звонилкой .hero__call */
  border-radius: 100px; background: #fff; border: 4px solid rgba(255,255,255,.06);
  display: grid; place-items: center; color: #0f0f0f;
}
.cookie__ic { width: 28px; height: 28px; display: block; }
.cookie__panel { display: none; align-items: center; gap: 16px; padding-right: 4px; }
/* развёрнуто — сплошная тёмная заливка #0f0f0f (+4% white), как в Figma */
.cookie.is-open { background: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)), #0f0f0f; border-radius: 100px 16px 16px 100px; padding: 0 10px 0 0; }
.cookie.is-open .cookie__panel { display: flex; }
.cookie__tx { width: 525px; max-width: 100%; }            /* десктоп: описание в 2 строки */
.cookie__title { margin: 0; font-family: var(--ff-body); font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: .01em; text-transform: uppercase; color: #fff; }
.cookie__sub { margin: 2px 0 0; font-family: var(--ff-body); font-weight: 400; font-size: 13px; line-height: 18px; letter-spacing: -.05em; color: rgba(255,255,255,.6); }
.cookie__actions { display: flex; gap: 10px; flex: none; }
.cookie__act {
  height: 56px; padding: 0 24px; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-body); font-weight: 700; font-size: 14px; line-height: 24px; letter-spacing: .01em; text-transform: uppercase;
}
.cookie__act--ghost { background: #0f0f0f; color: #fff; }
.cookie__act--accept { background: #fff; color: #0f0f0f; }
.cookie__act:hover { opacity: .88; }
/* мобайл/планшет: вертикальная карточка, печенюшка в левом-нижнем углу */
@media (max-width: 1080px) {
  .cookie { left: 24px; bottom: 24px; gap: 0; }
  .cookie.is-open {
    right: 24px; flex-direction: column-reverse; align-items: flex-start;
    padding: 0; border-radius: 16px 16px 16px 24px;
  }
  .cookie.is-open .cookie__panel { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; gap: 16px; padding: 16px 16px 8px; box-sizing: border-box; }
  .cookie.is-open .cookie__btn { margin: 0 0 14px 14px; }
  .cookie__tx { width: 100%; }
  .cookie__actions { flex-direction: column-reverse; width: 100%; gap: 8px; }
  .cookie__act { width: 100%; height: 40px; padding: 0 16px; }
}
/* печенюшка уменьшается синхронно со звонилкой (.hero__call: 76px → 60px на узких) */
@media (max-width: 672px) {
  .cookie__btn { width: 60px; height: 60px; }
  .cookie__ic { width: 24px; height: 24px; }
}
/* десктоп: фиксированная ширина плашки 949px, текст тянется и ложится в 2 строки */
@media (min-width: 1081px) {
  .cookie.is-open { width: 949px; max-width: calc(100vw - 48px); }
  .cookie.is-open .cookie__panel { flex: 1 1 auto; min-width: 0; }
  .cookie__tx { flex: 1 1 auto; min-width: 0; width: auto; }
}
