@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-color: #0b1224; /* Совпадает с цветом сайдбара и шапки */
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  /* общий фон по умолчанию */
  background:
    radial-gradient(circle at 0 0, rgba(0, 113, 227, 0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 31, 63, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f6 60%, #e3e7f0 100%);
}

@media (min-width: 1025px) {
  html {
    font-size: 15px;
  }
}

/* более тёмный, ровный фон только для главной страницы,
   чтобы при прокрутке не было вспышек белого */
body.home-page {
  background:
    linear-gradient(135deg, #3f4f73 0%, #4f5f83 40%, #6a7ba2 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.container {
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

/* LAYOUT */

.layout {
  display: flex;
  min-height: 100vh;
  min-width: 0;
  overflow-x: hidden;
}

.sidebar {
  width: 280px;
  background: radial-gradient(circle at 0 16px, rgba(0, 113, 227, 0.12), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 9, 41, 0.75), rgba(0, 9, 41, 0.98));
  background-color: #0b1224;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  align-self: flex-start;
  height: 100vh;
  color: #f5f5ff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  z-index: 1000;
  overflow: visible;
}

.sidebar-inner {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 901px) {
  .sidebar-inner {
    min-height: 100vh;
    padding: calc(1cm + 24px) 0 20px;
    box-sizing: border-box;
  }
}

.sidebar-inner::before {
  content: none;
  display: none;
  height: 0;
  background: none;
}

.content-area {
  flex: 1;
  margin-left: 280px;
  min-width: 0;
  overflow-x: hidden;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 8px 12px 0;
}

@media (min-width: 901px) {
  .sidebar .logo {
    margin-top: auto;
    padding: 16px 4px 0;
  }

  /* Логотип внизу панели — единый размер на всех страницах (−1,5× к прежнему крупному) */
  .sidebar .logo img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
    transform: translateY(6px) scale(calc(1.18 / 1.5));
    transform-origin: center bottom;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
  }

  .sidebar .logo:hover img {
    transform: translateY(6px) scale(calc(1.22 / 1.5));
  }
}

.logo img {
  width: auto;
  max-width: 100px;
  max-height: 56px;
  height: auto;
  object-fit: contain;
  transform: none;
  transform-origin: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.03);
}

.sidebar-iso {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 12px 4px;
  background: transparent;
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.sidebar-iso img {
  width: 44px;
  height: auto;
  object-fit: contain;
}

.logo-text {
  display: none;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 15px;
}

.side-nav a {
  position: relative;
  padding: 8px 10px;
  border-radius: 999px;
  color: #e5f0ff;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.side-nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* Burger for mobile */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: #1d1d1f;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.menu-open {
  overflow: hidden;
}

.menu-close-btn {
  display: none;
}

/* HERO */

.hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  color: #fff;
  overflow: hidden;
}

.hero:not(.hero--home) {
  background: linear-gradient(135deg, rgba(10, 24, 48, 0.88), rgba(30, 58, 138, 0.55));
}

.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 15, 40, 0.85), rgba(0, 50, 110, 0.4));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-inner--overlay {
  z-index: 2;
}

.hero-text {
  opacity: 0;
  animation: heroFadeIn 0.8s ease-out forwards;
  animation-delay: 0.15s;
}

.hero-text--glass {
  max-width: 560px;
  padding: 24px 28px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 55%),
    rgba(10, 24, 48, 0.72);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.5);
  backdrop-filter: blur(14px);
}

