/* ==========================================================
   ÈCLAT SKIN – arkusz stylów
   Zdjęcia i teksty ustawiane są w panelu admina (inline style).
   ========================================================== */

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

:root {
    --black: #000;
    --white: #fff;
    --off: #fdfdfd;
    --line: #f0f0f0;
    --grey: #777;
    --text: #444;
    --gutter: clamp(20px, 6vw, 80px);
    --section-y: clamp(60px, 10vw, 100px);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Montserrat', system-ui, -apple-system, sans-serif;
}

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

body {
    background: var(--white);
    color: var(--black);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, .brand-name {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: 1px;
    overflow-wrap: break-word;
}

a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only, .hp {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 10px; top: -60px; z-index: 300;
    background: var(--white); color: var(--black); padding: 10px 16px; font-size: 12px;
}
.skip-link:focus { top: 10px; }

/* Zdjęcia-tła: domyślnie ciemne, zanim obraz się wczyta */
.hero-section, .page-hero, .card-dark, .cta-banner, .map-section { background-color: #1a1a1a; }
.hero-section, .page-hero, .feature-card, .split-image, .about-intro-image,
.member-photo, .treatment-img, .cta-banner, .map-section {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* ==========================================================
   NAGŁÓWEK
   ========================================================== */
.main-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px var(--gutter);
    padding-top: max(30px, env(safe-area-inset-top));
}

.logo {
    display: flex;
    flex-direction: column;
    color: var(--white);
    text-decoration: none;
    position: relative;
    z-index: 120;
}

.brand-name { font-size: 28px; letter-spacing: 4px; }

.brand-sub {
    font-size: 10px;
    letter-spacing: 6px;
    text-align: center;
    margin-top: -4px;
}

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

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    margin: 0 20px;
    opacity: 0.7;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: opacity .3s, border-color .3s;
}

.main-nav a:hover, .main-nav a.active { opacity: 1; border-bottom-color: var(--white); }

.main-nav .nav-cta, .main-nav .nav-phone { display: none; }

.cta-header .btn-link {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,.4);
    padding-bottom: 4px;
}

/* Przycisk menu (hamburger) – widoczny tylko na telefonach/tabletach */
.menu-toggle {
    display: none;
    position: relative;
    z-index: 120;
    width: 44px; height: 44px;
    margin-right: -10px;
    background: none;
    border: 0;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 11px;
    width: 22px; height: 1px;
    background: var(--white);
    transition: transform .3s, opacity .3s, top .3s;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.nav-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ==========================================================
   HERO (strona główna)
   ========================================================== */
.hero-section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px var(--gutter) 80px 10%;
}

.hero-content { color: var(--white); max-width: 600px; }

.section-subtitle, .section-subtitle-light {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 25px;
    opacity: .9;
}
.section-subtitle-light { color: var(--grey); }

.hero-title {
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: .85;
}

/* ==========================================================
   LINKI ZE STRZAŁKĄ
   ========================================================== */
.arrow-link, .arrow-link-dark, .arrow-link-light {
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    padding: 8px 0 5px;
}
.arrow-link, .arrow-link-light { color: var(--white); border-bottom: 1px solid rgba(255,255,255,.3); }
.arrow-link-dark { color: var(--black); border-bottom: 1px solid rgba(0,0,0,.3); }

.arrow { margin-left: 15px; font-size: 16px; transition: transform .3s; }

@media (hover: hover) {
    .arrow-link:hover .arrow, .arrow-link-dark:hover .arrow, .arrow-link-light:hover .arrow { transform: translateX(5px); }
}

