:root {
  --bg: #f6f0e9;
  --sand: #eadccd;
  --blush: #ecd0cc;
  --rose: #c9948f;
  --ink: #4a3d38;
  --soft: #685A55; /* przyciemnione z #7d6d66: kontrast WCAG AA */
  --rose-text: #BC7A74; /* róż dla tekstu (np. „estetyki,” w nagłówku), ≥ 3:1 dla dużego tekstu */
  --white: #fffaf5;
  --line: rgba(125,109,102,.25);
  --error: #a3423a;
  --serif: 'Cormorant Garamond','Cormorant Garamond Fallback Georgia','Cormorant Garamond Fallback Times','Cormorant Garamond Fallback Noto','Cormorant Garamond Fallback DejaVu',Georgia,serif;
  --sans: 'Jost','Jost Fallback Arial','Jost Fallback Roboto','Jost Fallback DejaVu',system-ui,sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #241e1c;
  --sand: #332a27;
  --blush: #42302e;
  --rose: #d9a8a3;
  --ink: #f1e6dd;
  --soft: #bfaea5;
  --rose-text: #d9a8a3;
  --white: #2c2321;
  --line: rgba(191,174,165,.25);
  --error: #f0a39b;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.7 var(--sans);
  padding-top: env(safe-area-inset-top,0px);
  padding-bottom: env(safe-area-inset-bottom,0px);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  padding: 0;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
}
/* nav */

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.logo {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: .04em;
  border: 1px solid var(--rose);
  padding: 2px 12px 0;
}

nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  font-size: 14px;
  letter-spacing: .06em;
}

nav a:hover,
nav a:focus-visible {
  color: var(--rose);
}

.menu-toggle {
  display: none;
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 40px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
}

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

.btn:focus-visible,
.logo:focus-visible,
nav a:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}
/* hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
  padding: 30px 0 90px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--soft);
}

.hero h1 {
  font-size: clamp(46px,7vw,92px);
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--rose-text);
}

.hero p {
  max-width: 440px;
  color: var(--soft);
}

.cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.arch {
  position: relative;
}

.arch::before {
  content: "";
  position: absolute;
  inset: -18px -18px 18px 18px;
  border: 1px solid var(--rose);
  border-radius: 999px 999px 0 0;
}

.arch img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 999px 999px 0 0;
  display: block;
}

.badge {
  position: absolute;
  left: -22px;
  bottom: 40px;
  background: var(--white);
  padding: 16px 22px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(74,61,56,.12);
  font-size: 13px;
  line-height: 1.4;
}

.badge b {
  display: block;
  font: italic 400 26px var(--serif);
}
/* about */

.about {
  background: var(--sand);
  padding: 100px 0;
}

.about .wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.about h2 {
  font-size: clamp(38px,5vw,60px);
}

.about p {
  margin-bottom: 18px;
  max-width: 560px;
}

.about .closing {
  margin-top: 30px;
  font: italic 400 26px/1.35 var(--serif);
}
/* offer */

.offer {
  padding: 110px 0;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}

.head h2 {
  font-size: clamp(38px,5vw,60px);
}

.head p {
  color: var(--soft);
  max-width: 340px;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.course {
  padding: 46px 40px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 220px 220px 14px 14px;
}

.course-1 {
  background: var(--blush);
}

.course-2 {
  background: var(--sand);
  border-radius: 14px 14px 220px 220px;
}

.course .top {
  padding-top: 70px;
}

.course-2 .top {
  padding-top: 0;
}

.course .level {
  color: var(--soft);
  font-size: 14px;
}

.course h3 {
  font-size: 38px;
  margin: 10px 0 14px;
}

.course h4 {
  margin-top: 26px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.course .intro {
  margin-top: 8px;
  color: var(--soft);
}

.course ul {
  list-style: none;
  margin: 8px 0 0;
  color: var(--soft);
}

.course .top {
  padding-bottom: 30px;
}

.course li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.course .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.course-2 .row {
  margin-bottom: 60px;
}
/* reviews */

.reviews {
  background: var(--white);
  padding: 100px 0;
}

/* Desktop: trzy krótsze opinie w lewej kolumnie, najdłuższa obok na całą wysokość */
.rev {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 40px 64px;
  align-items: start;
}

.q-long {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.q {
  padding-top: 26px;
  border-top: 1px solid var(--rose);
}

.q-long {
  margin-top: 60px;
}

.rev:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 8px;
}

.q p {
  font: italic 300 24px/1.35 var(--serif);
  margin-bottom: 18px;
}

.q .name {
  font-size: 13px;
  color: var(--soft);
  letter-spacing: .04em;
}

.q .mark {
  font: 300 90px/.6 var(--serif);
  color: var(--rose);
  display: block;
  height: 36px;
  padding-top: 18px;
}
/* footer */

.end {
  padding: 110px 0 50px;
  text-align: center;
}

.end h2 {
  font-size: clamp(40px,6vw,76px);
  margin-bottom: 28px;
}

.end .logo {
  display: inline-block;
  margin-top: 70px;
  font-size: 26px;
}

.end small {
  display: block;
  margin-top: 18px;
  color: var(--soft);
  font-size: 13px;
}

.end small a:hover,
.end small a:focus-visible {
  color: var(--rose);
}

.end .back {
  margin-top: 28px;
}

.end .lead {
  color: var(--soft);
  max-width: 46ch;
  margin: 0 auto 44px;
}

/* contact form */

.contact-form {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px 24px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .03em;
}

.field .optional {
  color: var(--soft);
}

/* ramka pól z --soft: kontrast ≥ 3:1 z tłem (WCAG 1.4.11) */
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  font: 300 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--soft);
  border-radius: 14px;
  padding: 13px 16px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,var(--soft) 50%),linear-gradient(135deg,var(--soft) 50%,transparent 50%);
  background-position: calc(100% - 22px) 55%,calc(100% - 17px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field :is(input,select,textarea):focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  font-size: 14px;
  color: var(--error);
}

