﻿@font-face {
  font-family: "KoteDisplay";
  src: url("/assets/fonts/kote-display.otf");
  font-display: swap;
}

@font-face {
  font-family: "KoteBody";
  src: url("/assets/fonts/kote-body.otf");
  font-display: swap;
}

:root {
  --offer-red: rgb(204, 23, 54);
  --offer-paper: rgb(244, 241, 236);
  --offer-text: rgb(32, 32, 32);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--offer-paper);
  color: var(--offer-text);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ghost {
  visibility: hidden;
}

.offer-page {
  overflow-x: clip;
  background: var(--offer-paper);
}

.offer-stage {
  position: relative;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.offer-accent {
  color: var(--offer-red);
  font-family: "Fraunces", serif;
  font-weight: 400;
}

.offer-hero-media {
  position: relative;
  height: 816px;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.offer-hero {
  width: 100%;
  max-width: none;
}

.offer-hero-media img {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  min-width: 100%;
  height: 816px;
  max-width: none;
  transform: translateX(-50%);
  object-fit: cover;
}

.offer-packages {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 80px;
  position: relative;
}

.offer-packages-intro {
  margin-bottom: 60px;
  display: grid;
  grid-template-columns: 410px 1fr;
  column-gap: 50px;
  align-items: start;
}

.offer-title {
  margin: 0;
  color: var(--offer-red);
  font-family: "Fraunces", serif;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 400;
}

.offer-packages-lead {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
}

/* Packages Grid (default for desktop/large screens) */
.responsive-packages-flow {
  width: 100%;
  margin-top: 40px;
}

.responsive-packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}

.responsive-package-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(204, 23, 54, 0.08);
  border-radius: 16px;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
}

.responsive-package-card:hover {
  transform: translateY(-6px);
  border-color: rgba(204, 23, 54, 0.2);
  box-shadow: 0 15px 35px rgba(204, 23, 54, 0.05);
}

.responsive-package-card.featured {
  background: #ffffff;
  border: 2px solid rgb(204, 23, 54);
  box-shadow: 0 10px 30px rgba(204, 23, 54, 0.06);
  padding-top: 48px;
}

.responsive-package-card.featured:hover {
  box-shadow: 0 20px 45px rgba(204, 23, 54, 0.1);
}

.package-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(204, 23, 54);
  color: #ffffff;
  font-family: "Fraunces", serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px 5px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.responsive-package-card.alt-accent {
  background: rgba(230, 201, 183, 0.25);
  border-color: rgba(230, 201, 183, 0.5);
}

.responsive-package-card.alt-accent:hover {
  border-color: rgb(230, 201, 183);
}

.package-card-header {
  margin-bottom: 16px;
}

.package-card-header h3 {
  margin: 0;
  color: var(--offer-red);
  font-family: "Fraunces", serif;
  font-weight: 400;
  line-height: 1.2;
}

.package-card-header h3 span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 4px;
}

.package-card-header h3 strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.package-card-target {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--offer-text);
  margin-bottom: 20px;
  min-height: 72px; /* standard height alignment on desktop */
}

.package-card-target strong {
  font-weight: 600;
}

.package-card-divider {
  height: 1px;
  background: rgba(204, 23, 54, 0.08);
  margin: 0 0 20px 0;
}

.package-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-card-features li {
  font-family: "KoteBody", "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  padding-left: 26px;
}

.package-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.package-card-features li.feature-included {
  color: var(--offer-text);
}

.package-card-features li.feature-included::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgb%28204, 23, 54%29' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M13.055 4.422q0 0.312-0.219 0.531l-6.719 6.719q-0.219 0.219-0.531 0.219t-0.531-0.219l-3.891-3.891q-0.219-0.219-0.219-0.531t0.219-0.531l1.062-1.062q0.219-0.219 0.531-0.219t0.531 0.219l2.297 2.305 5.125-5.133q0.219-0.219 0.531-0.219t0.531 0.219l1.062 1.062q0.219 0.219 0.219 0.531z'/%3E%3C/svg%3E");
}

.package-card-features li.feature-excluded {
  color: rgba(32, 32, 32, 0.35);
}

.package-card-features li.feature-excluded::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba%2832, 32, 32, 0.2%29' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 14'%3E%3Cpath d='M11 5.75v1.5q0 0.312-0.219 0.531t-0.531 0.219h-9.5q-0.312 0-0.531-0.219t-0.219-0.531v-1.5q0-0.312 0.219-0.531t0.531-0.219h9.5q0.312 0 0.531 0.219t0.219 0.531z'/%3E%3C/svg%3E");
}