/* ==========================================================
   STRONA GŁÓWNA – 3 KAFELKI
   ========================================================== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 550px; }

.feature-card {
    padding: 60px clamp(24px, 4vw, 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-dark { color: var(--white); }

.card-light-text {
    background-color: var(--off);
    align-items: center;
    text-align: center;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.card-light-text .card-content { display: flex; flex-direction: column; align-items: center; }

.card-light-img { background-color: #f3f3f3; }

.card-subtitle, .card-subtitle-dark {
    display: block;
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.card-subtitle { opacity: .8; }
.card-subtitle-dark { color: var(--grey); }

.card-title { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.3; margin-bottom: 40px; }
.card-title-dark { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; margin-bottom: 30px; }

.divider { width: 1px; height: 50px; background: var(--black); margin: 0 0 20px; }

.card-text { font-size: 13px; font-weight: 300; line-height: 1.6; margin-bottom: 40px; color: var(--text); }

/* ==========================================================
   SEKCJA DZIELONA (tekst + zdjęcie)
   ========================================================== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--black);
    color: var(--white);
    min-height: 600px;
}

.split-text {
    padding: var(--section-y) 10% var(--section-y) 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.split-title { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; margin-bottom: 35px; }

.split-description { font-size: 14px; font-weight: 300; line-height: 1.7; margin-bottom: 40px; opacity: .8; }

/* ==========================================================
   STOPKA
   ========================================================== */
.main-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px var(--gutter) 30px;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
    background: var(--white);
    align-items: center;
    border-top: 1px solid #eee;
}

.main-footer .brand-name { font-size: 24px; display: block; }

.footer-sub { font-size: 9px; letter-spacing: 3px; color: var(--grey); margin-top: 5px; display: block; }

.footer-label { font-size: 10px; letter-spacing: 2px; color: var(--grey); display: block; margin-bottom: 15px; }

.footer-text { font-size: 13px; font-weight: 300; line-height: 1.6; }

.social-col { text-align: center; }

.social-icons { display: flex; justify-content: center; gap: 15px; }

.icon-circle {
    width: 44px; height: 44px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--black);
    font-size: 12px;
    transition: background .3s, color .3s;
}
.icon-circle:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.contact-col { text-align: right; }

.phone-number { display: block; font-size: 16px; letter-spacing: 1px; color: var(--black); text-decoration: none; }
.footer-email { display: block; margin-top: 6px; font-size: 12px; color: var(--grey); text-decoration: none; }

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 10px;
    letter-spacing: 2px;
    color: #aaa;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

/* ==========================================================
   PODSTRONY – BANER
   ========================================================== */
.page-hero {
    height: 50vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    padding: 110px var(--gutter) 40px 10%;
    color: var(--white);
}

.page-hero-title { font-size: clamp(36px, 6vw, 56px); letter-spacing: 3px; }
.page-hero-content .section-subtitle { margin-bottom: 20px; }

/* ==========================================================
   O NAS
   ========================================================== */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }

.about-intro-text {
    padding: var(--section-y) 10% var(--section-y) 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--off);
}

.about-title { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.2; margin-bottom: 35px; }

.about-description { font-size: 14px; font-weight: 300; line-height: 1.7; margin-bottom: 25px; color: var(--text); }

.values-section { padding: var(--section-y) 10%; background: var(--black); color: var(--white); }

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.value-item { text-align: center; }

.value-number, .step-number {
    font-family: var(--serif);
    font-size: 48px;
    color: rgba(255,255,255,.15);
    display: block;
    margin-bottom: 20px;
}

.value-title { font-size: 18px; letter-spacing: 2px; margin-bottom: 20px; }
.value-text { font-size: 13px; font-weight: 300; line-height: 1.7; opacity: .7; }

.team-section { padding: var(--section-y) 10%; background: var(--off); text-align: center; }
.team-header { margin-bottom: 60px; }
.team-title { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.2; }

.team-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.team-member { text-align: center; width: 200px; }

.member-photo {
    width: 180px; height: 180px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background-color: #eee;
}

.member-name { font-size: 18px; margin-bottom: 8px; }
.member-role { font-size: 11px; letter-spacing: 2px; color: var(--grey); text-transform: uppercase; line-height: 1.5; }

/* ==========================================================
   BANER CTA
   ========================================================== */
.cta-banner { padding: var(--section-y) var(--gutter); text-align: center; color: var(--white); }
.cta-title { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: 2px; margin-bottom: 20px; line-height: 1.25; }
.cta-text { font-size: 14px; font-weight: 300; line-height: 1.6; margin-bottom: 40px; opacity: .8; }
.cta-content .arrow-link { font-size: 12px; }

/* ==========================================================
   ZABIEGI
   ========================================================== */
.treatments-intro, .skin-intro { padding: var(--section-y) var(--gutter); background: var(--off); text-align: center; }

