/* ======================================================
   SURFIA.NET — WSPÓLNY CSS
   Plik: surfia.css
   Obrazki w folderze images/
====================================================== */

/* ======================================================
   ROOT / ZMIENNE
====================================================== */
:root {
  --bg: #f4efe5;
  --paper: rgba(255, 252, 245, 0.88);
  --paper-strong: rgba(255, 252, 245, 0.96);
  --text: #2d2a24;
  --muted: #746f64;
  --green: #66755d;
  --green-dark: #3f4a38;
  --gold: #a0773f;
  --line: rgba(68, 57, 42, 0.12);
  --shadow: 0 18px 45px rgba(56, 47, 34, 0.13);
  --soft-shadow: 0 12px 30px rgba(56, 47, 34, 0.09);
  --radius: 18px;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

a:focus,
a:focus-visible,
button:focus,
button:focus-visible,
input:focus,
textarea:focus {
  outline: none;
}

/* ======================================================
   GLOBAL
====================================================== */
.page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.container {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

/* ======================================================
   TŁO GŁÓWNE — OSOBNE DLA KAŻDEJ STRONY
====================================================== */
.main-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.main-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 100%, rgba(112, 131, 109, 0.16), transparent 30%),
    radial-gradient(circle at 100% 0%, rgba(185, 151, 95, 0.10), transparent 28%);
  pointer-events: none;
}

.page-index .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 36%,
      rgba(250, 247, 239, 0.68) 62%,
      rgba(250, 247, 239, 0.42) 100%
    ),
    url("images/bild_index.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-about .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.94) 38%,
      rgba(250, 247, 239, 0.78) 70%,
      rgba(250, 247, 239, 0.56) 100%
    ),
    url("images/bild_about.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-ceramics .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 38%,
      rgba(250, 247, 239, 0.72) 68%,
      rgba(250, 247, 239, 0.50) 100%
    ),
    url("images/bild_ceramic.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-art .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 38%,
      rgba(250, 247, 239, 0.72) 68%,
      rgba(250, 247, 239, 0.50) 100%
    ),
    url("images/bild_art.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-print .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 38%,
      rgba(250, 247, 239, 0.72) 68%,
      rgba(250, 247, 239, 0.50) 100%
    ),
    url("images/bild_print.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-animation .main-bg,
.page-film .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 38%,
      rgba(250, 247, 239, 0.72) 68%,
      rgba(250, 247, 239, 0.50) 100%
    ),
    url("images/bild_film.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-web .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 38%,
      rgba(250, 247, 239, 0.72) 68%,
      rgba(250, 247, 239, 0.50) 100%
    ),
    url("images/bild_web.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-visualizations .main-bg,
.page-visuals .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.92) 38%,
      rgba(250, 247, 239, 0.72) 68%,
      rgba(250, 247, 239, 0.50) 100%
    ),
    url("images/bild_visual.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.page-contact .main-bg {
  background:
    linear-gradient(
      90deg,
      rgba(250, 247, 239, 0.98) 0%,
      rgba(250, 247, 239, 0.94) 38%,
      rgba(250, 247, 239, 0.78) 70%,
      rgba(250, 247, 239, 0.56) 100%
    ),
    url("images/bild8.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ======================================================
   HEADER
====================================================== */
.site-header {
  padding: 26px 0 18px;
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(160, 119, 63, 0.34);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo-img {
  width: 255px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 16px;
  font-weight: 800;
  color: #27251f;
  padding-top: 28px;
}

.nav a {
  position: relative;
  padding: 9px 0;
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn {
  min-width: 156px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 14px 28px rgba(63, 74, 56, 0.18);
}

.btn-secondary {
  border: 1px solid rgba(68, 57, 42, 0.34);
  background: rgba(255, 252, 245, 0.42);
  color: #4a4235;
}

.btn:hover {
  transform: translateY(-2px);
}

/* ======================================================
   INDEX — HERO
====================================================== */
.hero {
  min-height: 500px;
  padding: 58px 0 48px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-kicker {
  display: block;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: #2a2924;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--green);
}

.hero-line {
  width: 72px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 26px;
}

.hero-text {
  max-width: 420px;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* ======================================================
   INDEX — KAFELKI KATEGORII
====================================================== */
.categories {
  padding: 36px 0 44px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 5px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.42);
}

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: var(--paper);
  border-right: 4px solid rgba(255, 255, 255, 0.78);
}

.category-card:last-child {
  border-right: none;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.92) contrast(0.96);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 240, 0.96) 0%,
      rgba(255, 250, 240, 0.72) 42%,
      rgba(255, 250, 240, 0.04) 100%
    );
  z-index: 1;
}

.category-content {
  position: absolute;
  left: 28px;
  top: 34px;
  width: 55%;
  z-index: 2;
}

.category-content h2 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #704d25;
}

