/* ===== CSS Variables ===== */
:root {
  --primary-color: #1e3a5f;
  --primary-dark: #0f2442;
  --primary-light: #2d4a6f;
  --accent-color: #d4af37;
  --accent-hover: #b8941f;
  --accent-secondary: #4a90a4;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --bg-white: #ffffff;
  --bg-light: #f5f7fa;
  --bg-dark: #1e3a5f;
  --border-color: #d1d9e0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(30, 58, 95, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(30, 58, 95, 0.15);
  --shadow-xl: 0 20px 25px -5px rgba(30, 58, 95, 0.2);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Ссылки внутри статей блога и списка блога — цветом и с подчёркиванием */
.blog-article a,
.blog-list a {
  color: var(--accent-color);
  text-decoration: underline;
  font-weight: 500;
}

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 12px; /* немного сдвигаем контент (в т.ч. логотип) левее */
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: white;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ===== Section Styles ===== */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 200px; /* существенно увеличиваем расстояние между логотипом и меню */
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.logo-image {
  width: 110px;
  height: 110px;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logo-text small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto; /* отталкиваем меню вправо, создавая визуальный зазор от логотипа */
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 8px 0;
  transition: var(--transition);
  white-space: nowrap;         /* все пункты в одну строку */
  text-transform: capitalize;  /* С заглавной буквы, единый стиль */
}

.nav__link--legal {
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--accent-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

/* Выпадающее меню «Услуги» */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: 8px 0;
  margin: 0;
  margin-top: 4px;
  list-style: none;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown .nav__link {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  white-space: nowrap;
  border: none;
}

.nav__dropdown .nav__link::after {
  display: none;
}

.nav__dropdown .nav__link:hover,
.nav__dropdown .nav__link.active-link {
  background: rgba(255, 107, 0, 0.08);
  color: var(--accent-color);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

.nav__cta {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 220px 0 80px;
  overflow: visible;
  background: var(--bg-light);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(26, 26, 26, 0.05) 100%);
}

.hero__container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-size: clamp(24px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 32px;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}

.hero__description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hero__intro {
  text-indent: 0;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== About Section ===== */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.about-card__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.fact-card {
  text-align: center;
  padding: 24px;
  background: var(--bg-light);
  border-radius: 8px;
}

.fact-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.fact-label {
  font-size: 14px;
  color: var(--text-light);
}

.fact-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--accent-color);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 8px;
}

.membership-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent-color);
  text-decoration: underline;
  transition: var(--transition);
}

.membership-link:hover {
  color: var(--accent-hover);
}

.membership-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.membership-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.membership-preview {
  position: relative;
  margin-top: 12px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  transition: var(--transition);
  max-width: 400px;
}

.membership-preview:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-md);
}

.membership-preview-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.membership-image-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(26, 26, 26, 0.05) 100%);
}

.membership-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.membership-image-placeholder p {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin: 0;
}

.membership-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.membership-preview:hover .membership-overlay {
  opacity: 1;
}

.membership-zoom {
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--accent-color);
  border-radius: 4px;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-2xl);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}

.modal-close:hover {
  background: var(--accent-color);
  color: white;
  transform: rotate(90deg);
}

.modal-body {
  padding: 20px;
  overflow: auto;
}

.membership-pdf-viewer {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border-radius: 8px;
}

.modal-content-image {
  max-width: 900px;
}

.modal-body-image {
  padding: 20px;
  overflow: hidden;
}

.image-zoom-container {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  overflow: auto;
  background: #f5f5f5;
  border-radius: 8px;
  text-align: left;
  cursor: grab;
}

.image-zoom-container:active {
  cursor: grabbing;
}

.membership-image-zoom {
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  user-select: none;
  margin: 0;
}

.zoom-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.zoom-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.zoom-btn:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: scale(1.1);
}

.zoom-btn:active {
  transform: scale(0.95);
}

.modal-actions {
  margin-top: 20px;
  text-align: center;
}