.hero--home .hero-inner {
  align-items: start;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hero-text--bottom {
  max-width: 600px;
  justify-self: start; /* блок прижат к левому краю */
  align-self: end;
  margin-top: auto;
  margin-bottom: 24px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

.hero-text--bottom h2 {
  display: inline-block;
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
  color: #ffffff;
}

.hero-text--bottom h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #ffffff;
}

.hero-text--bottom p {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}
.hero--home .hero-inner .hero-text--glass:first-of-type {
  max-width: 520px;
  padding: 20px 24px;
  margin-top: 1cm;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 24px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Специальная компоновка для страниц "Услуги" и "О нас" */
.page-services .hero,
.page-about .hero {
  height: auto;
  min-height: 0;
  padding: 96px 0 32px;
}

.page-services .hero-inner,
.page-about .hero-inner {
  align-items: flex-start;
  flex-direction: column;
  gap: 32px;
}

.page-services .hero .hero-text,
.page-about .hero .hero-text {
  max-width: 640px;
  text-align: left;
}

.page-services .hero h1,
.page-about .hero h1 {
  font-size: 32px;
}

.page-services .hero .services-cards {
  width: 100%;
}

.page-services .hero .card,
.page-about .hero .card {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  color: #e5f0ff;
}

.page-services .hero .card h3,
.page-about .hero .card h3 {
  color: #ffffff;
}

/* «О нас»: четыре карточки сеткой 2×2 (без класса .cards — у него 3 колонки) */
.page-about .hero .about-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* «Услуги»: один экран без прокрутки (десктоп), по аналогии с каталогом */
.page-services .content-area {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-services main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-services .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  padding: 96px 0 12px;
  box-sizing: border-box;
}

.page-services .hero .container.hero-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-services .hero .hero-text {
  max-width: 640px;
  text-align: left;
  flex: 0 0 auto;
}

.page-services .hero h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 6px;
}

.page-services .hero .hero-text p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 62ch;
  margin-bottom: 8px;
}

.page-services .hero .services-cards {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: stretch;
}

.page-services .hero .card {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  color: #e5f0ff;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 0;
  overflow: hidden;
}

.page-services .hero .card h3 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.3;
  padding-bottom: 6px;
}

.page-services .hero .card p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* До футера под контентом — тянем hero, чтобы фон совпадал с блоком до футера */
.page-about .hero {
  flex: 1 1 auto;
}

/* «О нас»: один экран без прокрутки (десктоп), по аналогии с каталогом */
.page-about .hero {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  padding: 96px 0 12px;
  box-sizing: border-box;
}

.page-about .hero .container.hero-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-about .hero .hero-text {
  max-width: 640px;
  text-align: left;
  flex: 0 0 auto;
}

.page-about .hero h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 6px;
}

.page-about .hero .hero-text p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 62ch;
  margin-bottom: 8px;
}

.page-about .hero .about-cards {
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
}

.page-about .hero .card {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  color: #e5f0ff;
  padding: 10px 12px;
  border-radius: 10px;
  min-height: 0;
  overflow: hidden;
}

.page-about .hero .card h3 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.3;
  padding-bottom: 6px;
}

.page-about .hero .card p {
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-about .hero .about-cards {
    grid-template-columns: 1fr;
  }
}

/* «О нас»: серый фон на всю колонку до низа окна (в т.ч. под растянутым main) */
.page-about .content-area {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 0 0, rgba(0, 113, 227, 0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 31, 63, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f6 60%, #e3e7f0 100%);
}

.page-about main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent;
}

/* Контакты: колонка контента и фон как на «О нас» */
.page-contacts .content-area {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(0, 113, 227, 0.08), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(0, 31, 63, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f8fa 0%, #eef1f6 60%, #e3e7f0 100%);
}

.page-contacts main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}

/* Контакты: один экран на десктопе (как каталог — без прокрутки всей страницы) */
.page-contacts .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  padding: 88px 0 2px;
  box-sizing: border-box;
}

.page-contacts .hero-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.page-contacts .hero .hero-text {
  max-width: 640px;
  flex: 0 0 auto;
  text-align: left;
}

.page-contacts .hero h1 {
  font-size: clamp(20px, 2vw, 24px);
  margin-bottom: 4px;
}

.page-contacts .hero .hero-text p {
  font-size: 12px;
  line-height: 1.28;
  max-width: 72ch;
  margin-bottom: 0;
}

.page-contacts .contacts-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(760px, 100%);
  display: flex;
  flex-direction: column;
}

.page-contacts .contacts-info {
  flex: 1 1 auto;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 10px;
  padding: 8px 10px;
  color: #e5f0ff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  font-size: 12px;
  line-height: 1.25;
  min-height: 0;
  overflow: hidden;
}

.page-contacts .contacts-info p + p {
  margin-top: 2px;
}

.page-contacts .contacts-info strong {
  color: #ffffff;
}

.page-contacts .contacts-info-note {
  margin-top: 2px;
}

.page-contacts .contacts-info-note em {
  color: rgba(229, 240, 255, 0.85);
}

/* Каталог: один экран без прокрутки (десктоп), стиль как у услуг */
.page-catalog .content-area {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-catalog main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.page-catalog .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
  padding: 96px 0 16px;
  box-sizing: border-box;
}