.category-content p {
  font-size: 15px;
  line-height: 1.5;
  color: #514c43;
}

.category-link {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.category-card:hover img {
  transform: scale(1.05);
  filter: saturate(1.04) contrast(1);
}

.category-card:hover .category-link {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================
   CONTACT — WSPÓLNA SEKCJA
====================================================== */
.contact-section {
  padding: 54px 0 56px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 245, 0.78) 0%,
      rgba(241, 234, 220, 0.76) 100%
    );
  border-top: 1px solid rgba(68, 57, 42, 0.10);
  border-bottom: 1px solid rgba(68, 57, 42, 0.10);
  backdrop-filter: blur(2px);
}

.contact-box {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 64px;
  align-items: start;
}

.contact-info {
  padding-top: 8px;
}

.contact-label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-info h2 {
  max-width: 430px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  font-weight: 500;
  color: #2d2a24;
}

.contact-line {
  width: 82px;
  height: 3px;
  margin: 24px 0 24px;
  background: var(--green);
}

.contact-info p {
  max-width: 480px;
  color: #5d574d;
  font-size: 16px;
}

.contact-details {
  margin-top: 26px;
}

.contact-details p + p {
  margin-top: 6px;
}

.contact-details strong {
  color: #2d2a24;
}

.contact-details a {
  color: var(--green-dark);
  font-weight: 800;
}

.contact-form {
  padding: 30px;
  border-radius: 24px;
  background: rgba(255, 252, 245, 0.74);
  border: 1px solid rgba(68, 57, 42, 0.12);
  box-shadow: var(--soft-shadow);
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 7px;
  color: #2d2a24;
  font-size: 15px;
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(68, 57, 42, 0.20);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.56);
  color: #2d2a24;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-row input {
  height: 52px;
  padding: 0 16px;
}

.form-row textarea {
  min-height: 142px;
  resize: vertical;
  padding: 14px 16px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(93, 87, 77, 0.70);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(102, 117, 93, 0.62);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 4px rgba(102, 117, 93, 0.10);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  margin: 20px 0 26px;
  color: #5d574d;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-row input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--green-dark);
}

.contact-btn {
  min-width: 220px;
}

.form-message {
  min-height: 22px;
  margin-top: 16px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

/* ======================================================
   FOOTER
====================================================== */
.footer {
  padding: 20px 0 22px;
  background: rgba(237, 230, 215, 0.64);
  border-top: 1px solid rgba(68, 57, 42, 0.12);
}

.footer-inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 980px;
}

.footer-nav a {
  position: relative;
  padding: 4px 0;
  font-weight: 700;
  color: #4e4a42;
  transition: color 0.2s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.22s ease;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: var(--gold);
}

.footer-nav a:hover::after,
.footer-nav a.active::after {
  width: 100%;
}

.footer-legal {
  color: #5d574d;
  line-height: 1.5;
}

.visitor-counter {
  color: #5d574d;
  font-size: 13px;
}

.visitor-counter span {
  font-weight: 800;
  color: var(--green-dark);
}

/* ======================================================
   ABOUT PAGE
====================================================== */
.about-page-hero {
  padding: 48px 0 38px;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 54px;
  align-items: center;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.about-kicker::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--gold);
}

.about-page-title {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: #2a2924;
}

.about-page-title span {
  color: var(--green);
}

.about-page-text {
  max-width: 720px;
}

.about-page-text p {
  max-width: 650px;
  color: #5d574d;
  font-size: 17px;
  line-height: 1.75;
}

.about-page-text p + p {
  margin-top: 14px;
}

.about-page-card {
  position: relative;
  padding: 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(255, 252, 245, 0.68)),
    radial-gradient(circle at 82% 18%, rgba(160, 119, 63, 0.12), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.about-page-card::before {
  content: "";
  position: absolute;
  right: -90px;
  top: -95px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(102, 117, 93, 0.12);
}

.about-logo-circle {
  position: relative;
  z-index: 2;
  width: 108px;
  height: 108px;
  margin-bottom: 24px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 252, 245, 0.72);
  border: 8px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 26px rgba(56, 47, 34, 0.12);
}

.about-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page-card h2 {
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
}

