/* Start custom CSS for html, class: .elementor-element-de44be2 *//* Полное руководство по Linux. Все правила ограничены контейнером .linux-guide */
.linux-guide {
  --lg-bg: #f4f7f5;
  --lg-surface: #ffffff;
  --lg-text: #17212f;
  --lg-muted: #536174;
  --lg-line: #dce4e0;
  --lg-accent: #166534;
  --lg-accent-dark: #14532d;
  --lg-accent-soft: #eaf7ee;
  --lg-code-bg: #101827;
  --lg-code-text: #e7edf5;
  --lg-warning-bg: #fff8e8;
  --lg-warning-line: #d97706;
  --lg-danger-bg: #fff2f2;
  --lg-danger-line: #b91c1c;
  --lg-info-bg: #eef6ff;
  --lg-info-line: #2563eb;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--lg-text);
  font-family: inherit;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

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

.linux-guide p,
.linux-guide ul,
.linux-guide ol {
  margin-top: 0;
  margin-bottom: 1.08em;
}

.linux-guide ul,
.linux-guide ol {
  padding-left: 1.45em;
}

.linux-guide li + li {
  margin-top: 0.34em;
}

.linux-guide h1,
.linux-guide h2,
.linux-guide h3,
.linux-guide h4 {
  color: #101827;
  line-height: 1.2;
  text-wrap: balance;
}

.linux-guide h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: -0.035em;
}

.linux-guide h2 {
  margin: 0 0 24px;
  font-size: clamp(27px, 3.3vw, 40px);
  letter-spacing: -0.025em;
  scroll-margin-top: 26px;
}

.linux-guide h3 {
  margin: 32px 0 14px;
  font-size: clamp(21px, 2.25vw, 27px);
}

.linux-guide h4 {
  margin: 24px 0 10px;
  font-size: 19px;
}

.linux-guide a {
  color: var(--lg-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.linux-guide a:hover,
.linux-guide a:focus-visible {
  color: var(--lg-accent-dark);
}

.linux-guide code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  border-radius: 5px;
}

.linux-guide p code,
.linux-guide li code,
.linux-guide td code,
.linux-guide summary code {
  padding: 0.12em 0.36em;
  border: 1px solid #d9e1e8;
  background: #eef2f5;
  color: #172033;
}

.linux-guide__hero {
  position: relative;
  isolation: isolate;
  margin-bottom: 28px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid #cce1d1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 12%, rgba(22, 101, 52, 0.16), transparent 28%),
    linear-gradient(145deg, #f8fffa 0%, #edf7f0 100%);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.linux-guide__hero::after {
  content: "$";
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: -0.32em;
  z-index: -1;
  color: rgba(22, 101, 52, 0.08);
  font-family: ui-monospace, monospace;
  font-size: clamp(150px, 25vw, 310px);
  font-weight: 900;
  line-height: 1;
}

.linux-guide__eyebrow {
  display: inline-flex;
  margin: 0 0 18px !important;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--lg-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.linux-guide__lead {
  max-width: 920px;
  margin-bottom: 24px !important;
  color: #334155;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.55;
}

.linux-guide__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.linux-guide__meta span {
  padding: 8px 12px;
  border: 1px solid #cbd9cf;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #3d4a42;
  font-size: 14px;
  font-weight: 700;
}

.linux-guide__toc,
.linux-guide__section {
  margin: 28px 0;
  padding: clamp(26px, 4.2vw, 50px);
  border: 1px solid var(--lg-line);
  border-radius: 24px;
  background: var(--lg-surface);
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.05);
}

.linux-guide__section {
  scroll-margin-top: 22px;
}

.linux-guide__section > h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--lg-accent);
}

.linux-guide__toc h2 {
  margin-bottom: 20px;
  font-size: 29px;
}

.linux-guide__toc ol {
  columns: 2;
  column-gap: 46px;
  margin-bottom: 0;
  padding-left: 24px;
}

.linux-guide__toc li {
  break-inside: avoid;
  margin: 0 0 9px;
}

.linux-guide__toc a {
  color: #203044;
  font-weight: 680;
  text-decoration: none;
}

.linux-guide__toc a:hover,
.linux-guide__toc a:focus-visible {
  color: var(--lg-accent);
  text-decoration: underline;
}

