:root {
  --tm-green: #008a5b;
  --tm-green-dark: #006244;
  --tm-bg: #f5f8f7;
  --tm-text: #1f2933;
  --tm-muted: #6b7280;
  --tm-accent: #ffcc66;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.12);
}

/* RESET / BAZA */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: linear-gradient(90deg, #ffffff 0%, #f5f8f7 40%, #e9f1ee 100%);
  color: var(--tm-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

/* OFFSET POD STICKY MENU – już nie sticky, ale offset przy kotwicach zostawiamy */

section[id] {
  scroll-margin-top: 15px;
}


/* MAŁE UTILSY */

.advisor-instagram {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--tm-muted);
}

.social-link {
  font-weight: 600;
  color: var(--tm-green-dark);
}

.social-link:hover {
  text-decoration: underline;
}

/* =======================================
   HEADER
   ======================================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  padding-top: 8px;
}

.brand-block {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-logo {
  height: 60px;
  width: auto;
  opacity: 0.95;
  margin-left: 0;
}

@media (min-width: 901px) {
  .header-logo {
    height: 70px;
    margin-left: 140px;
  }
}

/* Panel kontaktowy po prawej */

.header-contact {
  font-size: 0.85rem;
  color: var(--tm-muted);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 430px;
  text-align: left;
  margin-left: auto;
}

.contact-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tm-text);
  margin-bottom: 2px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

/* linki kontaktowe */

.contact-link {
  font-weight: 500;
  color: var(--tm-green-dark);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.contact-link::before {
  content: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.contact-sep {
  color: rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
}

.header-contact .contact-link {
  white-space: nowrap;
}

/* =======================================
   NAV
   ======================================= */

.main-nav {
  position: static; /* JUŻ NIE STICKY */
  z-index: 20;
  margin: 8px 0 24px;
  background: rgba(245, 248, 247, 0.94);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 6px 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.main-nav a {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: var(--radius-lg);
  color: var(--tm-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--tm-green);
  color: #ffffff;
}

.main-nav .nav-cta {
  font-weight: 600;
  border: 1px solid rgba(0, 138, 91, 0.4);
  background: rgba(0, 138, 91, 0.06);
  color: var(--tm-green-dark);
}

.nav-cta:hover {
  background: var(--tm-green);
  color: #ffffff;
}

/* =======================================
   HERO
   ======================================= */

.hero {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--tm-green-dark);
  line-height: 1.15;
  margin-bottom: 10px;
  max-width: 520px;

  /* mocniejszy, ale nadal subtelny cień */
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 4px 14px rgba(0, 0, 0, 0.18);
}

.hero h1 .accent {
  color: var(--tm-accent);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--tm-muted);
  margin-bottom: 18px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tm-green), #00a86d);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--tm-green-dark), #008f60);
  transform: translateY(-1px);
}

.btn-outline {
  background: #ffffff;
  color: var(--tm-green-dark);
  border-color: rgba(148, 163, 184, 0.7);
}

.btn-outline:hover {
  background: var(--tm-bg);
}

.hero-note {
  font-size: 0.85rem;
  color: var(--tm-muted);
}

/* Prawa część z gradientem */

.hero-right {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: radial-gradient(
    circle at 50% 40%,
    #000000 0%,       /* głęboka czerń */
    #0a0f12 35%,      /* ciemny grafit */
    #11181f 60%,      /* głęboki grafit */
    #122a25 85%,      /* delikatny TM-teal, bardzo subtelny */
    #0e1a1a 100%      /* końcówka chłodna i ciemna */
  );

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.45));
}

.hero-right::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(0, 255, 170, 0.25) 0%,
    rgba(0, 255, 170, 0.08) 40%,
    transparent 70%
  );
  filter: blur(18px);
  pointer-events: none;
}

/* =======================================
   SEKCJE / GRIDY
   ======================================= */