.about-page-card p {
  position: relative;
  z-index: 2;
  color: #5d574d;
  font-size: 15px;
  line-height: 1.65;
}

.about-small-tags,
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-small-tags {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.about-small-tags span,
.about-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: rgba(102, 117, 93, 0.12);
  color: #4f5b48;
  font-size: 12px;
  font-weight: 800;
}

.about-section {
  padding: 26px 0;
}

.about-last-section {
  padding-bottom: 52px;
}

.about-box {
  padding: 34px 38px;
  border-radius: 24px;
  background: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
}

.about-section-head {
  margin-bottom: 24px;
}

.about-section-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}

.about-section-head h2,
.about-info-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  font-weight: 500;
  color: #2d2a24;
}

.about-experience-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-experience-item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(68, 57, 42, 0.10);
}

.about-date {
  color: var(--gold);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
}

.about-experience-item strong {
  display: block;
  margin-bottom: 2px;
  color: #2d2a24;
  font-size: 15px;
}

.about-experience-item span {
  display: block;
  color: #5d574d;
  font-size: 13px;
  line-height: 1.4;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-info-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
}

.about-info-wide {
  grid-column: 1 / -1;
}

.about-info-card p {
  color: #5d574d;
  font-size: 15px;
  line-height: 1.6;
}

.about-info-card p + p {
  margin-top: 8px;
}

.about-info-card h2 {
  margin-bottom: 18px;
}

/* ======================================================
   PORTFOLIO / VISUALIZATIONS / CERAMIC / ART — HERO
====================================================== */
.portfolio-hero {
  padding: 48px 0 34px;
}

.portfolio-hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: end;
}

.portfolio-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}

.portfolio-kicker::before {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--gold);
}

.portfolio-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -1.2px;
  color: #2a2924;
}

.portfolio-title span {
  color: var(--green);
}

.portfolio-intro {
  max-width: 660px;
  color: #5d574d;
  font-size: 17px;
  line-height: 1.7;
}

.portfolio-intro p + p {
  margin-top: 14px;
}

/* ======================================================
   ART — ODSTĘP MIĘDZY OPISEM A GALERIĄ
====================================================== */
.page-art .visual-gallery-section .portfolio-intro {
  margin-bottom: 40px;
}

/* ======================================================
   VISUALIZATIONS / CERAMIC / ART — WSPÓLNA GALERIA
====================================================== */
.visual-gallery-section {
  padding: 18px 0 44px;
}

.visual-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  grid-auto-flow: dense;
  gap: 14px;
}

.visual-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow: var(--soft-shadow);
  cursor: zoom-in;
}

.visual-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.visual-card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.visual-card-tall {
  grid-column: span 1;
  grid-row: span 2;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(24, 22, 18, 0.00) 26%,
      rgba(24, 22, 18, 0.64) 100%
    );
  z-index: 1;
  opacity: 0.86;
}

.visual-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}

.visual-caption span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.visual-caption strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 500;
}

.visual-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.02);
}

/* ======================================================
   CERAMICS — 4 DOLNE KAFLE TROCHĘ WYŻSZE
====================================================== */
.page-ceramics .visual-gallery {
  grid-auto-rows: 150px;
}

.page-ceramics .visual-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.page-ceramics .visual-card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

.page-ceramics .visual-gallery > .visual-card:nth-child(n + 5) {
  grid-row: span 2;
}

/* ======================================================
   WEB & APPS PAGE — PROJECT CARDS
====================================================== */
.web-projects-section {
  padding: 20px 0 58px;
}

.web-project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  margin-bottom: 28px;
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.94), rgba(255, 252, 245, 0.70));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.web-project-card-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.web-project-card-reverse .web-project-image {
  order: 2;
}

.web-project-card-reverse .web-project-text {
  order: 1;
}

.web-project-image {
  min-height: 290px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 252, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(56, 47, 34, 0.11);
}

.web-project-image img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.web-project-text {
  padding: 8px 12px;
}

.web-project-label {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.web-project-text h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.08;
  font-weight: 500;
  color: #2d2a24;
}

.web-project-text p {
  max-width: 620px;
  color: #5d574d;
  font-size: 16px;
  line-height: 1.7;
}

.web-project-text p + p {
  margin-top: 12px;
}

.web-project-link,
.web-project-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.web-project-link {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 10px 24px rgba(63, 74, 56, 0.14);
}

.web-project-status {
  background: rgba(160, 119, 63, 0.12);
  color: #7b5a2f;
  border: 1px solid rgba(160, 119, 63, 0.18);
}