.linux-guide__note {
  margin: 24px 0;
  padding: 20px 22px;
  border: 0;
  border-left: 5px solid var(--lg-info-line);
  border-radius: 12px;
  background: var(--lg-info-bg);
  color: var(--lg-text);
}

.linux-guide__note p:last-child {
  margin-bottom: 0;
}

.linux-guide__note strong:first-child,
.linux-guide__note p:first-child strong:first-child {
  display: inline-block;
  margin-bottom: 5px;
  font-size: 18px;
}

.linux-guide__note--warning {
  border-left-color: var(--lg-warning-line);
  background: var(--lg-warning-bg);
}

.linux-guide__note--danger {
  border-left-color: var(--lg-danger-line);
  background: var(--lg-danger-bg);
}

.linux-guide__note--important {
  border-left-color: var(--lg-accent);
  background: var(--lg-accent-soft);
}

.linux-guide__code {
  position: relative;
  margin: 18px 0 27px;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid #263449;
  border-radius: 15px;
  background: var(--lg-code-bg);
  color: var(--lg-code-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-overflow-scrolling: touch;
  tab-size: 4;
}

.linux-guide__code code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre;
}

.linux-guide__table-wrap {
  width: 100%;
  margin: 20px 0 30px;
  overflow-x: auto;
  border: 1px solid var(--lg-line);
  border-radius: 15px;
  -webkit-overflow-scrolling: touch;
}

.linux-guide__table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  background: #fff;
}

.linux-guide__table th,
.linux-guide__table td {
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--lg-line);
  text-align: left;
  vertical-align: top;
}

.linux-guide__table th {
  background: #edf5ef;
  color: #193224;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.linux-guide__table tr:last-child td {
  border-bottom: 0;
}

.linux-guide__table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.linux-guide__table tbody tr:hover {
  background: #f3f8f4;
}

.linux-guide__table td:first-child {
  width: 22%;
  white-space: nowrap;
}

.linux-guide__table td:last-child {
  width: 34%;
}

.linux-guide__danger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 30px;
}

.linux-guide__danger-list > div {
  padding: 20px;
  border: 1px solid #efb7b7;
  border-radius: 16px;
  background: #fff5f5;
}

.linux-guide__danger-list h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.linux-guide__danger-list p:last-child {
  margin-bottom: 0;
}

.linux-guide__faq-item {
  margin-bottom: 12px;
  border: 1px solid var(--lg-line);
  border-radius: 14px;
  background: #fff;
}

.linux-guide__faq-item summary {
  position: relative;
  padding: 18px 52px 18px 18px;
  cursor: pointer;
  list-style: none;
  font-weight: 800;
}

.linux-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.linux-guide__faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--lg-accent);
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
}

.linux-guide__faq-item[open] summary::after {
  content: "−";
}

.linux-guide__faq-item > *:not(summary) {
  margin-right: 18px;
  margin-left: 18px;
}

.linux-guide__faq-item > p:last-child {
  margin-bottom: 18px;
  color: var(--lg-muted);
}

.linux-guide__conclusion {
  border-color: #cde2d2;
  background: linear-gradient(180deg, #ffffff 0%, #f1faf4 100%);
}

.linux-guide__cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 20px;
  background: #123b24;
  color: #fff;
}

.linux-guide__cta h3,
.linux-guide__cta p {
  color: #fff;
}

.linux-guide__cta h3 {
  margin: 4px 0 10px;
}

.linux-guide__cta p:last-child {
  margin-bottom: 0;
}

.linux-guide__cta-kicker {
  margin-bottom: 0 !important;
  color: #c9f2d7 !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.linux-guide__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 12px;
  background: #fff;
  color: #123b24 !important;
  font-weight: 850;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.17);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.linux-guide__button:hover,
.linux-guide__button:focus-visible {
  background: #eaf7ee;
  transform: translateY(-1px);
}

