/*
Theme Name: MTProto Proxy RU
Theme URI: https://example.com/
Author: Me
Author URI: https://example.com/
Description: Лёгкая SEO-friendly WordPress тема для сайта про MTProto-прокси для Telegram.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: mtproto-proxy-ru
*/

:root{
  --mtproto-primary:#229ED9;
  --mtproto-primary-dark:#1D8EC5;
  --mtproto-ink:#0F172A;
  --mtproto-text:#334155;
  --mtproto-muted:#64748B;
  --mtproto-border:#DCE8F2;
  --mtproto-surface:#FFFFFF;
  --mtproto-surface-alt:#F4F8FB;
  --mtproto-success:#16A34A;
  --mtproto-warning:#F59E0B;
  --mtproto-shadow:0 12px 40px rgba(15, 23, 42, .08);
  --mtproto-shadow-soft:0 6px 24px rgba(15, 23, 42, .05);
  --mtproto-radius:22px;
  --mtproto-radius-sm:14px;
  --mtproto-radius-xs:10px;
  --mtproto-container:1240px;
  --mtproto-transition:.25s ease;
}

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

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color:var(--mtproto-text);
  background:
    radial-gradient(circle at top right, rgba(34,158,217,.10), transparent 25%),
    linear-gradient(180deg, #f8fbfd 0%, #ffffff 22%, #f7fbfe 100%);
  line-height:1.65;
  overflow-x:hidden;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

svg{display:block}

a{
  color:var(--mtproto-primary);
  text-decoration:none;
  transition:color var(--mtproto-transition), opacity var(--mtproto-transition), transform var(--mtproto-transition);
}

a:hover{color:var(--mtproto-primary-dark)}

button,
input,
textarea,
select{
  font:inherit;
}

:focus-visible{
  outline:3px solid rgba(34,158,217,.24);
  outline-offset:3px;
}

.mtproto-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.mtproto-site-wrap{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.mtproto-main{
  flex:1 1 auto;
}

.mtproto-container{
  width:min(100% - 32px, var(--mtproto-container));
  margin-inline:auto;
}

.mtproto-section{
  padding:72px 0;
}

.mtproto-section-sm{
  padding:44px 0;
}

.mtproto-surface{
  background:var(--mtproto-surface);
  border:1px solid var(--mtproto-border);
  border-radius:var(--mtproto-radius);
  box-shadow:var(--mtproto-shadow-soft);
}

.mtproto-grid{
  display:grid;
  gap:24px;
}

.mtproto-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.mtproto-grid-3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.mtproto-grid-4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.mtproto-title-xl,
h1{
  margin:0 0 16px;
  color:var(--mtproto-ink);
  font-size:clamp(2rem, 5vw, 3.75rem);
  line-height:1.08;
  letter-spacing:-.03em;
}

.mtproto-title-lg,
h2{
  margin:0 0 14px;
  color:var(--mtproto-ink);
  font-size:clamp(1.65rem, 3.2vw, 2.6rem);
  line-height:1.15;
  letter-spacing:-.025em;
}

.mtproto-title-md,
h3{
  margin:0 0 12px;
  color:var(--mtproto-ink);
  font-size:clamp(1.2rem, 2vw, 1.55rem);
  line-height:1.25;
}

h4,h5,h6{
  color:var(--mtproto-ink);
  margin:0 0 10px;
}

p{
  margin:0 0 16px;
}

ul,
ol{
  margin:0 0 18px;
  padding-left:20px;
}

li + li{
  margin-top:8px;
}

.mtproto-lead{
  font-size:1.1rem;
  color:var(--mtproto-text);
}

.mtproto-muted{
  color:var(--mtproto-muted);
}

.mtproto-badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}

.mtproto-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:8px 14px;
  border:1px solid rgba(34,158,217,.18);
  background:rgba(34,158,217,.08);
  color:var(--mtproto-primary-dark);
  border-radius:999px;
  font-size:.95rem;
  font-weight:600;
}

.mtproto-btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:24px;
}

.mtproto-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:13px 22px;
  border-radius:999px;
  border:1px solid transparent;
  font-weight:700;
  text-align:center;
  cursor:pointer;
  transition:transform var(--mtproto-transition), box-shadow var(--mtproto-transition), background var(--mtproto-transition), border-color var(--mtproto-transition);
}

.mtproto-btn:hover{
  transform:translateY(-2px);
}