.page-catalog .hero > .container.hero-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.page-catalog .hero .hero-text {
  max-width: 640px;
  text-align: left;
  flex: 0 0 auto;
}

.page-catalog .hero h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 6px;
}

.page-catalog .hero .hero-text p {
  font-size: 13px;
  line-height: 1.5;
  max-width: 52ch;
  margin-bottom: 12px;
}

.page-catalog .hero .catalog-cards {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-content: stretch;
}

.page-catalog .hero .card {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.6);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  color: #e5f0ff;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.page-catalog .hero .card h3 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.3;
  padding-bottom: 8px;
}

.page-catalog .hero .card p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.page-catalog .hero .card:hover {
  transform: translateY(-2px);
}

/* Ссылка-карточка в каталоге: без подчёркивания, как кнопка */
.page-catalog .hero a.card {
  text-decoration: none;
  display: flex;
}

.hero p {
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 24px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(15, 23, 42, 0.42);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow--prev {
  left: 20px;
}

.hero-arrow--next {
  right: 20px;
}

.hero-arrow:hover {
  background: rgba(37, 99, 235, 0.9);
  transform: translateY(-50%) scale(1.05);
}

/* Sections */

.section {
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 0 0, rgba(0, 113, 227, 0.06), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(0, 31, 63, 0.05), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.section > .container,
.section-gray > .container {
  position: relative;
  z-index: 1;
}

.section:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

.section:nth-of-type(even) {
  background-color: rgba(245, 247, 252, 0.9);
  backdrop-filter: blur(4px);
}

.section-gray {
  position: relative;
  padding: 56px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
}

/* Более тёмный фон для секций только на главной */
.home-page .section,
.home-page .section-gray {
  background:
    linear-gradient(135deg, #3f4f73 0%, #4f5f83 40%, #6a7ba2 100%);
}


.section-gray::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(0, 113, 227, 0.04), transparent 40%),
    radial-gradient(circle at 80% 0, rgba(0, 31, 63, 0.04), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(135deg, #0071e3, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0071e3, #38bdf8);
  border-radius: 2px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.storage-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card,
.project-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.8), rgba(56, 189, 248, 0.4), rgba(0, 113, 227, 0.6));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  filter: blur(8px);
}

.card::after,
.project-card::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::after,
.project-card:hover::after {
  opacity: 1;
}

/* Анимация появления при прокрутке */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-gray .card {
  background: #f5f5f7;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 113, 227, 0.3));
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.card h3,
.project-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 8px;
}

.card h3::after,
.project-card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0071e3, #38bdf8);
  transition: width 0.3s ease;
}

.card:hover h3::after,
.project-card:hover h3::after {
  width: 100%;
}

.card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  border-color: #0071e3;
  background-color: #0071e3;
  color: #ffffff;
}

.card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

/* Прозрачные карточки только на главной */
.home-page .card,
.home-page .project-card {
  background: rgba(15, 23, 42, 0.25);
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
  color: #e5f0ff;
}

.home-page .card h3,
.home-page .project-card h3 {
  color: #ffffff;
}

.home-page .card:hover,
.home-page .project-card:hover {
  background: rgba(15, 23, 42, 0.6);
}

/* Contacts */

.contacts-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 32px;
  align-items: flex-start;
}

.home-page .contacts-wrap--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.contacts-info p + p {
  margin-top: 8px;
}

.contacts-form {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #e5e5ea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d2d2d7;
  font: inherit;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid #0071e3;
  outline-offset: 0;
  border-color: transparent;
}

.form-status {
  margin-top: 8px;
  font-size: 14px;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f0f9ff);
  color: #0071e3;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.4);
  background: linear-gradient(135deg, #ffffff, #e0f2fe);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Прозрачные кнопки только на главной */
.home-page .btn-primary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 transparent;
}

.home-page .btn-primary:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
}

/* Footer */

.footer {
  background: #101010;
  color: #9f9fa3;
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes topBarFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product page styles */
.product-image {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.specs-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.specs-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #0071e3;
  font-weight: 600;
}

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

.specs-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  line-height: 1.6;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* Catalog images */
.catalog-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.1), rgba(0, 31, 63, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.catalog-thumb {
  display: block;
  width: auto;
  height: auto;
  max-width: 140px;
  max-height: 120px;
  object-fit: contain;
  margin: 0 0 12px 0;
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  z-index: 50;
  padding: 16px 28px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 58, 138, 0.65));
  color: #e5f0ff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  border-bottom-left-radius: 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  width: 100%;
}