/* ======================================================
   WEB & APPS — APLIKACJE W PRZYGOTOWANIU
====================================================== */
.web-project-muted {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(255, 252, 245, 0.72),
      rgba(255, 252, 245, 0.46)
    );
  border: 1px dashed rgba(160, 119, 63, 0.22);
  box-shadow: 0 8px 22px rgba(56, 47, 34, 0.05);
}

.web-project-muted::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(255, 252, 245, 0.72) 0%,
      rgba(255, 252, 245, 0.54) 45%,
      rgba(255, 252, 245, 0.68) 100%
    );
  pointer-events: none;
}

.web-project-muted .web-project-image {
  opacity: 0.48;
  box-shadow: none;
}

.web-project-muted .web-project-image img {
  filter: grayscale(0.18) saturate(0.48) contrast(0.84) blur(0.3px);
}

.web-project-muted .web-project-text {
  position: relative;
  z-index: 2;
  opacity: 0.72;
}

.web-project-muted .web-project-text h2 {
  color: rgba(45, 42, 36, 0.78);
}

.web-project-muted .web-project-text p {
  color: rgba(93, 87, 77, 0.72);
}

.web-project-muted .web-project-label {
  color: rgba(160, 119, 63, 0.70);
}

.web-project-muted .web-project-status {
  background: rgba(160, 119, 63, 0.08);
  color: rgba(123, 90, 47, 0.72);
  border: 1px solid rgba(160, 119, 63, 0.14);
}

/* ======================================================
   FILM / ANIMATION PAGE
====================================================== */
.film-feature-section {
  padding: 52px 0 44px;
}

.film-feature {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 58px;
  align-items: center;
}

.film-feature-text {
  max-width: 520px;
}

.film-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.film-label::after {
  content: "";
  width: 74px;
  height: 1px;
  background: var(--gold);
}

.film-feature-text h1 {
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -1.4px;
  color: #2d2a24;
}

.film-feature-text h1 span {
  color: #9b2f2d;
}

.film-feature-text h2 {
  max-width: 460px;
  margin-bottom: 24px;
  color: #3d3931;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2.6px;
  line-height: 1.45;
  text-transform: uppercase;
}

.film-feature-text p {
  max-width: 500px;
  color: #5d574d;
  font-size: 16px;
  line-height: 1.75;
}

.film-feature-text p + p {
  margin-top: 13px;
}

.film-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(160, 119, 63, 0.52);
  color: #8a642f;
  background: rgba(255, 252, 245, 0.54);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.film-button span {
  font-size: 15px;
}

.film-button:hover {
  background: rgba(255, 252, 245, 0.92);
  transform: translateY(-2px);
}

.film-quote {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.62);
  border: 1px solid rgba(160, 119, 63, 0.16);
  box-shadow: var(--soft-shadow);
}

.film-quote strong {
  display: block;
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  color: #8a642f;
  font-size: 22px;
  font-weight: 500;
}

.film-quote span {
  display: block;
  color: #5d574d;
  font-size: 15px;
  line-height: 1.6;
}

.film-feature-image {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 252, 245, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 58px rgba(56, 47, 34, 0.16);
}

.film-feature-image a {
  display: block;
}

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

.film-details-section {
  padding: 24px 0 58px;
}

.film-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.film-detail-card {
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255, 252, 245, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.film-detail-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.film-detail-card h3 {
  margin-bottom: 10px;
  color: #2d2a24;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.film-detail-card p {
  color: #5d574d;
  font-size: 14px;
  line-height: 1.65;
}

/* ======================================================
   LIGHTBOX
====================================================== */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 42px 80px 58px;
  background: rgba(20, 18, 15, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(920px, 82vw);
  max-height: min(720px, 76vh);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 10005;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 252, 245, 0.94);
  color: #2d2a24;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 10004;
  width: 54px;
  height: 74px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.90);
  color: #2d2a24;
  font-size: 48px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-prev {
  left: calc(50% - min(460px, 41vw) + 18px);
}

.lightbox-next {
  right: calc(50% - min(460px, 41vw) + 18px);
}

.lightbox-close:hover {
  background: rgba(255, 252, 245, 1);
  transform: scale(1.04);
}

.lightbox-arrow:hover {
  background: rgba(255, 252, 245, 1);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: min(900px, calc(100% - 48px));
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  text-align: center;
}

