:root {
    --bg: #0a1016;
    --bg-soft: #111a23;
    --surface: #ffffff;
    --surface-soft: #f5f7f8;
    --text: #10151a;
    --muted: #66717b;
    --line: #e4e8eb;
    --accent: #f59a00;
    --accent-2: #ffb000;
    --white: #fff;
    --shadow: 0 18px 50px rgba(12, 18, 24, .12);
    --radius: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 840px); }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(9, 15, 21, .96);
    border-bottom: 1px solid rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); flex: 0 0 auto; }
.brand img { width: 48px; height: 48px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 30px; letter-spacing: -1.2px; font-weight: 900; }
.brand-copy strong span { color: var(--accent); }
.brand-copy small { margin-top: 5px; font-size: 11px; color: #cbd1d6; font-weight: 600; letter-spacing: .2px; }

.main-nav { display: flex; align-items: center; gap: 28px; color: #f4f5f6; font-weight: 650; }
.main-nav > a:not(.fb-link) { position: relative; }
.main-nav > a:not(.fb-link):not(.nav-phone)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--accent); transition: right .2s ease;
}
.main-nav > a:hover::after { right: 0 !important; }
.nav-phone { color: var(--accent-2); font-size: 18px; font-weight: 800; }
.fb-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #4267B2; font-family: Arial, sans-serif; font-size: 24px; font-weight: 800; color: white; }
.nav-toggle { display: none; width: 44px; height: 42px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: white; margin: 6px 0; border-radius: 2px; }

