* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.375rem;
}

body {
  font-family: Montserrat, sans-serif;
  line-height: 1.6;
  color: var(--color-dark-gray);
  background-color: #fff;
}

:root {
  --color-black: #000000;
  --color-dark-gray: #333;
  --color-gray: #777777;
  --color-accent: #f5a623;
  --color-burnt-orange: #d35400;
  --color-dark-olive-green: #535304;
  --color-blue: #007bc4;
  --color-light-bg: #f9f9f9;
  --color-white: #ffffff;
  --font-main: "Montserrat", sans-serif;
}

/* ===== ОБЩИЕ ===== */
.container {
  background-color: var(--color-light-bg);
  border-radius: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 1.25rem;
  width: 100%;
}

h1.cyber-title-main {
  word-wrap: break-word;
  width: 100%;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-white);
  text-align: center;
  padding-left: 0.93rem;
  padding-right: 1.56rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

h2.section-title {
  text-align: center;
  font-size: clamp(1.625rem, 3.2vw, 2rem);
  color: var(--color-black);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  margin-left: auto;
  margin-right: auto;
  padding-top: 2.5rem;
  position: relative;
  width: 100%;
  display: block;
}

h3.company-section {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  margin-bottom: 0.9375rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
  color: var(--color-white);
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 0.3125rem;
}

h3.company-card {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: var(--color-black);
  gap: 0.625rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 0.9375rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

p {
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  line-height: 1.6;
  color: var(--color-dark-gray);
  margin-bottom: clamp(0.75rem, 1vw, 0.9375rem);
}

p.about-company {
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.8;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #444;
}

p.slider-hero {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  opacity: 0.9;
  max-width: 800px;
  padding-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  padding-left: 0.625rem;
  padding-right: 0.625rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--color-white);
}

p.company-details {
  margin-bottom: 0.375rem;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: var(--color-white);
  line-height: 1.4;
}

p.company-text {
  text-align: center;
  color: #fff;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: 0.625rem;
  font-weight: 700;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  font-style: italic;
}

p.footer-copy-text {
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);
  text-align: center;
  color: #7f8c8d;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0.9375rem;
}

span.company-service {
  color: var(--color-accent);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  min-width: 2.5rem;
  text-align: right;
}

span.company-title-text {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 700;
  color: var(--color-black);
}

span.logo-text {
  font-size: clamp(1.125rem, 1.3vw, 1.375rem);
  font-weight: 800 !important;
  color: var(--color-black);
  white-space: nowrap;
  letter-spacing: clamp(0.5px, 0.05vw, 1px);
  padding: 0.625rem;
  border-radius: 4px;
  transition: 0.25s ease;
}

span.logo-accent {
  font-size: clamp(1.125rem, 1.3vw, 1.375rem);
  color: var(--color-accent);
}

ul.service-unordered {
  position: relative;
  padding: 0;
  margin: 0;
}

li.info-list {
  margin-bottom: 0.625rem;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  line-height: 1.4;
  color: var(--color-white);
}

li.service-list {
  padding: 0.5rem 0 0.5rem 1.5625rem;
  color: #555;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

.footer a {
  color: var(--color-white);
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--color-accent);
}

/* ===== ШАПКА ===== */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--color-light-bg);
  border-bottom: 3px solid var(--color-accent);
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 1000;
  height: 4.375rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 1.5vw, 0.9375rem);
  z-index: 10;
}

.logo-img {
  border-radius: 3.125rem;
  height: 4.3125rem;
  width: auto;
  display: block;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-right: 1.875rem;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  color: var(--color-dark-gray);
  font-weight: 600;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--color-blue);
}

.nav-item.active {
  color: var(--color-accent) !important;
  border-bottom: 2px solid var(--color-accent);
}

.nav-item.active:hover {
  color: var(--color-blue) !important;
}

.nav-item::after,
.nav-item::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: all 0.3s ease;
}

.nav-item::before {
  top: 0;
  left: 0;
}

