/* ============================================
   1. ZMIENNE
   ============================================ */
:root {
    --bg:        #1D1616;
    --blood:     #8E1616;
    --accent:    #D84040;
    --text:      #EEEEEE;
    --text-dim:  rgba(238, 238, 238, 0.6);

    --grad-accent:  linear-gradient(135deg, var(--blood) 0%, var(--accent) 100%);
    --grad-surface: linear-gradient(180deg, #1D1616 0%, #241a1a 100%);

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 24px rgba(216, 64, 64, 0.35);

    --font-body:    'Montserrat', sans-serif;
    --font-heading: 'Syne', sans-serif;

    --max-width: 1200px;
}

/* ============================================
   2. RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
img { display: block; max-width: 100%; }

/* mały, wspólny "highlight" gradientowy dla słów w nagłówkach */
.highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   3. ANIMACJE
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: var(--shadow-glow); }
    50%      { box-shadow: 0 8px 32px rgba(216, 64, 64, 0.6); }
}

@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(20px, -25px); }
}

/* ============================================
   4. HEADER + NAWIGACJA (kompaktowy, sticky)
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(29, 22, 22, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(238, 238, 238, 0.08);
}

.navbar {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.7rem 2rem;
}

.logo a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.logo span {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    padding-bottom: 4px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--grad-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover        { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.navbar .btn-cta {
    margin-left: 2.5rem;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* ============================================
   5. PRZYCISKI
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-cta {
    background: var(--grad-accent);
    color: #fff;
    padding: 0.85rem 1.8rem;
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn-cta:hover {
    transform: translateY(-3px);
    animation: glowPulse 1.5s ease-in-out infinite;
}

.btn-ghost {
    padding: 0.85rem 1.8rem;
    color: var(--text);
    border: 1px solid rgba(238, 238, 238, 0.25);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   6. HERO (dwie kolumny: tekst + zdjęcie)
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem 7rem; /* Zwiększony padding dla oddechu */
    background:
        /* Potężny radialny gradient w tle, imitujący mroczne światło */
        radial-gradient(circle at 70% 40%, rgba(142, 22, 22, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 15% 70%, rgba(216, 64, 64, 0.2) 0%, transparent 50%),
        var(--bg);
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Subtelny szum cyfrowy, który nadaje głębi ciemnym tłu */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%' height='100%' filter='url(%23noiseFilter)'/%3%3C/svg%3%3E");
    opacity: 0.025; /* Bardzo słaba widoczność */
    mix-blend-mode: overlay;
    z-index: 1;
    pointer-events: none;
}
.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 8%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(216, 64, 64, 0.30) 0%, transparent 70%);
    filter: blur(50px);
    animation: floatGlow 9s ease-in-out infinite;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 78vh;
}

.hero-content { animation: fadeInUp 0.9s ease both; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.3rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 480px;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-photo {
    position: relative;
    max-width: 340px;
    justify-self: center;
    animation: fadeIn 1.2s ease both;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 18px;
    background: var(--grad-accent);
    z-index: -1;
    opacity: 0.7;
}

/* ============================================
   7. STATYSTYKI (kompaktowe)
   ============================================ */
.stats {
    background: var(--grad-surface);
    padding: 3rem 2rem;
    border-top: 1px solid rgba(238, 238, 238, 0.06);
    border-bottom: 1px solid rgba(238, 238, 238, 0.06);
}

.stats-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 12px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.stat:hover {
    transform: translateY(-6px);
    background: rgba(216, 64, 64, 0.06);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}

.stat-plus {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dim);
    letter-spacing: 0.3px;
}

/* ============================================
   8. WSPÓLNY NAGŁÓWEK SEKCJI
   ============================================ */
.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
}

/* ============================================
   9. OFERTA (karty ze zdjęciami)
   ============================================ */
.services {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(238, 238, 238, 0.03);
    border: 1px solid rgba(238, 238, 238, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 64, 64, 0.5);
    box-shadow: var(--shadow-soft);
}

.service-img {
    position: relative;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.06);
}

.service-img::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(29, 22, 22, 0.9), transparent);
}

.service-body {
    padding: 1.5rem 1.5rem 1.8rem;
}

.service-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ============================================
   10. OPINIE
   ============================================ */