.linux-guide :focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .linux-guide {
    font-size: 16px;
  }

  .linux-guide__toc ol {
    columns: 1;
  }

  .linux-guide__danger-list,
  .linux-guide__cta {
    grid-template-columns: 1fr;
  }

  .linux-guide__button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .linux-guide__hero,
  .linux-guide__toc,
  .linux-guide__section {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .linux-guide h1 {
    font-size: 33px;
  }

  .linux-guide h2 {
    font-size: 27px;
  }

  .linux-guide__lead {
    font-size: 18px;
  }

  .linux-guide__meta {
    display: grid;
  }

  .linux-guide__meta span {
    border-radius: 10px;
  }

  .linux-guide__code {
    width: calc(100% + 8px);
    margin-right: -4px;
    margin-left: -4px;
    padding: 16px;
    border-radius: 12px;
  }

  .linux-guide__code code {
    font-size: 12.5px;
  }

  .linux-guide__table-wrap {
    width: calc(100% + 8px);
    margin-right: -4px;
    margin-left: -4px;
  }

  .linux-guide__table {
    min-width: 680px;
  }

  .linux-guide__table th,
  .linux-guide__table td {
    padding: 12px;
    font-size: 14px;
  }

  .linux-guide__danger-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .linux-guide *,
  .linux-guide *::before,
  .linux-guide *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .linux-guide {
    max-width: none;
    font-size: 10.5pt;
  }

  .linux-guide__hero,
  .linux-guide__toc,
  .linux-guide__section {
    border-color: #aaa;
    box-shadow: none;
  }

  .linux-guide__code {
    overflow: visible;
    border-color: #333;
    background: #f3f3f3;
    color: #000;
    white-space: pre-wrap;
    break-inside: avoid;
  }

  .linux-guide__code code {
    min-width: 0;
    color: #000;
    white-space: pre-wrap;
  }

  .linux-guide__table-wrap {
    overflow: visible;
  }

  .linux-guide__table {
    min-width: 0;
  }

  .linux-guide__cta {
    border: 1px solid #777;
    background: #fff;
    color: #000;
  }

  .linux-guide__cta h3,
  .linux-guide__cta p {
    color: #000 !important;
  }
}

/* Дополнительные элементы версии Debian + Ubuntu */
.linux-guide__version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 30px;
}

.linux-guide__version-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--lg-line);
  border-radius: 18px;
  background: #f8fafc;
}

.linux-guide__version-card strong {
  display: block;
  margin: 6px 0 10px;
  color: #101827;
  font-size: 22px;
  line-height: 1.25;
}

.linux-guide__version-card p {
  margin: 0;
  color: var(--lg-muted);
  font-size: 15px;
}

.linux-guide__version-label {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--lg-accent-soft);
  color: var(--lg-accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.linux-guide__compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 28px;
}

.linux-guide__compare > div {
  padding: 22px;
  border: 1px solid var(--lg-line);
  border-radius: 17px;
  background: #f8fafc;
}

.linux-guide__compare h4 {
  margin: 0 0 12px;
  color: #172033;
  font-size: 21px;
}

.linux-guide__compare ul {
  margin-bottom: 0;
}

.linux-guide__learning-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0 32px;
}

.linux-guide__learning-path > div {
  position: relative;
  padding: 21px 19px 19px;
  border: 1px solid var(--lg-line);
  border-radius: 16px;
  background: #fff;
}

.linux-guide__learning-path span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--lg-accent);
  color: #fff;
  font-weight: 900;
}

.linux-guide__learning-path strong {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 17px;
}

.linux-guide__learning-path p {
  margin: 0;
  color: var(--lg-muted);
  font-size: 14px;
}

/* Elementor иногда добавляет лишние внешние отступы */
.elementor-widget-html .linux-guide > :first-child,
.elementor-widget-shortcode .linux-guide > :first-child {
  margin-top: 0;
}

.elementor-widget-html .linux-guide > :last-child,
.elementor-widget-shortcode .linux-guide > :last-child {
  margin-bottom: 0;
}

/* Якоря не должны попадать под закрепленную шапку */
.linux-guide [id] {
  scroll-margin-top: 110px;
}

@media (max-width: 900px) {
  .linux-guide__version-grid,
  .linux-guide__learning-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .linux-guide__version-grid,
  .linux-guide__compare,
  .linux-guide__learning-path {
    grid-template-columns: 1fr;
  }

  .linux-guide__version-card,
  .linux-guide__compare > div {
    padding: 18px;
  }
}/* End custom CSS */