/*
Theme Name: Derite Performance
Theme URI: https://derite.pl
Author: Derite
Author URI: https://derite.pl
Description: Customowy motyw WordPress dla agencji performance marketingu beauty.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: derite
*/

:root {
  --ink: #2d1f39;
  --ink-soft: #5d5264;
  --paper: #f7f3e9;
  --paper-deep: #efe8dc;
  --line: #d9d0dc;
  --pink: #c94e79;
  --lime: #d9ef70;
  --lavender: #d8c9ee;
  --rose: #e6c1d0;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

.site-shell { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 82% 2%, rgba(205,226,94,.16), transparent 23rem), var(--paper); }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(217,208,220,.7); background: rgba(247,243,233,.9); backdrop-filter: blur(18px); }
.header-inner, .footer-inner, .container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.04em; font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); font-size: 16px; }
.brand-dot { color: var(--pink); }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 500; }
.main-nav a { position: relative; color: rgba(45,31,57,.7); }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after { position: absolute; left: 0; bottom: -8px; width: 0; height: 1px; background: var(--lime); content: ''; transition: width .25s ease; }
.main-nav a:hover::after { width: 100%; }
.header-cta { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(45,31,57,.2); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 600; }
.header-cta:hover { transform: translateY(-2px); }
.menu-toggle { display: none; border: 1px solid rgba(45,31,57,.15); border-radius: 999px; padding: 9px 11px; background: transparent; }
.mobile-nav { display: none; }

