* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --muted: #5e6773;
    --surface: #f7f8fa;
    --line: #e7e9ee;
    --dark: #111317;
    --dark-soft: #1a1d23;
    --accent: #2b3f5f;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(8px);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #111;
    width: 390px;
    height: 92px;
    overflow: hidden;
}

.logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
    transform: scale(1.75);
    transform-origin: left center;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #2d3440;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

nav a:hover {
    color: #000;
}

.nav-btn {
    background-color: var(--dark);
    color: #fff !important;
    padding: 0.68rem 1.35rem;
    border-radius: 2px;
    transition: background-color 0.25s ease !important;
}

.nav-btn:hover {
    background-color: #333;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a6fa5;
    outline-offset: 2px;
}

.hero {
    min-height: 78vh;
    background: linear-gradient(rgba(13, 17, 24, 0.72), rgba(13, 17, 24, 0.72)), url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    color: #fff;
    max-width: 760px;
    animation: fadeIn 0.7s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.08rem;
    margin-bottom: 2.5rem;
    font-weight: 400;
    color: #d6dbe4;
    max-width: 690px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #0f1217;
}

.btn-primary:hover {
    background-color: #e0e0e0;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #111;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background-color: var(--dark);
    color: #fff;
    padding: 2.4rem 5%;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    line-height: 1.2;
}

.stat-text {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #aaa;
}

.about-section {
    padding: 7rem 5%;
    background-color: #fcfcfc;
}

.about-section,
.services,
.contact-section {
    scroll-margin-top: 120px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: var(--container);
    margin: 0 auto;
    align-items: center;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #111;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: 1.03rem;
    max-width: 62ch;
}

.core-values {
    margin-top: 2rem;
    list-style: none;
}

.core-values li {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #111;
    display: flex;
    align-items: center;
}

.core-values li::before {
    content: '→';
    margin-right: 1rem;
    color: #888;
}

.about-image {
    background: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=800&q=80') center/cover;
    height: 600px;
    border-radius: 2px;
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.services {
    padding: 7rem 5%;
    background-color: #ffffff;
    border-top: 1px solid var(--line);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    color: var(--muted);
    font-size: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    max-width: var(--container);
    margin: 0 auto;
}

.service-item {
    background-color: var(--surface);
    padding: 2.2rem 2rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: 1px solid var(--line);
    border-top: 3px solid #1e2d45;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(12,16,24,0.08);
    background-color: #fff;
    border-color: #d7dce5;
    border-top: 3px solid #2b3f5f;
}

.service-item h3 {
    font-size: 1.08rem;
    margin-bottom: 0.8rem;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.35;
    overflow-wrap: normal;
    hyphens: none;
    word-break: keep-all;
}

.service-item p {
    color: #4f5765;
    font-size: 0.98rem;
    line-height: 1.65;
    overflow-wrap: normal;
    hyphens: none;
    word-break: normal;
}

.contact-section {
    padding: 7rem 5%;
    background-color: var(--dark-soft);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: var(--container);
    margin: 0 auto;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    margin-bottom: 1.2rem;
    line-height: 1.15;
}

.contact-info > p {
    color: #b3bbc8;
    margin-bottom: 2.4rem;
    font-size: 1.03rem;
    max-width: 46ch;
}

.info-block {
    margin-bottom: 1.3rem;
    padding: 0.9rem 0 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.info-block strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #a6afc0;
    margin-bottom: 0.35rem;
}

.info-block p {
    font-size: 1.08rem;
    color: #fff;
    line-height: 1.55;
}

.info-block a {
    color: #e8edf7;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.info-block a:hover {
    border-bottom-color: rgba(232, 237, 247, 0.8);
}

.contact-form {
    background: linear-gradient(180deg, #232a38 0%, #1b2230 100%);
    padding: 2.8rem;
    border-radius: 6px;
    border: 1px solid rgba(115, 130, 162, 0.28);
    box-shadow: 0 20px 40px rgba(8, 12, 20, 0.42);
    position: relative;
    max-width: 560px;
    width: 100%;
    margin-left: auto;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, #5f769c 0%, #324663 100%);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    color: #b3bbca;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1rem;
    background-color: #0f1624;
    border: 1px solid #364157;
    color: #f1f5fb;
    border-radius: 4px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #89a2cb;
    box-shadow: 0 0 0 3px rgba(137, 162, 203, 0.22);
}

.submit-btn {
    width: 100%;
    margin-top: 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #e9edf4 100%);
    color: #0f1726;
    font-size: 0.76rem;
    letter-spacing: 1.35px;
    border: 1px solid #d3d9e3;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(8, 12, 20, 0.28);
}

.submit-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #dfe6f0 100%);
    transform: translateY(-1px);
}

footer {
    background-color: #0f1115;
    color: #fff;
    padding: 4.4rem 5% 1.6rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(340px, 1.8fr) minmax(220px, 1fr);
    gap: 4.2rem;
    max-width: var(--container);
    margin: 0 auto 2.4rem auto;
    align-items: start;
}

.footer-brand h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: inline-block;
    width: min(100%, 420px);
    height: 110px;
    overflow: hidden;
    border-radius: 2px;
    margin-bottom: 1.05rem;
}

.footer-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: left center;
    transform: scale(1.72);
    transform-origin: left center;
    filter: brightness(1.02) contrast(1.04);
}

.footer-brand p {
    color: #a4adbc;
    max-width: 470px;
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-brand p:nth-of-type(2) {
    color: #d0d7e5;
    font-size: 0.9rem;
}

.footer-brand a {
    color: #dbe3f1;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-brand a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
    font-size: 0.78rem;
    margin-bottom: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.35px;
    color: #8d97a9;
}

.footer-links a {
    display: block;
    color: #d7deeb;
    text-decoration: none;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:last-child {
    margin-bottom: 0;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8a93a3;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    header {
        padding: 0.8rem 4%;
    }
    .logo {
        width: 320px;
        height: 74px;
    }
    nav {
        gap: 1.3rem;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        gap: 2.5rem;
    }
    .contact-form {
        max-width: 100%;
        margin-left: 0;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        height: 400px;
        order: -1;
    }
    .hero {
        min-height: 70vh;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero {
        padding: 4rem 5%;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .stat-item:last-child {
        border-bottom: none;
    }
    .contact-form {
        padding: 1.5rem 1.15rem;
    }
    .contact-form::before {
        top: 14px;
        bottom: 14px;
    }
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .service-item {
        padding: 1.7rem 1.4rem;
    }
    .logo-image {
        width: 100%;
        height: 100%;
    }
    .logo {
        width: 280px;
        height: 64px;
    }
    .footer-logo-image {
        width: 100%;
        height: 100%;
    }
    .footer-logo-link {
        width: min(100%, 340px);
        height: 88px;
    }
}