.field-error:empty,
.form-status:empty {
  display: none;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
}

.field--check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--ink);
}

.field--check label {
  font-weight: 300;
  letter-spacing: 0;
}

.field--check .field-error {
  grid-column: 2;
}

.form-note,
.form-noscript {
  font-size: 13px;
  color: var(--soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.form-actions .field--captcha {
  flex: 1 1 300px;
}

.form-actions .btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.form-status {
  text-align: center;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--white);
}

@media (max-width:560px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* miejsce na Turnstile zarezerwowane z góry (widżet ma 65 px wysokości), żeby formularz nie skakał */
.captcha {
  min-height: 65px;
}

.field--check label a,
.form-note a {
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
}
/* contact: tekst i kanały po lewej, formularz na piaskowym tle po prawej (jak układ „O mnie”) */
.contact {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
  text-align: left;
}

.contact h2 {
  font-size: clamp(38px,5vw,60px);
}

.contact .lead {
  margin: 0 0 40px;
}

.channels {
  list-style: none;
}

.channels li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.channels span {
  display: block;
  font-size: 13px;
  color: var(--soft);
}

.channels a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 24px/1.3 var(--serif);
  overflow-wrap: anywhere;
}

.channels .ig {
  flex: none;
  color: var(--rose);
}

.channels a:hover,
.channels a:focus-visible,
.about a.inline:hover,
.about a.inline:focus-visible {
  color: var(--rose-text);
}

.channels a:focus-visible,
.about a.inline:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.about a.inline {
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 4px;
}

/* jeden zaokrąglony róg nawiązuje do łuków ze zdjęcia i kart szkoleń */
.contact .contact-form {
  max-width: none;
  margin: 0;
  padding: 44px 40px;
  background: var(--sand);
  border-radius: 14px 100px 14px 14px;
}

.foot {
  display: flex;
  align-items: center;
  gap: 12px 28px;
  margin-top: 90px;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.foot .logo {
  margin: 0 auto 0 0;
  font-size: 22px;
}

.foot small {
  margin-top: 0;
}

@media (max-width:820px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .foot {
    flex-wrap: wrap;
    margin-top: 64px;
  }
}

@media (max-width:560px) {
  .contact .contact-form {
    padding: 30px 22px;
    border-radius: 14px 60px 14px 14px;
  }
  .channels a {
    font-size: 22px;
  }
}
/* 404 */

.not-found {
  padding: 18vh 0;
}

.not-found .btn {
  margin: 12px 10px 0 0;
  text-decoration: none;
}

/* privacy policy */

.legal {
  padding: 60px 0 40px;
}

.legal .wrap {
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(42px,6vw,68px);
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 30px;
  margin: 48px 0 14px;
}

.legal p,
.legal li {
  margin-bottom: 12px;
}

.legal ul {
  list-style: disc;
  padding-left: 1.2em;
}

.legal li::marker {
  color: var(--rose);
}

.legal strong {
  font-weight: 500;
}

.legal a {
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 3px;
}

.legal .lead {
  font: italic 300 24px/1.4 var(--serif);
}

.legal .updated {
  color: var(--soft);
  font-size: 14px;
}

.end--legal {
  padding-top: 40px;
}

.end--legal .logo {
  margin-top: 0;
}

@media (max-width:980px) {
  .course {
    padding: 40px 30px;
  }
  .course h3 {
    font-size: 34px;
  }
}

@media (max-width:820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--ink);
    border-radius: 40px;
    color: var(--ink);
    font: 400 14px var(--sans);
    letter-spacing: .06em;
    padding: 11px 20px;
    cursor: pointer;
    margin-left: auto;
  }
  .menu-toggle i {
    display: block;
    width: 14px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 -4px 0 currentColor,0 4px 0 currentColor;
  }
  .nav-actions .btn {
    padding: 11px 20px;
  }
  nav ul {
    display: none;
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px 22px;
    box-shadow: 0 10px 30px rgba(74,61,56,.12);
  }
  nav.open ul {
    display: flex;
  }
  nav ul li + li {
    border-top: 1px solid var(--line);
  }
  nav ul a {
    display: block;
    padding: 12px 0;
  }
  .hero,.about .wrap,.duo {
    grid-template-columns: 1fr;
  }
  /* Opinie przesuwane palcem; kolejna wystaje zza krawędzi, żeby było widać, że jest ich więcej */
  .rev {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 28px 8px;
    margin: 0 -28px;
    scroll-padding-inline: 28px;
    scrollbar-width: none;
  }
  .rev::-webkit-scrollbar {
    display: none;
  }
  .rev:focus-visible {
    outline-offset: -2px;
  }
  .q {
    flex: 0 0 min(340px,84%);
    scroll-snap-align: start;
  }
  .q p {
    font-size: 21px;
  }
  .hero {
    gap: 48px;
    padding-bottom: 60px;
  }
  .badge {
    left: 8px;
  }
  .arch {
    margin: 18px 18px 0 0;
  }
  .about .wrap {
    gap: 28px;
  }
  .course,.course-2 {
    min-height: 0;
    border-radius: 140px 140px 14px 14px;
    padding: 36px 28px;
  }
  .course .top,.course-2 .top {
    padding-top: 50px;
  }
  .course-2 .row {
    margin-bottom: 0;
  }
  .q-long {
    margin-top: 0;
  }
  .about,.offer,.reviews {
    padding: 70px 0;
  }
  .end {
    padding: 80px 0 40px;
  }
}