/* ===== Global Request / Callback Modal ===== */
.floating-request-btn {
  position: fixed;
  right: 30px;
  bottom: 100px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent-color);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}

.floating-request-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.modal-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  text-align: center;
}

.modal-tab.active {
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

.modal-body.modal-body-request {
  padding: 20px;
}

.modal-form {
  display: none;
}

.modal-form.modal-form--active {
  display: block;
}

.about__subtitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.about-description {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-text span {
  font-size: 14px;
  color: var(--text-light);
}

.about__gallery {
  margin: 40px 0;
}

.about__gallery .gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 20px; /* ≈ 5 мм на типичном мониторе */
}

.gallery-item {
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-placeholder {
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

/* ===== Production Section ===== */
.production__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.production__overview h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.production-list {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.production-list li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
}

.production-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 24px;
  line-height: 1;
}

.production__overview p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
}

.scheme-placeholder {
  width: 100%;
  height: 400px;
  background: var(--bg-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.equipment-gallery {
  width: 100%;
}

.equipment-gallery h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.equipment-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow: visible;
}

.equipment-gallery__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-light);
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.equipment-gallery__item:hover {
  transform: scale(2.2);
  z-index: 2;
}

.equipment-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Quality Section ===== */
.quality__content {
  max-width: 900px;
  margin: 0 auto;
}

.quality__text h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.quality__text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.quality-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.quality-list li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
}

.quality-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* ===== Services Section ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  padding: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-color);
}

.service-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  display: inline-block;
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.service-description {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
  font-size: 14px;
}

.service-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 24px;
  line-height: 1;
}

/* ===== Technologies Section ===== */
.technologies__content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.equipment__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.equipment-item {
  display: flex;
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--bg-light);
  border-radius: 8px;
}

.equipment-number {
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.equipment-info h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.equipment-info p {
  color: var(--text-light);
  line-height: 1.6;
}

.technologies__additional h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-dark);
}

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

.additional-item {
  padding: 24px;
  background: var(--bg-light);
  border-radius: 8px;
}