.mtproto-btn-primary{
  background:linear-gradient(180deg, #36b0e8 0%, var(--mtproto-primary) 100%);
  color:#fff;
  box-shadow:0 14px 28px rgba(34,158,217,.26);
}

.mtproto-btn-primary:hover{
  color:#fff;
}

.mtproto-btn-secondary{
  background:#fff;
  color:var(--mtproto-ink);
  border-color:var(--mtproto-border);
}

.mtproto-btn-secondary:hover{
  border-color:rgba(34,158,217,.45);
  color:var(--mtproto-primary-dark);
}

.mtproto-pill-nav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.mtproto-pill-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--mtproto-border);
  color:var(--mtproto-ink);
  font-weight:600;
}

.mtproto-pill-nav a:hover{
  border-color:rgba(34,158,217,.35);
  color:var(--mtproto-primary-dark);
}

.mtproto-site-header{
  position:sticky;
  top:0;
  z-index:110;
  backdrop-filter:blur(16px);
  background:rgba(255,255,255,.84);
  border-bottom:1px solid rgba(220,232,242,.85);
}

.mtproto-header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.mtproto-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.mtproto-brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  background:linear-gradient(145deg, #4fc3f7 0%, #229ED9 60%, #1b84b7 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45), 0 8px 20px rgba(34,158,217,.24);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:800;
  flex:0 0 auto;
}

.mtproto-brand-text{
  min-width:0;
}

.mtproto-brand-title{
  display:block;
  color:var(--mtproto-ink);
  font-size:1rem;
  font-weight:800;
  line-height:1.15;
}

.mtproto-brand-subtitle{
  display:block;
  color:var(--mtproto-muted);
  font-size:.85rem;
  line-height:1.15;
}

.mtproto-nav{
  display:flex;
  align-items:center;
  gap:24px;
  min-width:0;
}

.mtproto-menu{
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
  flex-wrap:wrap;
}

.mtproto-menu li{
  margin:0;
}

.mtproto-menu a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:10px 14px;
  color:var(--mtproto-ink);
  border-radius:999px;
  font-weight:600;
}

.mtproto-menu a:hover,
.mtproto-menu .current-menu-item > a,
.mtproto-menu .current_page_item > a{
  color:var(--mtproto-primary-dark);
  background:rgba(34,158,217,.08);
}

.mtproto-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.mtproto-burger{
  display:none;
  width:48px;
  height:48px;
  padding:0;
  border:1px solid var(--mtproto-border);
  background:#fff;
  border-radius:14px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.mtproto-burger-box{
  width:20px;
  height:16px;
  position:relative;
}

.mtproto-burger-line{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  background:var(--mtproto-ink);
  border-radius:999px;
  transition:transform var(--mtproto-transition), opacity var(--mtproto-transition), top var(--mtproto-transition);
}

.mtproto-burger-line:nth-child(1){top:0}
.mtproto-burger-line:nth-child(2){top:7px}
.mtproto-burger-line:nth-child(3){top:14px}

.mtproto-nav-open .mtproto-burger-line:nth-child(1){
  top:7px;
  transform:rotate(45deg);
}

.mtproto-nav-open .mtproto-burger-line:nth-child(2){
  opacity:0;
}

.mtproto-nav-open .mtproto-burger-line:nth-child(3){
  top:7px;
  transform:rotate(-45deg);
}

.mtproto-hero{
  padding:64px 0 36px;
}

.mtproto-hero-grid{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  gap:28px;
  align-items:center;
}

.mtproto-hero-copy{
  padding:12px 0;
}

.mtproto-hero-card{
  position:relative;
  padding:26px;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(244,248,251,.98) 100%);
  border:1px solid var(--mtproto-border);
  box-shadow:var(--mtproto-shadow);
  overflow:hidden;
}

.mtproto-hero-card::before{
  content:"";
  position:absolute;
  inset:auto -15% -25% auto;
  width:220px;
  height:220px;
  background:radial-gradient(circle, rgba(34,158,217,.24), transparent 70%);
  pointer-events:none;
}

.mtproto-hero-visual{
  position:relative;
  min-height:430px;
  display:grid;
  place-items:center;
  padding:16px;
}

.mtproto-chat-shell{
  width:min(100%, 470px);
  background:#fff;
  border:1px solid var(--mtproto-border);
  border-radius:28px;
  box-shadow:0 18px 42px rgba(15,23,42,.09);
  overflow:hidden;
}

