:root {
  --c-primary:   #5B21B6;
  --c-primary-l: #EDE9FE;
  --c-primary-d: #4C1D95;
  --c-green:     #15803D;
  --c-green-l:   #DCFCE7;
  --c-orange:    #C2410C;

  --c-bg:        #EAECF0;
  --c-surface:   #FFFFFF;
  --c-sidebar:   #F8F9FB;
  --c-border:    #D1D5DB;

  --c-text:      #1C1E21;
  --c-text2:     #374151;
  --c-muted:     #6B7280;
  --c-link:      #5B21B6;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;

  --r:    4px;
  --r-md: 6px;
  --tr:   .15s ease;

  --hh: 66px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hh);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow var(--tr);
}
.site-header.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.1); }

.hdr-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo__icon { width: 32px; height: 32px; flex-shrink: 0; }
.logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -.5px;
  white-space: nowrap;
}
.logo__text em { font-style: normal; color: var(--c-green); }

.hdr-search {
  flex: 1;
  max-width: 640px;
  display: flex;
  margin: 0 .5rem;
  min-width: 0;
}
.hdr-search__field {
  position: relative;
  flex: 1;
  display: flex;
  min-width: 0;
}
.hdr-search__input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 1rem;
  border: 1.5px solid var(--c-border);
  border-right: none;
  border-radius: var(--r) 0 0 var(--r);
  font-size: 14px;
  color: var(--c-text);
  background: var(--c-bg);
  outline: none;
  transition: border-color var(--tr), background var(--tr);
}
.hdr-search__input:focus { border-color: var(--c-primary); background: var(--c-surface); }
.hdr-search__input::placeholder { color: #9CA3AF; }
.hdr-search__btn {
  height: 42px;
  padding: 0 1.25rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background var(--tr);
}
.hdr-search__btn:hover { background: var(--c-primary-d); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 200;
  display: none;
  overflow: hidden;
}
.search-suggestions.visible { display: block; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .5rem .875rem;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--tr);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--c-primary-l); text-decoration: none; }
.suggestion-item__icon { color: #9CA3AF; flex-shrink: 0; }
.suggestion-item__text { flex: 1; font-size: 13px; color: var(--c-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-item__meta { font-size: 11px; color: var(--c-muted); white-space: nowrap; flex-shrink: 0; }

.hdr-nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  flex-shrink: 0;
  margin-left: auto;
}
.hdr-nav a {
  padding: .375rem .625rem;
  font-size: 13px;
  color: var(--c-muted);
  border-radius: var(--r);
  transition: color var(--tr), background var(--tr);
  white-space: nowrap;
}
.hdr-nav a:hover { color: var(--c-primary); background: var(--c-primary-l); text-decoration: none; }
.hdr-nav a.active { color: var(--c-primary); font-weight: 600; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px; height: 38px;
  gap: 5px;
  border-radius: var(--r);
  flex-shrink: 0;
  margin-left: auto;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform var(--tr), opacity var(--tr); }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.mobile-nav__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.mobile-nav__drawer {
  position: absolute; top: 0; right: 0;
  width: 280px; height: 100%;
  background: var(--c-surface);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform .25s;
  overflow-y: auto;
}
.mobile-nav.open { pointer-events: all; }
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav.open .mobile-nav__drawer { transform: translateX(0); }
.mobile-nav__close { display: flex; justify-content: flex-end; margin-bottom: 1.25rem; }
.mobile-nav__close-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--c-muted); transition: background var(--tr); }
.mobile-nav__close-btn:hover { background: #F3F4F6; }
.mobile-nav__links { display: flex; flex-direction: column; gap: .125rem; }
.mobile-nav__link { padding: .625rem .875rem; border-radius: var(--r); font-size: 14px; color: var(--c-text); display: flex; align-items: center; gap: .5rem; transition: background var(--tr), color var(--tr); }
.mobile-nav__link:hover { background: var(--c-primary-l); color: var(--c-primary); text-decoration: none; }
.mobile-nav__divider { height: 1px; background: var(--c-border); margin: .625rem 0; }

.page-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
  min-width: 0;
}