section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tm-green-dark);
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffe9b3, var(--tm-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #7a4a00;
  flex-shrink: 0;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--tm-muted);
  margin-bottom: 22px;
  max-width: 720px;
}

.subheading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 26px 0 8px;
  color: var(--tm-green-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.subheading .section-icon {
  width: 26px;
  height: 26px;
  font-size: 0.9rem;
}

/* GRID CARDS */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

#why-tm7 .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tm-text);
}

.card p {
  font-size: 0.9rem;
  color: var(--tm-muted);
}

.card img {
  border-radius: 14px;
  margin-bottom: 10px;
}

.card img.tall {
  height: 320px;
  width: 100%;
  object-fit: cover;
}

.image-caption {
  font-size: 0.8rem;
  color: var(--tm-muted);
  margin-top: 4px;
}

/* STEPS */

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--tm-green);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ADVISOR */

.advisor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.advisor-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 18px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.advisor-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tm-text);
}

.advisor-card p {
  font-size: 0.9rem;
  color: var(--tm-muted);
  margin-bottom: 10px;
}

.advisor-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--tm-green-dark);
}

.advisor-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.advisor-list li::before {
  content: "•";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--tm-green);
}

/* Wypunktowania w advisor / why-book / demo-advisor / current-offer */

#advisor ul,
#why-book ul,
#demo-advisor ul,
#current-offer ul {
  list-style: none;
  margin: 8px 0 0;
  padding-left: 0;
}

#advisor ul li,
#why-book ul li,
#demo-advisor ul li,
#current-offer ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--tm-green-dark);
  margin-bottom: 4px;
}

#advisor ul li::before,
#why-book ul li::before,
#demo-advisor ul li::before,
#current-offer ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 138, 91, 0.15);
  box-shadow: inset 0 0 0 2px var(--tm-green);
  transform: translateY(-50%);
}

/* TESTIMONIALS */

.testimonials-section {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.testimonial-card {
  font-size: 0.9rem;
  color: var(--tm-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimonial-quote {
  position: relative;
  padding-left: 18px;
}

.testimonial-quote::before {
  content: "“";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 1.6rem;
  color: var(--tm-green);
}

.testimonial-name {
  font-weight: 600;
  color: var(--tm-text);
  font-size: 0.9rem;
}

.testimonial-meta {
  font-size: 0.8rem;
  color: var(--tm-muted);
}

/* CONTACT CTA */

.contact {
  background: radial-gradient(circle at top left, #00a46d, #004934);
  border-radius: 24px;
  padding: 28px 24px 26px;
  color: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at bottom right,
    rgba(255, 255, 255, 0.12),
    transparent 55%
  );
  opacity: 0.9;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact p {
  font-size: 0.95rem;
}

.contact-details {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
}

.contact-details div {
  margin-bottom: 4px;
}

.contact-details span {
  font-weight: 600;
}

.contact-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-contact-primary {
  background: linear-gradient(135deg, #25d366, #1ba955);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.btn-contact-primary:hover {
  background: linear-gradient(135deg, #1fa653, #168846);
}

.btn-contact-outline {
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
  background: transparent;
}

.btn-contact-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* FAQ */

.faq-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 10px;
}

.faq-question {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--tm-muted);
}

/* FOOTER */

footer {
  margin-top: 30px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  color: var(--tm-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  background: #ffffff;
}

footer span {
  flex: 1 1 auto;
}

footer a {
  flex: 0 0 auto;
  margin-left: auto;
}

footer img {
  height: 26px;
  width: auto;
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--tm-green-dark);
  z-index: 30;
  text-decoration: none;
}

.back-to-top:hover {
  background: var(--tm-green);
  color: #ffffff;
}

/* =======================================
   SEKCJA: AKTUALNE OFERTY TM7
   ======================================= */

#current-offer {
  margin-bottom: 48px;
}

#current-offer .offer-intro {
  margin-bottom: 24px;
}

#current-offer .offer-grid {
  align-items: stretch;
}

#current-offer .offer-card {
  display: flex;
  flex-direction: column;
}