.mtproto-chat-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid var(--mtproto-border);
  background:linear-gradient(180deg, #f8fbfe 0%, #f3f8fb 100%);
}

.mtproto-chat-title{
  font-weight:800;
  color:var(--mtproto-ink);
}

.mtproto-chat-meta{
  color:var(--mtproto-muted);
  font-size:.9rem;
}

.mtproto-chat-body{
  padding:20px;
  display:grid;
  gap:14px;
  background:
    linear-gradient(180deg, rgba(239,248,253,.9) 0%, rgba(255,255,255,1) 100%);
}

.mtproto-message{
  max-width:82%;
  padding:14px 16px;
  border-radius:18px;
  font-size:.98rem;
  box-shadow:var(--mtproto-shadow-soft);
}

.mtproto-message.in{
  background:#fff;
  border:1px solid var(--mtproto-border);
  justify-self:start;
}

.mtproto-message.out{
  background:rgba(34,158,217,.12);
  border:1px solid rgba(34,158,217,.15);
  justify-self:end;
}

.mtproto-stat-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:18px;
}

.mtproto-stat{
  padding:18px;
  background:#fff;
  border:1px solid var(--mtproto-border);
  border-radius:18px;
}

.mtproto-stat strong{
  display:block;
  color:var(--mtproto-ink);
  font-size:1.35rem;
  line-height:1.1;
}

.mtproto-stat span{
  color:var(--mtproto-muted);
  font-size:.92rem;
}

.mtproto-card{
  height:100%;
  padding:24px;
  border:1px solid var(--mtproto-border);
  border-radius:24px;
  background:#fff;
  box-shadow:var(--mtproto-shadow-soft);
}

.mtproto-card-icon{
  width:54px;
  height:54px;
  margin-bottom:16px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(34,158,217,.1);
  color:var(--mtproto-primary-dark);
  font-weight:800;
  font-size:1.25rem;
}

.mtproto-steps{
  display:grid;
  gap:18px;
}

.mtproto-step{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:18px;
  align-items:start;
  padding:22px;
  border:1px solid var(--mtproto-border);
  border-radius:22px;
  background:#fff;
}

.mtproto-step-num{
  width:64px;
  height:64px;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(34,158,217,.14), rgba(34,158,217,.08));
  border:1px solid rgba(34,158,217,.15);
  color:var(--mtproto-primary-dark);
  display:grid;
  place-items:center;
  font-weight:800;
  font-size:1.15rem;
}

.mtproto-note,
.mtproto-codebox,
.mtproto-alert{
  padding:18px 20px;
  border-radius:18px;
  border:1px solid var(--mtproto-border);
  background:#fff;
}

.mtproto-codebox{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
}

.mtproto-alert{
  background:linear-gradient(180deg, rgba(34,158,217,.08), rgba(34,158,217,.04));
}

.mtproto-alert-warning{
  background:linear-gradient(180deg, rgba(245,158,11,.12), rgba(245,158,11,.06));
  border-color:rgba(245,158,11,.18);
}

.mtproto-feature-list{
  display:grid;
  gap:12px;
  padding:0;
  margin:0;
  list-style:none;
}

.mtproto-feature-list li{
  margin:0;
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.mtproto-feature-list li::before{
  content:"✓";
  flex:0 0 auto;
  color:var(--mtproto-success);
  font-weight:800;
}

.mtproto-compare{
  overflow:auto;
  border:1px solid var(--mtproto-border);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--mtproto-shadow-soft);
}

.mtproto-table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}

.mtproto-table th,
.mtproto-table td{
  padding:16px 18px;
  text-align:left;
  vertical-align:top;
  border-bottom:1px solid var(--mtproto-border);
}

.mtproto-table th{
  background:#f7fbfe;
  color:var(--mtproto-ink);
  font-size:.96rem;
}

.mtproto-table tr:last-child td{
  border-bottom:0;
}

.mtproto-faq{
  display:grid;
  gap:14px;
}

.mtproto-faq-item{
  border:1px solid var(--mtproto-border);
  border-radius:20px;
  background:#fff;
  overflow:hidden;
}

.mtproto-faq-question{
  width:100%;
  padding:20px 56px 20px 20px;
  text-align:left;
  border:0;
  background:none;
  color:var(--mtproto-ink);
  font-weight:800;
  cursor:pointer;
  position:relative;
}