.nav-item::after {
  bottom: 0;
  right: 0;
}

.nav-item:hover::after,
.nav-item:hover::before {
  width: 100%;
}

.btn-sales {
  position: absolute;
  left: clamp(1.25rem, 47vw, 46.875rem);
  background-color: var(--color-blue);
  color: var(--color-white) !important;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: clamp(0.75rem, 0.8vw, 0.875rem);
  white-space: nowrap;
  transition: all 0.3s ease;
  z-index: 10;
  border: none;
}

.btn-sales:hover {
  background-color: var(--color-dark-olive-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 196, 0.3);
}

.hamburger-cyber {
  display: none;
  background: 0 0;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

/* ===== КНОПКИ ===== */
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  font-size: clamp(0.875rem, 1.4vw, 1.125rem);
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background-color: #d48c16;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.hero .btn-primary {
  padding: 1rem 2.5rem;
}

.form-box .btn-primary {
  padding: 0.9375rem;
  margin-top: 0.625rem;
  width: 100%;
}

.btn-primary:disabled {
  background-color: var(--color-gray);
  cursor: not-allowed;
  transform: none;
}

/* ===== СЕКЦИИ ===== */
.about,
.advantages,
.services {
  background: var(--color-light-bg);
}

.contact-form {
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: var(--color-white);
  padding:
    1,
    562rem 0;
  height: 100vh;
  width: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.875rem;
  padding-bottom: 1.25rem;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5625rem 1.875rem;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.about {
  padding: 9.375rem;
}

/* ===== ФОРМЫ ===== */
form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.9375rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

form textarea {
  height: 7.5rem;
  resize: vertical;
}

#successMessage {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  display: none;
}

/* ===== ФУТЕР ===== */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  /* min-height: 100vh; — УБРАНО, чтобы не было пустого места */
}

.footer-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 3.75rem;
  padding-top: 3.5rem;
  padding-left: 3rem;
  padding-right: 3rem;
  padding-bottom: 1rem;
  max-width: 1450px;
  margin: 0 auto;
  width: 100%;
  flex-grow: 1;
}

.footer-text-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-map-block {
  flex: 1 1 44%;
  min-width: 280px;
  height: 31.25rem;
  max-height: 600px;
  border: 2px solid #ff0;
  border-radius: 8px;
  overflow: hidden;
}

.footer-map-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.copyright-bar {
  background: #1a252f;
  padding: 0.9375rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #7f8c8d;
  width: 100%;
  margin-top: auto;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: var(--color-white);
  padding: 0;
  margin: 0;
  text-align: center;
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.container,
.hero,
.hero-split-container,
body,
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.hero-split-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-media.video-wrapper {
  width: 70%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-media.photo-slider-wrapper {
  width: 30%;
  height: 100%;
  flex-shrink: 0;
  flex-grow: 1;
  position: relative;
}

.photo-slider {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #1a1a2e;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.slider-btn {
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: 0.3s;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.7);
  color: #000;
}

.prev-btn {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
}

.next-btn {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
}

.hero-text-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 15.5rem;
  gap: 1.875rem;
  pointer-events: none;
}

.hero-text-content * {
  pointer-events: auto;
}

/* ===== СОЦСЕТИ ===== */
.social {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-top: 1.875rem;
  gap: 2.5rem;
}

