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

:root {
    --bg: #f2f7fb;
    --surface: #ffffff;
    --surface-soft: #eef4fb;
    --primary: #1f6feb;
    --primary-dark: #1558c0;
    --accent: #00c6ff;
    --text: #1f2937;
    --muted: #6b7280;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: radial-gradient(circle at top, rgba(31, 110, 251, 0.12), transparent 35%),
        var(--bg);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.site-header {
    padding: 28px 24px 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text strong {
    display: block;
    font-size: 1.2rem;
}

.brand-text span {
    font-size: 0.9rem;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.25s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto 40px;
    padding: 20px;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 18px;
}

.hero-copy h1,
.section-intro h2 {
    font-size: clamp(2.35rem, 3vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-copy p,
.section-intro p,
.about-grid p,
.contact-details p,
.service-cards article p {
    color: var(--muted);
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(31, 111, 251, 0.08);
    color: var(--text);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, rgba(31, 111, 251, 0.12), rgba(0, 198, 255, 0.08));
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

.info-section,
.services-section,
.contact-section {
    background: var(--surface);
    border-radius: 32px;
    padding: 42px 44px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.section-intro {
    max-width: 640px;
    margin-bottom: 32px;
}

.about-grid,
.contact-grid {
    display: grid;
    gap: 28px;
}

.about-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.about-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.about-copy p {
    margin-bottom: 18px;
}

.about-highlights {
    display: grid;
    gap: 16px;
}

.about-highlights div,
.service-cards article,
.contact-details {
    background: var(--surface-soft);
    border-radius: 24px;
    padding: 24px;
}

.about-highlights div strong,
.service-cards article h3 {
    display: block;
    font-size: 1.65rem;
    margin-bottom: 10px;
    color: var(--text);
}

.about-highlights div span {
    color: var(--muted);
}

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

.service-cards article {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-icon {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 18px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.service-cards article:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.1);
}

.service-cards article h3 {
    margin-bottom: 14px;
}

.portfolio-section {
    background: var(--surface);
    border-radius: 32px;
    padding: 42px 44px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.portfolio-image {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface-soft);
}

.testimonials {
    background: var(--surface);
    border-radius: 32px;
    padding: 42px 44px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}

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

.testimonial-cards article {
    background: var(--surface-soft);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: grid;
    gap: 18px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.testimonial-cards article:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.12);
}

.testimonial-cards article p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.8;
}

.testimonial-cards article strong {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .testimonial-cards {
        grid-template-columns: 1fr;
    }
}

.portfolio-image img {
    width: 100%;
    display: block;
}

.portfolio-copy ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    gap: 14px;
}

.portfolio-copy li {
    color: var(--muted);
}

.portfolio-copy li strong {
    color: var(--text);
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.contact-details ul {
    list-style: none;
    margin-top: 20px;
    display: grid;
    gap: 12px;
}

.contact-details li strong {
    color: var(--text);
}

.contact-form {
    display: grid;
    gap: 22px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.contact-form .field {
    display: grid;
    gap: 10px;
}

.contact-form label {
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    padding: 16px 18px;
    background: #ffffff;
    color: var(--text);
    font-size: 1rem;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(55, 65, 81, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(31, 111, 251, 0.1);
}

.contact-form .error {
    color: #b91c1c;
    font-size: 0.9rem;
    min-height: 18px;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #ef4444;
}

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

.form-actions .btn {
    min-width: 140px;
}

.form-status {
    flex: 1;
    font-weight: 600;
    color: var(--muted);
    text-align: right;
}

.form-status.success {
    color: #065f46;
}

.form-status.error {
    color: #b91c1c;
}

@media (max-width: 700px) {
    .form-actions {
        justify-content: center;
        text-align: center;
    }

    .form-status {
        width: 100%;
    }
}

footer {
    padding: 40px 24px 24px;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.03);
    text-align: center;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    max-width: 1180px;
    margin: 0 auto 22px;
    justify-items: center;
}

.footer-brand {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.footer-mark {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}

.footer-brand strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text);
}

.footer-brand p {
    max-width: 520px;
    line-height: 1.7;
    color: var(--muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 24px;
    text-align: center;
}

.footer-links h3 {
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text);
}

.footer-links a {
    display: block;
    text-decoration: none;
    color: var(--muted);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .hero-panel,
    .about-grid,
    .service-cards,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header,
    main {
        padding: 0 16px;
    }

    .hero-copy h1,
    .section-intro h2 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
