:root {
  --primary-color: #2563EB;
  --primary-dark: #1E40AF;
  --primary-light: #60A5FA;
  --secondary-color: #1E293B;
  --accent-color: #F59E0B;
  --text-color: #334155;
  --text-light: #64748B;
  --border-color: #E2E8F0;
  --bg-light: #F8FAFC;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Montserrat', 'Roboto', sans-serif;
  --font-secondary: 'Open Sans', Arial, sans-serif;
  --header-mobile-height: 88px;
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

html {
  overflow-x: hidden;
  width: 100%;
  background-color: var(--bg-light);
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--bg-light);
  padding-top: 0;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  animation: fadeInPage 0.4s ease-out;
}

@media (min-width: 1440px) {
  body {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

@keyframes fadeInPage {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@view-transition {
  navigation: auto;
}

h1, h2, h3, h4, h5, h6, .nav-link, .footer-nav h3, .section-title, .section-header, .company-name {
  font-family: var(--font-primary);
  letter-spacing: -0.02em;
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  transition: opacity 0.3s ease-in-out;
}

section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

section:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.categories-section,
.advantages-section,
.company-section {
  padding-top: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 25px;
  width: 100%;
  box-sizing: border-box;
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.telegram-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: #0088cc;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.telegram-float:hover {
    background-color: #0077b5;
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
}

/* Перемещаем кнопку "Наверх" в левый нижний угол */
#scrollToTopBtn {
    right: auto !important;
    left: 20px !important;
    z-index: 9990;
}