:root {
    --bg: #ffffff;
    --bg-2: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --line: rgba(17, 24, 39, .10);
    --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .05);
    --shadow-hover: 0 12px 32px rgba(17, 24, 39, .10);
    --text: #1f2328;
    --muted: #5b6472;
    --accent: #d6420b;
    --accent-2: #f0612a;
    --ok: #047857;
    --err: #dc2626;
    --radius: 16px;
    --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
    text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
    font-weight: 600; color: var(--accent); margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff; font: inherit; font-weight: 600; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(240, 97, 42, .25); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: var(--bg-2); box-shadow: none; }
.btn--small { padding: .55em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__logo { height: 40px; width: auto; }
.brand__mark {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-weight: 800; font-size: .95rem; letter-spacing: .04em; color: #fff;
}
.brand__name { display: inline-flex; flex-direction: column; font-weight: 500; font-size: 1.12rem; line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.brand__name i { font-style: normal; color: var(--accent); margin: 0 .25em; }
.brand__name small { align-self: flex-end; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav__menu a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 96px; }
.hero__glow {
    position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; pointer-events: none;
    background: radial-gradient(circle, rgba(240, 97, 42, .12), transparent 60%),
                radial-gradient(circle at 30% 70%, rgba(214, 66, 11, .07), transparent 55%);
}
.hero__inner { position: relative; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 64px; }
.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--surface); padding: 22px 24px; }
.stats dt { font-size: 2rem; font-weight: 800; }
.stats dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* Sections */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.grid { display: grid; gap: 20px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--projects { grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 24px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(214, 66, 11, .35); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__icon {
    width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; border-radius: 12px;
    background: rgba(214, 66, 11, .09); stroke: var(--accent); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Projects */
.project {
    display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.project__media { aspect-ratio: 1024 / 500; overflow: hidden; }
.project__media--md img { width: 100%; height: 100%; object-fit: cover; }
.project__media--et {
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .18), transparent 55%),
                linear-gradient(135deg, #4c2a96, #7e57c9);
}
.project__media--et img {
    width: 84px; height: 84px; padding: 14px; border-radius: 24px; background: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.et-title { margin: 16px 0 0; font-size: 1.8rem; font-weight: 800; color: #fff; }
.et-sub { margin: 0; color: rgba(255, 255, 255, .8); }
.project__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.project__body > p { color: var(--muted); }
.project__title { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.project__title h3 { margin: 0; font-size: 1.4rem; }
.project__icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; }
.project__icon--light { background: #fff; padding: 8px; }
.tag { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.badge {
    align-self: flex-start; margin-top: auto; padding: .45em 1em; border-radius: 999px;
    background: rgba(4, 120, 87, .09); color: var(--ok); font-size: .85rem; font-weight: 600;
}

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.about > div > p { color: var(--muted); font-size: 1.05rem; }
.about strong { color: var(--text); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
    display: flex; gap: 20px; padding: 20px 22px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps span { font-weight: 800; font-size: 1.1rem; color: var(--accent); min-width: 28px; }
.steps h3 { margin: 0 0 .2em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.05rem; }
.contact__list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 18px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact__list svg {
    width: 42px; height: 42px; padding: 10px; border-radius: 12px; flex: none;
    background: rgba(214, 66, 11, .09); stroke: var(--accent); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact__list a { color: var(--text); }

.form {
    box-shadow: var(--shadow);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 32px; display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .88rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--text);
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
    padding: .75em .9em; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5em; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214, 66, 11, .15); background: #fff;
}
.field small { color: var(--err); font-size: .85rem; }
.field--err input, .field--err textarea, .field--err.captcha input { border-color: var(--err); }

.captcha { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: end; }
.captcha__img { display: flex; align-items: center; gap: 8px; }
.captcha__img img { border-radius: 10px; height: 52px; width: 170px; }
.captcha__refresh {
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--bg-2); cursor: pointer; display: grid; place-items: center;
}
.captcha__refresh svg { width: 20px; height: 20px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.captcha__refresh:hover svg { stroke: var(--accent); }
.captcha .field small { grid-column: 1 / -1; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: 14px 18px; border-radius: 10px; font-weight: 500; }
.alert--ok { background: #ecfdf5; color: var(--ok); border: 1px solid #a7f3d0; }
.alert--err { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }

/* Footer */
.footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__logo { height: 84px; width: auto; }
.footer p { margin: 0; }
.footer a { color: var(--muted); }

/* Responsive */
@media (max-width: 1000px) {
    .grid--services { grid-template-columns: repeat(2, 1fr); }
    .about, .contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    .nav__toggle { display: block; }
    .nav__menu {
        position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav.is-open .nav__menu { display: flex; }
    .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .nav__menu .btn { margin-top: 16px; }
    .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
    .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero { padding: 72px 0 64px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 64px 0; }
    .grid--services, .grid--projects, .form__row { grid-template-columns: 1fr; }
    .form { padding: 22px; }
    .captcha { grid-template-columns: 1fr; }
}
