/* ============================================
   Glow Studio - gabinet kosmetyczny (demo)
   Strona demonstracyjna, firma fikcyjna.

   Paleta: szałwia #8CA286, eukaliptus #4F6654,
   cyprys #1C2620, mgła #E8EDE5, szron #F4F6F2,
   miodowy blask #C9A063 (jedyny ciepły akcent)
   ============================================ */

:root {
  --sage: #8CA286;
  --eucalyptus: #4F6654;
  --cypress: #1C2620;
  --mist: #E8EDE5;
  --frost: #F4F6F2;
  --honey: #C9A063;
  --white: #FFFFFF;
  --line: #D3DBCF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', 'Segoe UI', sans-serif;
  --radius: 20px;
  --radius-s: 10px;
  --container: 1120px;
  --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--cypress);
  background: var(--white);
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--cypress);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-s) 0;
  text-decoration: none;
}

.skip-link:focus { left: 0; }

/* ---------- Typografia ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  letter-spacing: -0.01em;
}

h3 { font-size: 1.35rem; font-weight: 500; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--eucalyptus); }

:focus-visible {
  outline: 2px solid var(--eucalyptus);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--eucalyptus);
  margin-bottom: 1.4em;
}

.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  flex: none;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 0.95em 2.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--cypress);
  color: var(--white);
  border: 1px solid var(--cypress);
}

.btn-primary:hover { background: var(--eucalyptus); border-color: var(--eucalyptus); }

.btn-ghost {
  background: transparent;
  color: var(--cypress);
  border: 1px solid var(--cypress);
}

.btn-ghost:hover { color: var(--eucalyptus); border-color: var(--eucalyptus); }

.btn-block { display: block; width: 100%; }

/* ---------- Logo ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cypress);
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.brand-text { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--eucalyptus);
  margin-top: 0.35em;
}

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mist);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 38, 32, 0.09); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.site-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--cypress);
  transition: color 0.2s ease;
}

.nav-menu a:not(.btn):hover { color: var(--eucalyptus); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--cypress);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  background: var(--mist);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-copy .lead {
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  width: 100%;
  justify-self: center;
}

.hero-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 72% 78%, rgba(201, 160, 99, 0.32), rgba(201, 160, 99, 0) 55%),
    linear-gradient(150deg, var(--white) 0%, var(--sage) 100%);
}

.hero-circle-note {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(28, 38, 32, 0.32);
  user-select: none;
}

.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(28, 38, 32, 0.5);
  transform: translate(4%, -4%) scale(1.02);
}

.hero-badge {
  position: absolute;
  left: -4%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  color: var(--cypress);
  border-radius: 999px;
  padding: 0.7rem 1.4rem 0.7rem 1rem;
  box-shadow: 0 12px 32px rgba(28, 38, 32, 0.15);
}

.hero-badge-score {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.hero-badge-text {
  font-size: 0.76rem;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--eucalyptus);
}

.hero-badge-stars { color: var(--honey); letter-spacing: 0.12em; }

/* ---------- Pasek demo (ticker) ---------- */

.demo-bar {
  background: var(--cypress);
  overflow: hidden;
}

.ticker { padding-block: 11px; }

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.demo-bar:hover .ticker-track { animation-play-state: paused; }

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 56px;
  white-space: nowrap;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.ticker-item svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--honey);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.ticker-item svg .dot { fill: var(--honey); stroke: none; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Sekcje ---------- */

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.section-tint { background: var(--frost); }
.section-sage { background: var(--mist); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-intro { font-size: 1.1rem; }

.section-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ---------- Gabinet ---------- */

.gabinet-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.gabinet-panel {
  background: var(--mist);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 1rem;
  min-height: 320px;
  padding: 2rem;
}

.panel-mark {
  width: 84px;
  height: 84px;
  fill: none;
  stroke: var(--sage);
  stroke-width: 1.2;
  stroke-linecap: round;
}

.panel-note {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eucalyptus);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: var(--frost);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
}

.card-mark {
  display: block;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--eucalyptus);
  border-radius: 50%;
  position: relative;
  margin-bottom: 1.5rem;
}

.card-mark::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--honey);
  border-radius: 50%;
}

.card h3 { margin-bottom: 0.5em; }

.card p {
  font-size: 0.98rem;
  color: rgba(28, 38, 32, 0.78);
}