.hero { background: var(--bg); color: white; overflow: hidden; }
.hero-copy-wrap { background: radial-gradient(circle at 82% 10%, rgba(245,154,0,.12), transparent 26%); }
.hero-grid { min-height: 650px; display: grid; grid-template-columns: 1fr 1.12fr; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 70px 55px 70px 0; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 14px; color: var(--accent); text-transform: uppercase; letter-spacing: 1.6px; font-size: 12px; font-weight: 850; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 700px; margin-bottom: 22px; font-size: clamp(46px, 5.6vw, 78px); line-height: .98; letter-spacing: -3.2px; }
.hero h1 span { color: var(--accent-2); display: block; font-size: .75em; margin-top: 10px; }
.lead { max-width: 640px; font-size: 19px; color: #d3d8dc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; border-radius: 9px; padding: 0 22px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #0f1317; background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 24px rgba(245,154,0,.24); }
.button-secondary { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.button-small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.button-wide { width: 100%; border: 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: #c5ccd1; font-size: 13px; font-weight: 650; }
.hero-points span::before { content: "●"; color: var(--accent); font-size: 10px; margin-right: 8px; }
.hero-image {
    min-height: 650px;
    background-image: linear-gradient(90deg, var(--bg) 0%, rgba(10,16,22,.26) 20%, rgba(10,16,22,.02) 50%), url('/assets/img/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}
.image-note { position: absolute; right: 18px; bottom: 18px; font-size: 11px; color: rgba(255,255,255,.78); background: rgba(8,12,16,.58); border: 1px solid rgba(255,255,255,.14); padding: 6px 9px; border-radius: 99px; }

.section { padding: 92px 0; }
.section-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.section-heading h2, .about h2, .contact h2 { margin-bottom: 14px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -1.6px; }
.section-heading p:last-child, .about-copy > p, .contact-copy > p { color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(12,18,24,.04); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px; color: var(--accent); background: #fff5e4; font-size: 28px; font-weight: 900; }
.service-card h3 { margin-bottom: 8px; font-size: 20px; }
.service-card p { margin-bottom: 0; color: var(--muted); }

.equipment { background: var(--bg); color: white; }
.section-heading-light p:last-child { color: #b9c1c8; }
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.machine-card { overflow: hidden; background: var(--bg-soft); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.machine-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transform: scale(1.005); }
.machine-card > div { padding: 22px; }
.machine-card span { font-size: 11px; color: var(--accent-2); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.machine-card h3 { margin: 6px 0 8px; font-size: 22px; }
.machine-card p { color: #bac3ca; margin-bottom: 0; }

.about { background: var(--surface-soft); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.about-copy > p { font-size: 18px; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.about-facts div { background: white; border: 1px solid var(--line); padding: 20px; border-radius: 14px; }
.about-facts strong { display: block; margin-bottom: 4px; }
.about-facts span { color: var(--muted); font-size: 13px; }

.contact { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-copy { padding-top: 10px; }
.contact-list { display: grid; gap: 10px; margin-top: 30px; }
.contact-list > * { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--muted); }
.contact-list strong { text-align: right; }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.form-card form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card label { display: grid; gap: 7px; color: #323a41; font-size: 13px; font-weight: 750; }
.form-card input, .form-card textarea {
    width: 100%; border: 1px solid #d8dde1; border-radius: 9px; padding: 13px 14px; color: var(--text); background: #fbfcfc; outline: none; transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-card input:focus, .form-card textarea:focus { background: white; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,154,0,.12); }
.form-card textarea { min-height: 150px; resize: vertical; }
.consent { grid-template-columns: 20px 1fr !important; align-items: start; font-weight: 500 !important; color: var(--muted) !important; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: #b36d00; text-decoration: underline; }
.form-note { margin: -5px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { margin-bottom: 18px; padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.form-message.success { color: #145c2c; background: #ecf9f0; border: 1px solid #bfe8cc; }
.form-message.error { color: #7b2525; background: #fff1f1; border: 1px solid #f1c2c2; }
.form-message ul { margin: 7px 0 0 20px; padding: 0; }

.site-footer { color: #c8cfd4; background: #080d12; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 40px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; font-size: 14px; }
.footer-grid strong { color: white; }
.footer-grid a:hover { color: var(--accent); }
.site-footer .brand-copy strong { font-size: 26px; }
.site-footer .brand img { width: 42px; height: 42px; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #8f999f; font-size: 12px; }

.legal-page { background: #f5f7f8; }
.legal-content { padding: 80px 0 100px; }
.legal-content h1 { margin-bottom: 25px; font-size: clamp(38px, 6vw, 58px); letter-spacing: -2px; }
.legal-content h2 { margin: 35px 0 10px; font-size: 24px; }
.legal-content p { color: #4c565f; }
.legal-content a { color: #9d6200; text-decoration: underline; }
.legal-note { margin-top: 40px; padding: 20px; border: 1px solid #f0d5aa; background: #fff8eb; border-radius: 12px; }
.legal-note p { margin: 6px 0 0; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; top: 82px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 20px 24px; background: #0a1016; border-top: 1px solid rgba(255,255,255,.08); }
    .main-nav.is-open { display: flex; }
    .main-nav a { width: 100%; padding: 13px 0; }
    .main-nav > a::after { display: none; }
    .fb-link { width: 40px !important; padding: 0 !important; margin-top: 10px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; }
    .hero-copy { padding: 62px 0 44px; }
    .hero-image { min-height: 480px; background-position: center; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
    .about-facts { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-inner { min-height: 72px; }
    .main-nav { top: 72px; }
    .brand img { width: 40px; height: 40px; }
    .brand-copy strong { font-size: 25px; }
    .brand-copy small { font-size: 9px; }
    .hero h1 { font-size: clamp(40px, 12vw, 58px); letter-spacing: -2.3px; }
    .hero-image { min-height: 340px; }
    .section { padding: 70px 0; }
    .service-grid, .equipment-grid { grid-template-columns: 1fr; }
    .service-card { padding: 24px; }
    .about-facts { grid-template-columns: 1fr; }
    .form-card { padding: 22px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-list > * { display: grid; gap: 2px; }
    .contact-list strong { text-align: left; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-grid > div:last-child { grid-column: auto; }
    .site-header .button-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
