/* Modernizacja widoku oferty — reguły ograniczone do strony z ogłoszeniem. */
:root {
  --ink: #17384b;
  --muted: #607685;
  --green: #2d9d58;
  --green-dark: #207943;
  --green-soft: #ecf8ef;
  --facebook: #1877f2;
  --surface: #ffffff;
  --page: #f3f7f4;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif;
}

.mainheader {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 16px rgba(23, 56, 75, .08);
}

.navbar.navbar-default {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.navbar-default .navbar-nav > li > a,
.btn-menu {
  color: #345060;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--green-dark);
  background: var(--green-soft);
}

main.page-row {
  padding: 34px 0 52px;
}

.offer-hero {
  display: flex;
  align-items: center;
  gap: 34px;
  max-width: 980px;
  margin: 0 auto 34px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid rgba(45, 157, 88, .14);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(23, 56, 75, .10);
}

.offer-hero__image {
  display: block;
  flex: 0 1 390px;
  width: min(43%, 390px);
  min-height: 230px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(23, 56, 75, .14);
}

.offer-hero__content {
  flex: 1 1 420px;
}

.offer-hero__eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.offer-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.12;
}

.offer-hero__content > p:not(.offer-hero__eyebrow) {
  margin: 13px 0 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.offer-cta {
  margin-top: 0;
}

.offer-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.offer-actions .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.offer-actions .btn:hover,
.offer-actions .btn:focus {
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 56, 75, .18);
  transform: translateY(-2px);
}

.offer-actions .btn:focus {
  outline: 3px solid rgba(24, 119, 242, .25);
  outline-offset: 2px;
}

.offer-actions__primary,
.offer-actions .btn-ziel.offer-actions__primary {
  background: linear-gradient(135deg, #36ad64, var(--green-dark));
}

.offer-actions__facebook {
  background: var(--facebook);
}

.offer-actions__combined {
  display: block !important;
  box-sizing: border-box !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  font-size: 15px !important;
  line-height: 1.4 !important;
  white-space: normal;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.offer-actions__login-line {
  white-space: normal;
}

.offer-actions__facebook:hover,
.offer-actions__facebook:focus {
  background: #1264ce;
}

.offer-actions i {
  margin-right: 8px;
  font-size: 17px;
}

.offer-actions__note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.titlepodstrona {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 700;
  line-height: 1.22;
  text-align: center;
}

main .well {
  padding: 30px;
  border: 1px solid rgba(23, 56, 75, .10);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 56, 75, .06);
}

main .well hr {
  margin: 18px 0;
  border-top-color: #e7edf0;
}

.offer-cta--details {
  margin-top: 24px;
  padding: 18px;
  background: var(--green-soft);
  border-radius: 12px;
}

@media (max-width: 767px) {
  .mainheader .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .navbar-header {
    min-height: 62px;
  }

  .navbar-toggle {
    margin-top: 14px;
  }

  .navbar-collapse {
    border-top-color: #e5ece8;
  }

  .navbar-default .navbar-nav > li > a {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  main.page-row {
    padding: 16px 0 32px;
  }

  .offer-hero {
    display: block;
    margin: 0 10px 26px;
    padding: 16px;
    border-radius: 16px;
  }

  .offer-hero__image {
    width: 100%;
    min-height: 180px;
    max-height: 210px;
    margin-bottom: 20px;
  }

  .offer-hero h1 {
    font-size: 30px;
  }

  .offer-hero__content > p:not(.offer-hero__eyebrow) {
    margin: 10px 0 19px;
    font-size: 15px;
  }

  .offer-actions {
    flex-direction: column;
  }

  .offer-actions .btn {
    flex-basis: auto;
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }

  .offer-actions__combined {
    display: block !important;
    width: calc(100% - 2px) !important;
    max-width: calc(100% - 2px) !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 11px 8px !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word;
  }

  .offer-actions__login-line {
    display: block;
    margin-top: 2px;
  }

  .titlepodstrona {
    margin: 0 14px 18px;
    font-size: 25px;
  }

  main .well {
    margin-right: 10px;
    margin-left: 10px;
    padding: 20px 16px;
    border-radius: 14px;
  }

  .offer-cta--details {
    padding: 14px;
  }

  .daneoferty,
  .ofertaopiss,
  .opisoferty {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .offer-hero h1 {
    font-size: 27px;
  }

  .offer-actions .btn {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }
}
