@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  overflow-x: hidden;
  background-color: var(--bg-main, #ffffff);
  color: var(--text-main, #111827);
}

/* Единая полоска-шапка на всех внутренних страницах */
.page-hero,
.about-page-hero,
.amenities-title,
.contacts-hero,
.cases-hero,
.catalog-title {
  padding: 48px 0 34px;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 194, 210, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.page-hero__content,
.about-page-hero .amenities-text,
.amenities-title .amenities-text,
.contacts-hero__text,
.cases-hero__text,
.catalog-title__text {
  max-width: 760px;
  margin: 0 auto;
}

.page-hero__title,
.about-page-hero .amenities-text__h1,
.amenities-title h1,
.amenities-title .amenities-text__h1,
.contacts-hero__title,
.cases-hero__title,
.catalog-title__h1 {
  color: #0a2463;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 10px;
  padding-top: 0;
}

.page-hero__subtitle,
.about-page-hero .amenities-text__p,
.amenities-title p,
.amenities-title .amenities-text__p,
.contacts-hero__subtitle,
.cases-hero__subtitle,
.catalog-title__p {
  color: #475569;
  font-size: 18px;
  line-height: 1.5;
  padding-bottom: 0;
  opacity: 1;
}

/* Единые заголовки секций */
.section-head,
.about-section-head,
.service-work-types__head {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2,
.about-section-head h2,
.service-work-types__head h2 {
  color: #0a2463;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-head p,
.about-section-head p,
.service-work-types__head p {
  color: #4a5565;
  font-size: 16px;
  line-height: 1.65;
}

/* Плавное появление блоков при скролле */
.animate-in {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--animate-delay, 0s);
  will-change: opacity, transform;
}

.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.smooth-hover {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease;
}

.smooth-hover:hover {
  transform: translateY(-3px);
}

.catalog-card.smooth-hover:hover,
.contacts-card.smooth-hover:hover,
.case-card.smooth-hover:hover {
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__content,
  .about-page-hero .amenities-text,
  .amenities-title .amenities-text,
  .contacts-hero__text,
  .cases-hero__text,
  .catalog-title__text,
  .animate-in {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .page-hero,
  .about-page-hero,
  .amenities-title,
  .contacts-hero,
  .cases-hero,
  .catalog-title {
    padding: 36px 0 28px;
  }

  .page-hero__title,
  .about-page-hero .amenities-text__h1,
  .amenities-title h1,
  .amenities-title .amenities-text__h1,
  .contacts-hero__title,
  .cases-hero__title,
  .catalog-title__h1 {
    font-size: 32px;
  }

  .section-head h2,
  .about-section-head h2,
  .service-work-types__head h2 {
    font-size: 28px;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

::root {
    --font-family: 'Arial', system-ui, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
}

/* Унифицированный hover-эффект для карточек на всех страницах */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Иконки в карточках: серые по умолчанию, цветные при наведении на блок (как на главной) */
.card-hover [class*="icon"] img {
  filter: grayscale(100%) opacity(0.8);
  transition: filter 0.3s ease;
}
.card-hover:hover [class*="icon"] img {
  filter: grayscale(0%) opacity(1);
}

footer {
  background: #0a2463;
  border-top: 1px solid #364153;
  padding-top: 30px;
  padding-bottom: 5%;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 41px;
}

.logobox {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.logobox .footer-logo__image {
  display: block;
  width: 150px;
  height: auto;
  border-radius: 6px;
  background: #fff;
}

.fotter-top__item {
  width: 200px;
}

.fotter-top__item h3 {
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  color: #ffffff;
  margin-bottom: 16px;
}

.fotter-top__item p,
.fotter-top__item a,
.contact-box p {
  font-weight: 400;
  font-size: 13px;
  line-height: 150%;
  color: #d1d5dc;
}

.fotter-top__item a {
  display: block;
  margin-bottom: 8px;
  text-decoration: none;
}

.contact-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.contact-box img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.div-decore {
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin-top: 30px;
  margin-bottom: 24px;
}

.footer-bottom h2 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.partners-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 24px;
}

.partners-box img {
  max-height: 34px;
  max-width: 120px;
  object-fit: contain;
}

.partners-box img.partner-logo--datamobile {
  max-height: 40px;
  max-width: 96px;
  background: transparent;
}

.partners-box img.partner-logo--konica-minolta {
  height: auto !important;
  max-height: 72px;
  max-width: 130px;
  min-width: 64px;
  background: transparent;
}

.footer-bottom p {
  color: #d1d5dc;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-top {
    flex-wrap: wrap;
  }

  .fotter-top__item {
    width: calc(50% - 12px);
  }
}

@media (max-width: 600px) {
  .logo__image {
    width: 120px;
  }

  .logobox .footer-logo__image {
    width: 130px;
  }

  .fotter-top__item {
    width: 100%;
  }
}