.mtproto-faq-question::after{
  content:"+";
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%);
  color:var(--mtproto-primary-dark);
  font-size:1.45rem;
  line-height:1;
}

.mtproto-faq-item.is-open .mtproto-faq-question::after{
  content:"–";
}

.mtproto-faq-answer{
  display:none;
  padding:0 20px 20px;
  color:var(--mtproto-text);
}

.mtproto-faq-item.is-open .mtproto-faq-answer{
  display:block;
}

.mtproto-cta{
  padding:32px;
  border-radius:28px;
  background:
    radial-gradient(circle at top left, rgba(79,195,247,.20), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border:1px solid var(--mtproto-border);
  box-shadow:var(--mtproto-shadow);
}

.mtproto-page-hero{
  padding:46px 0 20px;
}

.mtproto-page-shell{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:28px;
}

.mtproto-content-card{
  padding:28px;
}

.mtproto-sidebar{
  position:sticky;
  top:104px;
  align-self:start;
  padding:22px;
}

.mtproto-sidebar h3{
  margin-bottom:12px;
}

.mtproto-sidebar ul{
  padding-left:18px;
}

.mtproto-breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
  color:var(--mtproto-muted);
  font-size:.95rem;
}

.mtproto-breadcrumbs span{
  color:var(--mtproto-muted);
}

.mtproto-page-content > *:last-child{
  margin-bottom:0;
}

.mtproto-page-content table{
  width:100%;
  border-collapse:collapse;
  margin:18px 0;
  border:1px solid var(--mtproto-border);
  border-radius:16px;
  overflow:hidden;
}

.mtproto-page-content th,
.mtproto-page-content td{
  padding:14px 16px;
  border-bottom:1px solid var(--mtproto-border);
}

.mtproto-page-content tr:last-child td{
  border-bottom:0;
}

.mtproto-page-content blockquote{
  margin:24px 0;
  padding:18px 20px;
  border-left:4px solid var(--mtproto-primary);
  background:#f7fbfe;
  border-radius:0 16px 16px 0;
}

.mtproto-article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:14px;
}

.mtproto-article-chip{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  background:#fff;
  border:1px solid var(--mtproto-border);
  border-radius:999px;
  font-size:.92rem;
  color:var(--mtproto-muted);
}

.mtproto-link-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid var(--mtproto-border);
  background:#fff;
}

.mtproto-link-card strong{
  display:block;
  color:var(--mtproto-ink);
  margin-bottom:4px;
}

.mtproto-empty{
  text-align:center;
  padding:44px 24px;
}

.mtproto-site-footer{
  margin-top:56px;
  padding:32px 0 18px;
  background:#f5f9fc;
  border-top:1px solid var(--mtproto-border);
}

.mtproto-footer-grid{
  display:grid;
  grid-template-columns:1.15fr .85fr .85fr;
  gap:24px;
}

.mtproto-footer-title{
  color:var(--mtproto-ink);
  font-weight:800;
  margin-bottom:12px;
}

.mtproto-footer-menu,
.mtproto-footer-meta{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}

.mtproto-footer-bottom{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid var(--mtproto-border);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--mtproto-muted);
  font-size:.92rem;
}

.mtproto-prose > *:last-child{
  margin-bottom:0;
}

.mtproto-404{
  padding:84px 0;
  text-align:center;
}

.mtproto-404-code{
  font-size:clamp(4rem,10vw,7rem);
  line-height:1;
  color:var(--mtproto-primary);
  font-weight:800;
  letter-spacing:-.04em;
  margin-bottom:10px;
}

