/* Expedic Tech — site styles */

:root {
    --background: #ffffff;
    --text: #0a0a0a;
    --muted: #6b6b6b;
    --soft: #999999;
    --line: #e8e8e8;
    --panel: #f6f6f6;
    --ok: #146c2e;
    --error: #b42318;
    --width: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.wrap {
    width: var(--width);
    margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.site-header .wrap {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 28px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.nav a:hover,
.nav a:focus-visible { color: var(--text); }

/* ---------- Hero ---------- */

.hero {
    padding: 90px 24px 110px;
    text-align: center;
}

.hero .logo {
    display: block;
    width: min(900px, 92%);
    margin: 0 auto 55px;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.intro {
    max-width: 650px;
    margin: 22px auto 0;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.7;
    color: var(--muted);
}

.actions {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 14px 26px;
    border: 1px solid var(--text);
    background: var(--text);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn:hover,
.btn:focus-visible {
    background: #fff;
    color: var(--text);
}

.btn.ghost {
    background: transparent;
    color: var(--text);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
    background: var(--text);
    color: #fff;
}

.btn[disabled] { opacity: 0.5; cursor: wait; }

.history {
    margin-top: 60px;
    font-size: 13px;
    color: var(--soft);
    letter-spacing: 0.04em;
}

/* ---------- Sections ---------- */

.section .wrap {
    padding: 100px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
}

.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--soft);
}

.label .num {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    color: var(--text);
    margin-right: 10px;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.lead {
    margin: 0;
    max-width: 720px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--muted);
}

.lead + .lead { margin-top: 18px; }

/* Timeline */

.timeline {
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--text);
}

.timeline li {
    padding: 22px 24px 0 0;
    position: relative;
}

.timeline li::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--text);
}

.timeline .year-tag {
    display: block;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* Principles */

.principles {
    margin: 56px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.principles div {
    background: #fff;
    padding: 26px 24px;
}

.principles strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.principles span {
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

/* Cards (services + projects) */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 8px;
}

.cards.two { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    padding: 32px 28px 36px;
    display: flex;
    flex-direction: column;
}

.card .num {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    color: var(--soft);
    margin-bottom: 36px;
}

.card h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--muted);
}

.product-cards { margin-top: 40px; }

.product-cards .card .num { margin-bottom: 24px; }

.facts {
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.facts li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--muted);
}

.facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    background: var(--text);
}

.actions.left { justify-content: flex-start; }

.safety { margin-top: 14px; }

.status {
    align-self: flex-start;
    margin-bottom: 36px;
    padding: 5px 10px;
    border: 1px solid var(--text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status.soon {
    border-color: var(--line);
    color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.mail-link {
    display: inline-block;
    margin-top: 28px;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--text);
    padding-bottom: 2px;
}

.mail-link:hover { color: var(--muted); border-color: var(--muted); }

.form {
    display: grid;
    gap: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d4d4d4;
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.15s;
}

.field textarea { min-height: 160px; resize: vertical; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--text);
}

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

.form-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--soft);
}

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

.notice {
    padding: 14px 16px;
    border-left: 3px solid var(--text);
    background: var(--panel);
    font-size: 14px;
    line-height: 1.5;
}

.notice.ok { border-color: var(--ok); color: var(--ok); }
.notice.error { border-color: var(--error); color: var(--error); }
.notice[hidden] { display: none; }

/* ---------- Footer ---------- */

.site-footer .wrap {
    padding: 24px 0 30px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    color: var(--soft);
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.site-footer .links { display: flex; gap: 22px; }

/* ---------- 404 ---------- */

.notfound {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}

.notfound .code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--soft);
    margin-bottom: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .section .wrap { grid-template-columns: 1fr; gap: 24px; padding: 80px 0; }
    .cards, .cards.two { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
    :root { --width: calc(100% - 32px); }

    .site-header .wrap { padding: 18px 0; }
    .nav { gap: 16px; font-size: 12px; }
    .nav .hide-sm { display: none; }

    .hero { padding: 60px 16px 80px; }
    .hero .logo { width: 100%; margin-bottom: 42px; }

    .section .wrap { padding: 64px 0; }
    .lead { font-size: 16px; }

    .timeline,
    .principles { grid-template-columns: 1fr; }

    .timeline { border-top: 0; border-left: 1px solid var(--text); margin-left: 4px; }
    .timeline li { padding: 0 0 26px 24px; }
    .timeline li::before { top: 6px; left: -5px; }

    .site-footer .wrap { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
