:root {
  --text: #fff7f1;
  --muted: rgba(255, 247, 241, 0.68);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 24%, rgba(224, 166, 128, 0.36), transparent 34%),
    radial-gradient(circle at 60% 42%, rgba(176, 202, 218, 0.28), transparent 34%),
    radial-gradient(circle at 72% 78%, rgba(93, 78, 103, 0.34), transparent 38%),
    linear-gradient(135deg, #1a1720 0%, #222833 46%, #15131a 100%);
}

.background-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(
      circle,
      rgba(232, 180, 145, 0.34) 0%,
      rgba(185, 211, 224, 0.26) 34%,
      rgba(111, 95, 128, 0.14) 56%,
      transparent 74%
    );

  filter: blur(48px);
  opacity: 0.86;
  mix-blend-mode: screen;
  animation: softHue 18s ease-in-out infinite alternate;
}

.background-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 260 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.42'/%3E%3C/svg%3E");
  opacity: 0.28;
  mix-blend-mode: overlay;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.35'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  padding: 32px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.page.opinie-page {
  justify-content: center; 
}

.content {
  width: fit-content;
  text-align: center;

  margin-top: auto;
}

.content.opinie p {
  font-weight: 200;
  margin-top: 15px;  
}

.site-footer.portfolio-footer, .site-footer.opinie-footer {
  margin-top: 32px; 
}

.site-footer {
  width: 100%;
  margin-top: auto;

  display: flex;
  justify-content: center;
  align-items: center;

  padding-bottom: 0;

  font-size: clamp(13px, 1.2vw, 16px);
  color: var(--muted);
  font-weight: 200;
}

.site-footer p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14px; 
}

.mail-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.75;
  flex-shrink: 0;
  transform: scaleX(1.25);
  transform-origin: center;
}

.mail-text {
  color: var(--muted);
}

h1 {
  font-size: clamp(36px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 500;
  white-space: nowrap;
}

.services {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 200;
  margin-bottom: 15px;
  line-height: 1.8;
}

.services .separator {
  display: inline-block;
  padding: 0 5px;
}

.subline {
  margin-top: 5px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 400;
  color: var(--text);
}

.links {
  width: 100%;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--muted);
}

a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  font-weight: 400;
  border-radius: 99px;
  padding: 10px 25px;
  border: 1px solid;
  border-color: var(--text);
  transition: color 0.3s ease, transform 0.3s ease; 
}

a.portfolio-link { 
  position: relative;
  display: inline-block;

  border: none;
  padding: 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 200;
}

a.portfolio-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;

  width: 100%;
  height: 1px;

  background: currentColor;
  opacity: 0.8;

  transform: translateX(-50%);
}

a.reviews {
  background: var(--text);
  color: rgb(20 30 39);
  transition: color 0.3s ease, transform 0.3s ease;
}

a.reviews:hover {
  background: #ffffff00;
  color: var(--text);
}

a.portfolio {
  color: var(--text);
  transition: color 0.3s ease, transform 0.3s ease;
}

a.portfolio:hover {
  background: var(--text);
  color: rgb(20 30 39);
}

/* a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.9;
} */

a span {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* a:hover span {
  color: var(--text);
  transform: translateY(-4px);
} */

/* PORTFOLIO PAGE */

.portfolio-page {
  position: relative;
  z-index: 4;
  width: 100%;
  min-height: 100vh;
  padding: 48px 32px 32px;
  overflow: hidden;
}

.portfolio-page::before {
  content: "STRONY WWW";
  position: fixed;
  top: -2px;
  left: -4px;
  z-index: 1;
  font-size: clamp(27px, 6vw, 92px);
  line-height: 0.78;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  opacity: 0.35;

  transform: rotate(90deg) translateY(-100%);
  transform-origin: top left;

  pointer-events: none;
  white-space: nowrap;
}

.portfolio-header {
  width: min(1180px, 100%);
  margin: 0 auto 72px;
  text-align: center;
}

.back-link {
  margin-bottom: 48px;
  font-size: 14px;
}

.portfolio-header .services {
  margin-bottom: 22px;
}

.portfolio-header h1 {
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 500;
  white-space: nowrap;
}

.portfolio-intro {
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.035em;
  color: var(--muted);
}

.portfolio-list {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.portfolio-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  padding: clamp(42px, 7vw, 61px) 0;
  border-bottom: 1px solid rgba(255, 247, 241, 0.18);
}

.portfolio-project:not(:first-of-type) {
  border-top: 1px solid rgba(255, 247, 241, 0.18);
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
 
}

.project-content {
  text-align: left;
}

.project-number {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.project-content h2 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4.5vw, 55px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 500;
  color: var(--text);
}

.project-content p {
  max-width: 560px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.2;
  color: var(--muted);
  font-weight: 200; 
  font-size: 14px; 
}

.project-content a {
  text-decoration: none;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  font-weight: 300;
  margin-top: 22px;
  color: white;
  border: none;
  padding: 0; 
}

.price-line {
  font-size: 14px; 
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 200;
  display: inline-block;
  padding: 10px;
  border-top: 1px solid #ffffff30;
  border-bottom: 1px solid #ffffff30;
}

.secure-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 28px;
  font-size: 12px;
  opacity: 0.5;
  font-weight: 200;
}