.social-icon {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 3.125rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.telegram:hover {
  animation: pulse-tg 0.7s infinite;
}

.viber:hover {
  animation: pulse-vb 0.7s infinite;
}

.whatsapp:hover {
  animation: pulse-vb 0.7s infinite;
}

.telegram,
.viber,
.whatsapp {
  animation: pulse-wa 1.7s infinite ease-in-out;
  display: inline-block;
  border-radius: 50%;
  padding: 0.3125rem 0.3125rem 0.0625rem 0.3125rem;
  background: var(--color-white);
}

@keyframes pulse-tg {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 35px rgba(0, 136, 204, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    transform: scale(1);
  }
}

@keyframes pulse-vb {
  0% {
    box-shadow: 0 0 0 0 rgba(115, 96, 242, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 35px rgba(115, 96, 242, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(115, 96, 242, 0);
    transform: scale(1);
  }
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 35px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}

/* ===== ПРОЧЕЕ ===== */
.requisites-section {
  margin-top: 1.5625rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.services-section {
  padding: 0 0 3.75rem;
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5625rem;
}

.company-description {
  /* padding: 3.75rem 1rem; */
  margin: 0;
  height: 100%;
  min-height: 100vh;
  width: 100%;
}

.company-description .content-block {
  max-width: 900px;
  margin: 0 auto;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 200px;
  min-height: 100vh;
  padding-top: 4.375rem; /* ← добавили отступ под шапку */
}

.form-box {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9375rem;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-box input,
.form-box textarea {
  width: 100%;
  padding: 0.9375rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background-color: #f8f9fa;
  transition: 0.3s;
}

.form-box input:focus,
.form-box textarea:focus {
  outline: 0;
  border-color: #e67e22;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-box textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== МЕДИА ===== */
@media (max-width: 991px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.375rem;
    left: 0;
    width: 100%;
    background-color: var(--color-light-bg);
    padding: 1.25rem 0;
    border-bottom: 3px solid var(--color-accent);
    gap: 1.25rem;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-15px);
    transition: all 0.3s ease-in-out;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .btn-sales {
    position: static;
    display: inline-block;
    width: auto;
    margin: 0.625rem auto 0 auto;
  }

  .hamburger-cyber {
    display: block;
    padding-right: 1.875rem;
  }

  .footer-layout {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 3.125rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contact-form,
  .hero,
  .hero-split-container {
    height: 100vh !important;
    min-height: 900px;
  }

  .company-description {
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .hero-split-container {
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    min-height: 100vh;
    max-height: 1000px;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5625rem;
  }

  .hero-media.video-wrapper {
    width: 100%;
    height: 50%;
    flex-shrink: 0;
    position: relative;
  }

  .hero-media.photo-slider-wrapper {
    width: 100%;
    height: 50%;
    flex-shrink: 0;
    flex-grow: 1;
    position: relative;
  }

  .hero-text-content {
    width: 100%;
    padding-bottom: 0;
    justify-content: center;
    gap: 0.5rem;
  }

  .slider-btn {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  h1.cyber-title-main {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1.5rem;
  }

  p.slider-hero {
    font-size: 1rem;
  }

  .hero .btn-primary {
    padding: 0.75rem 2rem;
  }

  .company-description {
    height: auto !important;
    padding: 2rem 0;
    margin: 0;
  }

  .footer-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
  }

  .footer-map-block {
    width: 90% !important;
    height: 720px !important;
    margin: 0 auto !important;
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden !important;
  }

  .footer-map-block iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 12px !important;
  }

  .form-box {
    margin: 1.5rem;
  }

  .company-description .container {
    background-color: var(--color-light-bg);
    border-radius: 1.25rem;
    margin: 0 auto;
    width: 100%;
  }

  .company-description .content-block {
    max-width: 100% !important;
    padding: 1.5rem !important;
  }
}

@media (max-width: 522px) {
  .hero-split-container {
    height: 100vh;
    grid-template-rows: 40% 60%;
  }
}

@media (min-width: 384px) and (max-width: 430px) {
  .contact-form,
  .hero,
  .hero-split-container {
    height: 100vh !important;
    min-height: 700px;
  }
}

@media (min-width: 361px) and (max-width: 383px) {
  .contact-form,
  .hero,
  .hero-split-container {
    height: 100vh !important;
    min-height: 650px;
  }
}

@media (max-width: 360px) {
  .contact-form,
  .hero,
  .hero-split-container {
    height: 100vh !important;
    min-height: 600px;
  }

  .slide {
    height: 100% !important;
  }

  .footer-layout {
    padding: 1.25rem;
  }
}