/* Obrazy w kartach ofert – pełny obraz + zaokrąglone rogi */
#current-offer .offer-image {
  display: block;
  width: 100%;
  height: auto;          /* cały obraz, bez przycinania */
  border-radius: 18px;   /* wyraźne zaokrąglenie */
  margin-bottom: 12px;
}

/* Stopka sekcji pod kartami */
#current-offer .offer-bottom {
  margin-top: 36px;
}

#current-offer .offer-bottom .section-subtitle {
  max-width: 820px;
}

/* =======================================
   RESPONSIVE
   ======================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
  }

  .main-nav {
    border-radius: 14px;
  }

  #why-tm7 .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-right {
    min-height: auto;
    padding: 16px 12px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-right img {
    width: 100%;
    height: auto;
    max-width: 360px;
    object-fit: contain;
  }
}

@media (min-width: 801px) {
  .advisor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .brand-block {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }

  .header-logo {
    height: 36px;
    margin-left: 0;
  }

  .header-contact {
    align-items: flex-start;
    text-align: left;
    border-radius: 16px;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .contact-row {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }

  .page {
    padding-inline: 14px;
  }

  .hero {
    padding: 20px 16px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .back-to-top {
    right: 10px;
    bottom: 12px;
  }

  #why-tm7 .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card img,
  .card img.tall {
    height: auto;
    max-height: none;
    object-fit: contain;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer a {
    margin-left: 0;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .main-nav .nav-extra {
    display: none;
  }

  .main-nav .nav-cta {
    background: var(--tm-green);
    color: #ffffff;
    border-color: transparent;
  }
}

@media (max-width: 900px) and (orientation: landscape) {
  header {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .brand-block {
    flex: 0 0 auto;
  }

  .header-logo {
    margin-left: 0;
    height: 44px;
  }

  .header-contact {
    flex: 1 1 auto;
    max-width: 520px;
    margin-left: auto;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer a {
    margin-left: 0;
  }
}

/* Elegant fallback for offer loading error */
.offer-fallback {
  background: #ffffff;
  border: 1px solid rgba(0, 138, 91, 0.25);
  padding: 18px 20px;
  border-radius: 16px;
  color: var(--tm-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  max-width: 720px;
  margin: 20px auto;
  text-align: center;
}

.offer-fallback strong {
  color: var(--tm-text);    /* 🔥 zachowujemy mocniejsze wyróżnienie */
}

.offer-fallback-link {
  color: var(--tm-green-dark);
  font-weight: 600;
  text-decoration: underline;
}

.offer-fallback-link:hover {
  color: var(--tm-green);
}

@media (min-width: 1024px) {
  .hero-right img {
    width: auto;
    height: 150%;       /* POWIĘKSZENIE obrazka */
    object-fit: contain;
    transform: scale(1.40);  /* delikatne powiększenie */
  }
}

/* pojedynczy płatek */
.snowflake {
  position: absolute;
  top: -12%;
  color: #ffffff;
  font-size: 1.1rem;           /* bazowy rozmiar, JS i tak nadpisuje */
  opacity: 0.9;
  pointer-events: none;
  animation: snow-fall linear infinite;
}

/* ruch płatków z góry na dół z KOŁYSANIEM jak liść na wietrze
   – liczymy w % wysokości hero, nie vh ekranu */
@keyframes snow-fall {
  0% {
    top: -12%;
    transform: translateX(0);
  }
  20% {
    top: 10%;
    transform: translateX(12px);
  }
  40% {
    top: 40%;
    transform: translateX(-18px);
  }
  60% {
    top: 70%;
    transform: translateX(14px);
  }
  80% {
    top: 100%;
    transform: translateX(-12px);
  }
  100% {
    top: 118%;
    transform: translateX(6px);
  }
}