.top-bar-brand {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(12px, 2.24vw, 23px);
  letter-spacing: 0.16em;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1.1;
  transform: scaleX(1.2);
  transform-origin: left center;
  /* цвета как у фирменного градиента на сайте / в духе логотипа */
  background: linear-gradient(
    120deg,
    #0071e3 0%,
    #38bdf8 28%,
    #e0f2fe 48%,
    #ffffff 52%,
    #7dd3fc 72%,
    #0071e3 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7dd3fc;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.top-bar-brand:hover {
  filter: brightness(1.15) saturate(1.05);
  transform: scaleX(1.2);
  transform-origin: left center;
}

.top-bar-contact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.top-bar-phones {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
}

.top-bar-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.top-bar-email::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path d='M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4Zm2-.5a.5.5 0 0 0-.5.5v.217l6.5 3.9 6.5-3.9V4a.5.5 0 0 0-.5-.5H2Zm13 2.383-6.27 3.764a1 1 0 0 1-1.46 0L1 5.883V12a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5V5.883Z'/></svg>");
}

.top-bar-phone-label {
  opacity: 0.8;
}

.top-bar-phone {
  font-weight: 600;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.2;
}

.top-bar-phone:hover {
  transform: translateY(-1px);
  color: #e2efff;
}

.top-bar-phone::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path d='M3.654 1.328a.678.678 0 0 1 .738-.09l2.5 1.25a.678.678 0 0 1 .34.84l-.5 1.5a.678.678 0 0 1-.493.44l-1.012.203a10.97 10.97 0 0 0 5.168 5.168l.203-1.012a.678.678 0 0 1 .44-.493l1.5-.5a.678.678 0 0 1 .84.34l1.25 2.5a.678.678 0 0 1-.09.738l-.86 1.146a1.678 1.678 0 0 1-1.6.58C8.31 13.64 2.36 7.69 1.34 4.01a1.678 1.678 0 0 1 .58-1.6l1.146-.86Z'/></svg>");
  opacity: 0.95;
}

.catalog-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover .catalog-image::before {
  opacity: 1;
}

.catalog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .catalog-image img {
  transform: scale(1.08);
}

