/* =====================
RESET
===================== */

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

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f2f2f2d9;
  color: rgb(5,70,135);
  line-height: 1.5;
}

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

/* Chrome boosting reset */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* =====================
PAGE CONTAINER
===================== */

.container {
  width: min(100%,70rem);
  margin-inline: auto;
}

/* =====================
SECTIONS
===================== */

section {
  padding: clamp(1rem,3vw,2rem) 0;
}

/* background images */

body main section:first-of-type div {
  position: relative;
  background-image: url("/reczniki2.png");
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
  color: white;
}


body main section:first-of-type div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);   /* opacity tła */
}

body main section:first-of-type div > * {
  position: relative;
  z-index: 1;
}

/* border radius */
section .container{
  padding-top:clamp(1rem,2vw,1.4rem);
  padding-bottom:clamp(1rem,2vw,1.4rem);
  border-radius:.7rem;
  box-shadow:0 14px 38px rgba(0,0,0,0.10);
  max-width: 32rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  overflow: hidden;
}

section .container{
  transition:transform .18s ease, box-shadow .18s ease;
}

section .container:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 48px rgba(0,0,0,.14);
}

/*
section .container{
  background:rgba(255,255,255,0.11);
  padding-top:clamp(1rem,2vw,1.4rem);
  padding-bottom:clamp(1rem,2vw,1.4rem);
  border-radius:.7rem;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.35);
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  max-width: 32rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}*/

.languages{
  list-style:none;
  padding:0;
  margin:.6rem 0 0;
}

.languages li{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-left:1.8rem;
}

.languages span{
  font-size:1.2rem;
  padding-right:0.75rem;
}

.courses{
  list-style:none;
  padding:0;
  margin:.6rem 0 0;
}

.courses li{
  display:flex;
  gap:.6rem;
  margin-left:1.2rem;
  line-height:1.6rem;
}

.courses .year{
  font-weight:bold;
  min-width:3rem;
}

/* =====================
SECTION BACKGROUNDS
===================== */

main section:nth-of-type(3n+1) {
  background: #91cce3;
}

main section:nth-of-type(3n+2) {
  background: #f0d8e6;
}

main section:nth-of-type(3n) {
  background: #f2f2f2;
}

/* =====================
HERO
===================== */

.hero {
  width: 100%;
  position:relative;
}

/* language switch */

.lang-switch{
  position:relative;
  font-size:.9rem;
  text-align:center;
  gap:.25rem;
  letter-spacing:.05em;
}

.lang-switch a{
  padding:.15rem .45rem;
  border-radius:.35rem;
  text-decoration:none;
}

a{
  color:#0a6d94;
  text-decoration:none;
  position:relative;
}

a::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-2px;
  width:100%;
  height:2px;
  background:currentColor;

  transform:translateX(-50%) scaleX(0);
  transform-origin:center;
  transition:transform .25s ease;
}

a:hover::after{
  transform:translateX(-50%) scaleX(1);
}

a:visited{
  color:#7a3f6a;
}

body:not(.lp) .hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.hero-photo {
  background: #91cce3;
  display: flex;
  justify-content: flex-end;
}

.hero-text {
  background: #f0d8e6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(1rem,1vw,1rem);
}

.hero-text h1 {
  margin: 0 0 0.2rem 0;
  font-family: "Cormorant", sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: rgb(10,109,148);
}

