:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --accent: #2563eb;
    --accent2: #7c3aed;
    --muted: #6b7280;
    --text: #0b2b3a;
    --light: #f3f6f9
}

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

html, body {
    height: 100%;
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Arial;
    background: var(--bg);
    color: var(--text)
}

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

a:hover {
    color: var(--accent2)
}

/* Header/Topbar */
header {
    background: linear-gradient(135deg, #0b2b3a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(11, 43, 58, 0.12)
}

header > div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap
}

header .brand {
    font-weight: 700;
    font-size: 16px;
    font-family: Montserrat, Inter;
    display: flex;
    gap: 6px;
    align-items: center
}

header .contacts {
    display: flex;
    gap: 18px;
    font-size: 14px;
    flex-wrap: wrap
}

header .contacts a {
    color: #fff;
    font-weight: 500
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns:280px 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 40px
}

.hero-photo {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(11, 43, 58, 0.12);
    border: 1px solid #e8eef6;
    height: 360px
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-cta {
    background: var(--card);
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(11, 43, 58, 0.08);
    border: 1px solid #e8eef6
}

.hero-cta h3 {
    font-family: Montserrat, Inter;
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--text)
}

.hero-cta .sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.5
}

.hero-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
    padding-left: 18px
}

.hero-list li {
    color: #334155;
    font-size: 14px;
    line-height: 1.45
}

.form-group {
    margin-bottom: 14px
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text)
}

.form-group textarea, .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e6eef8;
    border-radius: 8px;
    font-size: 14px;
    font-family: Inter, Arial;
    transition: border-color 0.2s
}

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

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

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28)
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.32)
}

.btn-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px
}

.btn-secondary {
    width: 100%;
    background: #fff;
    color: var(--text);
    padding: 12px 16px;
    border: 2px solid #e6eef8;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 6px 18px rgba(11, 43, 58, 0.08)
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #cfe0f5;
    box-shadow: 0 10px 26px rgba(11, 43, 58, 0.1)
}

.about {
    margin-top: 20px
}

.about h4 {
    font-family: Montserrat, Inter;
    font-size: 16px;
    margin: 0 0 10px
}

.about p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0
}

/* Sections */
section {
    margin-bottom: 40px;
    scroll-margin-top: 80px
}

section h2 {
    font-family: Montserrat, Inter;
    font-size: 24px;
    margin: 0 0 16px;
    color: var(--text)
}

section.alt {
    background: var(--card);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e9eef6
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.skill {
    background: #eef6ff;
    color: #0b3b82;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid #dce8f5
}

.jobs {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.job {
    background: var(--light);
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid var(--accent)
}

.job .title {
    font-weight: 700;
    font-size: 15px;
    color: var(--text)
}

.job .period {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0
}

.job .desc {
    color: #334155;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.6
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 14px
}

.service-card {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(11, 43, 58, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px
}

.service-top {
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.service-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    background: #eef6ff;
    border: 1px solid #dce8f5;
    flex: 0 0 auto
}

.service-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--text);
    line-height: 1.3
}

.service-desc {
    color: #334155;
    font-size: 13px;
    line-height: 1.55
}

.service-bullets {
    display: grid;
    gap: 6px;
    padding-left: 18px
}

.service-bullets li {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45
}

/* Cases */
.cases-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 14px
}

.case-card {
    background: var(--light);
    border: 1px solid #e6eef8;
    border-radius: 14px;
    padding: 16px
}

.case-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #dce8f5;
    color: #0b3b82;
    font-weight: 800;
    font-size: 12px;
    margin-bottom: 10px
}

.case-title {
    font-weight: 900;
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 10px
}

.case-kv {
    display: grid;
    gap: 8px
}

.case-kv div {
    font-size: 13px;
    line-height: 1.5;
    color: #334155
}

.case-kv b {
    color: var(--text)
}

/* FAQ */
.faq {
    display: grid;
    gap: 10px
}

.faq-item {
    background: #fff;
    border: 1px solid #e8eef6;
    border-radius: 14px;
    overflow: hidden
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-weight: 900;
    font-size: 14px;
    color: var(--text)
}

.faq-q span:last-child {
    color: var(--muted);
    font-weight: 900
}

.faq-a {
    padding: 0 16px 14px;
    color: #334155;
    font-size: 13px;
    line-height: 1.6;
    display: none
}

.faq-item[data-open="1"] .faq-a {
    display: block
}

/* Certificates Section */
.certs-grid {
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px
}

.cert-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e6eef8;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(11, 43, 58, 0.12)
}

.cert-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: var(--light)
}

.cert-caption {
    padding: 10px 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    border-top: 1px solid #eef2f7
}

.stack {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px
}

.stack-item {
    background: var(--light);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e6eef8;
    font-size: 14px;
    font-weight: 500;
    color: var(--text)
}

/* Footer */
footer {
    margin-top: 48px;
    background: linear-gradient(135deg, #0b2b3a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 28px 16px;
    border-top: 2px solid var(--accent)
}

footer > div {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px
}

footer h4 {
    font-family: Montserrat, Inter;
    font-size: 15px;
    margin: 0 0 10px
}

footer p {
    margin: 6px 0;
    font-size: 14px;
    color: #d1d5db
}

footer a {
    color: #93c5fd
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 6px
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns:1fr;
        gap: 20px
    }

    .hero-photo {
        height: 300px
    }

    header > div {
        flex-direction: column;
        align-items: flex-start
    }

    header .contacts {
        width: 100%
    }

    .certs-grid {
        grid-template-columns:repeat(auto-fill, minmax(140px, 1fr))
    }

    .stack {
        grid-template-columns:repeat(2, 1fr)
    }

    .services-grid {
        grid-template-columns:repeat(2, 1fr)
    }

    .cases-grid {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (max-width: 640px) {
    main {
        padding: 16px 12px
    }

    section h2 {
        font-size: 20px
    }

    .hero-cta {
        padding: 16px
    }

    .certs-grid {
        grid-template-columns:1fr
    }

    .services-grid {
        grid-template-columns:1fr
    }

    .cases-grid {
        grid-template-columns:1fr
    }

    .btn-row {
        grid-template-columns:1fr
    }

    footer > div {
        grid-template-columns:1fr
    }
}