/* Layout glue for the one-page presentation. Native colors, card typography,
   buttons and spacing come from the unchanged original assets/style.css. */
.guide-main{max-width:1110px;margin:0 auto;padding:42px 32px 74px;min-width:0}
.guide-hero{padding:12px 0 36px;border-bottom:1px solid var(--line)}
.guide-hero h1{font-size:clamp(36px,4.2vw,56px);letter-spacing:-2.1px;font-weight:750;line-height:1.16;margin:17px 0 19px}
.guide-hero .lead{max-width:800px}
.guide-red-warning{margin:28px 0 0;background:#fff3f4;border-color:#f4bac3;border-left:4px solid #d53650;color:#8a3044}
.guide-red-warning strong{color:#aa263e}.guide-red-warning p{color:#8a3044}.guide-red-warning b{color:#a72038}
.guide-warning-symbol{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#ffe0e5;color:#bc2341;font-weight:800;flex:none}
.guide-section{margin-top:42px}
.guide-section-header{margin-bottom:18px}.guide-section-header .eyebrow{margin-bottom:8px}
.guide-section-header .section-top{align-items:center;margin:0 0 5px}
.guide-section-header .section-top .button{flex:none}
.guide-muted{font-size:14px;color:var(--muted-on-paper);line-height:1.7;margin:5px 0 18px}
.guide-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0 13px}
.guide-step-card{min-height:148px;display:flex;flex-direction:column;gap:12px;padding:21px}
.guide-step-number{width:34px;height:34px;font-size:14px;font-weight:800;border-radius:10px}
.guide-step-card h3{margin:0 0 6px}
.guide-drawer{min-width:0;margin:0 0 12px}
.guide-drawer>summary{list-style:none;cursor:pointer;align-items:center}
.guide-drawer>summary::-webkit-details-marker{display:none}
.guide-drawer>summary .tile-icon{width:46px;height:46px}
.guide-drawer-label{flex:1;min-width:0}
.guide-drawer-label h3{font-size:15px;line-height:1.4;font-weight:750;margin:0 0 4px;letter-spacing:-.2px}
.guide-drawer-label p{font-size:12px;line-height:1.7;color:var(--muted);margin:0}
.guide-chevron{margin-left:auto;color:var(--link);width:17px;height:17px;transition:transform .15s}
.guide-drawer[open]>.tile{border-color:#c9d5f2;border-radius:var(--radius) var(--radius) 0 0;background:#f7f9ff}
.guide-drawer[open] .guide-chevron{transform:rotate(180deg)}
.guide-drawer-body{background:var(--surface);border:1px solid #c9d5f2;border-top:0;border-radius:0 0 var(--radius) var(--radius);padding:20px 24px 24px;font-size:14px;line-height:1.75}
.guide-drawer-body p{margin:8px 0 12px}.guide-drawer-body h3{font-size:16px}
.guide-device-grid{align-items:start;margin-top:20px}
.guide-device-grid .guide-drawer{margin:0}
.guide-copy-value{width:min(100%,470px);margin:10px 0;min-height:44px}
.guide-copy-action{font-family:Manrope,sans-serif;white-space:nowrap;font-size:11px;font-weight:700;color:var(--link)}
.guide-copy-value:hover .guide-copy-action,.guide-small-copy:hover{color:#2349a1}
.guide-value-grid{max-width:670px}
.guide-value-grid>div{min-width:0;display:grid;gap:6px;align-content:start}
.guide-value-grid .guide-copy-value{margin:0}
.guide-small-copy{font-size:12px;min-height:34px;padding:6px 8px;margin:3px 2px 3px 0;white-space:normal}
.guide-small-copy span{color:var(--muted-on-paper)}
.guide-table-wrap{overflow-x:auto;max-width:100%}
.guide-table-wrap table{min-width:730px}
.guide-table-wrap td,.guide-table-wrap th{font-size:12px;padding:11px}
.guide-table-wrap td small{display:block;font-size:10px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.instruction-list{margin:8px 0 16px;padding-left:22px}.instruction-list li{margin-bottom:10px;padding-left:3px}
.shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.shots-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.shots figure,.one-shot figure{margin:0;min-width:0}
.shots figcaption,.one-shot figcaption{font-size:11px;color:var(--muted-on-paper);text-align:center;margin:8px 0 0}
.guide-shot{padding:0;line-height:0;width:100%;display:flex;align-items:center;justify-content:center;min-height:125px}
.guide-shot img{width:100%;max-height:330px;object-fit:contain;display:block}
.one-shot{max-width:500px;margin:20px 0}
.guide-note{margin-top:18px}.guide-note p{margin:0}
.split-steps{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.split-steps>div{padding:16px;background:#f7f9fd;border:1px solid var(--line);border-radius:13px}
.split-steps h3{margin:0 0 7px}.split-steps p{margin:0}
.mini-label,.guide-small-text{font-size:12px;color:var(--muted-on-paper)}
.ios-helper{padding:15px;border-radius:12px;background:#f7f9fd;border:1px solid var(--line)}
.inner-disclosure{border-top:1px solid var(--line);margin-top:16px;padding-top:13px}
.inner-disclosure summary{cursor:pointer;font-weight:700;color:var(--link)}
.guide-check{margin:17px 0 28px;background:#f0f9f4;border-color:#d8eddf;align-items:center}
.guide-check .notice-icon{font-weight:800;color:var(--success)}.guide-check p{margin:0}
.guide-vpn{border-top:1px solid var(--line);padding-top:28px;margin-top:30px}
.guide-vpn-grid{margin-top:18px}
.guide-vpn-card{min-height:116px;align-items:center}
.guide-vpn-card h3{margin:0 0 7px}
.guide-vpn-gold{border-color:#ce9e45!important;background:#fffdf9}
.guide-vpn-gold:hover{border-color:#b98932!important;background:#fff9eb}
.guide-vpn-gold .tile-icon{border-color:#ebd8b1;background:#fff6e5;color:#a47c30}
.guide-help-stack{display:grid;gap:12px}
.guide-help-stack .guide-drawer{margin:0}
.guide-image-modal{border:0;border-radius:16px;background:#fff;padding:36px 18px 20px;max-width:min(95vw,1100px);max-height:94dvh;box-shadow:0 22px 80px #15244650}
.guide-image-modal::backdrop{background:#0b1738cc}
.guide-image-modal img{max-height:calc(90dvh - 100px);display:block;margin:auto;object-fit:contain}
.guide-image-modal .modal-close{position:absolute;right:8px;top:7px;border:0;border-radius:9px;background:#edf1ff;padding:6px 10px}
.guide-image-modal .modal-caption{text-align:center;color:var(--muted);font-size:12px;margin-top:9px}
.guide-copy-toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,10px);opacity:0;pointer-events:none;z-index:99;padding:10px 17px;border-radius:10px;background:#202e53;color:#fff;font-size:13px;transition:opacity .2s,transform .2s}
.guide-copy-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:900px){.guide-main{max-width:820px;padding:30px 20px 65px}}
@media(max-width:600px){.guide-main{padding:20px 16px 48px}.guide-hero h1{font-size:36px;letter-spacing:-1.4px}.guide-section{margin-top:35px}.guide-steps{grid-template-columns:1fr;gap:11px}.guide-step-card{min-height:0;flex-direction:row;align-items:center;padding:18px}.guide-device-grid,.guide-vpn-grid{grid-template-columns:1fr}.guide-section-header .section-top{align-items:flex-start;gap:12px}.guide-section-header .section-top .button{min-height:40px;padding:9px 12px;font-size:11px}.guide-section-header .section-top h2{font-size:19px}.guide-drawer>summary{padding:17px 15px}.guide-drawer-body{padding:17px}.shots,.shots-three,.split-steps,.guide-value-grid{grid-template-columns:1fr}.guide-shot img{max-height:450px}.guide-vpn-card{min-height:93px}.guide-hero .lead{font-size:15px}.guide-muted{font-size:13px}.guide-warning-symbol{width:25px;height:25px}}
@media(max-width:375px){.guide-section-header .section-top{flex-direction:column}.guide-drawer-label h3{font-size:14px}}

/* V8: only page-specific layout refinements; native style.css unchanged. */
.guide-device-grid{margin-bottom:18px}
.guide-alternatives{margin-top:16px}
.guide-vpn-warning{margin:16px 0 22px;background:#fff5f5;border:1px solid #efb7bd;border-left:4px solid #d53650;color:#8d2535;align-items:center}
.guide-vpn-warning strong{color:#a3263c}
.guide-vpn-warning p{color:#8d2535;margin:3px 0 0}
.guide-vpn-exclamation{font-size:21px;line-height:1.2;flex:none}
.guide-official-link{max-width:100%;text-align:center;margin:10px 0 4px}
.guide-preparation-list{padding-left:20px;margin:10px 0 0;color:var(--ink);line-height:1.65}
.guide-preparation-list li{margin:5px 0}
.guide-apple-note{margin:14px 0 18px}
.guide-apple-example{border:0;padding:0;margin:18px 0 8px}
.guide-apple-example>summary{display:flex;list-style:none;cursor:pointer;width:fit-content;text-align:left;max-width:100%;gap:12px}
.guide-apple-example>summary::-webkit-details-marker{display:none}
.guide-apple-example[open] .guide-toggle-arrow{transform:rotate(180deg)}
.guide-toggle-arrow{transition:transform .18s}
.guide-apple-example-content{margin-top:18px;padding:2px 0 12px}
.guide-apple-example-content h3{margin:14px 0 10px}
.guide-apple-table{min-width:0!important;width:100%}
.guide-apple-table td:first-child{font-weight:700;white-space:nowrap}
.guide-mobile-apps>p:first-child{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.guide-links-list{display:grid;gap:15px}
.guide-link-line{padding:0 0 15px;border-bottom:1px solid var(--line)}
.guide-link-line:last-of-type{border-bottom:0;padding-bottom:0}
.guide-button-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:9px 0 0}
.guide-button-row .button{min-height:39px;padding:8px 13px;font-size:12px}
.split-steps .instruction-list{margin:10px 0 0;padding-left:20px}
.split-steps .instruction-list li{margin-bottom:8px}
@media(max-width:600px){.guide-apple-table td,.guide-apple-table th{font-size:11px;padding:9px 7px}.guide-apple-table td:first-child{white-space:normal}.guide-apple-example>summary{width:100%}.guide-links-list .button{flex:0 1 auto}}

/* Alternative DNS: one consistent, legible design. */
.alt-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.alt-table th:nth-child(1) { width: 17%; }
.alt-table th:nth-child(2) { width: 23%; }
.alt-table th:nth-child(3) { width: 46%; }
.alt-table th:nth-child(4) { width: 14%; }
.alt-table th,
.alt-table td { padding: 14px 12px; vertical-align: top; }
.alt-table th,
.alt-table td,
.alt-table button,
.alt-table a { min-width: 0; }
.alt-table th { text-align: left; }
.alt-table .guide-site-link,
.alt-table .guide-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #dbe3ff;
  border-radius: 10px;
  background: #f4f6ff;
  color: #4359d9;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .18s ease,border-color .18s ease;
}
.alt-table .guide-site-link:hover,
.alt-table .guide-profile-link:hover { background: #eaf0ff; border-color: #a9baff; }
.alt-table .guide-profile-link { white-space: nowrap; }
.alt-table .copy-value {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  width: auto;
  min-height: 40px;
  padding: 8px 10px;
  margin: 2px 6px 4px 0;
  border: 1px solid #dbe3ff;
  border-radius: 9px;
  background: #f5f7ff;
  color: #344fc8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color .18s ease,border-color .18s ease;
}
.alt-table .copy-value:hover { background: #eaf0ff; border-color: #a9baff; }
.alt-table .copy-value code {
  color: inherit;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
/* Hide historical copy symbols, but keep the whole value clickable. */
.alt-table .copy-value::after,
.alt-table .copy-value .guide-copy-action,
.alt-table .copy-value svg { content: none; display: none; }
.alt-table .guide-doh-title {
  display: block;
  margin: 10px 0 6px;
  color: #52627d;
  font-size: 12px;
  font-weight: 700;
}
.alt-table .guide-doh { padding: 0; margin: 0; border: 0; background: none; }
.alt-table .guide-doh-copy {
  display: inline-flex;
  margin: 0;
  max-width: 100%;
  min-height: 42px;
  overflow-wrap: anywhere;
}
.alt-table .guide-doh-copy code { overflow-wrap: anywhere; }
.guide-right-arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  vertical-align: -3px;
  margin-left: 3px;
}

/* Notices and shared warning animation. */
.guide-vpn-after-warning {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0 0;
  padding: 16px 18px;
  background: #fff8e5;
  border: 1px solid #efd58d;
  border-left: 4px solid #e3a72e;
  border-radius: 12px;
  color: #795713;
}
.guide-vpn-after-warning p { margin: 0; color: #795713; }
.guide-vpn-warning .guide-vpn-exclamation,
.guide-red-warning .guide-warning-symbol,
.guide-vpn-after-warning .notice-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  isolation: isolate;
}
.guide-vpn-warning .guide-vpn-exclamation,
.guide-red-warning .guide-warning-symbol {
  background: #ffe3e8;
  border: 1px solid #ef9aaa;
  color: #c52c4b;
  --pulse-border: #dc3555;
}
.guide-vpn-after-warning .notice-icon {
  background: #ffedc3;
  border: 1px solid #ebc77a;
  color: #a86b17;
  --pulse-border: #dda13a;
}
.guide-vpn-warning .guide-vpn-exclamation svg,
.guide-red-warning .guide-warning-symbol svg,
.guide-vpn-after-warning .notice-icon svg {
  position: relative;
  z-index: 2;
  width: 23px;
  height: 23px;
}
.guide-vpn-warning .guide-vpn-exclamation::before,
.guide-vpn-warning .guide-vpn-exclamation::after,
.guide-red-warning .guide-warning-symbol::before,
.guide-red-warning .guide-warning-symbol::after,
.guide-vpn-after-warning .notice-icon::before,
.guide-vpn-after-warning .notice-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--pulse-border);
  border-radius: 50%;
  pointer-events: none;
  animation: nx-soft-pulse 3s ease-out infinite;
}
.guide-vpn-warning .guide-vpn-exclamation::after,
.guide-red-warning .guide-warning-symbol::after,
.guide-vpn-after-warning .notice-icon::after { animation-delay: 1.5s; }
@keyframes nx-soft-pulse {
  0% { transform: scale(1); opacity: .55; }
  85%, 100% { transform: scale(1.65); opacity: 0; }
}
.guide-age-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  padding: 15px 18px;
  background: #f2f5ff;
  border: 1px solid #dbe3ff;
  border-radius: 12px;
  color: #34466d;
}
.guide-age-notice span { flex-shrink: 0; font-size: 22px; color: #5366e9; }
.guide-age-notice p { margin: 0; line-height: 1.6; }

/* Layout stability, readable type and user interaction. */
.guide-main,
.guide-section,
.guide-section-header,
.guide-drawer-body,
.guide-drawer-label,
.guide-link-line,
.guide-vpn-card > div { min-width: 0; }
.guide-drawer > summary,
.guide-drawer > summary .guide-drawer-label { min-width: 0; }
.guide-drawer > summary { min-height: 76px; }
.guide-drawer > summary:focus-visible { outline-offset: 2px; }
.guide-drawer-body { overflow-wrap: break-word; }
.guide-drawer-body a:not(.button) { overflow-wrap: anywhere; }
.guide-steps .guide-step-card { transition: border-color .18s ease,background-color .18s ease; }
.guide-device-grid > .guide-drawer,
.guide-vpn-grid > .guide-vpn-card { min-width: 0; }
.guide-device-grid:has(> .guide-drawer[open]) > .guide-drawer[open] { grid-column: 1 / -1; }
.guide-hero .lead { text-wrap: pretty; }
.guide-section-header h2 { text-wrap: balance; }
.guide-red-warning > div, .guide-vpn-warning > div { min-width: 0; }
.guide-red-warning { align-items: center; }
.guide-red-warning > div p { margin: 3px 0 0; }
.guide-copy-toast { max-width: min(calc(100vw - 32px), 420px); text-align: center; }
.guide-shot picture { display: block; width: 100%; min-width: 0; }
.guide-shot img {
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: contain;
}
.guide-shot { overflow: hidden; }
.guide-shot:focus-visible { outline-offset: 2px; }
.guide-image-modal { width: min(95vw, 1100px); }
.guide-image-modal img { width: auto; max-width: 100%; height: auto; }
.guide-link-line .button { display: inline-flex; align-items: center; gap: 6px; }
.guide-link-line .button .guide-right-arrow { margin-left: 0; }
.guide-section-header .section-top { flex-wrap: wrap; }
.guide-doh-copy code { word-break: break-word; }
/* Avoid fixed icon scaling and unwanted form zoom on iOS. */
.guide-copy-value code { overflow-wrap: anywhere; white-space: normal; }
.guide-table-wrap { scrollbar-width: thin; }
@supports (interpolate-size: allow-keywords) {
  .guide-drawer, .guide-apple-example { interpolate-size: allow-keywords; }
  .guide-drawer::details-content,
  .guide-apple-example::details-content {
    block-size: 0;
    opacity: 0;
    overflow: clip;
    transition: block-size .26s ease, opacity .18s ease;
  }
  .guide-drawer[open]::details-content,
  .guide-apple-example[open]::details-content { block-size: auto; opacity: 1; }
}
/* User preference for reduced animations must override the warning pulses. */
@media (prefers-reduced-motion: reduce) {
  .guide-vpn-warning .guide-vpn-exclamation::before,
  .guide-vpn-warning .guide-vpn-exclamation::after,
  .guide-red-warning .guide-warning-symbol::before,
  .guide-red-warning .guide-warning-symbol::after,
  .guide-vpn-after-warning .notice-icon::before,
  .guide-vpn-after-warning .notice-icon::after { animation: none; opacity: 0; }
  .guide-drawer *, .guide-apple-example *,
  .guide-drawer::details-content, .guide-apple-example::details-content { transition-duration: .01ms !important; }
}

/* DNS turns into touch-friendly cards instead of a tiny scrollable table. */
@media (max-width: 860px) {
  .guide-table-wrap { overflow-x: visible; }
  .guide-table-wrap .alt-table { display: block; min-width: 0; width: 100%; border: 0; box-shadow: none; table-layout: auto; }
  .alt-table thead { display: none; }
  .alt-table tbody { display: grid; gap: 12px; }
  .alt-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
    padding: 15px;
    background: #fff;
    border: 1px solid #dde5f3;
    border-radius: 14px;
  }
  .alt-table tbody th,
  .alt-table tbody td { width: 100%; display: block; padding: 0; border: 0; min-width: 0; }
  .alt-table tbody tr > th:nth-child(1) { width: 100%; }
  .alt-table tbody th { margin-bottom: 2px; }
  .alt-table tbody td::before {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    color: #586780;
  }
  .alt-table tbody td:nth-of-type(1)::before { content: 'Android · хост'; }
  .alt-table tbody td:nth-of-type(2)::before { content: 'Windows / Mac · DNS 1 и 2'; }
  .alt-table tbody td:nth-of-type(3)::before { content: 'iPhone / iPad · профиль'; }
  .alt-table .copy-value,
  .alt-table .guide-profile-link,
  .alt-table .guide-site-link { min-height: 44px; }
  .alt-table .guide-doh-title { margin-top: 12px; }
  .alt-table .guide-doh-copy { width: 100%; }
  .guide-drawer-body { overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .guide-drawer-label h3 { font-size: 15px; }
  .guide-drawer-label p { font-size: 12px; line-height: 1.55; }
  .guide-drawer > summary { min-height: 72px; }
  .guide-hero h1 { line-height: 1.15; }
  .guide-copy-value { width: 100%; }
  .guide-button-row { gap: 10px; }
  .guide-button-row .button,
  .guide-official-link { min-height: 44px; }
  .guide-red-warning,
  .guide-vpn-warning,
  .guide-vpn-after-warning { gap: 12px; }
  .guide-vpn-warning .guide-vpn-exclamation,
  .guide-red-warning .guide-warning-symbol,
  .guide-vpn-after-warning .notice-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .guide-image-modal { max-height: 96dvh; padding: 44px 12px 16px; }
  .guide-image-modal img { max-height: calc(90dvh - 112px); }
  .guide-apple-table { width: 100%; }
}
@media (max-width: 360px) {
  .guide-main { padding-inline: 14px; }
  .guide-red-warning, .guide-vpn-warning, .guide-vpn-after-warning { padding: 12px; }
  .guide-device-grid .guide-drawer > summary { padding: 14px 12px; }
  .guide-hero h1 { font-size: 33px; letter-spacing: -1.2px; }
}

/* Keep the image viewer stable while the full-resolution picture loads. */
.guide-image-modal[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(95vw, 1100px);
  height: min(90dvh, 850px);
}
.guide-image-modal[open] img { min-height: 0; flex: 0 1 auto; }
.guide-image-modal .modal-caption { flex: 0 0 auto; }
@media (max-width: 600px) {
  .guide-image-modal[open] { width: min(96vw,1100px); height: min(92dvh,850px); }
}
