/* ========================================
   EVELIDEN.PL — Subpages content styles
   Хедер і навігацію стилізує style.css (.nav__*)
   Тут ЛИШЕ контент — хедер сюди не додавати!
   ======================================== */

/* --- PAGE HERO --- */
.page-hero {
    padding: 185px 0 80px;
    background: linear-gradient(135deg, #1a1d23 0%, #0f1114 60%, #1a1510 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero .label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(212, 162, 78, 0.3);
    border-radius: 100px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.page-hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* --- SECTIONS --- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-card);
}

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

/* --- SERVICE DETAIL (uslugi.html) --- */
.service-detail {
    display: flex;
    gap: 40px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    padding-top: 4px;
}

.service-detail-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.service-detail-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 24px 0 12px;
}

.service-detail-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.service-detail-content ul {
    list-style: none;
    margin-bottom: 12px;
}

.service-detail-content ul li {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
}

.service-detail-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* --- CTA SECTION --- */
.cta-section {
    background: linear-gradient(135deg, var(--accent), #b88a3a) !important;
    padding: 80px 0;
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--bg-dark);
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(15, 17, 20, 0.75);
    font-size: 1.05rem;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn.btn-primary,
a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
    text-decoration: none;
    background: var(--bg-dark);
    color: var(--text-primary);
}

.cta-section .btn-primary:hover { background: #1a1d23; }

.section:not(.cta-section) .btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.section:not(.cta-section) .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- FOOTER SUBPAGES --- */
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 12px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contact-form-wrap h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-form-wrap > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-bottom: 28px;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cities-grid a {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cities-grid a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- O NAS PAGE --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.4;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

.registry-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.registry-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}

.registry-row:last-child { border-bottom: none; }

.registry-row span { color: var(--text-secondary); }

.registry-row strong { color: var(--text-primary); }

/* --- REALIZACJE PAGE --- */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.project-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.project-image {
    min-height: 200px;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-info { padding: 28px; }

.project-year {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-subtle);
    border: 1px solid rgba(212,162,78,0.3);
    border-radius: 100px;
    padding: 3px 10px;
    margin-bottom: 10px;
}

.project-info h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 0.78rem;
    padding: 3px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* --- PRACA PAGE --- */
.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.job-card:hover { border-color: var(--accent); }

.job-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.job-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(212,162,78,0.3);
}

.job-badge.location {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border-color: var(--border);
}

.job-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.job-section h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    margin-top: 20px;
}

.job-section ul { list-style: none; }

.job-section ul li {
    color: var(--text-secondary);
    font-size: 0.88rem;
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.6;
}

.job-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* --- MOBILE (content) --- */
@media (max-width: 768px) {
    .page-hero { padding: 120px 0 60px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-content { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-featured { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .service-detail { flex-direction: column; gap: 16px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   HEADER (підсторінки)
   Структура: .header > .container.header-inner
              > .logo + .nav + .menu-toggle
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 17, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* .header-inner має також клас .container — ширину і бокові
   відступи дає style.css, тут тільки розкладка */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 124px;
}

.header .logo {
    position: static;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    transform: none;
}

.header .logo img {
    display: block;
    width: auto;
}

/* ВАЖЛИВО: у style.css клас .nav — це навігація головної сторінки
   з position:fixed. Тут скидаємо все, інакше <nav class="nav">
   вилітає в лівий верхній кут вікна. */
.header .nav {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0 0 0 auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header .nav a {
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.header .nav a:hover,
.header .nav a.active {
    color: var(--accent);
}

.header .nav a.nav-cta {
    padding: 11px 26px;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 600;
}

.header .nav a.nav-cta:hover {
    background: var(--accent-hover);
    color: var(--bg-dark);
}

/* Гамбургер — тільки на мобільному */
.header .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}

.header .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 900px) {
    /* висота і лого — такі самі, як на десктопі та на головній */

    .header .menu-toggle { display: flex; }

    .header .nav {
        position: absolute;
        top: 124px;
        margin: 0;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 12px 24px 20px;
        background: rgba(15, 17, 20, 0.98);
        border-bottom: 1px solid var(--border);
    }

    /* різні скрипти вішають різний клас — покриваємо обидва */
    .header .nav.open,
    .header .nav.is-open,
    .header .nav.active { display: flex; }

    .header .nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--border);
    }

    .header .nav a:last-child { border-bottom: none; }

    .header .nav a.nav-cta {
        margin-top: 14px;
        text-align: center;
    }
}