.reviews {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.review-card {
    background: rgba(238, 238, 238, 0.03);
    border: 1px solid rgba(238, 238, 238, 0.08);
    border-radius: 16px;
    padding: 2rem 1.8rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card::before {
    content: '\201C';                 /* duży cudzysłów dekoracyjny */
    position: absolute;
    top: 0.5rem;
    left: 1.2rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.35;
}

.review-card:hover {
    transform: translateY(-6px);
    border-color: rgba(216, 64, 64, 0.4);
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    font-size: 1rem;
}

.review-role {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
}

/* ============================================
   11. FAQ (czysty HTML: details/summary)
   ============================================ */
.faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(238, 238, 238, 0.03);
    border: 1px solid rgba(238, 238, 238, 0.08);
    border-radius: 12px;
    padding: 0 1.5rem;
    transition: border-color 0.25s ease;
}

.faq-item[open] {
    border-color: rgba(216, 64, 64, 0.4);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1.2rem 0;
    cursor: pointer;
    list-style: none;                 /* usuwa domyślny trójkąt */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker { display: none; }  /* Safari */

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);          /* + zmienia się w x */
}

.faq-answer {
    color: var(--text-dim);
    line-height: 1.7;
    padding: 0 0 1.3rem;
}

/* ============================================
   12. CENNIK
   ============================================ */

.pricing {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(238, 238, 238, 0.03);
    border: 1px solid rgba(238, 238, 238, 0.08);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(216, 64, 64, 0.45);
    box-shadow: var(--shadow-soft);
}

.pricing-card-premium {
    border-color: rgba(216, 64, 64, 0.35);
    background:
        linear-gradient(
            180deg,
            rgba(216,64,64,0.08) 0%,
            rgba(238,238,238,0.03) 100%
        );
}

.pricing-card-premium:hover {
    box-shadow: var(--shadow-glow);
}

.pricing-tag {
    align-self: flex-start;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(216, 64, 64, 0.12);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.premium-tag {
    background: var(--grad-accent);
    color: #fff;
}

.pricing-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1.8rem;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-weight: 500;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.pricing-features li {
    color: var(--text-dim);
    position: relative;
    padding-left: 1.4rem;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing-card .btn {
    margin-top: auto;
    text-align: center;
}

/* ============================================
   12. KONTAKT
   ============================================ */
.contact {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-lead {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-list a {
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-list a:hover { color: var(--accent); }

/* Formularz */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: rgba(238, 238, 238, 0.04);
    border: 1px solid rgba(238, 238, 238, 0.12);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(238, 238, 238, 0.4); }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(238, 238, 238, 0.06);
}

.contact-form .btn-cta {
    align-self: flex-start;
}

/* Mapa */
.contact-map {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(238, 238, 238, 0.08);
}

.contact-map iframe { display: block; }

/* ============================================
   13. STOPKA
   ============================================ */
.footer {
    background: var(--grad-surface);
    border-top: 1px solid rgba(238, 238, 238, 0.08);
    padding: 3.5rem 2rem 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.footer-logo span {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-tagline {
    margin-top: 0.6rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    max-width: 260px;
}

.footer-nav,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-nav a,
.footer-social a {
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-social a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(238, 238, 238, 0.06);
    text-align: center;
    padding: 1.5rem 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ============================================
   14. RESPONSYWNOŚĆ
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
    .navbar { padding: 0.7rem 1.5rem; }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        text-align: center;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions  { justify-content: center; }
    .hero-photo    { margin: 0 auto; }

    .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Telefon */
@media (max-width: 640px) {
    .nav-links       { display: none; }
    .navbar .btn-cta { margin-left: auto; }

    .hero          { padding: 3rem 1.5rem 4rem; }
    .stat-number   { font-size: 2.1rem; }
    .stats-content { gap: 1.5rem; }

    .services,
    .reviews,
    .faq,
    .contact       { padding-left: 1.5rem; padding-right: 1.5rem; }

    .form-row      { grid-template-columns: 1fr; }  /* pola pod sobą */

    .footer-inner  { flex-direction: column; gap: 1.8rem; }
}

/* ============================================
   15. DOSTĘPNOŚĆ — reduce motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}