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

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-red: #e82424;
  --color-green: #3aaf3a;
  --color-header-bg: #ffffff;
  --color-header-border: #e0e0e0;
  --font-main: "Arial", sans-serif;
  --header-height: 60px;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background: var(--color-white);
  color: var(--color-black);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-header-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 16px;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* --- Hamburger / MENU toggle --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 6px;
  color: #333;
}

.nav-toggle:hover {
  opacity: 0.7;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 2px;
  color: #333;
}

/* Animacja otwartego menu */
.nav-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Nawigacja mobilna (rozwijana) --- */
.site-nav {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--color-white);
  border-top: 1px solid var(--color-header-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.site-nav.is-open {
  max-height: 300px;
}

.site-nav ul {
  padding: 8px 0;
}

.site-nav ul li a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}

.site-nav ul li a:hover {
  background: #f7f7f7;
}

/* --- Ikony akcji (mail + lupa) --- */
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #333;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: #f0f0f0;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* Czerwona kropka powiadomień przy ikonie maila */
.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
  border: 1.5px solid var(--color-white);
}

/* --- Pasek wyszukiwania --- */
.search-bar {
  display: none;
  align-items: center;
  padding: 8px 16px;
  border-top: 1px solid var(--color-header-border);
  background: #fafafa;
}

.search-bar.is-open {
  display: flex;
}

.search-bar input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  border-color: #aaa;
}

.search-close {
  margin-left: 10px;
  font-size: 16px;
  color: #555;
  padding: 4px 8px;
  transition: color 0.15s;
}

.search-close:hover {
  color: var(--color-black);
}

/* ============================================================
   MAIN
   ============================================================ */
.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ============================================================
   HERO SECTION – nagłówek
   ============================================================ */
.hero-section {
  padding: 28px 0 20px;
  text-align: center;
}

.hero-heading {
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-black);
  margin-bottom: 20px;
}

.hero-heading .highlight {
  display: inline;
  background: var(--color-red);
  color: var(--color-white);
  padding: 0 4px;
  /* łamie się razem z tekstem */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  line-height: 1.45;
}

/* ============================================================
   VIDEO SECTION
   ============================================================ */

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Overlay wideo --- */
.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: opacity 0.4s;
}

.video-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Zielone pudełko z informacją */
.overlay-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(58, 175, 57, 0.8);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  border-radius: 8px;
  padding: 16px 28px;
  min-width: 200px;
  text-align: center;
}

.overlay-started {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  font-weight: 500;
}

.overlay-click {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 500;
}

/* Przycisk odmutowania – czerwone koło z ikoną głośnika */
.unmute-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-red);
  border-radius: 50%;
  transition: transform 0.15s, background 0.15s;
}

.unmute-btn:hover {
  background: #c41a1a;
  transform: scale(1.08);
}

.unmute-btn svg {
  width: 30px;
  height: 30px;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
}

.cta-button {
  display: block;
  width: 100%;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 4px;
  text-align: center;
}
.phone__button {
  display: block;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 4px;
  text-align: center;
}
.phone__button:hover {
  cursor: pointer;
  background: #c41a1a;
  transition: transform 0.15s, background 0.15s;
}
.phone__button--open {
  display: none;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  font-size: 18px;
  text-align: center;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 12px 16px;
  background: var(--color-red);
  color: var(--color-white);
  border-radius: 4px;
}
.underline-red {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 3px;
  color: var(--color-red);
}

/* ============================================================
   SEKCJA KOMENTARZY
   ============================================================ */
.comments-section {
  background: var(--color-white);
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 0 8px;
  margin-bottom: 200px;
}

.comments-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e4e4e4;
  color: var(--color-black);
}

.comments-list {
  list-style: none;
}

/* Pojedynczy komentarz */
.comment {
  display: flex;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
  border-bottom: none;
}

/* Avatar – placeholder szary okrąg, zamieniony na zdjęcie gdy dostępne */
.comment-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: #c8c8c8;
  position: relative;
}

.comment-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='17' r='8' fill='%23a0a0a0'/%3E%3Cellipse cx='22' cy='38' rx='14' ry='10' fill='%23a0a0a0'/%3E%3C/svg%3E")
    center/cover no-repeat;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

/* Prawa kolumna komentarza */
.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-author {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a5bb5;
  margin-bottom: 4px;
}

/* Bąbelek z tekstem komentarza */
.comment-text {
  display: inline-block;
  background: #f0f2f5;
  border-radius: 18px;
  padding: 8px 14px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1c1e21;
  margin-bottom: 6px;
}

/* Linki akcji: Podoba mi się / Reagować / czas */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.action-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #65676b;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s;
}

.action-link:hover {
  color: #1a5bb5;
  text-decoration: underline;
}

.comment-time {
  font-size: 0.78rem;
  color: #65676b;
}

/* Ikony reakcji + liczba */
.comment-reactions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reactions-pill {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1px solid #e4e4e4;
  border-radius: 20px;
  padding: 2px 6px 2px 3px;
  gap: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.react-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
}

/* Drugie kółko lekko nachodzi na pierwsze */
.react-heart {
  margin-left: -4px;
}

.reactions-count {
  font-size: 0.82rem;
  color: #65676b;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  align-items: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-link {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: #666;
  text-decoration: underline;
}
.footer-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: #666;
}
/* ============================================================
   CALLPAGE
   ============================================================ */

.callpage-section {
  padding: 28px 0 20px;
  text-align: center;
  margin-bottom: 200px;
}
.line-through {
  text-decoration: line-through;
}
.divider {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
}
.text {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 15px;
}
/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 480px) {
  .overlay-box {
    padding: 12px 18px;
    min-width: 160px;
  }

  .unmute-btn {
    width: 48px;
    height: 48px;
  }

  .unmute-btn svg {
    width: 24px;
    height: 24px;
  }

  .comment {
    padding: 12px 12px 8px;
    gap: 8px;
  }

  .comment-avatar {
    width: 38px;
    height: 38px;
  }
}
@media (min-width: 768px) {
  .phone__button {
    font-size: 24px;
  }
  .phone__button--open {
    font-size: 24px;
  }
}
