:root {
    --tsi-accent: #C79A72;
    --tsi-cta: #0D4F81;
    --tsi-footer: #061827;
    --tsi-footer-text: #F3F3F3;
    --tsi-text: #101A27;
    --tsi-header-bg: #fffdfa;
    --tsi-line: #dec8b1;
    --tsi-max: 1536px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--tsi-text);
    background: #fff;
    font-family: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
    position: absolute!important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* HEADER */
.site-header {
    position: relative;
    z-index: 100;
    background: linear-gradient(90deg, #fffefa 0%, #fffdf8 68%, #fff9ef 100%);
    border-bottom: 1px solid rgba(17, 27, 40, .04);
}
.site-header__inner {
    max-width: var(--tsi-max);
    height: 94px;
    margin: 0 auto;
    padding: 0 38px;
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1px 1fr auto;
    align-items: center;
    gap: 34px;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}
.site-header__brand img {
    width: min(var(--logo-width, 255px), 100%);
    max-height: 66px;
    object-fit: contain;
    object-position: left center;
}
.site-header__brand-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.03em;
}
.site-header__divider {
    display: block;
    width: 1px;
    height: 34px;
    background: var(--tsi-line);
}
.primary-nav { min-width: 0; }
.primary-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(26px, 3vw, 55px);
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav__item { position: relative; }
.primary-nav__item > a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .2s ease;
}
.primary-nav__item > a:hover { color: var(--tsi-cta); }
.chevron {
    width: 7px;
    height: 7px;
    border-right: 1.7px solid currentColor;
    border-bottom: 1.7px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}
.primary-nav__submenu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    min-width: 230px;
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    list-style: none;
    margin: 0;
    padding: 12px;
    background: #fff;
    border: 1px solid #ece6df;
    box-shadow: 0 16px 38px rgba(6, 24, 39, .12);
    transition: .18s ease;
}
.primary-nav__submenu:before {
    content: '';
    position: absolute;
    top: -21px; left: 0; right: 0;
    height: 21px;
}
.primary-nav__submenu a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    font-size: 14px;
}
.primary-nav__submenu a:hover { background: #f8f4ef; }
.primary-nav__item:hover > .primary-nav__submenu,
.primary-nav__item:focus-within > .primary-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-cta {
    height: 54px;
    min-width: 164px;
    padding: 0 24px 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: #fff;
    background: var(--tsi-cta);
    border-radius: 2px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    transition: transform .2s ease, filter .2s ease;
}
.header-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.header-cta svg { width: 22px; height: 22px; }
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}
.header-phone svg { width: 23px; height: 23px; }
.nav-toggle { display: none; }

.site-main { min-height: 20vh; }
.front-page-content:empty { display: none; }
.content-shell { max-width: 1280px; padding: 70px 30px; margin: 0 auto; }
.content-entry__title { margin: 0 0 30px; font-size: clamp(34px, 5vw, 64px); }
.content-entry__body { font-size: 17px; line-height: 1.8; }

/* FOOTER */
.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 100%, rgba(27, 70, 98, .22), transparent 31%),
        linear-gradient(115deg, #071725 0%, var(--tsi-footer) 54%, #041522 100%);
    color: var(--tsi-footer-text);
}
.site-footer__top {
    position: relative;
    z-index: 2;
    max-width: 1510px;
    min-height: 372px;
    margin: 0 auto;
    padding: 48px 50px 46px;
    display: grid;
    grid-template-columns: 1.25fr .85fr 1.05fr 1.25fr;
    gap: clamp(46px, 6vw, 120px);
}
.footer-column h3 {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .22em;
}
.footer-heading-line {
    display: block;
    width: 35px;
    height: 1px;
    margin: -12px 0 16px;
    background: rgba(255,255,255,.75);
}
.footer-brand__logo {
    min-height: 67px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    text-decoration: none;
}
.footer-brand__logo img {
    max-width: 280px;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}
.footer-brand__mark {
    position: relative;
    width: 78px; height: 60px;
    display: inline-block;
}
.footer-brand__mark i {
    position: absolute;
    bottom: 0;
    width: 2px;
    height: 43px;
    background: var(--tsi-accent);
    transform-origin: bottom;
}
.footer-brand__mark i:nth-child(1) { left: 16px; transform: skewY(-34deg); }
.footer-brand__mark i:nth-child(2) { left: 39px; height: 58px; transform: skewY(34deg); }
.footer-brand__mark i:nth-child(3) { left: 62px; height: 39px; transform: skewY(-34deg); }
.footer-brand__text { display: flex; flex-direction: column; gap: 9px; }
.footer-brand__text strong {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    letter-spacing: .19em;
    font-weight: 500;
}
.footer-brand__text small { font-size: 10px; letter-spacing: .28em; opacity: .75; }
.footer-brand__description {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255,255,255,.82);
}
.footer-brand__description p { margin: 0; }
.footer-socials { display: flex; gap: 18px; margin-top: 28px; }
.footer-socials a {
    width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    transition: .2s ease;
}
.footer-socials a:hover { border-color: var(--tsi-accent); color: var(--tsi-accent); transform: translateY(-2px); }
.footer-links ul, .footer-services ul { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-services li { margin: 0 0 14px; }
.footer-links a, .footer-services a {
    color: rgba(255,255,255,.84);
    text-decoration: none;
    font-size: 15px;
    transition: color .2s ease;
}
.footer-links a:hover, .footer-services a:hover { color: #fff; }
.footer-links a { display: flex; justify-content: space-between; align-items: center; gap: 22px; max-width: 180px; }
.footer-links b { font-size: 22px; line-height: 1; font-weight: 300; }
.footer-newsletter p {
    margin: 0 0 20px;
    max-width: 390px;
    color: rgba(255,255,255,.85);
    font-size: 15px;
    line-height: 1.45;
}
.footer-newsletter__demo {
    width: 100%;
    height: 56px;
    display: grid;
    grid-template-columns: 1fr 70px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.32);
    color: rgba(255,255,255,.55);
    margin-bottom: 17px;
}
.footer-newsletter__demo span { padding-left: 22px; }
.footer-newsletter__demo b {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tsi-accent);
    color: #fff;
    font-size: 26px;
    font-weight: 300;
}
.footer-newsletter__form input[type="email"],
.footer-newsletter__form input[type="text"] {
    width: calc(100% - 70px);
    height: 56px;
    padding: 0 22px;
    border: 1px solid rgba(255,255,255,.32);
    border-right: 0;
    background: transparent;
    color: #fff;
    outline: none;
}
.footer-newsletter__form input[type="submit"],
.footer-newsletter__form button[type="submit"] {
    width: 70px;
    height: 56px;
    border: 0;
    background: var(--tsi-accent);
    color: #fff;
    cursor: pointer;
}
.footer-newsletter .wpcf7 form p { margin: 0; }
.footer-newsletter__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px!important;
    line-height: 1.5!important;
    color: rgba(255,255,255,.72)!important;
}
.fake-checkbox {
    flex: 0 0 20px;
    width: 20px; height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #0c2639;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
}
.site-footer__bottom {
    position: relative;
    z-index: 3;
    min-height: 90px;
    max-width: 1510px;
    margin: 0 auto;
    padding: 0 50px;
    border-top: 1px solid rgba(255,255,255,.17);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}