/* ---------- Finansowanie ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--eucalyptus);
  border-radius: 50%;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--eucalyptus);
  margin-bottom: 1.5rem;
}

.step h3 { margin-bottom: 0.5em; }

.step p {
  font-size: 0.98rem;
  color: rgba(28, 38, 32, 0.78);
}

/* ---------- Opinie ---------- */

.rating-line {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: rgba(28, 38, 32, 0.8);
}

.rating-line strong {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.9rem;
  font-weight: 500;
  margin-right: 0.15em;
}

.rating-stars { color: var(--honey); letter-spacing: 0.18em; }

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.review {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  flex: 1;
}


.review figcaption {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: rgba(28, 38, 32, 0.62);
}

.review figcaption strong { color: var(--cypress); }

/* ---------- Kontakt ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-block { margin-bottom: 1.75rem; }

.contact-block h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eucalyptus);
  margin-bottom: 0.6em;
}

.contact-links a {
  color: var(--eucalyptus);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-links a:hover { text-decoration: underline; }

.hours { margin: 0; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.hours div:first-child { border-top: 1px solid var(--line); }

.hours dt { font-weight: 500; }

.hours dd { margin: 0; color: rgba(28, 38, 32, 0.7); }

/* ---------- Formularz ---------- */

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: 0 14px 36px rgba(28, 38, 32, 0.07);
}

.contact-form h3 { margin-bottom: 1.2rem; }

.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.optional { font-weight: 400; color: rgba(28, 38, 32, 0.55); }

.form-row input,
.form-row textarea {
  width: 100%;
  font: inherit;
  color: var(--cypress);
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(28, 38, 32, 0.42); }

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--eucalyptus);
  box-shadow: 0 0 0 3px rgba(79, 102, 84, 0.16);
}

.form-row textarea { resize: vertical; min-height: 96px; }

.form-note {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cypress);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.75rem 0.9rem;
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(28, 38, 32, 0.1);
}

.contact-map iframe { display: block; width: 100%; }

/* ---------- Okno demo ---------- */

.demo-dialog {
  width: min(440px, calc(100vw - 2.5rem));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--cypress);
  box-shadow: 0 24px 60px rgba(28, 38, 32, 0.28);
}

.demo-dialog::backdrop { background: rgba(28, 38, 32, 0.55); }

.demo-dialog-inner { padding: clamp(1.75rem, 5vw, 2.5rem); }

.demo-dialog-mark {
  display: block;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--honey);
  border-radius: 50%;
  position: relative;
  margin-bottom: 1.25rem;
}

.demo-dialog-mark::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  background: var(--honey);
  border-radius: 50%;
}

.demo-dialog h2 { font-size: 1.6rem; margin-bottom: 0.5em; }

.demo-dialog p {
  font-size: 0.98rem;
  color: rgba(28, 38, 32, 0.78);
  margin-bottom: 1.75rem;
}

/* ---------- Stopka ---------- */

.site-footer {
  background: var(--cypress);
  color: rgba(255, 255, 255, 0.72);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer-lockup .brand-sub { color: var(--sage); }

.footer-tagline {
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--sage);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--white); }

.footer-address { font-size: 0.95rem; }

.portfolio-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.75rem;
}

.portfolio-note p {
  font-size: 0.95rem;
  max-width: 60ch;
}

.portfolio-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 0.75rem;
}

.portfolio-contact a {
  color: var(--honey);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.portfolio-contact a:hover { text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 1.4rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Animacje wejścia ---------- */

/* Stan ukryty tylko przy działającym JS - bez niego treść jest od razu widoczna */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Responsywność ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }

  .hero-visual {
    max-width: 340px;
    margin-top: 1rem;
  }

  .gabinet-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .gabinet-panel { min-height: 260px; }

  .cards,
  .steps,
  .reviews { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 760px) {
  :root { --header-h: 72px; }

  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.35rem; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--mist);
    padding: 0.5rem 1.5rem 1.5rem;
    box-shadow: 0 18px 30px rgba(28, 38, 32, 0.13);
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu li { border-bottom: 1px solid rgba(28, 38, 32, 0.08); }

  .nav-menu li:last-child { border-bottom: 0; }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 0.9rem 0;
  }

  .nav-cta { padding-top: 1.1rem; }

  .nav-cta .btn { display: block; width: 100%; }

  .hero-badge {
    left: 0;
    padding: 0.55rem 1.1rem 0.55rem 0.85rem;
  }

  .hero-badge-score { font-size: 1.6rem; }

  .contact-info > .btn { display: block; width: 100%; }
}
