/* DomRabota — сайт. Цвета взяты из Flutter-приложения (Material 3, seed #1F6F66):
   фон, карточки, чипы и кнопки — те же оттенки, что на экранах приложения. */

:root {
  color-scheme: light dark;
  --bg: #f5fbf8;
  --surface-low: #eff5f2;
  --surface: #eaefed;
  --surface-high: #e4eae7;
  --text: #171d1c;
  --muted: #414947;
  --border: #c0c9c6;
  --border-soft: #dce4e1;
  --primary: #2c6861;
  --on-primary: #ffffff;
  --tonal: #d1e7e3;
  --on-tonal: #0d201d;
  --avatar: #b1f0e5;
  --brand-blue: #016dfd;
  --focus: #016dfd;
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513;
    --surface-low: #171d1b;
    --surface: #1b2120;
    --surface-high: #252b2a;
    --text: #dee4e1;
    --muted: #bfc9c5;
    --border: #3f4946;
    --border-soft: #2a3230;
    --primary: #94d3c8;
    --on-primary: #00382f;
    --tonal: #334b47;
    --on-tonal: #cfe8e2;
    --avatar: #1f504a;
    --focus: #7fb2ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 4.5vw, 2.125rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li + li {
  margin-top: 0.35em;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* --- Шапка --- */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.brand-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.top-nav {
  display: none;
  gap: 4px;
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.top-nav a:hover {
  background: var(--surface);
}

@media (min-width: 720px) {
  .top-nav {
    display: flex;
  }
}

/* --- Кнопки и метки --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-tonal {
  background: var(--tonal);
  color: var(--on-tonal);
}

.btn:hover {
  filter: brightness(1.06);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--tonal);
  color: var(--on-tonal);
  font-size: 0.9rem;
  font-weight: 600;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* --- Первый экран --- */

.hero {
  padding: 40px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38em;
}

.hero h1 {
  margin: 18px 0 0.2em;
}

.hero-sub {
  font-size: clamp(1.3rem, 4.2vw, 1.75rem);
  font-weight: 650;
  line-height: 1.3;
  margin-bottom: 0.8em;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }
}

/* Схема экрана приложения: те же элементы, что в ленте, но без выдуманных вакансий. */
.mock {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 32px;
  background: var(--surface-low);
  border: 1px solid var(--border-soft);
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-high);
  color: var(--muted);
  font-size: 0.95rem;
}

.mock-search svg {
  flex: none;
}

.mock-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

.mock-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.mock-card + .mock-card {
  margin-top: 12px;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.bar {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-high);
}

.bar-title {
  width: 70%;
  height: 16px;
  background: var(--border);
}

.bar-title-alt {
  width: 52%;
}

.bar-company {
  width: 55%;
}

.bar-short {
  width: 35%;
  margin-top: 14px;
}

.mock-company {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--avatar);
  flex: none;
}

.mock-tags {
  display: flex;
  gap: 8px;
}

.tag {
  width: 72px;
  height: 24px;
  border-radius: 8px;
  background: var(--surface);
}

.mock-card svg {
  color: var(--muted);
  flex: none;
}

/* --- Разделы --- */

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--surface-low);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-intro {
  max-width: 44em;
  color: var(--muted);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
}

.section-alt .card {
  background: var(--bg);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card h3 {
  margin-top: 14px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tonal);
  color: var(--on-tonal);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin: 28px 0 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--tonal);
  color: var(--on-tonal);
}

.doc .note {
  margin: 0 0 24px;
}

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

.note a {
  color: inherit;
  font-weight: 600;
}

.app-box {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: var(--tonal);
  color: var(--on-tonal);
}

.app-box img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app-box h2 {
  margin-bottom: 0.3em;
}

.app-box p {
  margin: 0;
}

@media (min-width: 720px) {
  .app-box {
    grid-template-columns: auto 1fr;
    padding: 36px 40px;
  }
}

/* --- Документы --- */

.doc {
  max-width: 812px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(1.85rem, 6vw, 2.5rem);
}

.doc h2 {
  font-size: clamp(1.3rem, 4vw, 1.55rem);
  margin-top: 2em;
  scroll-margin-top: 16px;
}

.doc h3 {
  margin-top: 1.5em;
}

.doc-meta {
  display: grid;
  gap: 2px 16px;
  margin: 0 0 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-low);
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .doc-meta {
    grid-template-columns: auto 1fr;
  }
}

.doc-meta dt {
  color: var(--muted);
}

.doc-meta dd {
  margin: 0 0 6px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .doc-meta dd {
    margin: 0;
  }
}

.toc {
  margin: 0 0 8px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-soft);
}

.toc h2 {
  margin: 0 0 0.5em;
  font-size: 1.05rem;
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li + li {
  margin-top: 0.25em;
}

.path {
  display: inline;
  font-weight: 650;
}

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

/* --- Подвал --- */

.site-footer {
  padding: 36px 0 44px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: var(--text);
}

.footer-nav a[aria-current="page"] {
  color: var(--primary);
  font-weight: 650;
}

.copyright {
  margin: 0;
  color: var(--muted);
}

/* --- 404 --- */

.not-found {
  padding-top: 72px;
  padding-bottom: 96px;
  text-align: center;
}

.not-found .code {
  font-size: clamp(3rem, 14vw, 5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}

.not-found .actions {
  justify-content: center;
}