/* ======================================================
   RESPONSYWNOŚĆ — TABLET
====================================================== */
@media (max-width: 1050px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-img {
    width: 230px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px 22px;
    padding-top: 8px;
  }

  .hero {
    min-height: 440px;
    padding-top: 48px;
  }

.hero-title,
.about-page-title,
.portfolio-title {
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.4px;
}

  .film-feature-text h1 {
    font-size: clamp(29px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -1px;
  }

  .contact-info h2 {
    font-size: clamp(28px, 4vw, 38px);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card:nth-child(2) {
    border-right: none;
  }

  .category-card:nth-child(1),
  .category-card:nth-child(2) {
    border-bottom: 4px solid rgba(255, 255, 255, 0.78);
  }

  .contact-box {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form {
    padding: 26px;
  }

  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-page-card {
    max-width: 640px;
  }

  .about-experience-list,
  .about-info-grid {
    grid-template-columns: 1fr;
  }

  .about-info-wide {
    grid-column: auto;
  }

  .portfolio-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .visual-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .visual-card-large,
  .visual-card-wide {
    grid-column: span 2;
  }

  .visual-card-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .page-ceramics .visual-gallery {
    grid-auto-rows: 190px;
  }

  .page-ceramics .visual-card-large,
  .page-ceramics .visual-card-wide,
  .page-ceramics .visual-gallery > .visual-card:nth-child(n + 5) {
    grid-column: auto;
    grid-row: auto;
  }

  .page-ceramics .visual-card-large,
  .page-ceramics .visual-card-wide {
    grid-column: span 2;
  }

  .web-project-card,
  .web-project-card-reverse {
    grid-template-columns: 1fr;
  }

  .web-project-card-reverse .web-project-image,
  .web-project-card-reverse .web-project-text {
    order: initial;
  }

  .web-project-image {
    min-height: 260px;
  }

  .web-project-image img {
    min-height: 260px;
  }

  .film-feature {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .film-feature-text {
    max-width: 720px;
  }

  .film-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ======================================================
   RESPONSYWNOŚĆ — TELEFON
====================================================== */
@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .main-bg {
    background-size: cover;
    background-position: center top;
  }

  .site-header {
    padding-top: 20px;
  }

  .logo-img {
    width: 210px;
  }

  .nav {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 48px;
  }

  .hero-title,
  .about-page-title,
  .portfolio-title {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.4px;
  }

  .film-feature-text h1 {
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.5px;
  }

  .contact-info h2 {
    font-size: 27px;
    line-height: 1.12;
  }

  .hero-text {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    max-width: 260px;
  }

  .categories {
    padding: 28px 0 40px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    border-right: none;
    border-bottom: 4px solid rgba(255, 255, 255, 0.78);
  }

  .category-card:last-child {
    border-bottom: none;
  }

  .category-content {
    width: 62%;
  }

  .contact-section {
    padding: 44px 0 46px;
  }

  .contact-form {
    padding: 22px;
  }

  .footer-inner {
    gap: 10px;
  }

  .footer-nav {
    gap: 8px 14px;
  }

  .about-page-hero {
    padding: 38px 0 26px;
  }

  .about-page-text p {
    font-size: 16px;
  }

  .about-page-card,
  .about-box,
  .about-info-card {
    padding: 24px;
  }

  .about-logo-circle {
    width: 94px;
    height: 94px;
  }

  .about-experience-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .portfolio-hero {
    padding: 38px 0 24px;
  }

  .portfolio-intro {
    font-size: 16px;
  }

  .visual-gallery-section {
    padding: 18px 0 40px;
  }

  .visual-gallery,
  .page-ceramics .visual-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 14px;
  }

  .visual-card,
  .visual-card-large,
  .visual-card-wide,
  .visual-card-tall,
  .page-ceramics .visual-card,
  .page-ceramics .visual-card-large,
  .page-ceramics .visual-card-wide,
  .page-ceramics .visual-gallery > .visual-card:nth-child(n + 5) {
    grid-column: auto;
    grid-row: auto;
    height: 220px;
    min-height: 0;
    max-height: 220px;
  }

  .visual-caption strong {
    font-size: 19px;
  }

  .web-projects-section {
    padding: 16px 0 44px;
  }

  .web-project-card {
    padding: 16px;
    border-radius: 22px;
  }

  .web-project-image {
    min-height: 220px;
    border-radius: 18px;
  }

  .web-project-image img {
    min-height: 220px;
  }

  .web-project-text {
    padding: 4px 2px;
  }

  .web-project-text p {
    font-size: 15px;
  }

  .film-feature-section {
    padding: 38px 0 34px;
  }

  .film-feature {
    gap: 26px;
  }

  .film-feature-text h2 {
    font-size: 16px;
  }

  .film-feature-image {
    border-radius: 18px;
  }

  .film-details-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 36px 16px 54px;
  }

  .lightbox-image {
    max-width: 94vw;
    max-height: 74vh;
    border-radius: 10px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .lightbox-arrow {
    width: 42px;
    height: 62px;
    font-size: 36px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-caption {
    bottom: 14px;
    font-size: 13px;
  }
}

/* ======================================================
   GLOBAL — FINALNE DOPIESZCZENIE TYPOGRAFII I OPISÓW
   Jeden blok końcowy: usuwa efekt "nasranych" dopisek.
====================================================== */

/* Nagłówki — centralnie mniejsze na wszystkich podstronach */
.hero-title,
.about-page-title,
.portfolio-title,
.contact-info h1,
.contact-info h2,
.privacy-title,
.policy-title,
.legal-title,
.copyright-title,
.rights-title,
.page-privacy h1,
.page-policy h1,
.page-legal h1,
.page-copyright h1,
.page-rights h1,
.page-prawa-autorskie h1,
.page-polityka-prywatnosci h1,
.page-contact h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.45px;
}

.about-section-head h2,
.about-info-card h2,
.web-project-text h2,
.contact-section h2,
.privacy-section h2,
.policy-section h2,
.legal-section h2,
.copyright-section h2,
.rights-section h2,
.page-privacy h2,
.page-policy h2,
.page-legal h2,
.page-copyright h2,
.page-rights h2,
.page-prawa-autorskie h2,
.page-polityka-prywatnosci h2,
.page-contact h2 {
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.25px;
}

.about-page-card h2,
.film-quote strong,
.visual-caption strong,
.privacy-content h3,
.policy-content h3,
.legal-content h3,
.copyright-content h3,
.rights-content h3,
.page-privacy h3,
.page-policy h3,
.page-legal h3,
.page-copyright h3,
.page-rights h3,
.page-prawa-autorskie h3,
.page-polityka-prywatnosci h3,
.page-contact h3 {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.2;
}

/* Opisy — szerzej, żeby tekst nie był ściśnięty w wąskiej kolumnie */
.visual-gallery-section .portfolio-intro,
.about-section .portfolio-intro,
.web-projects-section .portfolio-intro {
  width: 100%;
  max-width: none;
}

.visual-gallery-section .portfolio-intro p,
.about-section .portfolio-intro p,
.web-projects-section .portfolio-intro p,
.about-page-text,
.about-page-text p,
.about-info-card p,
.web-project-text p {
  max-width: none;
}

/* Teksty opisowe — czytelnie, ale bez przesady */
.visual-gallery-section .portfolio-intro p,
.about-section .portfolio-intro p,
.web-projects-section .portfolio-intro p {
  width: 100%;
  font-size: 16px;
  line-height: 1.75;
}

/* Pogrubienia — delikatniejsze, nie czarne kloce */
.portfolio-intro strong,
.hero-text strong,
.about-page-text strong,
.about-info-card strong,
.web-project-text strong,
.contact-info strong,
.print-copyright-note strong,
.web-project-price strong {
  color: #3f3a32;
  font-weight: 700;
}

/* Druk — nota prawna pod galerią */
.print-copyright-section {
  padding: 0 0 34px;
}

.print-copyright-note {
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.72);
  border: 1px solid rgba(68, 57, 42, 0.10);
  color: #5d574d;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

/* Web / Apps — cena i lead */
.web-project-lead {
  color: #4b453c;
  font-size: 16px;
  line-height: 1.65;
}

.web-project-price {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(160, 119, 63, 0.12);
  border: 1px solid rgba(160, 119, 63, 0.18);
  color: #7b5a2f;
  font-size: 13px;
  font-weight: 700;
}

/* Tablet */
@media (max-width: 1050px) {
  .hero-title,
  .about-page-title,
  .portfolio-title,
  .contact-info h1,
  .contact-info h2,
  .privacy-title,
  .policy-title,
  .legal-title,
  .copyright-title,
  .rights-title,
  .page-privacy h1,
  .page-policy h1,
  .page-legal h1,
  .page-copyright h1,
  .page-rights h1,
  .page-prawa-autorskie h1,
  .page-polityka-prywatnosci h1,
  .page-contact h1 {
    font-size: 30px;
    line-height: 1.12;
  }
  .about-section-head h2,
  .about-info-card h2,
  .web-project-text h2,
  .contact-section h2,
  .privacy-section h2,
  .policy-section h2,
  .legal-section h2,
  .copyright-section h2,
  .rights-section h2,
  .page-privacy h2,
  .page-policy h2,
  .page-legal h2,
  .page-copyright h2,
  .page-rights h2,
  .page-prawa-autorskie h2,
  .page-polityka-prywatnosci h2,
  .page-contact h2 {
    font-size: 27px;
  }
}

/* Telefon */
@media (max-width: 720px) {
  .hero-title,
  .about-page-title,
  .portfolio-title,
  .contact-info h1,
  .contact-info h2,
  .privacy-title,
  .policy-title,
  .legal-title,
  .copyright-title,
  .rights-title,
  .page-privacy h1,
  .page-policy h1,
  .page-legal h1,
  .page-copyright h1,
  .page-rights h1,
  .page-prawa-autorskie h1,
  .page-polityka-prywatnosci h1,
  .page-contact h1 {
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.3px;
  }
  .about-section-head h2,
  .about-info-card h2,
  .web-project-text h2,
  .contact-section h2,
  .privacy-section h2,
  .policy-section h2,
  .legal-section h2,
  .copyright-section h2,
  .rights-section h2,
  .page-privacy h2,
  .page-policy h2,
  .page-legal h2,
  .page-copyright h2,
  .page-rights h2,
  .page-prawa-autorskie h2,
  .page-polityka-prywatnosci h2,
  .page-contact h2 {
    font-size: 23px;
    line-height: 1.18;
  }
  .about-page-card h2,
  .film-quote strong,
  .visual-caption strong,
  .privacy-content h3,
  .policy-content h3,
  .legal-content h3,
  .copyright-content h3,
  .rights-content h3,
  .page-privacy h3,
  .page-policy h3,
  .page-legal h3,
  .page-copyright h3,
  .page-rights h3,
  .page-prawa-autorskie h3,
  .page-polityka-prywatnosci h3,
  .page-contact h3 {
    font-size: 20px;
  }
}

/* ======================================================
   INDEX — HERO POPRAWKA SZEROKOŚCI I CZYTELNOŚCI
   Wklej na końcu pliku surfia.css
====================================================== */
.page-index .hero {
  min-height: 560px;
  padding: 50px 0 46px;
  align-items: flex-start;
}
.page-index .hero-content {
  max-width: 680px;
}
.page-index .hero-title {
  max-width: 760px;
  margin-bottom: 18px;
}
.page-index .hero-text {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.68;
}
.page-index .hero-buttons {
  margin-top: 8px;
}
@media (max-width: 1050px) {
  .page-index .hero-content,
  .page-index .hero-text {
    max-width: 680px;
  }
}
@media (max-width: 720px) {
  .page-index .hero {
    padding: 38px 0 42px;
  }
  .page-index .hero-content,
  .page-index .hero-text {
    max-width: 100%;
  }
  .page-index .hero-text {
    margin-bottom: 15px;
    line-height: 1.62;
  }
}


/* ======================================================
   VITAHOME — 2 GRAFIKI POD OPISEM FUNKCJI
====================================================== */
.vitahome-feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.vitahome-feature-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  background: rgba(255, 252, 245, 0.72);
  border: 1px solid rgba(83, 73, 55, 0.10);
  box-shadow: 0 10px 28px rgba(70, 60, 45, 0.08);
}

.vitahome-feature-card img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.vitahome-feature-caption {
  padding: 14px 16px 16px;
}

.vitahome-feature-caption span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a8844f;
}

.vitahome-feature-caption strong {
  display: block;
  color: #2f2a24;
  font-size: 20px;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .vitahome-feature-gallery {
    grid-template-columns: 1fr;
  }

  .vitahome-feature-card img {
    height: 240px;
  }
}

/* ======================================================
   VITAHOME — ZAKUP APLIKACJI
====================================================== */
.vitahome-buy-section {
  padding: 18px 0 34px;
}

.vitahome-buy-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 30px 34px;
  border-radius: 28px;
  background: rgba(255, 252, 245, 0.88);
  border: 1px solid rgba(76, 64, 45, 0.12);
  box-shadow: 0 18px 44px rgba(65, 55, 40, 0.08);
}