/* Notes Section styled inline below packages */
.notes-title {
  margin: 100px 0 30px;
  color: var(--offer-red);
  font-family: "KoteDisplay", "Cormorant Garamond", serif;
  font-size: 72px;
  line-height: 1.2;
  font-weight: 400;
}

.notes-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
}

.notes-column h3 {
  margin: 0 0 12px;
  font-family: "KoteBody", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}

.notes-column p {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
}

.offer-contact-section {
  position: relative;
  min-height: 580px;
  width: 1200px;
  margin: 0 auto;
}


.pricing-visual {
  position: absolute;
  top: 0px; /* Shifted up relative to offer-contact-section */
  left: 586px;
  width: 377px;
  z-index: 1;
}

.pricing-visual img {
  width: 377px;
  height: 533px;
  object-fit: cover;
}

.contact-panel {
  position: absolute;
  top: 23px; /* Shifted up relative to offer-contact-section */
  left: 50%;
  width: 100vw;
  height: 534px;
  transform: translateX(-50%);
  background: rgba(230, 201, 183, 0.69);
  pointer-events: none;
  z-index: 0;
}

.contact-visual {
  display: none;
}

.pricing-table-ghost {
  position: absolute;
  top: 345px;
  left: 122px;
  display: grid;
  grid-template-columns: 113px 171px 171px 179px;
  column-gap: 102px;
  row-gap: 27px;
  width: 968px;
}

.pricing-table-ghost span,
.pricing-table-ghost strong {
  margin: 0;
}

.contact-block {
  position: absolute;
  top: 113px; /* Shifted up relative to offer-contact-section */
  left: 237px;
  width: 831px;
  z-index: 2;
}

.contact-title {
  margin: 0;
  color: var(--offer-red);
  font-family: "Fraunces", serif;
  font-size: 48px;
  line-height: 57px;
  font-weight: 400;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 29px;
}

.contact-row p {
  margin: 0;
  font-family: "KoteBody", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 246px;
  height: 49px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgb(249, 207, 221);
  color: rgb(255, 255, 255);
  font-family: "KoteBody", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.contact-email:hover {
  background: rgb(204, 23, 54);
  color: rgb(249, 207, 221);
}

.contact-checklist {
  margin: 79px 0 0 3px;
  padding: 0;
  list-style: none;
  font-family: "KoteBody", "Poppins", sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.contact-checklist li + li {
  margin-top: 10px;
}

/* Redesigned Offer Process Section */

.offer-process {
  padding: 100px 40px;
}

.process-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.process-title {
  color: var(--offer-red);
  font-family: "KoteDisplay", "Cormorant Garamond", serif;
  font-size: 56px;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 24px;
}

.process-intro p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--offer-text);
  margin: 0 0 16px 0;
}

.process-intro p:last-child {
  margin-bottom: 0;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 60px;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-step-info {
  flex: 1;
}

.process-step-number {
  display: block;
  font-family: "KoteDisplay", "Cormorant Garamond", serif;
  font-size: 90px;
  line-height: 1;
  color: var(--offer-red);
  opacity: 75%;
  margin-bottom: -15px;
}

.process-step-info h3 {
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--offer-red);
  margin: 0 0 20px 0;
  position: relative;
  z-index: 2;
}

.process-step-desc p {
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--offer-text);
  margin: 0 0 12px 0;
}

.process-step-desc p:last-child {
  margin-bottom: 0;
}

.process-step-media {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px; /* consistent rounded corners */
  position: relative; /* enable overlay */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Beige overlay – applied to all steps except 3 and 4 */
.process-step:not(:nth-child(3)):not(:nth-child(4)) .process-step-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 220, 0.3); /* subtle beige tint */
  pointer-events: none;
}

.process-step-media:hover {
  transform: translateY(-5px);
  /* no shadow on hover */
}

.process-step-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px; /* ensure image corners match container */
  display: block;
  filter: brightness(1.15); /* brighten images */
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Remove brightness for steps 3 and 4 */
.process-step:nth-child(3) .process-step-media img,
.process-step:nth-child(4) .process-step-media img {
  filter: none;
}

.process-step-media img.is-drawing {
  object-fit: contain;
  background: transparent; /* remove white background frame */
  padding: 0; /* no extra padding */
  max-width: 500px;
  height: auto;
  box-sizing: border-box;
  border-radius: 12px;
}

.process-step-media img.is-drawing[src*="rzut.png"] {
  max-width: 487px; /* keep strict width for specific drawing */
}