.hero { border-bottom: 1px solid var(--line); background-image: linear-gradient(to right, rgba(217,208,220,.32) 1px, transparent 1px); background-size: 25% 100%; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 96px 0 112px; }
.eyebrow { color: var(--pink); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 32px; height: 1px; margin: 0 12px 3px 0; background: currentColor; content: ''; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 400; letter-spacing: -.065em; }
.hero h1 { max-width: 720px; margin: 24px 0 0; font-size: clamp(58px, 8vw, 125px); line-height: .88; }
.serif { font-family: var(--serif); font-style: italic; }
.accent { color: var(--pink); }
.hero-copy { max-width: 480px; margin: 30px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 999px; padding: 14px 20px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: 0 8px 0 rgba(45,31,57,.12); transition: transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); background: #4a315e; }
.button-light { background: var(--paper); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.text-link:hover { color: var(--pink); }
.score-card { max-width: 510px; margin: 0 auto; padding: 28px; border-radius: 28px; background: var(--ink); color: var(--paper); box-shadow: 20px 24px 0 var(--lime); }
.score-head { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(247,243,233,.15); }
.score-head small, .mono { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(247,243,233,.15); }
.score-item small { color: rgba(247,243,233,.52); font-family: var(--mono); font-size: 10px; }
.score-item strong { display: block; margin-top: 8px; font-size: 30px; letter-spacing: -.05em; }
.score-item em { color: var(--lime); font-size: 11px; font-style: normal; }
.chart { display: flex; align-items: end; gap: 8px; height: 128px; padding-top: 18px; }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--lime); }
.score-foot { display: flex; justify-content: space-between; margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: rgba(247,243,233,.07); color: rgba(247,243,233,.72); font-size: 11px; }
.score-foot span:last-child { color: var(--lime); }
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.marquee-track { display: flex; gap: 40px; width: max-content; padding: 16px 0; animation: marquee 26s linear infinite; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.marquee-track span { color: var(--lime); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 112px 0; }
.section-deep { background: var(--paper-deep); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-lime { background: var(--lime); }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 18px 0 0; font-size: clamp(48px, 6vw, 76px); line-height: .94; }
.section-head p { max-width: 330px; margin-bottom: 2px; color: #756a77; font-size: 14px; line-height: 1.6; }
.split { display: grid; grid-template-columns: .72fr 1.28fr; gap: 96px; }
.split > div:last-child { max-width: 630px; }
.lead { color: #514652; font-size: 20px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.feature { display: flex; gap: 16px; }
.feature-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--lime); }
.feature:nth-child(2) .feature-icon { background: var(--rose); }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: #756a77; font-size: 14px; line-height: 1.55; }
.offer-grid { display: grid; grid-template-columns: 1.15fr .85fr; }
.offer-intro { padding: 112px 48px 112px 0; border-right: 1px solid var(--line); }
.offer-intro h2 { margin: 18px 0 22px; font-size: clamp(48px, 6vw, 76px); line-height: .95; }
.offer-intro p { max-width: 510px; color: #665a67; font-size: 16px; line-height: 1.7; }
.offer-list { display: grid; }
.offer-item { padding: 32px 40px; border-bottom: 1px solid var(--line); }
.offer-item:last-child { border-bottom: 0; }
.offer-item h3 { margin: 26px 0 8px; font-size: 18px; }
.offer-item p { max-width: 360px; margin: 0; color: #756a77; font-size: 14px; line-height: 1.6; }
.icon-box { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cfc3d1; border-radius: 12px; background: var(--paper); color: var(--pink); }
.result-grid, .video-grid, .post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.result-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 365px; padding: 24px; border-radius: 24px; transition: transform .25s ease; }
.result-card:hover { transform: translateY(-8px); }
.result-card h3 { margin: 28px 0 4px; font-size: 20px; }
.result-card p { margin: 0; }
.result-metric { font-size: 64px; letter-spacing: -.075em; }
.result-label { font-size: 14px; font-weight: 600; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--pink); font-family: var(--serif); font-size: 44px; font-style: italic; font-weight: 400; }
.stat span { color: #756a77; font-size: 14px; }
.fit-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; }
.fit-grid h2 { margin: 18px 0; font-size: clamp(48px, 6vw, 76px); line-height: .94; }
.fit-grid > div:first-child p { max-width: 400px; color: #d8ceda; font-size: 16px; line-height: 1.7; }
.fit-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fit-card { padding: 24px; border: 1px solid rgba(247,243,233,.15); border-radius: 22px; background: rgba(247,243,233,.05); }
.fit-card h3 { margin: 26px 0 18px; font-size: 20px; }
.fit-card ul { margin: 0; padding: 0; list-style: none; color: #d8ceda; font-size: 14px; line-height: 1.6; }
.fit-card li { display: flex; gap: 10px; margin-top: 12px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 60px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-number { color: var(--pink); font-family: var(--mono); font-size: 12px; }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { max-width: 500px; margin: 0; color: #756a77; font-size: 14px; line-height: 1.6; }
.faq-list { margin: 0; }
.faq-item { border-bottom: 1px solid #d0c5d1; }
.faq-question { display: flex; justify-content: space-between; gap: 20px; width: 100%; padding: 20px 0; border: 0; background: transparent; color: inherit; text-align: left; font-weight: 600; }
.faq-answer { display: none; padding: 0 40px 22px 0; color: #756a77; font-size: 14px; line-height: 1.6; }
.faq-item.is-open .faq-answer { display: block; }
.faq-toggle { display: grid; flex: 0 0 28px; place-items: center; width: 28px; height: 28px; border: 1px solid #c9bdcb; border-radius: 50%; }
.faq-item.is-open .faq-toggle { transform: rotate(180deg); background: var(--ink); color: var(--paper); }

.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-deep); }
.video-frame { position: relative; aspect-ratio: 9 / 14; overflow: hidden; background: linear-gradient(135deg, #362543, #6d496e 50%, var(--lime)); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; padding: 20px; color: white; background: radial-gradient(circle at 24% 18%, rgba(255,255,255,.22) 0 1px, transparent 1px), linear-gradient(135deg, #362543, #6d496e 50%, var(--lime)); background-size: 18px 18px, auto; }
.video-placeholder strong { position: absolute; bottom: 28px; left: 24px; max-width: 180px; font-family: var(--serif); font-size: 38px; font-style: italic; line-height: .95; font-weight: 400; }
.video-placeholder small { position: absolute; bottom: 22px; right: 20px; max-width: 105px; color: rgba(255,255,255,.75); font-size: 11px; line-height: 1.5; }
.video-meta { padding: 20px; }
.video-meta h3 { margin: 0; font-size: 15px; }
.video-meta small { display: block; margin-top: 5px; color: var(--pink); font-family: var(--mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.video-meta p { margin: 16px 0 0; color: #756a77; font-size: 14px; line-height: 1.6; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.post-cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1.35 / 1; padding: 20px; background: linear-gradient(135deg, var(--lime), var(--paper)); }
.post-card:nth-child(2) .post-cover { background: linear-gradient(135deg, var(--rose), var(--paper)); }
.post-card:nth-child(3) .post-cover { background: linear-gradient(135deg, var(--lavender), var(--paper)); }
.post-cover strong { font-family: var(--serif); font-size: 38px; font-style: italic; font-weight: 400; }
.post-body { padding: 20px; }
.post-meta { color: #9a8d9d; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.post-body h3 { margin: 12px 0 10px; font-size: 18px; line-height: 1.1; }
.post-body p { margin: 0; color: #756a77; font-size: 14px; line-height: 1.6; }
.photo-placeholder { display: flex; align-items: end; min-height: 300px; padding: 28px; border-radius: 28px; color: white; background: linear-gradient(135deg, rgba(45,31,57,.14), rgba(45,31,57,.58)), radial-gradient(circle at 22% 18%, rgba(217,239,112,.86), transparent 24%), linear-gradient(145deg, #b9859b, #5b426d 46%, #2d1f39); }
.photo-placeholder strong { max-width: 330px; font-family: var(--serif); font-size: 40px; font-style: italic; font-weight: 400; line-height: .95; }
.photo-placeholder small { display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact-grid h2 { margin: 18px 0; font-size: clamp(52px, 7vw, 96px); line-height: .9; }
.contact-details { margin-top: 40px; }
.contact-details a { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; }
.contact-form { padding: 32px; border-radius: 24px; background: var(--paper); box-shadow: 0 18px 50px rgba(45,31,57,.1); }
.form-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.form-heading small { display: block; color: #9a8d9d; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.form-heading strong { display: block; margin-top: 4px; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.form-field { display: block; }
.form-field span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; outline: 0; background: transparent; color: var(--ink); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--pink); }
.form-wide { grid-column: 1 / -1; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.form-bottom p { max-width: 290px; margin: 0; color: #9a8d9d; font-size: 10px; line-height: 1.5; }
.calendar-box { display: grid; place-items: center; min-height: 460px; padding: 32px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper-deep); text-align: center; }
.calendar-box iframe { width: 100%; min-height: 700px; border: 0; }
.calendar-box h3 { margin: 20px 0 10px; font-size: 30px; }
.calendar-box p { max-width: 430px; color: #756a77; font-size: 14px; line-height: 1.6; }
.legal-content { max-width: 900px; margin: 0 auto; padding: 96px 0 112px; }
.legal-content h2 { margin: 40px 0 14px; font-family: var(--sans); font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.legal-content ul { padding-left: 22px; }
.footer { background: var(--ink); color: var(--paper); }
.footer-inner { padding: 48px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-copy { max-width: 250px; margin-top: 20px; color: #bdb1c1; font-size: 14px; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 12px 40px; color: #d8ceda; font-size: 14px; }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(247,243,233,.15); color: #938699; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.status-success { padding: 80px 32px; border-radius: 24px; background: var(--paper); text-align: center; }
.status-success h3 { margin: 20px 0 12px; font-size: 30px; }
.status-success p { color: #756a77; font-size: 14px; line-height: 1.6; }
.not-found { padding: 128px 0; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav.is-open { display: grid; gap: 14px; padding: 20px; border-top: 1px solid var(--line); }
  .mobile-nav a { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
  .hero-grid, .offer-grid, .fit-grid, .contact-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-grid { padding: 72px 0 84px; }
  .offer-intro { padding: 84px 0 48px; border-right: 0; border-bottom: 1px solid var(--line); }
  .offer-item { padding: 28px 0; }
  .result-grid, .video-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 32px; }
  .split > div:last-child { max-width: none; }
  .fit-grid { gap: 36px; }
  .offer-list { grid-template-columns: repeat(2, 1fr); }
  .offer-item:nth-child(odd) { padding-right: 22px; border-right: 1px solid var(--line); }
  .offer-item:nth-child(even) { padding-left: 22px; }
}

@media (max-width: 620px) {
  .header-inner, .footer-inner, .container { width: min(100% - 28px, 1240px); }
  .hero h1 { font-size: clamp(54px, 17vw, 88px); }
  .score-card { padding: 22px; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .score-item:last-child { grid-column: 1 / -1; }
  .section { padding: 76px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 20px; }
  .feature-grid, .result-grid, .video-grid, .post-grid, .fit-cards, .offer-list, .form-grid { grid-template-columns: 1fr; }
  .offer-item, .offer-item:nth-child(odd), .offer-item:nth-child(even) { padding: 28px 0; border-right: 0; }
  .stats-row { grid-template-columns: 1fr; gap: 22px; }
  .stat + .stat { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid var(--line); }
  .form-wide { grid-column: auto; }
  .form-bottom, .footer-top, .footer-bottom { display: block; }
  .form-bottom .button { width: 100%; margin-top: 16px; }
  .footer-nav { grid-template-columns: repeat(2, max-content); margin-top: 30px; }
  .footer-bottom span + span { display: block; margin-top: 8px; }
}