.vitahome-buy-text h2 {
  margin: 10px 0 16px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  color: #2d2a24;
}

.vitahome-buy-text p {
  max-width: 760px;
  color: #5b554c;
  font-size: 17px;
  line-height: 1.7;
}

.vitahome-buy-action {
  min-width: 220px;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
  background: rgba(246, 238, 220, 0.82);
  border: 1px solid rgba(76, 64, 45, 0.10);
}

.vitahome-price {
  margin: 0;
  font-size: 46px;
  line-height: 1;
  font-weight: 900;
  color: var(--green-dark);
}

.vitahome-price-note {
  margin: 8px 0 18px;
  color: #7a6d5d;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .vitahome-buy-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .vitahome-buy-action {
    width: 100%;
  }
}

/* ======================================================
   VITAHOME — BLOK ZAKUPU, GRAFIKI I JEDEN FORMULARZ
   MNIEJSZY TYTUŁ + RÓWNY ODSTĘP PRAWEGO BOXU
====================================================== */
.page-vitahome .vitahome-buy-section {
  padding: 8px 0 28px;
}

.page-vitahome .vitahome-buy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 34px;
  align-items: center;
  padding: 28px 42px 28px 30px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(120, 105, 82, 0.10);
  box-shadow: 0 10px 28px rgba(70, 58, 44, 0.05);
  backdrop-filter: blur(2px);
}