@media (max-width: 1199px) {
  .offer-stage {
    width: 100%;
    max-width: none;
  }

  .offer-hero-media {
    height: clamp(340px, 68vw, 680px);
  }

  .offer-hero-media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .offer-packages,
  .offer-contact-section {
    min-height: 0;
    padding: 88px 24px 0;
  }

  .offer-packages > *,
  .offer-contact-section > * {
    position: static;
    width: auto;
  }

  .offer-packages-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }

  .offer-packages-lead {
    width: auto;
    max-width: 540px;
    margin-top: 0;
  }

  .package-columns,
  .package-columns-body,
  .notes-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    width: auto;
    margin-top: 56px;
  }

  .package-card,
  .package-description {
    width: auto;
  }

  .package-columns-label,
  .package-range-label,
  .notes-title,
  .pricing-title-ghost,
  .pricing-copy-ghost {
    margin-top: 56px;
  }

  .offer-comparison,
  .pricing-table-ghost {
    display: none;
  }

  .offer-contact-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    background: rgba(230, 201, 183, 0.69);
    border-radius: 16px;
    padding: 50px 40px;
    gap: 40px;
    align-items: center;
    width: auto;
    margin: 60px 10px 0;
    min-height: 0;
  }

  .pricing-visual {
    display: block;
    position: static;
    width: 100%;
    max-width: 377px;
    margin: 0 auto;
    z-index: 1;
  }

  .contact-panel {
    display: none;
  }

  .pricing-visual img {
    width: 100%;
    height: auto;
  }

  .contact-block {
    position: static;
    max-width: none;
    z-index: 2;
  }

  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .contact-checklist {
    margin-top: 40px;
  }

  /* New responsive overrides for process */
  .offer-process {
    padding: 60px 24px;
  }
  
  .process-title {
    font-size: 44px;
  }
  
  .process-timeline {
    gap: 70px;
  }

  .process-step {
    gap: 40px;
  }
  
  .process-step-number {
    font-size: 70px;
  }
  
  .process-step-info h3 {
    font-size: 26px;
  }
}

@media (max-width: 767px) {
  .offer-packages,
  .offer-contact-section {
    padding: 64px 20px 0;
  }

  .offer-title,
  .contact-title {
    font-size: 38px;
    line-height: 45px;
  }

  .notes-title {
    font-size: 44px;
    line-height: 50px;
  }

  .offer-process {
    padding: 50px 20px;
  }

  .process-header {
    margin-bottom: 40px;
  }

  .process-title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .process-timeline {
    gap: 50px;
  }

  .process-step,
  .process-step:nth-child(even) {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .process-step-media {
    max-width: 100%;
  }

  .process-step-media img.is-drawing {
    max-width: 100% !important;
    padding: 10px;
  }
}


@media (max-width: 1199px) {
  .responsive-packages-flow {
    margin-top: 50px;
    width: 100%;
  }

  .responsive-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch;
  }
}

@media (max-width: 991px) {
  .responsive-packages-grid {
    gap: 20px;
  }
  
  .responsive-package-card {
    padding: 28px 20px;
  }
}

@media (max-width: 767px) {
  .responsive-packages-flow {
    margin-top: 36px;
  }

  .responsive-packages-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .package-card-target {
    min-height: auto;
  }

  .offer-contact-section {
    display: block;
    background: transparent;
    padding: 70px 0 0;
    margin: 0;
    min-height: 0;
    position: relative;
  }

  .pricing-title-ghost,
  .pricing-copy-ghost,
  .pricing-table-ghost,
  .pricing-visual {
    display: none;
  }

  .notes-title {
    position: static;
    margin: 0 20px;
    font-size: 42px;
    line-height: 47px;
  }

  .notes-columns {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: auto;
    margin: 28px 20px 0;
  }

  .notes-column h3 {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .notes-column p {
    font-size: 13px;
    line-height: 18px;
  }

  .contact-panel {
    display: none;
  }

  .contact-block {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 46px;
    padding: 56px 20px 42px;
    background: rgba(230, 201, 183, 0.72);
    overflow: hidden;
  }

  .contact-block::after {
    content: "";
    position: absolute;
    right: -14px;
    top: 28px;
    width: 222px;
    height: 288px;
    background: url('/assets/images/oferta/oferta-kontakt-rzut.webp') center / contain no-repeat;
    opacity: 0.42;
    pointer-events: none;
  }

  .contact-title {
    position: relative;
    z-index: 1;
    width: 230px;
    margin: 0;
    font-size: 34px;
    line-height: 39px;
  }

  .contact-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 205px;
    margin-top: 28px;
  }

  .contact-row p {
    font-size: 12px;
    line-height: 18px;
  }

  .contact-email {
    width: auto;
    min-width: 178px;
    height: 46px;
    padding: 0 18px;
    font-size: 12px;
    line-height: 18px;
  }

  .contact-checklist {
    position: relative;
    z-index: 1;
    width: 235px;
    margin: 38px 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 18px;
  }

  .contact-checklist li + li {
    margin-top: 8px;
  }
}
