@import "assets/theme.css";

@font-face {
  font-family: "Iwona";
  src: url("assets/fonts/iwona/Iwona-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Iwona";
  src: url("assets/fonts/iwona/Iwona-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Iwona";
  src: url("assets/fonts/iwona/Iwona-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Antykwa Poltawskiego";
  src: url("assets/fonts/antykwa/AntykwaPoltawskiego-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Antykwa Poltawskiego";
  src: url("assets/fonts/antykwa/AntykwaPoltawskiego-Italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Antykwa Poltawskiego";
  src: url("assets/fonts/antykwa/AntykwaPoltawskiego-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

body {
  margin: 0;
  font-family: "Iwona", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Wspólna typografia dla nagłówków szeryfowych */
h1, h2, h3, .brand, .signature, .intro-title, .hero-title, .about-card__title {
  font-family: "Antykwa Poltawskiego", "Iwona", serif;
  font-weight: 700;
}

/* Wspólne style dla elementów typu karta (tło, obramowanie, cień) */
.hero,
section,
.treatment-block,
.info-card,
.sidebar-panel,
.about-hero,
.about-hero__gallery figure,
.tech-card,
.news-card,
.contact-card-grid {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Elementy z tłem surface-alt */
header,
.treatment-summary,
.news-card__header,
.device-modules details,
.device-sublist,
.about-card,
.tag {
  background: var(--surface-alt);
}

/* Elementy z dolną krawędzią */
header,
.treatment-summary,
.news-card__header {
  border-bottom: 1px solid var(--border);
}

/* Obrazki z ramką i cieniem */
.page-hero img,
.about-grid img,
.about-portrait img,
.contact-visual img {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Elementy z pełną ramką (uzupełnienie) */
.device-modules details,
.device-sublist,
.about-card,
.tag,
.project-card,
.service-card {
  border: 1px solid var(--border);
}

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

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent-dark);
}

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

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #2f2339;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(15, 10, 22, 0.3);
  min-height: 92px; /* Rezerwacja miejsca, aby uniknąć skoku treści (CLS) */
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.brand {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f6faf8;
  display: flex;
  align-items: center;
}

.brand-mark {
  height: 54px;
  width: auto;
  display: block;
}

.inline-logo {
  display: inline-flex;
  align-items: flex-end;
  margin-left: 0.3rem;
}

.inline-logo img {
  height: 56px;
  width: auto;
  transform: translateY(10px);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  padding: 0.3rem 0;
  position: relative;
  color: rgba(246, 250, 248, 0.7);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

/* Hamburger Menu Button */
.nav-toggle {
  display: none; /* Ukryty na desktopie */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 20;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background-color: #f6faf8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links a[aria-current="page"]::after {
  background-color: #ff8400;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  background-color: var(--accent);
}

.nav-links a:focus-visible,
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #f6faf8;
}

.nav-links a:focus-visible::after,
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.intro-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 1.6rem;
  text-align: center;
  justify-items: center;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f7b733 0%, #fc4a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff8400; /* Fallback z pomarańczowego */
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: auto;
  aspect-ratio: 16 / 9; /* Rezerwuje miejsce przed załadowaniem filmu */
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 10, 22, 0.4);
  background: var(--surface) url("pages/Anette_in.webp?v=20260403_1") no-repeat center center;
  background-size: cover;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 50px rgba(15, 10, 22, 0.6);
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.skip-button {
  margin: 0.5rem auto 0;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f6faf8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skip-button:hover,
.skip-button:focus-visible {
  background: rgba(255, 255, 255, 0.15) !important;
  color: var(--accent);
  border-color: rgba(255, 255, 255, 0.4);
}

header {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero {
  max-width: 720px;
  padding: 3rem 2.8rem;
}

.hero .hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  letter-spacing: -0.02em;
}

.hero p {
  margin: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 1rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.9rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  justify-self: flex-start;
  width: auto;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.button:focus-visible,
.button:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.page-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 2.5rem;
  align-items: start;
}

main {
  padding-top: 2.5rem;
}

section {
  width: 100%;
  margin: 0 0 5.5rem;
  padding: 3rem;
}

section h2 {
  margin-top: 0;
  font-size: 2.2rem;
  letter-spacing: 0.01em;
}

.page-hero {
  margin: 0 0 2.4rem;
  display: grid;
  gap: 0.75rem;
}

.page-hero img {
  width: 100%;
}

.page-hero figcaption {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  font-size: 0.95rem;
}

.treatment-block {
  margin-bottom: 1.8rem;
  padding: 0;
}

/* Wspólne style dla summary (ukrywanie markera) */
summary {
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker,
summary::marker {
  display: none;
}

.treatment-summary {
  padding: 1.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.4rem;
  align-items: center;
  scroll-margin-top: 120px;
}

.treatment-summary-text h3 {
  margin: 0 0 0.45rem;
  font-size: 1.7rem;
}

.treatment-summary-text p {
  margin: 0;
  color: var(--muted);
}

.summary-cta {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.summary-cta .cta-close {
  display: none;
}

.treatment-block[open] .summary-cta .cta-open {
  display: none;
}

.treatment-block[open] .summary-cta .cta-close {
  display: inline;
}

.teaser-figure {
  margin: 0;
}

.teaser-figure img {
  width: 100%;
  box-shadow: 0 14px 26px rgba(32, 19, 45, 0.16);
}

.treatment-body {
  padding: 2rem 1.9rem 2rem;
}

.treatment-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 1.9rem;
  align-items: start;
}

.treatment-content {
  display: grid;
  gap: 1.8rem;
}

.treatment-panel {
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  display: grid;
  gap: 0.3rem;
  background: var(--surface);
}

.treatment-detail {
  border-bottom: 1px solid rgba(255, 132, 0, 0.35);
  padding-bottom: 0.4rem;
}

.treatment-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.treatment-detail summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  gap: 0.8rem;
  color: var(--text);
  scroll-margin-top: 120px;
}

.detail-cta {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
}

.detail-cta .cta-close {
  display: none;
}

.treatment-detail[open] .detail-cta .cta-open {
  display: none;
}

.treatment-detail[open] .detail-cta .cta-close {
  display: inline;
}

.detail-body {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.treatment-detail[open] .detail-body {
  max-height: 2000px;
  opacity: 1;
  margin-top: 0.45rem;
}

.treatment-section {
  display: grid;
  gap: 0.65rem;
}

.treatment-section h4 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.treatment-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.25rem;
  color: var(--text);
  line-height: 1.4;
}

.treatment-sidebar {
  display: grid;
  gap: 1.1rem;
}

.info-card {
  padding: 1.5rem;
  display: grid;
  gap: 0.6rem;
}

.info-card h4 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.info-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.2rem;
  color: var(--text);
}

.info-card.warning {
  border-color: var(--danger);
  background: rgba(244, 67, 54, 0.08);
}

.sidebar {
  width: 100%;
  position: sticky;
  top: 6rem;
  align-self: start;
}

.sidebar-panel {
  padding: 3rem 2.4rem;
  display: grid;
  gap: 1.4rem;
}

.sidebar-panel h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.01em;
  color: #ff8400;
}

.sidebar-panel p {
  color: var(--muted);
  margin: 0;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2.3rem;
  max-width: 600px;
}

.intro-banner {
  padding: 2.5rem 1.5rem 0;
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.about-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem;
}

.about-hero__title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.about-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.about-hero__logo {
  width: min(320px, 65vw);
  height: auto;
}

.about-hero__lead {
  max-width: 760px;
  margin: 1.5rem auto 2.5rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.about-hero__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.about-hero__gallery figure {
  margin: 0;
  overflow: hidden;
}

.about-hero__gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.about-hero__gallery figcaption {
  padding: 1rem 1.3rem 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  gap: 2.8rem;
  margin-top: 3.5rem;
}

.about-grid img {
  width: 100%;
  object-fit: cover;
  height: 320px;
}

.about-text {
  display: grid;
  gap: 1.2rem;
}

.about-grid.premium {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
}

.about-portrait {
  display: grid;
  gap: 1.2rem;
}

.about-portrait img {
  height: 420px;
  object-fit: cover;
}

.about-card {
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.about-card__title {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 0;
}

.about-card p {
  margin-bottom: 1rem;
}

.signature {
  font-size: 1.15rem;
  color: var(--text);
}

.service-grid {
  display: grid;
  gap: 1.7rem;
}

.service-card {
  padding: 2rem;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 44px rgba(32, 19, 45, 0.18);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.85rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.tech-grid {
  display: grid;
  gap: 1.7rem;
}

.tech-card {
  padding: 2rem;
}

.tech-card h3 {
  margin-top: 0;
  font-size: 1.45rem;
}

.tech-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.tech-grid.devices {
  grid-template-columns: 1fr;
}

.device-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.device-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.device-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--text);
}

.device-highlights li {
  padding-left: 1.4rem;
  position: relative;
}

.device-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.device-modules details {
  padding: 0.85rem 1rem;
}

.device-modules details + details {
  margin-top: 0.8rem;
}

.device-modules summary {
  font-weight: 600;
  color: var(--text);
}

.device-modules p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.device-sublist {
  padding: 1rem 1.2rem;
}

.device-sublist + .device-sublist {
  margin-top: 0.8rem;
}

.device-sublist h4 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: #2f2339;
}

.portfolio-grid {
  display: grid;
  gap: 1.7rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.82);
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-info {
  position: absolute;
  inset: 0;
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: rgba(47, 35, 57, 0.75);
}

.project-info span {
  font-size: 0.9rem;
  opacity: 0.75;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.testimonial-grid {
  display: grid;
  gap: 2.1rem;
}

.review-widget {
  margin-top: 2.4rem;
  display: flex;
  justify-content: center;
}

.review-widget > div {
  width: 100%;
}

blockquote {
  margin: 0;
  padding: 2.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 1.4rem;
}

label {
  font-family: "Iwona", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 132, 0, 0.18);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

footer {
  text-align: center;
  padding: 3.2rem 1.5rem;
  color: rgba(246, 250, 248, 0.85);
  font-size: 0.95rem;
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 150px; /* Wstępna rezerwacja miejsca dla stopki */
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  border-color: var(--accent);
  background: rgba(255, 132, 0, 0.1);
  transform: translateY(-2px);
}

.footer-socials img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.footer-socials a:hover img {
  opacity: 1;
  filter: grayscale(0%);
}

footer a {
  color: var(--accent);
  font-weight: 600;
}

/* --- Pricing Page Styles --- */

.pricing-grid {
  column-count: 1;
  column-gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: fit-content;
  break-inside: avoid;
  margin-bottom: 2rem;
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
  border-bottom: 2px solid rgba(255, 132, 0, 0.2);
  padding-bottom: 0.8rem;
  display: inline-block;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list li:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.service-name {
  font-weight: 500;
  color: var(--text);
  padding-right: 1rem;
}

.service-price {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Legal Note Styles */
.legal-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.disclaimer-top {
  max-width: 800px;
  margin: -1rem auto 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 680px) {
  .about-grid:not(.premium) {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .service-grid,
  .portfolio-grid,
  .tech-grid,
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .tech-grid.devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  nav {
    position: static;
  }

  .about-grid.premium {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 2rem 1.4rem;
  }

  .about-hero__gallery {
    grid-template-columns: 1fr;
  }

  .nav-content {
    flex-wrap: wrap;
    gap: 0;
  }

  .brand {
    flex-grow: 1;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    width: 100%;
    display: none; /* Domyślnie ukryte */
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .nav-links a {
    padding: 0.8rem 0; /* Większe pole dotyku na mobile */
    width: 100%;
    text-align: center;
  }

  /* Animacja Hamburgera */
  .nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  section {
    padding: 2.6rem 2.1rem;
  }

  .treatment-summary {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .treatment-layout {
    grid-template-columns: 1fr;
  }

  .treatment-body {
    padding: 1.5rem 1.4rem 1.5rem;
  }

  .footer-socials img {
    opacity: 1;
    filter: grayscale(0%);
  }
}

@media (max-width: 960px) {
  .page-body {
    grid-template-columns: 1fr;
    padding: 0 1.5rem 3.5rem;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 480px) {
  header {
    padding-top: 5rem;
  }

  .about-hero__logo {
    width: 70vw;
  }

  .about-hero__lead {
    font-size: 1rem;
  }

  .about-portrait img {
    height: 280px;
  }

  .news-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hero {
    padding: 2.7rem 1.8rem;
  }

  section {
    padding: 2.2rem 1.5rem;
  }

  .treatment-summary-text h3 {
    font-size: 1.35rem;
  }

  .brand-mark {
    height: 40px;
  }

  .inline-logo img {
    height: 46px;
    transform: translateY(6px);
  }

  .service-grid,
  .portfolio-grid,
  .testimonial-grid,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    padding: 2.4rem 1.8rem;
  }
}

.news-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
  display: grid;
  gap: 2.5rem;
}

.news-hero {
  text-align: center;
}

.news-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 3.2rem);
}

.news-hero p {
  margin: 0;
  color: var(--muted);
}

.news-list {
  display: grid;
  gap: 1.6rem;
}

.news-card {
  overflow: hidden;
  color: var(--text);
}

.news-card__header {
  display: block;
  text-align: center;
  padding: 1rem 1.6rem;
}

.news-card__header time {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.news-card__image {
  background-color: var(--surface-alt); /* Tło dla marginesów bocznych */
  display: flex;
  justify-content: center; /* Centrowanie zdjęcia, gdy jest węższe niż wpis */
  width: 100%;
}

.news-card__image img {
  display: block;
  width: 100%;          /* Wymuś wypełnienie szerokości */
  height: auto;         /* Pozwól wysokości wynikać z proporcji... */
  max-height: 23rem;    /* ...ale nie więcej niż 6x ramki daty */
  object-fit: contain;
}

.news-card__body {
  padding: 1.8rem 1.6rem 1.9rem;
  display: grid;
  gap: 0.9rem;
}

.news-card__body p {
  margin: 0;
  line-height: 1.7;
  color: var(--text);
  text-align: left;
}

.news-card__tagline {
  font-weight: 600;
  color: #2f2339;
}

.news-card__cta {
  margin-top: 0.5rem;
  align-self: flex-start;
}

.standalone {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}


.teaser-details {
  margin-top: 1.2rem;
}

.teaser-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-style: italic;
  color: var(--accent);
  font-family: inherit;
}

.teaser-details summary::after {
  content: ">";
  font-style: normal;
  font-size: 0.9em;
  transition: transform 0.2s ease;
}

.teaser-details[open] summary::after {
  content: "<";
}

.teaser-body {
  margin-top: 1rem;
  color: var(--text);
}

.inline-details .details-body p {
  margin: 0;
  color: var(--text);
}

/* --- Pricing Page Styles --- */

.pricing-grid {
  column-count: 1;
  column-gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 2rem;
  height: fit-content;
  break-inside: avoid; /* Zapobiega dzieleniu karty między kolumnami */
  margin-bottom: 2rem; /* Odstęp pionowy w układzie kolumnowym */
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
  border-bottom: 2px solid rgba(255, 132, 0, 0.2);
  padding-bottom: 0.8rem;
  display: inline-block;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list li:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.service-name {
  font-weight: 500;
  color: var(--text);
  padding-right: 1rem;
}

.service-name a {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.service-name a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.service-price {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

/* Legal Note Styles */
.legal-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.disclaimer-top {
  max-width: 800px;
  margin: -1rem auto 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 680px) {
  .pricing-grid {
    column-count: 2;
  }
}

/* --- Contact Page Redesign --- */

.contact-wrapper {
  display: grid;
  gap: 4rem;
}

.contact-card-grid {
  display: grid;
  overflow: hidden;
}

.contact-visual {
  position: relative; /* Ustanawia kontekst pozycjonowania dla obrazka */
  margin: 0; /* Resetuje domyślny margines dla <figure> */
}

.contact-visual img {
  /* Wyjmujemy obrazek z przepływu, aby nie wpływał na rozmiar siatki */
  position: absolute;
  /* Centrujemy obrazek i ograniczamy jego rozmiar do faktycznej wielkości */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: calc(100% - 5rem);
  max-height: calc(100% - 5rem);
  background: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-visual img:hover {
  transform: translate(-50%, calc(-50% - 6px));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.contact-details-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8rem;
}

.contact-data {
  display: grid;
  gap: 1.2rem;
  font-size: 1.05rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

.contact-item:hover {
  color: var(--accent);
}

.map-frame {
  width: 100%;
  height: 450px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  filter: grayscale(0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.map-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
  border-color: var(--accent);
}

.contact-details-content h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.contact-details-content address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}

.contact-icon {
  font-size: 1.2rem;
}

.contact-social {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.contact-social .button {
  width: 100%;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 1rem;
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.contact-social .button:hover {
  transform: none;
  background-color: var(--surface-alt);
  border-color: var(--accent);
  color: var(--accent);
}

#mapa h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  margin-top: 0;
}

@media (min-width: 840px) {
  .contact-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-visual {
    order: 2;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================= */
/* GEO & AEO Optymalizacje (Answer-First)    */
/* ========================================= */
.services-geo-section {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.services-geo-section h2 {
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.lead-answer {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
  color: var(--text);
}

.lead-answer strong {
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.5rem;
}

.services-list {
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.services-list li {
  margin-bottom: 0.8rem;
}

.services-list strong {
  color: var(--accent);
}

.contact-geo {
  font-style: normal;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
  color: var(--muted);
}