.screen-reader-text{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.alignwide,
.alignfull{
  width:100%;
}

.wp-block-image,
.wp-block-group,
.wp-block-columns{
  margin-bottom:20px;
}

.wp-caption{
  max-width:100%;
}

@media (max-width: 1100px){
  .mtproto-hero-grid,
  .mtproto-page-shell,
  .mtproto-footer-grid{
    grid-template-columns:1fr;
  }

  .mtproto-sidebar{
    position:static;
    top:auto;
  }

  .mtproto-grid-4{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 920px){
  .mtproto-header-inner{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    align-items:center;
    gap:10px;
  }

  .mtproto-brand{
    min-width:0;
  }

  .mtproto-nav{
    position:fixed;
    left:16px;
    right:16px;
    top:88px;
    display:none;
    padding:18px;
    background:rgba(255,255,255,.98);
    border:1px solid var(--mtproto-border);
    border-radius:24px;
    box-shadow:var(--mtproto-shadow);
    flex-direction:column;
    align-items:stretch;
    max-height:calc(100vh - 110px);
    overflow:auto;
    z-index:120;
  }

  .mtproto-nav.is-active{
    display:flex;
  }

  .mtproto-menu{
    flex-direction:column;
    align-items:stretch;
  }

  .mtproto-menu a{
    width:100%;
    justify-content:flex-start;
    border-radius:14px;
  }

  .mtproto-header-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    min-width:0;
  }

  .mtproto-header-actions .mtproto-btn{
    display:inline-flex;
    min-height:42px;
    padding:10px 14px;
    font-size:.92rem;
    line-height:1.15;
    white-space:nowrap;
  }

  .mtproto-burger{
    display:inline-flex;
    width:44px;
    height:44px;
    flex:0 0 auto;
  }

  .mtproto-grid-3,
  .mtproto-grid-2{
    grid-template-columns:1fr;
  }

  .mtproto-hero{
    padding-top:38px;
  }

  .mtproto-stat-row{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .mtproto-section{
    padding:56px 0;
  }

  .mtproto-container{
    width:min(100% - 20px, var(--mtproto-container));
  }

  .mtproto-hero-card,
  .mtproto-card,
  .mtproto-content-card,
  .mtproto-sidebar,
  .mtproto-cta{
    padding:20px;
    border-radius:20px;
  }

  .mtproto-step{
    grid-template-columns:1fr;
  }

  .mtproto-step-num{
    width:52px;
    height:52px;
    border-radius:16px;
  }

  .mtproto-grid-4{
    grid-template-columns:1fr;
  }

  .mtproto-footer-bottom{
    justify-content:flex-start;
  }

  .mtproto-link-card{
    flex-direction:column;
  }
}

@media (max-width: 420px){
  .mtproto-header-inner{
    min-height:74px;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:8px;
  }

  .mtproto-brand-title{
    font-size:.92rem;
  }

  .mtproto-brand-subtitle{
    font-size:.76rem;
  }

  .mtproto-header-actions .mtproto-btn{
    min-height:38px;
    padding:8px 10px;
    font-size:.8rem;
    border-radius:12px;
  }

  .mtproto-burger{
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .mtproto-badge{
    width:100%;
    justify-content:center;
  }

  .mtproto-btn-row{
    flex-direction:column;
  }

  .mtproto-btn{
    width:100%;
  }

  .mtproto-hero-visual{
    min-height:340px;
    padding:0;
  }

  .mtproto-chat-shell{
    border-radius:22px;
  }

  .mtproto-message{
    max-width:92%;
    font-size:.94rem;
  }
}
@media (max-width: 360px){
  .mtproto-brand-subtitle{
    display:none;
  }

  .mtproto-header-actions .mtproto-btn{
    padding:8px 8px;
    font-size:.74rem;
    min-height:36px;
  }
}
/* =========================
   MOBILE FIXES: INNER PAGES
   ========================= */

.mtproto-page-shell,
.mtproto-page-shell > *{
  min-width:0;
}

.mtproto-content-card,
.mtproto-sidebar,
.mtproto-card,
.mtproto-step,
.mtproto-link-card,
.mtproto-cta,
.mtproto-note,
.mtproto-codebox,
.mtproto-alert,
.mtproto-faq-item{
  max-width:100%;
  min-width:0;
}

.mtproto-page-content{
  min-width:0;
  overflow-wrap:anywhere;
  word-wrap:break-word;
}

.mtproto-page-content img,
.mtproto-page-content svg,
.mtproto-page-content video,
.mtproto-page-content iframe,
.mtproto-page-content canvas{
  max-width:100%;
  height:auto;
}

.mtproto-page-content iframe{
  width:100%;
  border:0;
}

.mtproto-page-content table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  white-space:normal;
}

.mtproto-page-content th,
.mtproto-page-content td{
  min-width:140px;
}

.mtproto-compare{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.mtproto-table{
  min-width:680px;
}

.mtproto-codebox,
pre,
code{
  max-width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  white-space:pre-wrap;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.mtproto-breadcrumbs{
  row-gap:6px;
  word-break:break-word;
}

.mtproto-article-meta{
  align-items:flex-start;
}

.mtproto-article-chip{
  max-width:100%;
  white-space:normal;
  text-align:left;
}

.mtproto-pill-nav{
  width:100%;
}

.mtproto-pill-nav a{
  max-width:100%;
  white-space:normal;
  text-align:center;
}

.mtproto-btn-row{
  align-items:stretch;
}

.mtproto-btn{
  max-width:100%;
  white-space:normal;
}

.mtproto-feature-list li{
  min-width:0;
}

.mtproto-link-card > *{
  min-width:0;
}

.mtproto-step > *{
  min-width:0;
}

.mtproto-sidebar ul,
.mtproto-page-content ul,
.mtproto-page-content ol{
  padding-left:18px;
}

.mtproto-page-content blockquote{
  overflow-wrap:anywhere;
}

.mtproto-page-content h1,
.mtproto-page-content h2,
.mtproto-page-content h3,
.mtproto-page-content h4{
  overflow-wrap:anywhere;
}

/* Better tablet/mobile behavior for inner pages */
@media (max-width: 1100px){
  .mtproto-page-shell{
    grid-template-columns:1fr;
    gap:20px;
  }

  .mtproto-sidebar{
    position:static;
    top:auto;
    order:2;
  }

  .mtproto-content-card{
    order:1;
  }
}

/* Main mobile fixes */
@media (max-width: 768px){
  .mtproto-page-hero{
    padding:28px 0 10px;
  }

  .mtproto-content-card{
    padding:22px;
    border-radius:18px;
  }

  .mtproto-sidebar{
    padding:20px;
    border-radius:18px;
  }

  .mtproto-article-meta{
    gap:8px;
  }

  .mtproto-article-chip{
    min-height:auto;
    padding:8px 10px;
    font-size:.88rem;
  }

  .mtproto-page-content table{
    margin:16px 0;
  }

  .mtproto-page-content th,
  .mtproto-page-content td{
    padding:12px 12px;
  }

  .mtproto-step{
    padding:18px;
    gap:14px;
  }

  .mtproto-link-card{
    padding:16px;
  }

  .mtproto-faq-question{
    padding:18px 48px 18px 16px;
    font-size:1rem;
  }

  .mtproto-faq-answer{
    padding:0 16px 18px;
  }

  .mtproto-cta{
    padding:22px;
  }
}

/* Small phones */
@media (max-width: 560px){
  .mtproto-page-hero{
    padding:22px 0 8px;
  }

  .mtproto-breadcrumbs{
    font-size:.88rem;
  }

  .mtproto-content-card{
    padding:18px;
    border-radius:16px;
  }

  .mtproto-sidebar{
    padding:18px;
    border-radius:16px;
  }

  .mtproto-page-content p,
  .mtproto-page-content li{
    font-size:.98rem;
  }

  .mtproto-page-content h2{
    font-size:1.5rem;
  }

  .mtproto-page-content h3{
    font-size:1.15rem;
  }

  .mtproto-pill-nav{
    display:grid;
    grid-template-columns:1fr;
  }

  .mtproto-pill-nav a{
    width:100%;
    justify-content:center;
    min-height:44px;
  }

  .mtproto-btn-row{
    flex-direction:column;
  }

  .mtproto-btn{
    width:100%;
  }

  .mtproto-step{
    grid-template-columns:1fr;
    padding:16px;
  }

  .mtproto-step-num{
    width:48px;
    height:48px;
    font-size:1rem;
  }

  .mtproto-link-card{
    flex-direction:column;
    align-items:stretch;
  }

  .mtproto-article-meta{
    display:grid;
    grid-template-columns:1fr;
  }

  .mtproto-article-chip{
    width:100%;
  }

  .mtproto-table{
    min-width:600px;
  }
}

/* Very narrow devices */
@media (max-width: 400px){
  .mtproto-container{
    width:min(100% - 16px, var(--mtproto-container));
  }

  .mtproto-content-card,
  .mtproto-sidebar,
  .mtproto-cta,
  .mtproto-card{
    padding:16px;
  }

  .mtproto-page-content th,
  .mtproto-page-content td{
    padding:10px 10px;
  }

  .mtproto-faq-question{
    padding:16px 44px 16px 14px;
    font-size:.96rem;
  }

  .mtproto-faq-answer{
    padding:0 14px 16px;
  }

  .mtproto-page-content ul,
  .mtproto-page-content ol,
  .mtproto-sidebar ul{
    padding-left:16px;
  }
}