/*
 * Bureau Kostrubina Main Styles
 * @version 1.0.0
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, sans-serif;
    transition: background-color 0.3s ease, color 0.2s ease;
    line-height: 1.5;
    scroll-behavior: smooth;
}

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0c10;
    --bg-secondary: #11151c;
    --bg-card: rgba(18, 22, 30, 0.9);
    --text-primary: #f0f3f8;
    --text-secondary: #b0b8c5;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --border: #2a2f3a;
    --header-bg: rgba(10, 12, 16, 0.85);
    --footer-bg: #07090e;
    --input-bg: #1e2430;
    --placeholder: #6c7588;
}

body.light {
    --bg-primary: #f8fafc;
    --bg-secondary: #eef2f6;
    --bg-card: rgba(255, 255, 255, 0.92);
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #cbd5e1;
    --header-bg: rgba(248, 250, 252, 0.9);
    --footer-bg: #e2e8f0;
    --input-bg: #ffffff;
    --placeholder: #64748b;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ===== TYPOGRAPHY ===== */
body.font-small { font-size: 14px; }
body.font-medium { font-size: 16px; }
body.font-large { font-size: 18px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== PARALLAX BACKGROUND ===== */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-image: url('https://mir-s3-cdn-cf.behance.net/project_modules/1400/d55a3668525605.5b61820fed288.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
    transition: opacity 0.5s ease;
    opacity: 0.4;
}

body.light .parallax-bg {
    opacity: 0.2;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.logo a {
    color: var(--text-primary);
}

.logo p {
    font-size: 0.75rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

.controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.theme-toggle, .font-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: 0.2s;
}

.font-control select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.btn-cta {
    background: var(--accent);
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: inline-block;
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-cta.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent) !important;
}

/* ===== SECTIONS ===== */
section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 48px;
    font-weight: 700;
    position: relative;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(4px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.3);
}

.service-card h3 a {
    color: var(--text-primary);
}

.service-card h3 a:hover {
    color: var(--accent);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
    min-width: 48px;
    text-align: center;
}

.service-content h3 {
    font-size: 1.4rem;
    /*margin-bottom: 10px;*/
    font-weight: 600;
}

.service-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 50px 0 30px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.tags-section h4, .form-section h4 {
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: var(--bg-card);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    color: var(--accent);
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.feedback-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.privacy-notice {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.privacy-notice input {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    color: var(--text-secondary);
}

.footer-bottom a {
    color: var(--text-secondary);
}

/* ===== STICKY BUTTON ===== */
.sticky-consult {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background: var(--accent);
    padding: 14px 24px;
    border-radius: 60px;
    font-weight: bold;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3);
    color: white !important;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* ===== SINGLE SERVICE PAGE ===== */
.single-service-page .service-header {
    text-align: center;
    padding: 60px 0 40px;
}

.service-icon-large {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-title {
    font-size: 3rem;
    margin-bottom: 30px;
}

.service-content {
    max-width: 800px;
    /* margin: 0 auto 50px; */
    line-height: 1.8;
}

.service-content p {
    margin-bottom: 20px;
}

.service-meta {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

.service-cta {
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.related-services {
    padding: 50px 0;
}

.related-services h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

/* ===== ARCHIVE PAGE ===== */
.archive-header {
    text-align: center;
    padding: 60px 0 40px;
}

.archive-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
}

.pagination a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ===== IMG PLACEHOLDER ===== */
.img-placeholder {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--border) 100%);
    border-radius: 20px;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 30px 0 20px;
    border: 1px dashed var(--accent);
}

.img-placeholder i {
    font-size: 2.5rem;
    margin-right: 10px;
    opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .header-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        justify-content: center;
    }

    .controls {
        justify-content: center;
    }

    .service-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-icon {
        margin-bottom: 8px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .service-title {
        font-size: 2rem;
    }

    .sticky-consult {
        bottom: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* ===== UTILITIES ===== */
button, a {
    transition: all 0.2s;
}

.form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.form-response.success {
    display: block;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.form-response.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}