/* Rotators gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(100, 116, 139, 0.25);
  background: #ffffff;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.gallery-item:hover img {
  filter: saturate(1.1);
}
@media (max-width: 1024px) {
  .layout {
    display: block;
    width: 100%;
  }

  .content-area {
    margin-left: 0;
  }

  /* Каталог на узком экране — обычная прокрутка, одна колонка */
  .page-catalog .content-area {
    min-height: 0;
    display: block;
  }

  .page-catalog main {
    flex: none;
    display: block;
    min-height: 0;
  }

  .page-catalog .hero {
    flex: none;
    min-height: 0;
    padding: 32px 0 24px;
  }

  .page-catalog .hero > .container.hero-inner {
    flex: none;
    min-height: 0;
    gap: 20px;
  }

  .page-catalog .hero .catalog-cards {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    flex: none;
    min-height: 0;
  }

  .page-catalog .hero .card {
    padding: 12px 14px;
    min-height: auto;
    overflow: visible;
  }

  .page-catalog .hero .card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-bottom: 8px;
  }

  .page-catalog .hero .card p {
    font-size: 14px;
    line-height: 1.5;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Услуги на узком экране — обычная прокрутка */
  .page-services .content-area {
    min-height: 0;
    display: block;
  }

  .page-services main {
    flex: none;
    display: block;
    min-height: 0;
  }

  .page-services .hero {
    flex: none;
    min-height: 0;
    padding: 32px 0 24px;
  }

  .page-services .hero .container.hero-inner {
    flex: none;
    min-height: 0;
    gap: 20px;
  }

  .page-services .hero .services-cards {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    flex: none;
    min-height: 0;
    gap: 16px;
  }

  .page-services .hero .card {
    padding: 12px 14px;
    min-height: auto;
    overflow: visible;
  }

  .page-services .hero .card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-bottom: 8px;
  }

  .page-services .hero .card p {
    font-size: 14px;
    line-height: 1.5;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* О нас на узком экране — обычная прокрутка */
  .page-about .content-area {
    min-height: 0;
    display: block;
  }

  .page-about main {
    flex: none;
    display: block;
    min-height: 0;
  }

  .page-about .hero {
    flex: none;
    min-height: 0;
    padding: 32px 0 24px;
  }

  .page-about .hero .container.hero-inner {
    flex: none;
    min-height: 0;
    gap: 20px;
  }

  .page-about .hero .about-cards {
    flex: none;
    min-height: 0;
    gap: 16px;
  }

  .page-about .hero .card {
    padding: 12px 14px;
    min-height: auto;
    overflow: visible;
  }

  .page-about .hero .card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.3;
    padding-bottom: 8px;
  }

  .page-about .hero .card p {
    font-size: 14px;
    line-height: 1.5;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  /* Контакты на узком экране — обычная прокрутка */
  .page-contacts .content-area {
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
  }

  .page-contacts main {
    flex: none;
    display: block;
    min-height: 0;
    overflow: visible;
  }

  .page-contacts .hero {
    flex: none;
    min-height: 0;
    padding: 32px 0 24px;
  }

  .page-contacts .hero-inner {
    flex: none;
    min-height: 0;
    gap: 20px;
  }

  .page-contacts .contacts-wrap {
    flex: none;
    min-height: 0;
    max-width: none;
  }

  .page-contacts .contacts-info {
    overflow: visible;
    min-height: auto;
    font-size: 16px;
    line-height: 1.6;
    padding: 18px 20px;
  }

  .page-contacts .hero h1 {
    font-size: 26px;
  }

  .page-contacts .hero .hero-text p {
    font-size: 17px;
    line-height: 1.55;
  }

  .top-bar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    background: #0b1224;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0;
    text-align: left;
    flex-wrap: nowrap;
  }

  .top-bar-brand {
    align-self: flex-start;
    font-size: clamp(10px, 2.9vw, 15px);
    letter-spacing: 0.14em;
    line-height: 1.15;
    transform: scaleX(1.14);
    transform-origin: left center;
  }

  .top-bar-contact {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    gap: 8px;
  }

  .top-bar-phones {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .top-bar-phone, .top-bar-email {
    font-size: 14px;
    line-height: 1.4;
    padding: 4px 0;
    display: block;
    white-space: normal;
    text-align: center;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1001;
    background: #0b1224;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }

  .sidebar-inner {
    padding: 10px 16px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    min-height: 0;
    gap: 12px;
    position: relative;
    padding-right: 72px;
  }

  .sidebar-inner .logo {
    order: -1;
    margin-top: 0;
    padding: 0;
    flex: 0 0 auto;
  }

  .sidebar-inner .burger {
    margin-left: 0;
    margin-right: 0;
    flex: 0 0 auto;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .sidebar-iso {
    display: none;
  }

  .logo {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
  }

  .sidebar .logo img {
    width: auto;
    max-width: 120px;
    max-height: 48px;
    transform: scale(calc(2 / 1.5));
    transform-origin: center;
  }

  .sidebar .logo:hover img {
    transform: scale(calc(2.06 / 1.5));
  }

  .hero--home .hero-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0b1224;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 40px 20px;
    box-sizing: border-box;
  }

  .side-nav.nav-open {
    transform: translateY(0);
  }

  .side-nav a {
    font-size: 20px;
    color: #ffffff;
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .menu-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 20px;
    top: 76px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
  }

  .menu-close-btn:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .burger {
    display: flex;
    z-index: 1002;
    margin-left: 0; /* позиционируется через .sidebar-inner .burger */
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
  }

  .burger span {
    background: #ffffff;
    width: 18px;
  }

  .logo {
    z-index: 1002;
  }

  .hero {
    height: auto;
    min-height: 0;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-inner {
    align-items: flex-start;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    opacity: 0.95;
  }

  .hero-text--glass:first-of-type {
    padding: 24px 20px !important;
  }

  .hero-text--bottom {
    position: relative !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }

  .hero-text--bottom h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: block;
  }

  .hero-text--bottom p {
    margin-bottom: 16px;
  }

  .section {
    padding: 48px 20px;
  }

  .cards, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .storage-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-form {
    margin-bottom: 24px;
  }

  .card, .project-card {
    padding: 24px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-image {
    height: 200px;
  }

  .product-image, .specs-card {
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding-bottom: 20px;
  }

  .hero-text--bottom p {
    font-size: 13px;
  }
}