.additional-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.additional-item p {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Vacancies Section ===== */
.vacancies {
  background: var(--bg-light);
}

.vacancies__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.vacancy-card {
  background: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.vacancy-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vacancy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.vacancy-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
}

.vacancy-badge {
  padding: 4px 12px;
  background: var(--accent-color);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.vacancy-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.vacancy-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vacancy-detail {
  padding: 6px 12px;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 13px;
  color: var(--text-light);
}

.vacancies__cta {
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.vacancies-note {
  color: var(--text-light);
  line-height: 1.8;
}

.vacancies-note a {
  color: var(--accent-color);
  text-decoration: underline;
}

.vacancies-note a:hover {
  color: var(--accent-hover);
}

/* ===== Portfolio Section ===== */
.portfolio__filters {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.portfolio-image {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-badge {
  padding: 8px 16px;
  background: var(--accent-color);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.portfolio-content {
  padding: 24px;
}

.portfolio-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.portfolio-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Clients Section ===== */
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Request Section ===== */
.request__content {
  max-width: 800px;
  margin: 0 auto;
}

.request-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-group input[type="file"] {
  padding: 8px;
  background: white;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.form-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 16px;
}

.form-note a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ===== FAQ Section ===== */
.faq__content {
  max-width: 900px;
  margin: 0 auto;
}

.faq-group-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-color);
}

.faq-group-title:first-child {
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3,
.faq-question h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.faq-toggle {
  font-size: 24px;
  font-weight: 300;
  color: var(--accent-color);
  transition: var(--transition);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1200px;
}

.faq-answer p {
  padding-top: 16px;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-answer ul {
  padding-top: 8px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Contacts Section ===== */
.contacts__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

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

.contact-card {
  padding: 24px;
  background: var(--bg-light);
  border-radius: 8px;
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-color);
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-text {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.contacts__map {
  height: 400px;
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.map-placeholder {
  color: var(--text-light);
}

.contacts__form {
  max-width: 800px;
  margin: 0 auto 60px;
}

.contacts__form h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.contact-form {
  background: var(--bg-light);
  padding: 32px;
  border-radius: 8px;
}

.contacts__legal {
  text-align: center;
  padding: 32px;
  background: var(--bg-light);
  border-radius: 8px;
}

.contacts__legal h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.contacts__legal p {
  color: var(--text-light);
  margin-bottom: 8px;
}

.contacts__legal a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: var(--transition);
}

.contacts__legal a:hover {
  color: var(--accent-hover);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo .logo-text {
  color: white;
}

.footer-logo .logo-text small {
  color: rgba(255, 255, 255, 0.7);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer__advantages {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__advantages .advantage-item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 14px;
  color: white;
}

.footer__links h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--accent-color);
}

.footer__contact h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: white;
}

.footer__contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer__social {
  margin-top: 16px;
}

.social-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-color);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-bottom: 8px;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.footer__bottom a:hover {
  color: var(--accent-color);
}

/* ===== Scroll Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts__info {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  .equipment-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95vw;
    max-height: 95vh;
  }

  .membership-pdf-viewer {
    height: 60vh;
    min-height: 400px;
  }

  .modal-close {
    top: -35px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

  .equipment-gallery__grid {
    grid-template-columns: 1fr;
  }
  .nav__menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-align: center;
  }

  .nav__menu.active {
    left: 0;
  }

  .nav__item--dropdown {
    flex-direction: column;
    align-items: center;
  }

  .nav__menu .nav__link {
    width: 100%;
    text-align: center;
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: auto;
    margin-top: 0;
    padding-left: 16px;
    padding-top: 4px;
    padding-bottom: 8px;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
  }

  .nav__menu.active .nav__dropdown {
    display: block;
  }

  .nav__dropdown .nav__link {
    padding: 8px 12px;
    font-size: 13px;
    white-space: normal;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .nav__cta {
    display: none;
  }

  .about__content,
  .production__content,
  .contacts__content {
    grid-template-columns: 1fr;
  }

  .about__facts {
    grid-template-columns: 1fr;
  }

  .about__gallery {
    grid-template-columns: 1fr;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .workflow {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .additional-grid {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Общие улучшения */
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 120px 0 40px !important;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .section-description {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero секция - оптимизация для полного отображения на экране */
  .hero {
    padding: 120px 0 20px !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  .hero__bg {
    overflow: hidden !important;
  }

  .hero__container {
    padding: 0 16px !important;
    width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .hero__content {
    width: 100% !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1 !important;
  }

  .hero__title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
    letter-spacing: 0 !important;
    font-weight: 700 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .hero__description {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
    word-wrap: break-word !important;
    color: var(--text-dark) !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  /* Блок с УТП текстом */
  .hero__description[style*="background"] {
    padding: 12px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    color: var(--text-dark) !important;
  }

  .hero__description[style*="background"] p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    word-wrap: break-word !important;
    color: var(--text-dark) !important;
  }

  .hero__description[style*="background"] strong {
    font-size: 13px !important;
    display: block !important;
    margin-bottom: 6px !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
  }

  /* Блоки с фактами - компактные */
  .hero__facts {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero__facts > div {
    padding: 12px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero__facts > div > div:first-child {
    font-size: 20px !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
    word-wrap: break-word !important;
  }

  .hero__facts > div > div:last-child {
    font-size: 12px !important;
    line-height: 1.4 !important;
    word-wrap: break-word !important;
    color: var(--text-dark) !important;
  }

  .hero__actions {
    width: 100% !important;
    margin-top: 16px !important;
  }

  .hero__actions .btn {
    width: 100% !important;
    font-size: 13px !important;
    padding: 12px 14px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    word-wrap: break-word !important;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    font-size: 14px;
    padding: 14px 20px;
  }

  /* Кнопки */
  .btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .btn-large {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* Header */
  .nav {
    padding: 12px 0;
  }

  .logo-image {
    width: 80px;
    height: 80px;
  }

  .logo-text {
    font-size: 14px;
    line-height: 1.2;
  }

  /* О компании */
  .about__content {
    gap: 32px;
  }

  .about__facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fact-card {
    padding: 20px;
  }

  .fact-number {
    font-size: 28px;
  }

  .fact-label {
    font-size: 13px;
  }

  .about-description {
    font-size: 15px;
    line-height: 1.7;
  }

  .about__subtitle {
    font-size: 22px !important;
  }

  /* Услуги */
  .service-card {
    padding: 24px 20px;
  }

  .service-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .service-description {
    font-size: 14px;
    line-height: 1.6;
  }

  .service-features {
    font-size: 14px;
  }

  /* Формы */
  .request-form,
  .contact-form {
    padding: 20px 16px;
  }

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

  .form-group label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 12px 16px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  /* Контакты */
  .contacts__info {
    gap: 24px;
  }

  .contact-item {
    padding: 20px;
  }

  .contact-item h3 {
    font-size: 18px;
  }

  .contact-item p {
    font-size: 14px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 24px;
  }

  .footer__content {
    gap: 32px;
  }

  .footer-description {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Workflow */
  .workflow-step {
    padding: 20px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .step-content h3 {
    font-size: 18px;
  }

  .step-content p {
    font-size: 14px;
  }

  /* FAQ */
  .faq-question h3 {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }
}

/* Переопределение инлайн-стилей для планшетов и мобильных */
@media (max-width: 768px) {
  /* Отступ для всех секций от шапки */
  .section {
    padding-top: 120px !important;
  }

  .hero {
    padding: 110px 0 20px !important;
    overflow: visible !important;
  }

  .hero__container {
    overflow: visible !important;
  }

  .hero__content {
    overflow: visible !important;
  }

  .hero__container {
    padding: 0 16px !important;
  }

  .hero__title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin-bottom: 14px !important;
  }

  .hero__description[style*="font-size: 18px"] {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .hero__description[style*="font-size: 16px"] {
    font-size: 13px !important;
    padding: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
  }

  .hero__description[style*="background"] {
    padding: 12px !important;
    margin-bottom: 16px !important;
  }

  .hero__description[style*="background"] p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .hero__facts[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    max-width: 100% !important;
    margin-bottom: 16px !important;
  }

  .hero__facts > div[style*="padding: 20px"] {
    padding: 12px 10px !important;
  }

  .hero__facts > div > div[style*="font-size: 32px"] {
    font-size: 20px !important;
    margin-bottom: 4px !important;
  }

  .hero__facts > div > div[style*="font-size: 14px"] {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .about__subtitle[style*="font-size: 28px"] {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }

  .hero__actions {
    margin-top: 16px !important;
  }

  .hero__actions .btn {
    font-size: 13px !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 12px 14px !important;
    line-height: 1.3 !important;
    width: 100% !important;
  }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 360px) {
  .hero__title {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .section-title {
    font-size: 24px;
  }

  .logo-image {
    width: 60px;
    height: 60px;
  }

  .logo-text {
    font-size: 12px;
  }

  .hero__description {
    font-size: 14px !important;
  }

  .hero__description[style*="background"] {
    padding: 14px !important;
    font-size: 13px !important;
  }

  .hero__description[style*="background"] p {
    font-size: 13px !important;
  }

  .hero__facts > div {
    padding: 14px 10px !important;
  }

  .hero__facts > div > div:first-child {
    font-size: 22px !important;
  }

  .hero__facts > div > div:last-child {
    font-size: 13px !important;
  }
}

/* ===== Carousel Styles ===== */
.carousel-container {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  min-height: 300px;
  overflow: visible;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0;
  padding: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: var(--text-dark);
}

.carousel-btn:hover {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
  left: 16px;
}

.carousel-btn-next {
  right: 16px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: var(--accent-color);
  width: 24px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  .carousel-dots {
    padding: 16px;
  }
}