.treatments-title, .skin-intro-title { font-size: clamp(28px, 3.5vw, 36px); line-height: 1.2; margin-bottom: 30px; }

.treatments-description, .skin-intro-description {
    font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text);
    max-width: 700px; margin: 0 auto;
}

.treatment-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 400px;
    border-bottom: 1px solid var(--line);
}

.treatment-card-reverse .treatment-img { order: 2; }

.treatment-img { background-color: #eee; }

.treatment-info {
    padding: 60px clamp(24px, 6vw, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.treatment-category { font-size: 10px; letter-spacing: 3px; color: var(--grey); text-transform: uppercase; margin-bottom: 15px; }
.treatment-name { font-size: clamp(22px, 2.5vw, 28px); line-height: 1.3; margin-bottom: 25px; }
.treatment-desc { font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--text); margin-bottom: 25px; }

.treatment-price {
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: 1px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.empty-note { text-align: center; padding: 80px 20px; color: #999; font-size: 14px; }

/* ==========================================================
   SKÓRA
   ========================================================== */
.skin-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.skin-type-card {
    padding: 80px clamp(24px, 4vw, 50px);
    text-align: center;
    background: var(--white);
    transition: background .3s;
}
@media (hover: hover) { .skin-type-card:hover { background: #f9f9f9; } }

.skin-type-icon { font-size: 36px; margin-bottom: 25px; }
.skin-type-title { font-size: 18px; margin-bottom: 20px; }
.skin-type-desc { font-size: 13px; font-weight: 300; line-height: 1.7; color: #555; }

.routine-section { padding: var(--section-y) 10%; background: var(--black); color: var(--white); text-align: center; }
.routine-header { margin-bottom: 60px; }
.routine-title { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: 2px; }

.routine-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-number { font-size: 42px; }
.step-title { font-family: var(--sans); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; }
.step-desc { font-size: 13px; font-weight: 300; line-height: 1.6; opacity: .7; }

/* ==========================================================
   KONTAKT
   ========================================================== */
.contact-info-section { padding: var(--section-y) var(--gutter); background: var(--off); }

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info-card {
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--line);
    background: var(--white);
    transition: transform .3s;
}
@media (hover: hover) { .contact-info-card:hover { transform: translateY(-5px); } }

.contact-icon { font-size: 28px; display: block; margin-bottom: 20px; }
.contact-card-title { font-size: 16px; margin-bottom: 15px; }

.contact-card-text, .contact-card-link {
    font-size: 13px; font-weight: 300; line-height: 1.6; color: #555;
    text-decoration: none; overflow-wrap: anywhere;
}
.contact-card-link:hover { color: var(--black); }

.contact-form-section { padding: var(--section-y) var(--gutter); background: var(--white); scroll-margin-top: 20px; }
.contact-form-container { max-width: 800px; margin: 0 auto; }
.contact-form-text { text-align: center; margin-bottom: 50px; }
.contact-form-title { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.2; margin-bottom: 20px; }
.contact-form-desc { font-size: 14px; font-weight: 300; color: #555; line-height: 1.6; }

.contact-form { max-width: 600px; margin: 0 auto; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-field { display: block; }

.form-input, .form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    background: #fafafa;
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: .5px;
    color: var(--black);
    outline: none;
    transition: border-color .3s;
    -webkit-appearance: none;
    appearance: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--black); }
.form-input.invalid, .form-textarea.invalid { border-color: #c0392b; }

.form-textarea { resize: vertical; margin-bottom: 20px; min-height: 140px; display: block; }

.form-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    cursor: pointer;
}
.form-consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #000; }
.form-consent.invalid { color: #c0392b; }

.form-submit {
    display: inline-block;
    padding: 17px 50px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background .3s, opacity .3s;
    text-transform: uppercase;
}
.form-submit:hover { background: #333; }
.form-submit:disabled { opacity: .5; cursor: wait; }

.form-status { padding: 15px 20px; margin-bottom: 20px; font-size: 13px; text-align: center; border: 1px solid; }
.form-status[hidden] { display: none; }
.form-success { background: #eef7f0; color: #155724; border-color: #c3e6cb; }
.form-error { background: #fdf0ef; color: #8a1f14; border-color: #f1c4bf; }

.map-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 60px var(--gutter);
}
.map-content { max-width: 440px; }
.map-marker { font-size: 36px; display: block; margin-bottom: 20px; }
.map-text { font-family: var(--serif); font-size: 22px; letter-spacing: 1px; margin-bottom: 15px; line-height: 1.4; }
.map-sub { font-size: 13px; font-weight: 300; opacity: .7; line-height: 1.6; margin-bottom: 30px; }

/* ==========================================================
   BLOG
   ========================================================== */
.blog-list, .home-blog { padding: var(--section-y) var(--gutter); background: var(--white); }
.home-blog { background: var(--off); border-top: 1px solid var(--line); }
.home-blog-header { text-align: center; margin-bottom: 50px; }
.home-blog-header .treatments-title { margin-bottom: 0; }
.home-blog-more { text-align: center; margin-top: 50px; }

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card { display: flex; flex-direction: column; background: var(--white); }
.home-blog .post-card { border: 1px solid var(--line); }

.post-card-img {
    display: block;
    aspect-ratio: 4 / 3;
    background: #eee center / cover no-repeat;
    transition: opacity .3s;
}
@media (hover: hover) { .post-card-img:hover { opacity: .85; } }

.post-card-body { padding: 26px 4px 10px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.home-blog .post-card-body { padding: 26px 24px 28px; }

.post-date { font-size: 10px; letter-spacing: 2.5px; color: var(--grey); text-transform: uppercase; margin-bottom: 14px; }

.post-card-title { font-size: 21px; line-height: 1.35; margin-bottom: 14px; }
.post-card-title a { color: var(--black); text-decoration: none; }
.post-card-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.post-card-excerpt { font-size: 13px; font-weight: 300; line-height: 1.7; color: var(--text); margin-bottom: 22px; flex: 1; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 60px; }
.pagination a {
    min-width: 44px; height: 44px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e0e0e0; color: var(--black); text-decoration: none; font-size: 13px;
}
.pagination a.active, .pagination a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Pojedynczy wpis ---------- */
.post-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 140px var(--gutter) 60px;
    background: #1a1a1a center / cover no-repeat;
    color: var(--white);
}
.post-hero-content { max-width: 860px; margin: 0 auto; width: 100%; }
.post-back { color: var(--white); text-decoration: none; opacity: .8; }
.post-back:hover { opacity: 1; }
.post-title { font-size: clamp(30px, 5vw, 50px); line-height: 1.15; margin-bottom: 22px; }
.post-meta { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .8; display: flex; gap: 10px; flex-wrap: wrap; }
.preview-badge {
    display: inline-block; margin-bottom: 20px; padding: 6px 12px;
    background: #fff3c4; color: #5c4700; font-size: 11px; letter-spacing: 1px;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 70px var(--gutter) 40px;
    box-sizing: content-box;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.85;
    color: #2a2a2a;
    overflow-wrap: break-word;
}
.post-content > * + * { margin-top: 1.3em; }
.post-lead { font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--black); }
.post-content h2 { font-size: 28px; line-height: 1.3; margin-top: 2em; color: var(--black); }
.post-content h3 { font-size: 21px; line-height: 1.35; margin-top: 1.7em; color: var(--black); }
.post-content strong { font-weight: 500; color: var(--black); }
.post-content a { color: var(--black); text-underline-offset: 3px; }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: .4em; }
.post-content blockquote {
    border-left: 2px solid var(--black);
    padding: 4px 0 4px 24px;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    line-height: 1.6;
    color: var(--black);
}
.post-figure { margin-left: 0; margin-right: 0; }
.post-figure img { width: 100%; height: auto; }
.post-figure figcaption { font-size: 12px; color: var(--grey); margin-top: 10px; text-align: center; }

.post-nav {
    max-width: 720px;
    margin: 20px auto 80px;
    padding: 30px var(--gutter) 0;
    box-sizing: content-box;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.post-nav a { text-decoration: none; color: var(--black); font-family: var(--serif); font-size: 17px; line-height: 1.4; }
.post-nav a span { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.post-nav-next { text-align: right; }
.post-nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

@media (max-width: 968px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .post-hero { min-height: 420px; padding: 120px 24px 40px; }
    .post-content { padding: 45px 24px 30px; font-size: 16px; }
    .post-lead { font-size: 19px; }
    .post-content h2 { font-size: 24px; }
    .post-nav { padding: 30px 24px 0; margin-bottom: 60px; }
    .home-blog-header { margin-bottom: 36px; }
}

@media (max-width: 600px) {
    .post-grid { grid-template-columns: 1fr; gap: 40px; }
    .home-blog .post-grid { gap: 20px; }
    .post-nav { grid-template-columns: 1fr; gap: 24px; }
    .post-nav-next { text-align: left; }
    .post-content blockquote { font-size: 18px; padding-left: 18px; }
}

/* ==========================================================
   TABLET (do 1100px)
   ========================================================== */
@media (max-width: 1100px) {
    .main-nav a { margin: 0 12px; }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .split-text, .about-intro-text { padding-left: 10%; }
}

/* ==========================================================
   TELEFON / MAŁY TABLET (do 968px)
   ========================================================== */
@media (max-width: 968px) {
    .main-header { padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
    .brand-name { font-size: 24px; }
    .cta-header { display: none; }
    .menu-toggle { display: block; }

    /* Menu wysuwane na pełen ekran */
    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 110;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        background: #000;
        padding: 100px 20px 40px;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility .3s;
        overflow-y: auto;
    }
    .nav-open .main-nav { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }

    .main-nav a {
        margin: 0;
        padding: 14px 10px;
        font-family: var(--serif);
        font-size: 24px;
        letter-spacing: 3px;
        opacity: .8;
        border: 0;
    }
    .main-nav a.active { opacity: 1; text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }

    .main-nav .nav-cta {
        display: inline-block;
        margin-top: 30px;
        font-family: var(--sans);
        font-size: 12px;
        letter-spacing: 3px;
        padding: 16px 32px;
        border: 1px solid rgba(255,255,255,.6);
        opacity: 1;
    }
    .main-nav .nav-phone { display: block; font-family: var(--sans); font-size: 14px; letter-spacing: 2px; opacity: .6; }

    .hero-section { padding: 120px 24px 60px; align-items: flex-end; }
    .hero-description { margin-bottom: 30px; }

    .features-grid, .split-section, .about-intro { grid-template-columns: 1fr; min-height: 0; }
    .feature-card { min-height: 380px; padding: 60px 24px; }
    .card-light-text { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

    .split-text, .about-intro-text { padding: 60px 24px; }
    .split-image, .about-intro-image { height: 320px; }

    .page-hero { height: auto; min-height: 300px; padding: 110px 24px 50px; align-items: flex-end; }

    .values-section, .team-section, .routine-section { padding: 60px 24px; }
    .values-container { gap: 40px; }
    .team-grid { gap: 40px 20px; }
    .team-member { width: calc(50% - 10px); min-width: 140px; }
    .member-photo { width: 140px; height: 140px; }

    .treatment-card { grid-template-columns: 1fr; min-height: 0; }
    .treatment-card-reverse .treatment-img { order: 0; }
    .treatment-img { height: 260px; }
    .treatment-info { padding: 40px 24px 50px; }

    .skin-types-grid { grid-template-columns: repeat(2, 1fr); }
    .skin-type-card { padding: 50px 24px; }

    .routine-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }

    .main-footer { grid-template-columns: 1fr; text-align: center; gap: 35px; }
    .contact-col { text-align: center; }
}

/* ==========================================================
   MAŁY TELEFON (do 600px)
   ========================================================== */
@media (max-width: 600px) {
    .skin-types-grid { grid-template-columns: 1fr; }
    .contact-info-grid { grid-template-columns: 1fr; gap: 16px; }
    .contact-info-card { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
    .form-row .form-field { margin-bottom: 16px; }
    /* 16px zapobiega automatycznemu powiększaniu strony na iPhonie */
    .form-input, .form-textarea { font-size: 16px; }
    .form-submit { width: 100%; }
    .contact-form-text { margin-bottom: 35px; }
    .map-section { min-height: 320px; }
    .map-text { font-size: 19px; }
}

@media (max-width: 380px) {
    .routine-steps { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