.page-vitahome .vitahome-buy-box .about-section-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-vitahome .vitahome-buy-text h2 {
  margin: 8px 0 14px;
  color: #332f29;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.page-vitahome .vitahome-buy-text p {
  max-width: 720px;
  color: #5f584e;
  font-size: 16px;
  line-height: 1.72;
}

.page-vitahome .vitahome-buy-text p + p {
  margin-top: 8px;
}

.page-vitahome .vitahome-buy-action {
  width: 220px;
  justify-self: end;
  padding: 22px 18px;
  border-radius: 24px;
  text-align: center;
  background: rgba(245, 239, 225, 0.68);
  border: 1px solid rgba(120, 105, 82, 0.10);
  box-shadow: 0 8px 20px rgba(70, 58, 44, 0.04);
}

.page-vitahome .vitahome-price {
  margin: 0;
  color: #49573d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 500;
}

.page-vitahome .vitahome-price-note {
  margin: 8px 0 18px;
  color: #847765;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-vitahome .vitahome-buy-action .btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 16px;
  background: #566548;
  color: #fffdf8;
  border: none;
  box-shadow: 0 8px 16px rgba(86, 101, 72, 0.14);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.page-vitahome .vitahome-buy-action .btn:hover {
  background: #4d5b40;
  transform: translateY(-1px);
}


.page-vitahome .vitahome-order-section {
  padding: 30px 0 56px;
}

.page-vitahome .form-row select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(68, 57, 42, 0.20);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.56);
  color: #2d2a24;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-vitahome .form-row select:focus {
  border-color: rgba(102, 117, 93, 0.62);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 0 0 4px rgba(102, 117, 93, 0.10);
}