.hero-text h2 {
  margin: 0;
  font-family: "Cormorant", sans-serif;
  text-align: right;
  font-size: clamp(1.2rem,2vw,1.7rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: rgb(10,109,148);
}

.hero-inner {
  width: min(100%,35rem);
  padding: clamp(2rem,4vw,3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-photo .hero-inner {
  align-items: center;
}

.hero-photo img {
  width: min(60%,18rem);
  aspect-ratio: 1;
}

/* =====================
TYPOGRAPHY
===================== */

section header h2{
  font-family:"Cormorant",sans-serif;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:1.1rem;
  margin:0;
}

h4 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing:.03em;
}

hr {
  border: none;
  height: 2px;
  background: rgba(5,70,135,.4);
  margin: 0.75rem 0 1.5rem;
  width: 100%;
}

p {
  max-width: 32rem;
  line-height: 1.7;
}

p + p {
  margin-top: 1rem;
}

/* =====================
ARTICLES
===================== */

article + article {
  margin-top: 1rem;
}

/* =====================
FAQ
===================== */

.faq details {
  border-top: 1px solid rgba(5,70,135,.25);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid rgba(5,70,135,.25);
}

.faq summary {
  cursor: pointer;
  display: flex;
  gap: .7rem;
  align-items: center;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(5,70,135,.35);
  border-radius: 50%;
}

.faq details[open] summary::before {
  content: "−";
}

.faq p {
  padding-left: 2rem;
  margin-top: .6rem;
}

p{
  text-align:justify;
  text-wrap:pretty;
  hyphens:auto;
}

/* =====================
FOOTER
===================== */

footer {
  background: #f0d8e6;
  padding: clamp(2rem,4vw,3rem) 0;
  text-align: center;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  max-width: 24rem;
  background:rgba(255,255,255,0.11);
  padding-top:clamp(1rem,2vw,1.4rem);
  padding-bottom:clamp(1rem,2vw,1.4rem);
  border-radius:.7rem;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,0.35);
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
  max-width: 32rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

footer div address p {
  text-decoration: bold;
  font-family: "Inter", sans-serif;
  font-size: clamp(0.8rem,1.6vw,1.3rem);
  margin: 0;
  text-align: center;
}

.footer-contact p:nth-child(3n+1){
  color:#7a3f6a;   /* przygaszony malinowy */
}

.footer-contact p:nth-child(3n+2){
  color:#054687;   /* głęboki niebieski */
}

.footer-contact p:nth-child(3n){
  color:#3f4a52;   /* grafitowy */
}

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

/* =====================
TIMELINE
===================== */

.timeline article{
  position:relative;
  padding-left:1.8rem;
  border-left:2px solid rgba(5,70,135,.25);
  line-height:1.6;
}

.timeline article + article{
  margin-top:1.8rem;
}

.timeline article::before{
  content:"";
  position:absolute;
  left:-0.38rem;
  top:.45rem;
  width:.55rem;
  height:.55rem;
  border-radius:50%;
  background:#054687;
}

.timeline article p:first-of-type{
  margin-bottom:.25rem;
}

.timeline article ul li {
  font-weight:bold;
}

.timeline article p:nth-of-type(2){
  font-style:italic;
  margin-bottom:.4rem;
}

/* spójniki */

p{
  text-wrap: pretty;
}


/* SEO */

.seo {
  opacity: 0.75;
  font-size: 0.85em;
}

/* CTA */

.cta{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  margin-top:0.2rem;
  padding:.95rem 1.6rem;
  background:rgba(255,255,255,0.55);
  color:#4f6e61;
  border:2px solid #5f7e70;
  font-weight:550;
  border-radius:999px;
  text-decoration:none;
  transition:
    background .2s ease,
    color .2s ease;
}

.cta:hover{
  background:#9faea0;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  font-weight:750;
  opacity: 0.95;
}

.cta-icon{
  width:1.5em;
  height:1.5em;

  stroke:currentColor;
  fill:none;

  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.cta:hover .cta-icon{
  transform:scale(1.3);
  transition:transform .2s ease;
}

section > .container > p:last-of-type{
  display:flex;
  justify-content:center;
}

.cta-main {
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:.005rem;

  border-top:1px solid rgba(63,95,85,.15);
  background:rgba(255,255,255,.25);
  border-radius:.6rem;
  padding:.6rem .6rem .5rem;
}

.cta-micro{
  font-size:.85rem;
  text-align:center;
  opacity:.75;
  color:inherit;
  max-width:26rem;
  margin-inline:auto;
  margin-top:0.005rem !important;
  font-size:.8rem;
  line-height:1.25;
}

.cta-micro::before{
  content:"⏱ ";
}

/* CTA with background image */
body main section:first-of-type div:not(.timeline) p:last-of-type a.cta {
  background: white;
  opacity: 0.65;
}


/* =====================
MOBILE
===================== */

@media (max-width:50rem) {
  
  .hero {
    padding: 0rem;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.25rem;
    align-items: center;
    overflow: hidden;
    padding: 0rem;
  }
  
  .hero-photo {
    height: 100%;
    overflow: hidden;
    padding: 0rem;
  }

  .hero-photo .hero-inner {
    padding: 0;
    margin: 0;
  } 

  .hero-photo img {
    width: 13rem;
    padding: 0;
    margin: 0.1rem;
  }
  
  .hero-text {
    display: grid;
    grid-template-rows: auto auto;
    padding: 0.1rem;
    height: 100%;
  }
  
  .hero-text div h1 {
    font-size: 1.6rem;
    line-height: 1.05;
    margin: 0;
    margin-bottom: 0.35rem;
  }
  
  .hero-text div h2 {
    font-size: 0.95rem;
    line-height: 1.1;
    margin: 0;
  }
  
  .lang-switch {
    font-size: 0.65rem;
    padding: 0.1rem 0;
  }

  section {
    padding: clamp(0.5rem,1.5vw,1rem) 0;
  }
}

/* =====================
LP HERO OVERRIDE
===================== */

body.lp .hero-text p:first-of-type:not(.promo-title){
  margin-top:.8rem;
}

body.lp .hero-grid{
  grid-template-columns:1fr;
  grid-template-rows:auto auto;
}

body.lp .hero-photo{
  order:-1;
  justify-content:center;
}

body.lp .hero-text{
  text-align:center;
}

body.lp .hero-text h2{
  text-align:center;
}

body.lp .hero-inner{
  width:min(100%,28rem);
  margin:auto;
}

body.lp .hero-photo{
  background:none;
}

body.lp .hero-text{
  background:none;
}

body.lp .hero-photo img{
  width:min(100%,28rem);
  height:auto;
  aspect-ratio:auto;
}

body.lp .hero-inner{
  padding:.4rem 0.8rem .4rem;
}

body.lp .hero-text p{
  display:flex;
  justify-content:center;
  margin-top:.2rem;
  margin-bottom:.2rem;
  padding: 0;
}

body.lp div.cta-main a.cta{
  margin: 0;
  padding:.8rem 1rem;
}

body.lp div.cta-secondary a.cta{
  margin: 0;
  padding:.3rem 1rem;
}

.cta-main{
  display:flex;
  justify-content:center;
  margin-top:0.4rem;
}

.cta-secondary{
  display:flex;
  justify-content:center;
  gap:0.4rem;
  margin-top:0.2rem;
  flex-wrap:wrap;
}

.cta-main .cta{
  background:rgba(255,255,255,0.75);
  font-weight:750;
}

.cta{
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.cta:hover{
  box-shadow:0 6px 16px rgba(0,0,0,.15);
}

.cta-icon{
  transform:translateY(-1px);
}

.hero-trust{
  list-style:none;
  padding:0;
  margin:.8rem 0 0.2rem;
  text-align:center;
}

.hero-trust li{
  font-size:1.05rem;
  font-weight:500;
  margin:.3rem 0;
  letter-spacing:.02em;
}

.hero-trust li::before{
  content:"✔";
  margin-right:.4rem;
}

.hero-trust:nth-of-type(2) li {
  font-size:0.9rem;
  font-weight:450;
  margin:.15rem 0;
  letter-spacing:.05em;
}


body.lp .hero-text h1{
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin-top: 0.1rem;
  margin-bottom: 0;
  letter-spacing: 0;
}

body.lp .hero-text h2{
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin-top: 0.1rem;
  margin-bottom: 0;
}

body.lp main section:first-of-type {
  padding-top: 0.3rem;
}

body.lp main section:first-of-type .container {
  padding-top: 0.6rem;
}

.cta-secondary {
  margin-bottom: 1.2rem;
}

.cta-link-secondary{
  display:inline-flex;
  align-items:center;
  gap:.4rem;

  margin-top: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-bottom: 1px solid rgba(10,109,148,.4);

  font-size: 1.1rem;
  font-weight: 525;

  color: #406e00;
  background: rgba(255,255,255,0.5);

  border-radius: 999px;

  text-decoration: none;
  transition: all .2s ease;
}

.cta-link-secondary:hover{
  border-color: rgba(10,109,148,.9);
}

/* mobile override */

@media (max-width:50rem){

  body.lp .hero-grid{
    grid-template-columns:1fr;
    grid-template-rows:auto auto;
  }

  body.lp .hero-photo{
    width:100%;
    justify-content:center;
  }

  body.lp .hero-text{
    width:100%;
  }

}

/* sticky cta */
@media (max-width:50rem){
  .cta-active{
    padding-top:9rem;
  }

  body.lp .cta-main.cta-floating{
    position:fixed;
    top:0;
    left:0;
    right:0;

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

    padding:.7rem .9rem .6rem;

    background:rgba(255,255,255,.80);
    backdrop-filter:blur(6px);

    z-index:999;

    box-shadow:0 8px 22px rgba(0,0,0,.25);
  }

  body.lp .cta-main.cta-floating .cta{
    width:100%;
    max-width:32rem;
    text-align:center;
    justify-content:center;
  }

  .cta-floating .cta-micro{
    margin-top:.25rem;
    font-size:.8rem;
    opacity:.75;
    line-height:1.15;
  }

}

/* promo override */

.hero-promo{
  margin:.05rem 0 .05rem;
  text-align:center;
}

.promo-title {
  font-weight: 600;
  line-height: 1.15;
  margin:0;
  padding:0;
}

.promo-price {
  font-size: 0.95rem;
  line-height: 1.15;
  margin:0;
}

.hero-promo s{
  opacity:.6;
  margin-left:.2rem;
  margin-right:.2rem;
}