.site-footer__copyright, .site-footer__credit { margin: 0; }
.site-footer__legal { display: flex; align-items: center; gap: 20px; }
.site-footer__legal a, .site-footer__credit a { text-decoration: none; }
.site-footer__legal i { width: 1px; height: 18px; background: rgba(255,255,255,.35); }
.site-footer__credit { text-align: right; }
.site-footer__credit a { margin-left: 9px; color: var(--tsi-accent); letter-spacing: .18em; font-size: 13px; }
.site-footer__decor {
    position: absolute;
    right: 0;
    bottom: 86px;
    width: 260px;
    height: 145px;
    pointer-events: none;
    opacity: .48;
}
.building {
    position: absolute;
    bottom: 0;
    border-left: 1px solid var(--tsi-accent);
    border-right: 1px solid var(--tsi-accent);
}
.building:before, .building:after {
    content: '';
    position: absolute;
    top: -40px;
    width: 1px;
    height: 62px;
    background: var(--tsi-accent);
    transform-origin: bottom;
}
.building:before { left: 0; transform: rotate(45deg); }
.building:after { right: 0; transform: rotate(-45deg); }
.building--a { right: 0; width: 78px; height: 88px; }
.building--b { right: 74px; width: 58px; height: 63px; }
.building--c { right: 127px; width: 42px; height: 36px; }

@media (max-width: 1280px) {
    .site-header__inner { grid-template-columns: 230px 1px 1fr auto; gap: 22px; padding: 0 24px; }
    .primary-nav__list { gap: 24px; }
    .primary-nav__item > a { font-size: 14px; }
    .header-phone span { display: none; }
    .header-cta { min-width: 142px; }
    .site-footer__top { grid-template-columns: 1.15fr .8fr 1fr 1.2fr; gap: 44px; padding-inline: 34px; }
    .site-footer__bottom { padding-inline: 34px; }
}

@media (max-width: 1024px) {
    .site-header__inner {
        height: 78px;
        grid-template-columns: 1fr auto;
        gap: 18px;
        padding: 0 22px;
    }
    .site-header__brand img { max-height: 54px; }
    .site-header__divider, .site-header__actions { display: none; }
    .nav-toggle {
        display: inline-flex;
        width: 46px; height: 46px;
        border: 0;
        background: transparent;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
    }
    .nav-toggle__line { display: block; height: 2px; background: #111b27; transition: .2s ease; }
    .nav-open .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle__line:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .primary-nav {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee7df;
        box-shadow: 0 18px 40px rgba(0,0,0,.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: .2s ease;
    }
    .nav-open .primary-nav { opacity: 1; visibility: visible; transform: translateY(0); }
    .primary-nav__list { display: block; padding: 12px 22px 22px; }
    .primary-nav__item > a { width: 100%; justify-content: space-between; padding: 13px 2px; font-size: 15px; }
    .primary-nav__submenu {
        position: static;
        min-width: 0;
        transform: none!important;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: 0;
        background: #f8f5f1;
        display: none;
        padding: 8px;
    }
    .primary-nav__item:focus-within > .primary-nav__submenu,
    .primary-nav__item:hover > .primary-nav__submenu { display: block; }

    .site-footer__top { grid-template-columns: 1fr 1fr; gap: 55px 70px; }
    .site-footer__bottom { grid-template-columns: 1fr; gap: 15px; padding-top: 24px; padding-bottom: 24px; }
    .site-footer__legal { justify-content: flex-start; flex-wrap: wrap; }
    .site-footer__credit { text-align: left; }
}

@media (max-width: 640px) {
    .site-header__inner { padding-inline: 16px; }
    .site-header__brand { max-width: 245px; }
    .site-header__brand-text { font-size: 28px; }
    .site-footer__top { grid-template-columns: 1fr; padding: 42px 24px; gap: 45px; }
    .footer-brand__description { max-width: none; }
    .site-footer__bottom { padding-inline: 24px; }
    .site-footer__legal { gap: 12px; }
    .site-footer__legal i { display: none; }
    .site-footer__decor { opacity: .25; }
}
