:root {
    --tm-blue: #004297;
    --tm-orange: #e85426;
    --tm-text: #424242;
    --tm-surface: #f1f1f1;
    --tm-shell: 1200px;
}

* { box-sizing: border-box; }

.three-metall-site {
    color: var(--tm-text);
    font-family: Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
    font-weight: 300;
}

.three-metall-site a { color: inherit; text-decoration: none; }
.tm-shell { width: min(var(--tm-shell), calc(100% - 40px)); margin: 0 auto; }

.tm-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .16); }
.tm-utility { padding: 8px 0; background: var(--tm-blue); color: #fff; font-size: .78rem; }
.tm-utility__inner { display: flex; justify-content: space-between; gap: 20px; }
.tm-utility a { color: #fff; }
.tm-header__main { min-height: 90px; display: flex; align-items: center; gap: 30px; }
.tm-brand { display: inline-flex; flex-direction: column; flex: 0 0 auto; color: var(--tm-blue) !important; font-size: 2.2rem; font-weight: 900; line-height: .78; letter-spacing: -1.8px; }
.tm-brand > span { color: var(--tm-orange); }
.tm-brand small { margin-top: 10px; color: var(--tm-text); font-size: .43rem; font-weight: 700; letter-spacing: .11em; }
.tm-navigation { flex: 1; }
.tm-navigation .vintario-menu__list { display: flex; align-items: center; justify-content: flex-end; gap: 25px; padding: 0; margin: 0; list-style: none; }
.tm-navigation .vintario-menu__item { position: relative; }
.tm-navigation .vintario-menu__link { display: block; color: var(--tm-blue); font-size: .83rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.tm-navigation .vintario-menu__list--level-2 { display: none; position: absolute; top: calc(100% + 18px); right: -18px; min-width: 265px; padding: 16px 20px; background: #fff; box-shadow: 0 12px 22px rgba(0, 0, 0, .18); }
.tm-navigation .vintario-menu__item:hover > .vintario-menu__list--level-2 { display: block; }
.tm-navigation .vintario-menu__list--level-2 .vintario-menu__link { padding: 6px 0; font-size: .78rem; text-transform: none; }
.tm-navigation .is-active > .vintario-menu__link, .tm-navigation .vintario-menu__link:hover { color: var(--tm-orange); }
.tm-menu-toggle { display: none; margin-left: auto; padding: 9px 14px; border: 1px solid var(--tm-blue); color: var(--tm-blue); background: #fff; font: inherit; font-weight: 700; text-transform: uppercase; }

.tm-hero { min-height: 360px; display: flex; align-items: end; padding: 75px 0 55px; background: linear-gradient(115deg, rgba(255,255,255,.93), rgba(255,255,255,.48)), linear-gradient(135deg, #d2d6d6 0%, #8e979b 40%, #e5e6e4 100%); }
.tm-hero__inner { max-width: var(--tm-shell); }
.tm-hero__slogan { margin: 0 0 12px; color: #fff; background: rgba(0, 66, 151, .7); display: inline-block; padding: 5px 15px; font-size: 1.4rem; font-weight: 700; text-transform: uppercase; }
.tm-hero h1 { max-width: 900px; margin: 0; color: var(--tm-text); font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1.05; font-weight: 900; text-transform: uppercase; }
.tm-rule { display: block; width: 70px; height: 4px; margin: 28px 0 34px; background: var(--tm-orange); }

.tm-main { background: #fff; }
.tm-content { padding: 68px 0 58px; font-size: 1.15rem; }
.tm-content h2, .tm-info h2, .tm-projects h2 { color: var(--tm-blue); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 900; text-align: center; }
.tm-content h3 { color: var(--tm-orange); font-size: 1.25rem; font-weight: 500; text-transform: uppercase; }
.tm-content img { max-width: 100%; height: auto; }
.tm-surface { padding: 55px 0; background: var(--tm-surface); }
.tm-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.tm-card { padding: 28px; color: #fff; background: var(--tm-blue); box-shadow: 9px 10px 30px rgba(0, 0, 0, .2); }
.tm-card h2 { margin: 0 0 14px; color: #fff; font-size: 1.3rem; font-weight: 700; text-transform: uppercase; }
.tm-card p { color: #fff; }
.tm-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; padding: 70px 0; }
.tm-info > div:first-child { grid-column: 1 / -1; }
.tm-cta { max-width: 560px; margin: 52px auto 0; text-align: center; }
.tm-button { display: inline-block; padding: 13px 50px; border-radius: 28px; font-size: .86rem; font-weight: 700; text-transform: uppercase; transition: .2s ease; }
.tm-button--solid { color: #fff !important; background: var(--tm-orange); }
.tm-button--solid:hover { color: var(--tm-orange) !important; background: #fff; }
.tm-button--outline { margin-top: 14px; border: 1px solid var(--tm-orange); color: var(--tm-orange) !important; }
.tm-button--outline:hover { color: #fff !important; background: var(--tm-orange); }
.tm-projects h2 { margin-top: 0; }
.tm-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tm-projects__grid a { min-height: 120px; display: flex; align-items: end; padding: 18px; color: #fff; background: linear-gradient(145deg, rgba(0,66,151,.9), rgba(0,66,151,.55)); font-weight: 700; }
.tm-footer { padding: 40px 0; color: #fff; background: #666; }
.tm-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tm-footer p { margin: 0; color: #fff; }
.tm-footer ul { display: flex; flex-wrap: wrap; justify-content: end; gap: 16px; padding: 0; margin: 0; list-style: none; }
.tm-footer a { color: #fff; text-decoration: underline; }

@media (max-width: 920px) {
    .tm-utility__inner { display: block; text-align: center; }
    .tm-utility__inner span { display: block; }
    .tm-header__main { min-height: 76px; }
    .tm-menu-toggle { display: block; }
    .tm-navigation { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 18px 20px; background: #fff; box-shadow: 0 10px 18px rgba(0,0,0,.16); }
    .tm-navigation.is-open { display: block; }
    .tm-navigation .vintario-menu__list { display: block; }
    .tm-navigation .vintario-menu__item { padding: 8px 0; }
    .tm-navigation .vintario-menu__list--level-2 { position: static; display: block; padding: 8px 0 0 18px; box-shadow: none; }
    .tm-navigation .vintario-menu__list--level-3, .tm-navigation .vintario-menu__list--level-4 { display: none; }
    .tm-content { padding-top: 50px; }
}

@media (max-width: 640px) {
    .tm-shell { width: min(var(--tm-shell), calc(100% - 28px)); }
    .tm-brand { font-size: 1.9rem; }
    .tm-hero { min-height: 300px; padding: 50px 0 35px; }
    .tm-hero__slogan { font-size: 1rem; }
    .tm-cards, .tm-projects__grid { grid-template-columns: 1fr; }
    .tm-info { display: block; padding: 50px 0; }
    .tm-footer__inner { display: block; text-align: center; }
    .tm-footer ul { justify-content: center; margin-top: 18px; }
}
