/* ===== Roboto (локальные шрифты) ===== */
/* Fallback с метриками Roboto для снижения CLS при font-display: swap */
@font-face {
  font-family: 'Roboto-fallback';
  src: local('Arial');
  ascent-override: 92.77%;
  descent-override: 24.41%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/Roboto-Light.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Roboto-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Roboto-Medium.ttf) format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Roboto-Bold.ttf) format('truetype');
}

/* ===== Logo (корпоративный цвет #005bff) ===== */
.logo-corporate {
  filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(5000%) hue-rotate(210deg) brightness(100%) contrast(101%);
}

/* ===== Base (Tailwind handles most; these supplement) ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-gutter: stable;
  background-color: white;
}

body {
  background-color: #f5f5f7;
  color: #111111;
  font-family: 'Roboto', 'Roboto-fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* ===== Contacts grid ===== */
.contacts-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contacts-grid {
    gap: 2rem;
    grid-template-columns: 1fr 2fr;
  }
}

/* ===== Projects grid ===== */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

/* Вакансии: после tailwind.css — перекрывает preflight (ul { list-style: none }) */
ul.vacancy-requirements {
  list-style-type: disc;
  list-style-position: outside;
  margin: 0;
  padding-left: 2.5rem;
}

ul.vacancy-requirements li {
  display: list-item;
  margin-bottom: 0;
  padding-left: 0.5rem;
}

ul.vacancy-requirements li:last-child {
  margin-bottom: 0;
}

/* Devise (admin login): фиксированные отступы сверху/снизу — через default.css, чтобы не зависеть от генерации arbitrary-классов Tailwind из ERB */
main.devise-auth-main {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* ===== Print ===== */
@media print {

  header,
  footer,
  .no-print {
    display: none !important;
  }
}
