@import url("../css/fonts.css");

:root {
    --home-navy: #11213a;
    --home-navy-2: #1b3152;
    --home-ink: #18243a;
    --home-copy: #59667d;
    --home-muted: #7d889b;
    --home-canvas: #f3f6fa;
    --home-surface: #ffffff;
    --home-line: #dbe3ed;
    --home-orange: #f56600;
    --home-orange-dark: #d95500;
    --home-orange-soft: #fff1e7;
    --home-green: #178b62;
    --home-shadow: 0 28px 76px rgba(17, 33, 58, 0.11);
    --home-radius-lg: 30px;
    --home-radius-md: 20px;
    --home-font: "Peyda", "PeydaWeb", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--home-canvas);
}

body.tg-home {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: clip;
    color: var(--home-ink);
    background-color: var(--home-canvas);
    background-image:
        linear-gradient(rgba(17, 33, 58, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 33, 58, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    font-family: var(--home-font);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

body.tg-home::before {
    content: "";
    position: fixed;
    z-index: 100;
    inset: 0 0 auto;
    height: 6px;
    background: var(--home-orange);
}

.tg-home a { color: inherit; text-decoration: none; }
.tg-home img { display: block; max-width: 100%; }
.tg-home :is(a, button):focus-visible { outline: 3px solid rgba(245, 102, 0, 0.25); outline-offset: 4px; }

.tg-home-header,
.tg-home-hero,
.tg-home-services,
.tg-home-cta,
.tg-home-footer {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.tg-home-header {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tg-home-brand {
    width: 218px;
    height: 82px;
    display: grid;
    place-items: center;
    padding: 5px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.tg-home-brand img { width: 100%; height: 100%; object-fit: contain; }

.tg-home-nav,
.tg-home-actions,
.tg-home-trust,
.tg-home-footer nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tg-home-link--section {
    color: var(--home-copy);
    font-size: 12px;
}

.tg-home-link { padding: 10px 14px; color: var(--home-navy); font-size: 14px; font-weight: 850; }

.tg-home-button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 21px;
    border: 1px solid var(--home-orange);
    border-radius: 14px;
    color: #fff !important;
    background: var(--home-orange);
    box-shadow: 0 14px 28px rgba(245, 102, 0, 0.2);
    font-size: 14px;
    font-weight: 900;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.tg-home-button:hover { transform: translateY(-2px); background: var(--home-orange-dark); box-shadow: 0 17px 32px rgba(245, 102, 0, 0.25); }
.tg-home-button--small { min-height: 44px; padding: 8px 17px; }
.tg-home-button--secondary { color: var(--home-navy) !important; border-color: var(--home-line); background: #fff; box-shadow: none; }
.tg-home-button--secondary:hover { background: #f8fafc; box-shadow: 0 12px 28px rgba(17, 33, 58, 0.07); }

.tg-home-hero {
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
    align-items: center;
    gap: 52px;
    padding: 60px;
    border: 1px solid var(--home-line);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--home-shadow);
}

.tg-home-kicker,
.tg-home-section-heading > span,
.tg-home-cta span {
    display: block;
    margin-bottom: 9px;
    color: var(--home-orange-dark);
    font-size: 13px;
    font-weight: 900;
}

.tg-home-hero h1 {
    max-width: 700px;
    margin: 0;
    color: var(--home-navy);
    font-size: clamp(40px, 5vw, 67px);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -0.055em;
}

.tg-home-hero__copy > p {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--home-copy);
    font-size: 17px;
    font-weight: 600;
    line-height: 2.05;
}

.tg-home-actions { margin-top: 28px; }
.tg-home-trust { flex-wrap: wrap; margin: 26px 0 0; padding: 0; list-style: none; }
.tg-home-trust li { display: inline-flex; align-items: center; gap: 7px; color: var(--home-copy); font-size: 12px; font-weight: 750; }
.tg-home-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--home-green); box-shadow: 0 0 0 5px rgba(23, 139, 98, 0.1); }

.tg-home-journey {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 27px;
    color: #fff;
    background: var(--home-navy);
    box-shadow: 0 24px 52px rgba(17, 33, 58, 0.2);
}

.tg-home-journey::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -70px;
    width: 180px;
    height: 180px;
    border: 28px solid var(--home-orange);
    border-radius: 50%;
    opacity: 0.86;
}

.tg-home-journey__head { position: relative; display: flex; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.tg-home-journey__head span { color: rgba(255,255,255,0.65); font-size: 12px; font-weight: 700; }
.tg-home-journey__head strong { font-size: 14px; font-weight: 900; }
.tg-home-journey ol { position: relative; display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.tg-home-journey li { display: grid; grid-template-columns: 42px minmax(0,1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; background: rgba(255,255,255,0.055); }
.tg-home-journey li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--home-orange); font-weight: 900; }
.tg-home-journey li div { display: grid; gap: 1px; }
.tg-home-journey li strong { font-size: 13px; font-weight: 850; }
.tg-home-journey li small { color: rgba(255,255,255,0.64); font-size: 11px; font-weight: 600; }

.tg-home-services { padding: 100px 0 70px; }
.tg-home-section-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.tg-home-section-heading h2 { margin: 0; color: var(--home-navy); font-size: clamp(29px, 4vw, 45px); font-weight: 950; line-height: 1.55; letter-spacing: -0.04em; }
.tg-home-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.tg-home-service-grid article { min-height: 240px; padding: 27px; border: 1px solid var(--home-line); border-radius: 23px; background: rgba(255,255,255,0.9); box-shadow: 0 16px 38px rgba(17,33,58,0.055); }
.tg-home-service-grid article > span { width: fit-content; display: inline-flex; padding: 5px 10px; border-radius: 999px; color: var(--home-orange-dark); background: var(--home-orange-soft); font-size: 11px; font-weight: 850; }
.tg-home-service-grid h3 { margin: 24px 0 8px; color: var(--home-navy); font-size: 21px; font-weight: 900; }
.tg-home-service-grid p { margin: 0; color: var(--home-copy); font-size: 13px; font-weight: 600; line-height: 2; }

.tg-home-cta { min-height: 220px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 42px; border-radius: 28px; color: #fff; background: var(--home-navy); box-shadow: 0 24px 58px rgba(17,33,58,0.17); }
.tg-home-cta > div { max-width: 760px; }
.tg-home-cta span { color: #ffb27c; }
.tg-home-cta h2 { margin: 0; font-size: clamp(25px,3vw,38px); font-weight: 900; line-height: 1.6; }

.tg-home-footer { min-height: 176px; display: grid; grid-template-columns: 170px minmax(240px, 1fr) auto; align-items: center; gap: 24px; color: var(--home-muted); }
.tg-home-footer__logo { width: 158px; height: 66px; display: grid; place-items: center; padding: 6px 10px; border: 1px solid var(--home-line); border-radius: 18px; background: #fff; }
.tg-home-footer__logo img { width: 100%; height: 100%; object-fit: contain; }
.tg-home-footer__company { display: grid; gap: 2px; }
.tg-home-footer strong { color: var(--home-navy); font-size: 14px; font-weight: 900; }
.tg-home-footer span, .tg-home-footer a { font-size: 12px; font-weight: 650; }
.tg-home-footer a:hover { color: var(--home-orange-dark); }

@media (max-width: 980px) {
    .tg-home-hero { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding: 44px; }
    .tg-home-journey { width: min(100%, 650px); margin-inline: auto; }
    .tg-home-service-grid { grid-template-columns: 1fr; }
    .tg-home-service-grid article { min-height: auto; }
    .tg-home-link--section { display: none; }
}

@media (max-width: 680px) {
    .tg-home-header, .tg-home-hero, .tg-home-services, .tg-home-cta, .tg-home-footer { width: calc(100% - 20px); }
    .tg-home-header { min-height: 94px; }
    .tg-home-brand { width: 168px; height: 66px; }
    .tg-home-link { display: none; }
    .tg-home-button--small { min-height: 42px; padding: 8px 13px; font-size: 12px; }
    .tg-home-hero { padding: 29px 20px; border-radius: 25px; }
    .tg-home-hero h1 { font-size: 36px; }
    .tg-home-hero__copy > p { margin-top: 16px; font-size: 14px; }
    .tg-home-actions { align-items: stretch; flex-direction: column; }
    .tg-home-actions .tg-home-button { width: 100%; }
    .tg-home-journey { padding: 20px; border-radius: 21px; }
    .tg-home-journey__head { flex-direction: column; }
    .tg-home-services { padding: 70px 0 50px; }
    .tg-home-section-heading h2 { font-size: 29px; }
    .tg-home-service-grid article { padding: 22px; }
    .tg-home-cta { align-items: stretch; flex-direction: column; padding: 28px 22px; border-radius: 22px; }
    .tg-home-cta .tg-home-button { width: 100%; }
    .tg-home-footer { grid-template-columns: 1fr; align-items: start; padding: 32px 0; }
    .tg-home-footer__logo { width: 150px; }
    .tg-home-footer nav { flex-wrap: wrap; }
}

@media (max-width: 380px) {
    .tg-home-brand { width: 132px; }
    .tg-home-hero h1 { font-size: 31px; }
    .tg-home-journey { padding: 17px 13px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tg-home-button { transition: none; }
}
