.tt-contact-page { width: min(720px, calc(100% - 32px)); margin: 42px auto 55px; }
.tt-callback-panel {
    background: #f3f5f3;
    border: 1px solid #dfe5e7;
    border-radius: 12px;
    color: #182933;
    padding: clamp(18px, 4vw, 34px);
}
.tt-callback-panel h1, .tt-callback-panel h2 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 32px); font-weight: 750; }
.tt-callback-panel > p { color: #53646e; margin: 0 0 18px; }
.tt-callback-panel .tt-callback-phone { margin: 20px 0 0; }
.tt-callback-phone a { color: #8d4308; font-weight: 700; }
.tt-callback-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tt-callback-trap { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.tt-callback-wide { grid-column: 1 / -1; }
.tt-callback-fields label { display: block; margin: 0 0 5px; }
.tt-callback-fields input:not([type="submit"]):not([type="hidden"]), .tt-callback-fields select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    background: #fff;
    color: #182933;
    border: 1px solid #a8b5ba;
    border-radius: 6px;
}
.tt-callback-fields small { display: block; margin-top: 6px; color: #53646e; }
.tt-callback-error { color: #88261a; background: #fff2ee; border: 1px solid #edc5bb; border-radius: 6px; padding: 10px 12px; }
.tt-callback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: #14252d;
    color: #fff;
    font-weight: 700;
}
.tt-callback-submit:hover, .tt-callback-submit:focus { color: #fff; background: #30454d; text-decoration: none; }
.tt-callback-submit[aria-disabled="true"] { cursor: wait; opacity: .75; }
.tt-floating-direct, .tt-floating-contact {
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: system-ui, sans-serif;
}
.tt-floating-direct { left: max(16px, env(safe-area-inset-left)); align-items: flex-start; pointer-events: none; }
.tt-floating-contact { right: max(16px, env(safe-area-inset-right)); align-items: flex-end; }
.tt-floating-link {
    display: inline-flex;
    align-items: center;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--tt-contact-color);
    color: #fff;
    box-shadow: 0 3px 12px #092d4850;
    font-weight: 750;
    text-decoration: none;
    pointer-events: auto;
}
.tt-contact-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.tt-contact-label {
    display: grid;
    grid-template-columns: 0fr;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font: 700 14px/1.2 system-ui, sans-serif;
    transition: max-width .2s ease, padding-right .2s ease;
}
.tt-floating-link:focus-visible { color: #fff; text-decoration: none; outline: 2px solid #153b56; outline-offset: 2px; }
.tt-floating-link:focus-visible .tt-contact-label { max-width: 160px; padding-right: 14px; }
@media (hover: hover) {
    .tt-floating-link:hover { color: #fff; text-decoration: none; }
    .tt-floating-link:hover .tt-contact-label { max-width: 160px; padding-right: 14px; }
}
.tt-floating-call { --tt-contact-color: #bd2637; --tt-contact-halo: #bd263770; animation: tt-contact-pulse 8s ease-out 3 2s; }
.tt-floating-facebook { --tt-contact-color: #1762ce; font: 800 30px/1 Arial, sans-serif; }
.tt-floating-zalo { --tt-contact-color: #0059d9; font-size: 12px; letter-spacing: -.03em; }
.tt-floating-callback {
    --tt-contact-halo: #ffb65b70;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #ffb65b;
    color: #22251d;
    box-shadow: 0 4px 14px #14252d60;
    font-weight: 750;
    text-decoration: none;
    animation: tt-contact-pulse 8s ease-out 3;
}
.tt-floating-callback:hover, .tt-floating-callback:focus-visible { color: #22251d; background: #ffd096; text-decoration: none; animation: none; }
.tt-floating-call:hover, .tt-floating-call:focus-visible { animation: none; }
.tt-floating-callback:focus-visible { outline: 2px solid #14252d; outline-offset: 2px; }
@keyframes tt-contact-pulse {
    0%, 12%, 100% { box-shadow: 0 0 0 0 transparent, 0 3px 12px #092d4850; }
    1% { box-shadow: 0 0 0 0 var(--tt-contact-halo), 0 3px 12px #092d4850; }
    11% { box-shadow: 0 0 0 8px transparent, 0 3px 12px #092d4850; }
}
@media (prefers-reduced-motion: reduce) {
    .tt-floating-callback, .tt-floating-call { animation: none; }
    .tt-contact-label { transition: none; }
}

.tt-callback-dialog {
    width: min(500px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: 0;
    border: 1px solid #dfe5e7;
    border-radius: 14px;
    background: #fff;
    color: #182933;
    box-shadow: 0 10px 40px #14252d30;
}
.tt-callback-dialog:not([open]) { display: none; }
.tt-callback-dialog::backdrop { background: #0e202caa; }
.tt-dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #dfe5e7;
}
.tt-home .tt-dialog-heading h2 { margin: 0; font-size: 23px; font-weight: 780; line-height: 1.3; }
.tt-callback-dialog .tt-callback-panel { border: 0; border-radius: 0; padding: 16px; background: #fff; }
.tt-callback-dialog .tt-callback-panel h2 { display: none; }
.tt-callback-dialog .tt-callback-fields { grid-template-columns: minmax(0, 1fr); gap: 13px; }
.tt-callback-dialog .tt-callback-fields label { font-weight: 650; }
.tt-callback-dialog .tt-callback-submit { background: #ffb65b; color: #22251d; }
.tt-callback-dialog .tt-callback-submit:hover { background: #ffd096; }
.tt-dialog-close {
    width: 36px;
    height: 36px;
    flex: none;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #182933;
    font-size: 24px;
    line-height: 1;
}
@media (max-width: 620px) {
    .tt-callback-fields { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .tt-floating-direct { left: max(10px, env(safe-area-inset-left)); }
    .tt-floating-contact { right: max(10px, env(safe-area-inset-right)); }
    .tt-floating-direct, .tt-floating-contact { bottom: max(10px, env(safe-area-inset-bottom)); }
    .tt-floating-callback { font-size: 14px; padding-inline: 10px; }
    body:has(.tt-floating-direct) #footer { padding-bottom: 60px; }
}