.sidebar {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  position: sticky;
  top: calc(var(--hh) + 1rem);
}

.sb-group { border-bottom: 1px solid var(--c-border); }
.sb-group:last-child { border-bottom: none; }

.sb-nav { padding: .375rem 0; }
.sb-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .875rem;
  font-size: 13px;
  color: var(--c-text2);
  transition: background var(--tr), color var(--tr);
  cursor: pointer;
}
.sb-link:hover { background: var(--c-primary-l); color: var(--c-primary); text-decoration: none; }
.sb-link.active { background: var(--c-primary-l); color: var(--c-primary); font-weight: 600; }
.sb-link svg { flex-shrink: 0; opacity: .55; }
.sb-link.active svg { opacity: 1; }
.sb-link:hover svg { opacity: 1; }

.sb-header {
  padding: .5rem .875rem .35rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--c-muted);
  background: var(--c-sidebar);
  border-top: 1px solid var(--c-border);
}

.sb-cta {
  padding: .75rem .875rem;
  background: var(--c-primary-l);
  border-top: 1px solid rgba(91,33,182,.15);
}
.sb-cta a {
  display: block;
  padding: .5rem .75rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: background var(--tr);
}
.sb-cta a:hover { background: var(--c-primary-d); text-decoration: none; }
.sb-cta p { font-size: 11px; color: var(--c-primary-d); margin-bottom: .5rem; line-height: 1.5; }

.sb-stats-mini { padding: .5rem .875rem .75rem; }
.sb-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .275rem 0;
  font-size: 12px;
  color: var(--c-muted);
  border-bottom: 1px solid #F3F4F6;
}
.sb-stat-row:last-child { border-bottom: none; }
.sb-stat-row b { color: var(--c-primary); font-weight: 700; font-size: 12.5px; }