.secure-payment img {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
}

.top-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  background: #232732;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.top-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
  border: 0 !important;
}

.top-contact a:hover {
  color: #fff;
}

.top-contact span {
  color: rgba(255, 255, 255, 0.25);
}

/* Żeby portfolio dało się przewijać */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

.opinie-page::before {
  content: "OPINIE";
  position: fixed;
  top: -2px;
  left: -4px;
  z-index: 1;
  font-size: clamp(27px, 6vw, 92px);
  line-height: 0.78;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  opacity: 0.35;
  transform: rotate(90deg) translateY(-100%);
  transform-origin: top left;
  pointer-events: none;
  white-space: nowrap;
}
.opinie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 1200px;
  margin: auto;
  text-align: left;
}
.opinie-grid .opinia-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  overflow-wrap: anywhere;
}
.opinie-grid .opinia-card:not(:last-child) {
  border-right: 1px solid #ffffff30;
}
.opinie-grid .opinia-tekst {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 200;
}
.opinie-grid .opinia-tekst p {
  margin: 0;
  font: inherit;
  color: inherit;
}
.opinie-grid .opinia-autor {
  margin: auto 0 0;
  padding-top: 24px;
  font-size: 14px;
  font-weight: 600;
}
.opinie-grid .opinia-card--placeholder {
  align-items: center;
  justify-content: center;
  background: transparent;
  text-align: center;
}
.opinie-grid .opinia-card--placeholder p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: inherit;
  opacity: 0.33;
  font-weight: 200;
}

@media (max-width: 900px) {
  .opinie-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .opinie-grid .opinia-card--placeholder {
    min-height: 160px;
  }
  .opinie-grid .opinia-card {
    border-right: none !important;
    border-bottom: 1px solid #ffffff30;
    margin: 0px 35px;
  }
  .opinie-grid .opinia-card:last-child {
    border-bottom: none !important;
  }   
}

@media (max-width: 800px) {
  .portfolio-page {
    padding: 32px 24px 32px;
  }

  .portfolio-header {
    margin-bottom: 44px;
  }

  .portfolio-header h1 {
    white-space: normal;
    font-size: clamp(48px, 18vw, 88px);
  }

  .portfolio-project {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 48px 0;
  }

  .project-content {
    text-align: center;
  }

  .project-content p {
    margin: 0 auto;
  }

  .project-image {
    border-radius: 20px;
  }
}

@keyframes softHue {
  0% {
    filter: blur(42px) hue-rotate(0deg);
    opacity: 0.72;
  }

  100% {
    filter: blur(48px) hue-rotate(32deg);
    opacity: 0.9;
  }
}

@media (max-width: 700px) {
  .site-footer p {
    font-size: 12px;
  }
  .top-contact {
    font-size: 12px;
    gap: 7px;
  }
  .mail-icon {
    height: 20px;
  }

  .page {
    padding: 15px;
  }

  .content {
    width: 100%;
  }

  h1 {
    font-size: clamp(34px, 10vw, 58px);
    white-space: normal;
    letter-spacing: -0.055em;
  }

  .subline {
    font-size: clamp(20px, 6vw, 32px);
    line-height: 1.2; 
  }

  .links {
    margin-top: 20px;
    justify-content: center;
    gap: 14px;
  }

  .background-glow {
    width: 520px;
    height: 520px;
  }
}

@media (min-width: 371px) {
  .price-line br {
    display: none; 
  }
}

@media (max-width: 370px) {
  .services .separator:nth-of-type(4)  {
    display: none; 
  }

  .price-line {
    font-size: 12px;
    padding: 10px 15px;
    width: 90%;
    margin-bottom: 16px; 
  }

  

  .price-line br {
    display: inline; 
  }

  .services {
    font-size: 10px;
  }
}


































































