:root {
    --red: #ed1c24;
    --orange: #fc6000;
    --charcoal: #2d2d2d;
    --grey: #818181;
    --light: #e8e8e8;
    --white: #fff;
    --content: 980px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--charcoal);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--red); }
button, input, textarea { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 15px; padding: 10px 16px; color: #fff; background: #000; }
.skip-link:focus { top: 15px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-header { background: #fff; border-bottom: 1px solid #d7d7d7; }
.header-inner { position: relative; width: min(var(--content), calc(100% - 36px)); min-height: 318px; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0; }
.brand { width: 650px; max-width: 100%; height: 242px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.brand img { width: 600px; max-width: none; height: auto; object-fit: contain; }
.navigation { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 0 27px; }
.navigation a { min-width: 118px; padding: 9px 15px; border: 1px solid #a8a8a8; border-radius: 2px; color: var(--red); background: linear-gradient(#fff 0%, #f3f3f3 46%, #d7d7d7 100%); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.28); font-size: 13px; text-align: center; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s; }
.navigation a:hover, .navigation a[aria-current="page"] { color: #fff; background: linear-gradient(#ed4a50 0%, var(--red) 48%, #b90d14 100%); border-color: #9e1015; box-shadow: inset 0 1px 0 rgba(255,255,255,.48), 0 1px 3px rgba(0,0,0,.35); }
.menu-toggle { display: none; }

.hero { width: min(var(--content), 100%); min-height: 520px; margin: auto; position: relative; overflow: hidden; background: var(--charcoal); color: #fff; }
.hero-visual { position: absolute; inset: 0; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.05) 70%); }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .65s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.hero-slide.logo-slide img { object-fit: contain; }
.hero-copy { position: relative; z-index: 1; width: 58%; padding: 85px 40px; text-align: center; text-shadow: 0 2px 14px #000; }
.hero-copy h1 { margin: 0 0 54px; color: var(--red); font-size: clamp(36px, 5vw, 50px); line-height: 1.1; font-weight: 400; }
.hero-copy p { font-size: 23px; line-height: 1.3; }
.hero-copy span { font-size: 16px; }
.slide-count { position: absolute; z-index: 2; right: 18px; bottom: 12px; padding: 4px 8px; color: #fff; background: rgba(0,0,0,.65); font-size: 12px; }
.carousel-arrow { position: absolute; z-index: 3; top: 50%; width: 42px; height: 58px; margin-top: -29px; border: 0; color: #fff; background: rgba(0,0,0,.42); font: 36px/1 Arial, sans-serif; cursor: pointer; opacity: .55; transition: opacity .2s, background .2s; }
.carousel-arrow:hover, .carousel-arrow:focus { opacity: 1; background: rgba(0,0,0,.7); }
.carousel-arrow.previous { left: 0; }
.carousel-arrow.next { right: 0; }

.home-services { width: min(var(--content), calc(100% - 36px)); margin: 62px auto 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.home-card { text-align: center; }
.card-image { height: 244px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-image img { width: 242px; height: 240px; object-fit: cover; }
.home-card h2 { min-height: 58px; margin: 22px 0 5px; color: var(--red); font-size: 18px; font-weight: 400; }
.more { color: var(--grey); font-size: 13px; text-decoration: none; }
.more:hover { color: var(--red); text-decoration: underline; }

.page-heading { padding: 52px 20px 30px; text-align: center; }
.page-heading h1, .catalogue-intro h1, .contact-person h1, .legal-page h1 { margin: 0; color: var(--red); font: 400 40px/1.1 Tahoma, Arial, sans-serif; }
.service-grid { width: min(var(--content), calc(100% - 36px)); margin: 10px auto 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.service-card { text-align: center; }
.service-card > img, .service-card > a > img { width: 180px; height: 155px; object-fit: contain; margin: 0 auto 20px; }
.service-card h2 { min-height: 52px; color: var(--red); font-size: 18px; font-weight: 400; }
.service-card p { min-height: 70px; color: var(--grey); font-size: 14px; }
.service-actions { display: flex; min-height: 94px; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px; }
.document-link { color: var(--red); font-size: 13px; }
.button { display: inline-block; padding: 9px 24px; border: 0; border-radius: 2px; color: #fff; background: var(--red); font-size: 14px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { color: #fff; background: var(--orange); transform: translateY(-1px); }
.button.small { padding: 7px 22px; }

.catalogue-intro { width: min(var(--content), calc(100% - 36px)); margin: 54px auto 42px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.catalogue-intro h1 { font-size: 34px; }
.catalogue-intro p { margin: 14px 0 0; color: var(--grey); text-align: right; }
.catalogue-intro img { width: 145px; height: auto; }
.catalogue-grid { width: min(var(--content), calc(100% - 36px)); margin: 0 auto 90px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.catalogue-card { min-height: 245px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: center; border-bottom: 1px solid #e1e1e1; padding-bottom: 26px; }
.catalogue-card > a img { width: 200px; height: 200px; object-fit: contain; }
.catalogue-copy h2 { margin: 0 0 10px; color: var(--red); font-size: 18px; font-weight: 400; }
.catalogue-copy p { min-height: 84px; margin: 0 0 14px; color: #575757; font-size: 12px; line-height: 1.45; }

.contact-page { width: min(800px, calc(100% - 36px)); min-height: 590px; margin: 70px auto 90px; display: grid; grid-template-columns: 1fr 1.25fr; gap: 80px; }
.contact-person { padding-top: 15px; }
.contact-person .role { margin: 18px 0 46px; color: var(--red); font-size: 18px; }
.contact-person address { color: var(--grey); font-style: normal; line-height: 1.8; }
.contact-person address a { color: var(--red); text-decoration: none; }
.contact-form { display: grid; gap: 12px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #aaa; border-radius: 0; padding: 11px 12px; color: var(--charcoal); background: #fff; outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.contact-form textarea { resize: vertical; }
.submit { justify-self: end; min-width: 110px; }
.notice { margin: 0 0 18px; padding: 12px 14px; font-size: 14px; }
.notice p { margin: 0 0 4px; }
.notice p:last-child { margin-bottom: 0; }
.notice.success { border-left: 4px solid #2e7d32; background: #e8f5e9; color: #1b5e20; }
.notice.error { border-left: 4px solid var(--red); background: #ffebee; color: #8b1217; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.legal-page, .simple-page { width: min(850px, calc(100% - 36px)); margin: 65px auto 90px; }
.legal-page h1 { margin-bottom: 28px; }
.legal-page h2 { margin: 42px 0 14px; color: var(--red); font-size: 21px; font-weight: 400; }
.legal-page p { color: #575757; line-height: 1.75; }

.site-footer { color: #ddd; background: var(--charcoal); }
.footer-inner { width: min(var(--content), calc(100% - 36px)); min-height: 145px; margin: auto; padding: 34px 0; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 32px; font-size: 13px; }
.site-footer strong { color: var(--red); }
.site-footer a { color: #fff; text-decoration: none; }
.footer-links { text-align: right; }

@media (max-width: 780px) {
    .header-inner { min-height: 222px; align-items: center; }
    .brand { width: 330px; height: 168px; }
    .brand img { width: 425px; height: auto; }
    .menu-toggle { display: block; min-width: 118px; padding: 9px 15px; border: 1px solid #9e1015; border-radius: 2px; color: #fff; background: linear-gradient(#ed4a50, var(--red) 50%, #b90d14); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 1px 3px rgba(0,0,0,.3); }
    .navigation { position: absolute; z-index: 10; top: 215px; right: 18px; left: 18px; display: none; padding: 8px; border-top: 3px solid var(--red); background: #fff; box-shadow: 0 10px 22px rgba(0,0,0,.22); }
    .navigation.open { display: grid; }
    .navigation a { width: 100%; padding: 11px 12px; }
    .hero { min-height: 470px; }
    .hero-copy { width: 100%; padding: 78px 24px; }
    .hero-visual::after { background: rgba(0,0,0,.57); }
    .home-services, .service-grid { grid-template-columns: 1fr; max-width: 430px; }
    .home-card h2, .service-card h2, .service-card p { min-height: auto; }
    .catalogue-intro { align-items: flex-start; }
    .catalogue-intro h1 { font-size: 30px; }
    .catalogue-grid { grid-template-columns: 1fr; }
    .contact-page { grid-template-columns: 1fr; gap: 34px; }
    .contact-person .role { margin-bottom: 25px; }
}

@media (max-width: 500px) {
    .header-inner { width: calc(100% - 24px); }
    .brand { width: 290px; }
    .brand img { width: 390px; }
    .hero-copy h1 { margin-bottom: 42px; font-size: 37px; }
    .catalogue-intro { display: block; }
    .catalogue-intro p { text-align: left; }
    .catalogue-intro img { margin-top: 15px; }
    .catalogue-card { grid-template-columns: 130px 1fr; gap: 16px; }
    .catalogue-card > a img { width: 130px; height: 145px; }
    .footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .footer-links { text-align: left; }
}