@media (max-width: 820px) {
  .page-vitahome .vitahome-buy-box {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .page-vitahome .vitahome-buy-action {
    width: 100%;
    justify-self: stretch;
  }
}

.page-vitahome .visual-gallery {
  margin-top: 34px;
  margin-bottom: 34px;
}

.page-vitahome .portfolio-intro + .visual-gallery {
  margin-top: 34px;
}

.page-vitahome .about-section-head + .visual-gallery {
  margin-top: 34px;
}

.page-vitahome .vitahome-feature-gallery {
  margin-top: 34px;
  margin-bottom: 34px;
}

/* ======================================================
   FORM POPUP — THANK YOU MESSAGE
====================================================== */
.form-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form-popup.is-visible {
  display: flex;
}

.form-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(31, 28, 22, 0.58);
  backdrop-filter: blur(4px);
}

.form-popup__box {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  padding: 42px 36px 34px;
  border: 1px solid rgba(96, 112, 49, 0.22);
  border-radius: 28px;
  background: linear-gradient(135deg, #fffaf0, #f4ecd9);
  box-shadow: 0 24px 70px rgba(31, 28, 22, 0.28);
  text-align: center;
}

.form-popup__close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: #2f351c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.form-popup__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 112, 49, 0.12);
  color: #607031;
  font-size: 42px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(96, 112, 49, 0.22);
}

.form-popup__box h2 {
  margin: 0 0 14px;
  color: #22200f;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.form-popup__box p {
  margin: 0 auto 26px;
  max-width: 390px;
  color: #3d3a2c;
  font-size: 18px;
  line-height: 1.55;
}

.form-popup__button {
  min-width: 150px;
}

