:root {
    --red: #c21b0c;
    --red-dark: #941408;
    --dark: #15191f;
    --text: #20242b;
    --muted: #667085;
    --line: #e5e7eb;
    --light: #f7f8fa;
    --white: #fff;
    --shadow: 0 16px 45px rgba(15, 23, 42, .10);
    --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.04); backdrop-filter: blur(12px); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand-logo { width: 280px; max-height: 66px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 700; }
.main-nav a { padding: 30px 0 24px; border-bottom: 3px solid transparent; transition: color .15s ease, border-color .15s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--red); border-bottom-color: var(--red); }
.lang-switch { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.lang-switch .selected { color: var(--red); }
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 30px; cursor: pointer; color: var(--dark); }
.hero-section { position: relative; min-height: 640px; overflow: hidden; display: flex; align-items: center; color: var(--white); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.01); }
.hero-content { position: relative; z-index: 2; padding: 110px 0 130px; }
.hero-content h1 { max-width: 760px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -1.6px; margin: 0 0 24px; }
.hero-content p { max-width: 635px; font-size: clamp(18px, 2vw, 23px); color: rgba(255,255,255,.9); margin: 0 0 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.btn { min-height: 56px; padding: 0 30px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border: 2px solid transparent; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(180deg, #df2b18, var(--red)); box-shadow: 0 12px 28px rgba(194,27,12,.24); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.75); background: rgba(0,0,0,.18); }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 12px; }
.hero-dots span { width: 13px; height: 13px; border-radius: 50%; background: rgba(255,255,255,.85); }
.hero-dots .active { background: var(--red); }
.company-section, .services-section, .gallery-section, .contact-section { padding: 70px 0; }
.company-grid { display: grid; grid-template-columns: 140px 1px minmax(0, 720px); align-items: center; justify-content: center; gap: 44px; }
.section-icon svg, .service-icon svg { width: 92px; height: 92px; color: var(--red); stroke: currentColor; }
.divider { height: 110px; background: #ccd0d7; }
h2 { font-size: clamp(34px, 3vw, 46px); line-height: 1.15; margin: 0 0 18px; color: var(--dark); letter-spacing: -.6px; }
.company-grid p { font-size: 20px; margin: 0; color: #343943; }
.section-title { text-align: center; position: relative; margin-bottom: 44px; }
.section-title::after { content: ''; width: 62px; height: 4px; border-radius: 999px; background: var(--red); position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card { min-height: 260px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 26px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.service-icon svg { width: 78px; height: 78px; margin-bottom: 20px; }
.service-card h3 { font-size: 24px; line-height: 1.2; margin: 0 0 14px; color: var(--dark); }
.service-card p { margin: 0; color: var(--muted); font-size: 17px; }
.card-line { width: 58px; height: 3px; background: var(--red); border-radius: 999px; margin-top: auto; }
.gallery-section { padding-top: 20px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 32px rgba(15,23,42,.13); }
.contact-section { background: #fff; padding-top: 45px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: stretch; }
.contact-card { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.left-title { text-align: center; margin-bottom: 42px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 14px; font-size: 17px; color: #2f3540; }
.contact-list strong { font-size: 18px; color: var(--dark); }
.mini-icon { color: var(--red); font-weight: 900; font-size: 22px; line-height: 1.1; text-align: center; }
.map-card { position: relative; min-height: 420px; background: var(--light); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-card iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.05) contrast(.95); }
.map-overlay { position: absolute; top: 48px; right: 46px; max-width: 360px; padding: 22px 24px; background: rgba(255,255,255,.95); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.16); display: grid; gap: 6px; }
.map-overlay strong { color: var(--dark); font-size: 18px; }
.map-overlay span { color: var(--muted); }
.map-button { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); min-width: 310px; }
.map-button:hover { transform: translateX(-50%) translateY(-2px); }
.site-footer { background: linear-gradient(135deg, #0d121a, #15191f); color: rgba(255,255,255,.86); padding: 36px 0; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; gap: 44px; }
.footer-logo { width: 285px; background: #fff; padding: 8px; border-radius: 4px; }
.footer-divider { width: 1px; height: 62px; background: rgba(255,255,255,.35); }
.footer-inner p { margin: 0; font-size: 16px; }
.fallback-page { padding: 80px 0; }
@media (max-width: 1024px) {
    .brand-logo { width: 220px; }
    .main-nav { gap: 18px; }
    .hero-section { min-height: 560px; }
    .cards, .gallery-grid { gap: 18px; }
}
@media (max-width: 860px) {
    .header-inner { min-height: 76px; }
    .brand-logo { width: 205px; }
    .mobile-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); padding: 18px 20px; flex-direction: column; align-items: flex-start; box-shadow: 0 14px 34px rgba(15,23,42,.12); }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 6px 0; border-bottom-width: 0; }
    .lang-switch { margin-left: auto; }
    .hero-content { padding: 86px 0 112px; }
    .company-grid, .cards, .gallery-grid, .contact-grid { grid-template-columns: 1fr; }
    .company-grid { gap: 20px; justify-items: center; text-align: center; }
    .divider { width: 120px; height: 1px; }
    .contact-card { padding: 28px; }
    .map-overlay { position: static; margin: 18px; }
    .map-button { position: static; transform: none; margin: 0 18px 20px; min-width: 0; width: calc(100% - 36px); }
    .map-button:hover { transform: translateY(-2px); }
    .footer-inner { flex-direction: column; text-align: center; gap: 18px; }
    .footer-divider { width: 90px; height: 1px; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1180px); }
    .brand-logo { width: 175px; }
    .lang-switch { font-size: 13px; gap: 6px; }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 18px; }
    .btn { width: 100%; padding: 0 18px; }
    .service-card { min-height: auto; }
    .contact-list li { grid-template-columns: 26px 1fr; font-size: 16px; }
}

.amecon-protected-email { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.email-reveal-btn { border: 0; border-radius: 5px; background: linear-gradient(180deg, #df2b18, var(--red)); color: #fff; padding: 9px 15px; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 8px 18px rgba(194,27,12,.18); }
.email-reveal-btn:hover { filter: brightness(.94); }
.protected-email-link { color: var(--dark); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.protected-email-link:hover { color: var(--red); }


/* v5 contact form, map privacy loader and legal links */
.text-link { color: var(--red); font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.btn-outline-dark { color: var(--dark); border-color: var(--dark); background: rgba(255,255,255,.9); }
.map-card { display: grid; align-items: stretch; }
.map-placeholder { position: absolute; inset: 0; z-index: 2; background: linear-gradient(135deg, #eef1f5, #ffffff); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px; gap: 10px; }
.map-placeholder::before { content: ''; position: absolute; inset: 0; opacity: .55; background-image: linear-gradient(90deg, rgba(194,27,12,.12) 1px, transparent 1px), linear-gradient(rgba(21,25,31,.08) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.map-placeholder > * { position: relative; z-index: 1; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 32px; box-shadow: 0 14px 30px rgba(194,27,12,.26); }
.map-placeholder strong { max-width: 520px; font-size: 21px; color: var(--dark); }
.map-placeholder span { color: var(--muted); font-size: 17px; }
.map-placeholder p { max-width: 620px; margin: 10px 0 6px; color: var(--muted); }
.map-iframe { display: none; }
.map-card.map-loaded .map-placeholder { display: none; }
.map-card.map-loaded .map-iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.contact-form-card { margin-top: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px; }
.contact-form-card h2 { text-align: center; }
.form-intro { text-align: center; color: var(--muted); margin: -5px 0 28px; font-size: 18px; }
.amecon-contact-form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.amecon-contact-form label { display: grid; gap: 8px; font-weight: 800; color: var(--dark); }
.amecon-contact-form input, .amecon-contact-form select, .amecon-contact-form textarea { width: 100%; border: 1px solid #cfd4dc; border-radius: 8px; padding: 13px 14px; font: inherit; font-weight: 500; color: var(--text); background: #fff; }
.amecon-contact-form input:focus, .amecon-contact-form select:focus, .amecon-contact-form textarea:focus { outline: 2px solid rgba(194,27,12,.20); border-color: var(--red); }
.full-label { display: grid; }
.privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 14px 0 4px; }
.privacy-row label { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: #343943; max-width: 760px; }
.privacy-row input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.legal-download, .footer-legal { color: var(--red); font-weight: 800; text-decoration: none; }
.legal-download:hover, .footer-legal:hover { text-decoration: underline; }
.form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-bottom span { color: var(--muted); }
.form-status { border-radius: 10px; padding: 14px 16px; font-weight: 800; margin-bottom: 12px; }
.status-sent { background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; }
.status-error, .status-invalid { background: #fff1f0; color: #b42318; border: 1px solid #fecdca; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.footer-copy { display: grid; gap: 8px; }
.footer-copy p { margin: 0; }
@media (max-width: 860px) {
    .form-grid { grid-template-columns: 1fr; }
    .contact-form-card { padding: 28px; }
    .privacy-row, .form-bottom { align-items: stretch; flex-direction: column; }
    .legal-download { display: inline-flex; }
}