@media (max-width:420px) {
  .wrap {
    padding: 0 20px;
  }
  .rev {
    padding: 0 20px 8px;
    margin: 0 -20px;
    scroll-padding-inline: 20px;
  }
  nav {
    gap: 10px;
  }
  .nav-actions .btn,.menu-toggle {
    padding: 10px 16px;
  }
  .course,.course-2 {
    border-radius: 120px 120px 14px 14px;
    padding: 32px 22px;
  }
  .course h3 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ── Ruch: reakcje na działania, jedno wejście hero, pojawianie się przy przewijaniu ──────────
   Wejścia animują `transform`, a uniesienia przy najechaniu osobną właściwość `translate`,
   żeby zakończona animacja nie blokowała efektu hover. */

/* Cała karta szkolenia jest klikalna jak jej przycisk (prowadzi do kontaktu) */
.course { position: relative; }
.course .btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.2, .7, .2, 1); }

  .btn {
    transition: translate .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  }
  .btn:active { translate: none; box-shadow: none; transition-duration: .08s; }
  /* Przycisk w karcie nie unosi się sam (unosi się cała karta): translate na przycisku zrobiłby z niego
     blok odniesienia i klikalna warstwa karty (::after) skurczyłaby się do rozmiaru przycisku. */
  .course .btn, .course .btn:hover, .course .btn:active { translate: none; }

  nav ul a { position: relative; }
  nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    scale: 0 1;
    transition: scale .3s var(--ease);
  }
  nav ul a:hover::after, nav ul a:focus-visible::after { scale: 1; }

  .course { transition: translate .4s var(--ease), box-shadow .4s var(--ease); }

  @media (hover: hover) {
    .btn:hover { translate: 0 -2px; box-shadow: 0 12px 22px -12px rgba(74, 61, 56, .5); }
    .btn.ghost:hover { background: var(--ink); color: var(--bg); }
    .course:hover { translate: 0 -6px; box-shadow: 0 26px 40px -26px rgba(74, 61, 56, .4); }
  }

  /* Wejście hero: elementy po kolei, zdjęcie odsłania się od dołu w kształcie łuku */
  .hero > div:first-child > * { animation: hero-rise .7s var(--ease) backwards; }
  .hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .arch img { animation: arch-reveal .9s var(--ease) .15s backwards; }

  @supports (animation-timeline: view()) {
    /* Lekka paralaksa zdjęcia względem obrysu łuku */
    .arch img {
      animation: arch-reveal .9s var(--ease) .15s backwards, arch-drift linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 100vh;
    }
    /* Pojawianie się tylko nagłówków sekcji i kart szkoleń */
    .about h2, .offer .head h2, .reviews .head h2, .end h2, .course {
      animation: section-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}

@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes arch-reveal {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
  to { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
}
@keyframes arch-drift { to { translate: 0 -24px; } }
@keyframes section-in { from { opacity: 0; transform: translateY(28px); } }

/* ── Przełącznik jasny/ciemny ─────────────────────────────── */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle:hover { color: var(--rose-text); }
.theme-toggle:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
/* Ikona pokazuje tryb, na który się przełączy: księżyc w jasnym, słońce w ciemnym */
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (max-width: 820px) {
  .nav-actions { gap: 8px; }
}
@media (max-width: 360px) {
  .nav-actions { gap: 6px; }
  .nav-actions .btn, .menu-toggle { padding: 10px 13px; }
  .theme-toggle { width: 40px; height: 40px; }
}