.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .75rem 1rem 1rem;
}
.ptag {
  display: inline-block;
  padding: .25rem .65rem;
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  font-size: 12.5px;
  color: var(--c-text2);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.ptag:hover { background: var(--c-primary-l); color: var(--c-primary); border-color: var(--c-primary); text-decoration: none; }
.ptag--hot { border-color: #FCA5A5; color: #B91C1C; background: #FEF2F2; }
.ptag--hot:hover { background: #DC2626; color: #fff; border-color: #DC2626; }

.main-content { min-width: 0; }
main { min-width: 0; }

.c-block {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1rem;
}
.c-block:last-child { margin-bottom: 0; }

.c-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .625rem 1rem;
  background: var(--c-sidebar);
  border-bottom: 1px solid var(--c-border);
  gap: 1rem;
}
.c-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}
.c-block-more {
  font-size: 12px;
  color: var(--c-primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.c-block-more:hover { text-decoration: underline; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.works-table {
  width: 100%;
  border-collapse: collapse;
}
.works-table thead tr { background: var(--c-sidebar); }
.works-table th {
  padding: .4rem 1rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--c-muted);
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.works-table th:last-child { text-align: right; white-space: nowrap; }
.works-table td {
  padding: .625rem 1rem;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
  font-size: 13.5px;
}
.works-table tr:last-child td { border-bottom: none; }
.works-table tbody tr:hover td { background: #FAFBFF; }
.works-table td:last-child { text-align: right; color: var(--c-muted); font-size: 12px; white-space: nowrap; }

.wt-badge { margin-bottom: 3px; }
.wt-title {
  color: var(--c-link);
  font-size: 13.5px;
  font-weight: 500;
  display: block;
  line-height: 1.4;
  transition: color var(--tr);
}
.wt-title:hover { color: var(--c-primary-d); text-decoration: underline; }
.wt-meta { font-size: 11.5px; color: var(--c-muted); margin-top: 2px; }

.wbadge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .1px;
}
.wbadge--referat      { background: #2563EB; }
.wbadge--kursovaya    { background: #7C3AED; }
.wbadge--diplomnaya   { background: #BE185D; }
.wbadge--kontrolnaya  { background: #D97706; }
.wbadge--esse         { background: #0891B2; }
.wbadge--doklad       { background: #15803D; }
.wbadge--magisterskaya{ background: #DC2626; }
.wbadge--otchet       { background: #4D7C0F; }

.rub-intro {
  padding: .625rem 1rem .25rem;
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.6;
  border-bottom: 1px solid var(--c-border);
}
.rub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.rub-col { padding: .875rem 1rem; border-right: 1px solid var(--c-border); }
.rub-col:last-child { border-right: none; }
.rub-col-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-primary-d);
  margin-bottom: .625rem;
  padding: .3rem .5rem;
  background: var(--c-primary-l);
  border-radius: var(--r);
  border-left: 3px solid var(--c-primary);
  display: block;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.rub-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .2rem 0;
  font-size: 12.5px;
  color: var(--c-link);
  gap: .25rem;
}
.rub-link:hover { text-decoration: underline; }
.rub-count { font-size: 11px; color: var(--c-muted); white-space: nowrap; flex-shrink: 0; }
.rub-more { display: block; margin-top: .5rem; font-size: 12px; color: var(--c-primary); }
.rub-more:hover { text-decoration: underline; }

.c-about-text {
  padding: .875rem 1rem;
  font-size: 13px;
  color: var(--c-text2);
  line-height: 1.7;
}
.c-about-text p + p { margin-top: .625rem; }

.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--hh) + 1rem);
}
.sr-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sr-card-header {
  padding: .5rem .875rem;
  background: var(--c-sidebar);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}
.sr-card-body { padding: .875rem; }
.sr-card-body p { font-size: 12.5px; color: var(--c-text2); line-height: 1.6; margin-bottom: .75rem; }
.sr-btn {
  display: block;
  padding: .5rem .875rem;
  background: var(--c-orange);
  color: #fff;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background var(--tr);
}
.sr-btn:hover { background: #9A3412; text-decoration: none; }
.sr-btn--green { background: var(--c-green); }
.sr-btn--green:hover { background: #166534; }
.sr-stats { display: flex; flex-direction: column; gap: .375rem; padding: .5rem .875rem .875rem; }
.sr-stat { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--c-text2); }
.sr-stat strong { color: var(--c-primary); font-weight: 700; }

.page-title-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: .875rem 0;
}
.page-title-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.page-title-bar h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.2px;
}
.page-title-bar .breadcrumb {
  display: flex;
  align-items: center;
  gap: .375rem;
  font-size: 12px;
  color: var(--c-muted);
  margin-bottom: .25rem;
}
.page-title-bar .breadcrumb a { color: var(--c-link); font-size: 12px; }
.page-title-bar .breadcrumb a:hover { text-decoration: underline; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; }
.step-card {
  padding: 1.25rem;
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  border-top: 3px solid var(--c-primary);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--c-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: .75rem;
}
.step-title { font-size: 14px; font-weight: 700; color: var(--c-text); margin-bottom: .375rem; }
.step-desc { font-size: 13px; color: var(--c-text2); line-height: 1.65; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; }
.feature-card {
  padding: 1rem;
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.feature-card svg { color: var(--c-primary); margin-bottom: .625rem; }
.feature-card__title { font-size: 13.5px; font-weight: 700; margin-bottom: .375rem; }
.feature-card__desc { font-size: 12.5px; color: var(--c-muted); line-height: 1.6; }

.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1rem;
  background: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
  border: none;
  font-family: var(--font);
}
.faq-question:hover { background: var(--c-sidebar); color: var(--c-primary); }
.faq-item.open .faq-question { color: var(--c-primary); background: var(--c-primary-l); }
.faq-chevron { flex-shrink: 0; transition: transform .2s; color: var(--c-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--c-primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer__inner { padding: .625rem 1rem 1rem; font-size: 13px; color: var(--c-text2); line-height: 1.75; background: var(--c-primary-l); }
.faq-answer__inner a { color: var(--c-primary); text-decoration: underline; }

.types-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: .875rem 1rem; }

.content-text { padding: .875rem 1rem; font-size: 13.5px; color: var(--c-text2); line-height: 1.75; }
.content-text p + p { margin-top: .75rem; }
.content-text h3 { font-size: 14px; font-weight: 700; margin: 1rem 0 .375rem; }
.content-text ul { padding-left: 1.25rem; }
.content-text li { list-style: disc; margin-bottom: .25rem; }
.content-text a { color: var(--c-primary); }
.content-text a:hover { text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1rem; padding: 1rem; }
.contact-info { display: flex; flex-direction: column; gap: .625rem; }
.contact-card {
  padding: .875rem;
  background: var(--c-sidebar);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.contact-card__label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--c-muted); margin-bottom: 3px; }
.contact-card__value { font-size: 13.5px; font-weight: 600; color: var(--c-text); }
.contact-card__sub { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: .375rem; }
.form-label .req { color: #DC2626; margin-left: 2px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: .5rem .75rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  outline: none;
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--c-primary);
  background: var(--c-surface);
  box-shadow: 0 0 0 3px var(--c-primary-l);
}
.form-input.field--error, .form-textarea.field--error, .form-select.field--error { border-color: #DC2626; }
.form-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-select { cursor: pointer; }
.field-error { font-size: 12px; color: #DC2626; margin-top: .25rem; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.5rem;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: background var(--tr);
}
.btn-submit:hover { background: var(--c-primary-d); }
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }

.legal-content { padding: .875rem 1rem; }
.legal-content .lc-meta { font-size: 12px; color: var(--c-muted); margin-bottom: 1.25rem; padding: .375rem .75rem; background: var(--c-sidebar); border-radius: var(--r); display: inline-block; }
.legal-content h2 { font-size: 15px; font-weight: 700; color: var(--c-text); margin: 1.75rem 0 .5rem; border-left: 3px solid var(--c-primary); padding-left: .625rem; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { font-size: 13px; color: var(--c-text2); line-height: 1.8; margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.375rem; margin-bottom: .75rem; }
.legal-content li { font-size: 13px; color: var(--c-text2); line-height: 1.8; list-style: disc; margin-bottom: .25rem; }
.legal-content .lc-divider { height: 1px; background: var(--c-border); margin: 1.25rem 0; }
.legal-content a { color: var(--c-primary); text-decoration: underline; }

.cta-bar {
  background: linear-gradient(135deg, var(--c-primary-d), var(--c-primary));
  padding: 1.5rem 1rem;
  text-align: center;
}
.cta-bar h3 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: .375rem; }
.cta-bar p { font-size: 13px; color: rgba(255,255,255,.8); margin-bottom: 1rem; }
.cta-bar a {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .625rem 1.5rem;
  background: #fff;
  color: var(--c-primary);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  transition: background var(--tr);
}
.cta-bar a:hover { background: var(--c-primary-l); text-decoration: none; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  background: #1F2937;
  color: #fff;
  padding: .625rem 1.125rem;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 999;
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  white-space: nowrap;
}
.toast--visible { transform: translateX(-50%) translateY(0); opacity: 1; }

.site-footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
  margin-top: 1.5rem;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: 12.5px; color: var(--c-muted); transition: color var(--tr); }
.footer-links a:hover { color: var(--c-primary); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--c-muted); }

@media (max-width: 1024px) {
  .rub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hdr-search { max-width: none; margin: 0; }
  .hdr-nav { display: none; }
  .burger { display: flex; }

  .page-layout { grid-template-columns: 1fr; padding: .75rem .875rem; }
  .sidebar { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .rub-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

@media (max-width: 480px) {
  .hdr-wrap { padding: 0 .875rem; gap: .5rem; }
  .hdr-search__btn span { display: none; }
  .page-layout { padding: .625rem .75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .rub-grid { grid-template-columns: 1fr; }
  .rub-col { border-right: none; border-bottom: 1px solid var(--c-border); }
  .rub-col:last-child { border-bottom: none; }
  .popular-tags { padding: .625rem .875rem .875rem; }
}
