/* Source design adapted to the existing TelegramTLG content and routes. */
html {font-size:16px;background:#fff;scroll-behavior:smooth;}
body.tlgt-theme {margin:0;background:#fff;color:#333;font-size:15px;line-height:1.65;}
.tlgt-theme *, .tlgt-theme *::before, .tlgt-theme *::after {box-sizing:border-box;}
.tlgt-theme a:focus-visible,.tlgt-theme summary:focus-visible {outline:2px solid #0088cc;outline-offset:4px;}
.tlgt-header {border-bottom:1px solid #e8e8e8;background:#fff;}
.tlgt-nav {max-width:1028px;padding:0 18px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;min-height:56px;gap:12px;}
.tlgt-nav-links {display:flex;gap:28px;align-items:stretch;}
.tlgt-nav a {display:inline-flex;align-items:center;position:relative;padding:16px 0;color:#0088cc;font-size:15px;text-decoration:none;white-space:nowrap;line-height:24px;}
.tlgt-nav-links a::after {content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:#0088cc;transform:scaleX(0);transition:transform .15s;}
.tlgt-nav-links a:hover::after,.tlgt-nav-links a[aria-current]::after {transform:scaleX(1);}
.tlgt-twitter {gap:5px;}
.tlgt-twitter svg {width:19px;height:19px;fill:currentColor;margin:0;}
.tlgt-theme .tl_main_page_container {width:100%;max-width:1120px;margin:28px auto 0;padding:0 18px;}
.tlgt-theme .tl_main_wrap {margin-top:0;}
.tlgt-theme .tl_main_logo_wrap {padding:20px 0;}
.tlgt-theme .tl_main_logo_title {font-size:34px;font-weight:400;line-height:1.35;margin:20px 0 4px;}
.tlgt-theme .tl_main_logo_lead {font-size:20px;line-height:1.6;}
.tlgt-theme .tl_main_side_blog .side_blog_wrap {right:15px;width:225px;margin-top:25px;}
.tlgt-theme .side_blog_header {font-size:16px;line-height:1.5;font-weight:600;margin:0 0 12px;color:#0088cc;}
.tlgt-theme .side_blog_date {font-size:12px;font-weight:400;color:#888;line-height:1.5;}
.tlgt-theme .side_blog_title {font-size:13px;line-height:1.6;margin-top:2px;overflow-wrap:anywhere;}
.tlgt-theme .telegram-download-showcase {margin-bottom:35px;}
.tlgt-theme .telegram-download-title {line-height:1.65;}
.tlgt-theme .telegram-download-title .icon-android {background-image:none;background-color:#0088cc;-webkit-mask:url('../img/SiteIconAndroid.svg') center/contain no-repeat;mask:url('../img/SiteIconAndroid.svg') center/contain no-repeat;width:22px;height:27px;}
.tlgt-theme .telegram-download-title .icon-ios {background-image:none;background-color:#0088cc;-webkit-mask:url('../img/SiteIconApple.svg') center/contain no-repeat;mask:url('../img/SiteIconApple.svg') center/contain no-repeat;width:21px;height:27px;}
.tlgt-theme .tl_main_body_header {font-size:28px;line-height:1.4;text-align:center;font-weight:500;margin:35px 0 15px;color:#333;}
.tlgt-theme .tl_main_body_header a {color:#0088cc;text-decoration:none;}
.tlgt-theme .tlgt-feature-image {display:block;object-fit:contain;width:160px;height:160px;margin:0 auto;}
.tlgt-theme .tl_main_card_header {text-align:center;color:#0088cc;font-weight:500;font-size:22px;line-height:1.5;margin:15px 0 8px;}
.tlgt-theme .tl_main_card_lead {font-size:15px;line-height:1.75;text-align:center;margin:0;color:#444;min-height:54px;}
.tlgt-theme .tl_main_card_wrap {padding-bottom:25px;}
.tlgt-news-section {max-width:850px;margin:45px auto 55px;}
.tlgt-section-title {font-size:27px;font-weight:500;line-height:1.4;margin:0 0 28px;text-align:center;color:#333;}
.tlgt-news-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;}
.tlgt-news-card {min-width:0;border:1px solid #e2e8ee;border-radius:10px;overflow:hidden;background:#fff;}
.tlgt-news-image-link {display:block;background:#eef6fb;overflow:hidden;}
.tlgt-news-card img {display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;}
.tlgt-news-text {padding:18px 20px;}
.tlgt-news-text h3,.tlgt-theme .tl_main_wrap .tlgt-news-text h3 {font-size:18px;line-height:1.6;font-weight:600;margin:0 0 9px;color:#0088cc;}
.tlgt-news-text p {font-size:14px;line-height:1.75;margin:0 0 9px;color:#555;overflow-wrap:anywhere;}
.tlgt-news-text time {font-size:13px;color:#888;}
.telegram-faq {max-width:850px;margin:55px auto 65px;}
.telegram-faq-list {display:grid;gap:12px;}
.telegram-faq-item {border:1px solid #e2e9ef;border-radius:10px;overflow:hidden;background:#fff;}
.telegram-faq-question {display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;padding:17px 22px;cursor:pointer;list-style:none;color:#263238;font-size:17px;line-height:1.6;}
.telegram-faq-question::-webkit-details-marker {display:none;}
.telegram-faq-question::marker {content:"";}
.telegram-faq-icon {position:relative;flex:0 0 16px;height:16px;}
.telegram-faq-icon::before,.telegram-faq-icon::after {content:"";position:absolute;top:7px;left:0;width:16px;height:2px;background:#229ed9;}
.telegram-faq-icon::after {transform:rotate(90deg);}
.telegram-faq-item[open] .telegram-faq-icon::after {display:none;}
.telegram-faq-item[open] .telegram-faq-question {color:#0088cc;}
.telegram-faq-answer {padding:0 55px 20px 22px;color:#52616d;font-size:15px;line-height:1.9;}
.telegram-faq-answer p {margin:0;}
.tlgt-theme .tlgt-footer {width:calc(100% - 36px);max-width:1028px;margin:15px auto 0;padding:28px 0 34px;}
.tlgt-footer .footer_columns_wrap {max-width:none;gap:28px;}
.tlgt-footer .footer_column {min-width:0;}
.tlgt-footer .footer_column h3 {font-size:14px;font-weight:600;line-height:1.5;margin:0 0 10px;color:#333;}
.tlgt-footer .footer_column_telegram {flex:0 1 220px;}
.tlgt-footer .footer_column li {line-height:1.9;}
.tlgt-footer p {line-height:1.8;color:#666;}
.tlgt-theme .tlgt-legacy {margin:42px auto 60px;font-size:15px;line-height:1.8;}
.tlgt-theme .tlg-legacy {margin:40px auto 60px;font-size:15px;line-height:1.8;padding-top:0;padding-bottom:0;}
.tlgt-theme .tlg-legacy.container {width:100%;max-width:1028px;}
.tlg-legacy img,.tlg-legacy video,.tlg-legacy iframe {max-width:100%;height:auto;}
.tlg-legacy > div {min-width:0;max-width:100%;}
.tlg-legacy h1 {font-weight:500;font-size:30px;line-height:1.4;}
.tlg-legacy .bg-blue-500 {background:#229ed9;color:#fff;}
.tlg-legacy .bg-blue-500:hover {background:#168ac0;}
.tlg-legacy a {overflow-wrap:anywhere;}
.tlg-legacy #dev_page_content {overflow-wrap:anywhere;}
.tlg-legacy .dev_page_nav_wrap {padding:20px;border:1px solid #e2e8ee;border-radius:8px;background:#f8fbfd;margin-bottom:32px;}
.tlg-legacy #dev_page_content .tit {scroll-margin-top:20px;}
.tlg-legacy #dev_page_content .anchor {scroll-margin-top:20px;}
.tlg-legacy #dev_page_content h3 {border-left:3px solid #33a8e5;padding-left:10px;line-height:1.8;}
.tlg-legacy #dev_page_content .dev_page_nav_wrap ul {padding-left:20px;list-style:disc;}
.tlg-legacy #dev_page_content .dev_page_nav_wrap li {background:none;padding-left:0!important;}
.tlgt-theme.single .telegram-single-container {width:100%;max-width:1028px;margin:0 auto;}
.tlgt-theme.single .telegram-single-page {padding:44px 18px 25px;}
.tlgt-theme.single .telegram-single-layout {grid-template-columns:minmax(0,700px) 220px;gap:36px;justify-content:space-between;}
.tlgt-theme.single .telegram-single-article {grid-column:1;}
.tlgt-theme.single .telegram-single-news {grid-column:2;width:220px;}
.tlgt-theme.single .telegram-single-news .side_blog_wrap {width:100%;margin:0;padding:0;}
.tlgt-theme.single .telegram-single-title {font-size:28px!important;line-height:1.45!important;font-weight:500!important;overflow-wrap:anywhere;}
.tlgt-published {font-size:13px;color:#888;margin:15px 0 0;}
.tlgt-theme.single .telegram-single-content {font-size:16px;line-height:1.9;}
.tlgt-theme.single .telegram-single-content > p,.tlgt-theme.single .telegram-single-content > ul > li,.tlgt-theme.single .telegram-single-content > ol > li {font-size:16px;line-height:1.9;}
.tlgt-theme.single .telegram-single-content iframe,.tlgt-theme.single .telegram-single-content img,.tlgt-theme.single .telegram-single-content video {max-width:100%;height:auto;}
.tlgt-theme.single .telegram-single-content table {display:block;max-width:100%;overflow-x:auto;}
.tlgt-theme.single .telegram-single-content .wp-block-image img {height:auto;}
.tlgt-theme .telegram-category-container {width:100%;max-width:1120px;margin:0 auto;}
.tlgt-theme .telegram-category-page {max-width:1050px;padding-top:44px;}
.tlgt-theme .telegram-category-grid {gap:32px;align-items:stretch;}
.tlgt-theme .telegram-category-card {border:1px solid #e2e8ee;border-radius:10px;overflow:hidden;}
.tlgt-theme .telegram-category-image-wrap {display:block;border-radius:0;}
.tlgt-theme .telegram-category-card-content {padding:18px 20px;}
.tlgt-theme .telegram-category-card-title {font-size:20px;line-height:1.55;}
.tlgt-theme .telegram-category-card-date {padding:0;margin-top:12px;}
.tlgt-pagination {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:38px 0 0;}
.tlgt-pagination .page-numbers {padding:8px 13px;border:1px solid #dce6ec;border-radius:6px;text-decoration:none;}
.tlgt-pagination .current {background:#229ed9;border-color:#229ed9;color:#fff;}
.tlgt-post-pages {display:flex;flex-wrap:wrap;gap:10px;margin:24px 0;}
.tlgt-document {max-width:820px;margin:45px auto 65px;padding:0 20px;min-height:35vh;}
.tlgt-document h1 {font-size:30px;line-height:1.4;margin:0 0 25px;}
.tlgt-document-content {font-size:16px;line-height:1.9;overflow-wrap:anywhere;}
.tlgt-document-content img {max-width:100%;height:auto;}
.tlgt-empty {text-align:center;padding-block:40px;}
@media (max-width:991px) {
    .tlgt-theme .tl_main_side_blog {display:none;}
    .tlgt-theme.single .telegram-single-layout {display:block;}
    .tlgt-theme.single .telegram-single-news {display:none;}
    .tlgt-theme.single .telegram-single-article {max-width:700px;margin:auto;}
    .tlgt-footer .footer_columns_wrap {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
    .tlgt-footer .footer_column_telegram {grid-column:1/-1;max-width:400px;}
}
@media (max-width:767px) {
    .tlgt-nav {padding-inline:16px;gap:8px;}
    .tlgt-nav-links {gap:20px;}
    .tlgt-nav a {font-size:14px;}
    .tlgt-twitter svg {width:17px;height:17px;}
    .tlgt-theme .tl_main_page_container {margin-top:12px;padding:0 16px;}
    .tlgt-theme .tl_main_logo_title {font-size:30px;}
    .tlgt-theme .tl_main_logo_lead {font-size:18px;}
    .tlgt-theme .telegram-download-showcase {padding:0;margin-top:12px;}
    .tlgt-theme .telegram-download-title {font-size:15px!important;}
    .tlgt-theme .tl_main_body_header,.tlgt-section-title {font-size:24px;}
    .tlgt-theme .tl_main_card_cell {padding:0 10px;}
    .tlgt-theme .tl_main_card_wrap {padding-bottom:24px;}
    .tlgt-news-grid {grid-template-columns:1fr;gap:24px;}
    .tlgt-news-section {margin:30px auto 40px;}
    .telegram-faq {margin:40px auto;}
    .telegram-faq-question {font-size:16px;padding:15px;gap:14px;}
    .telegram-faq-answer {padding:0 15px 18px;font-size:14px;}
    .tlgt-footer .footer_columns_wrap {grid-template-columns:repeat(2,minmax(0,1fr));}
    .tlgt-theme.single .telegram-single-page {padding:30px 16px 15px;}
    .tlgt-theme.single .telegram-single-title {font-size:25px!important;}
    .tlgt-theme .tlg-legacy {margin-top:30px;}
    .tlg-legacy h1 {font-size:26px;}
    .tlgt-theme .telegram-category-grid {grid-template-columns:1fr;gap:24px;}
    .tlgt-theme .telegram-category-page {padding:30px 16px 45px;}
    .tlgt-theme .telegram-category-container,.tlgt-theme.single .telegram-single-container {padding:0;}
}
@media (max-width:380px) {
    .tlgt-nav-links {gap:14px;}
    .tlgt-nav a {font-size:13px;}
    .tlgt-twitter {gap:3px;}
}
@media (prefers-reduced-motion:reduce) {
    html {scroll-behavior:auto;}
    .tlgt-theme * {animation:none!important;transition:none!important;}
    .tlgt-theme div.tl_main_logo {background-position:100% 0%;}
}
