:root {
  --color-primary: #a0522d;
  --color-secondary: #f5deb3;
  --color-text: #c0c0b0;
  --color-dark: #2a2a2a;
  --color-medium: #3a3a3a;
  --color-accent: #654321;
  --border-thickness: 2px;
  --border-radius: 4px;
}

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

a {
  text-decoration: none;
}

body {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
  color: var(--color-text);
  background-color: var(--color-dark);
  overflow-x: hidden;
  line-height: 1.6;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.no-scroll {
  overflow: hidden;
}

p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
  text-align: justify;
}

.main-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;min-height: 100dvh;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  transition: background-image 0s, opacity 1s ease-in-out;
  will-change: background-image, opacity;
  opacity: 0;
}

.main-wrapper.visible {
  opacity: 1;
}

.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 1s ease-out;
  flex-direction: column;
}

.loader.hidden,
.loader.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-secondary);
  font-size: 1.5rem;
  text-shadow: 0 0 8px var(--color-secondary);
}

.loader-message {
  display: block;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.signal-animation {
  width: 100px;
  height: 20px;
  border: var(--border-thickness) solid var(--color-primary);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.signal-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  animation: signalWave 2s infinite linear;
}

@keyframes signalWave {
  0% { left: -100%; }
  100% { left: 100%; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding-top: 2rem;      /* было 4rem */
  padding-bottom: 1rem;   /* стало меньше, чем сверху */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* только герой растягиваем на экран */
/* герой больше НЕ обязателен на полный экран */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  padding-top: 4rem;     /* сколько нужно сверху */
  padding-bottom: 2rem;  /* сколько нужно снизу */
  min-height: auto;      /* ключевая строка */
}


#hero .container {
  background-image: url('pictures/motorola-gm340.webp');
  background-size: 60% auto;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 1;
  padding: 30px;
  border-radius: 8px;
  overflow: hidden;
  max-width: 960px;
  width: calc(100% - 60px);
  margin: 0 auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(160, 82, 45, 0.5);
  border: var(--border-thickness) solid var(--color-primary);
}

#hero .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

#features {
  min-height: auto !important;
  display: block !important;
  padding: 2rem 0 !important;
}

section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

h1, h2, h3, h4 {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-secondary);
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(245, 222, 179, 0.4);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  text-shadow: 0 0 10px rgba(160, 82, 45, 0.7);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  color: var(--color-dark);
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  text-transform: uppercase;
  font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 2px var(--color-secondary) inset;
}

@media (hover:hover){
.btn:hover {
  
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--color-secondary) inset;
}}

header {
  background: rgba(42, 42, 42, 0.8);
  
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 99;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 100px;
  height: auto;
  margin-right: 10px;
  filter: drop-shadow(0 0 5px var(--color-secondary));
  border: var(--border-thickness) solid var(--color-primary);
  border-radius: var(--border-radius);
  object-fit: contain;
}

.logo h1, .logo .logo-name {
  font-size: 1.8rem;
  color: var(--color-secondary);
  text-shadow: none;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-menu li a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

@media (hover:hover){
.nav-menu li a:hover {
  color: var(--color-secondary);
  text-shadow: 0 0 8px var(--color-secondary);
}}

.current-time {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
  color: var(--color-secondary);
  font-size: 1.4rem;
  text-shadow: 0 0 8px rgba(245, 222, 179, 0.6);
  flex-shrink: 0;
  margin-left: 20px;
  text-align: right;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  margin-left: 20px;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: var(--color-secondary);
  transition: all 0.3s ease;
}

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

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

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

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-secondary);
  position: relative;
  overflow: hidden;
}

.hero .container {
  background: rgba(42, 42, 42, 0.9);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7), inset 0 0 10px rgba(160, 82, 45, 0.5);
  border: var(--border-thickness) solid var(--color-primary);
  max-width: 90%;
}

.hero h2 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 0 15px var(--color-primary);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--color-text);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

.section-block {
  background: rgba(42, 42, 42, 0.9);
  border: var(--border-thickness) solid var(--color-primary);
  border-radius: var(--border-radius);
  margin: 1rem auto;     /* было 2rem auto — сделали В ДВА РАЗА ближе секции друг к другу */
  max-width: 1200px;
  padding: 3rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(160, 82, 45, 0.4);
}


.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  min-height: 250px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  overflow: hidden;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-accent);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

  .feature-item h4 {
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
    text-align: left;
    color: var(--color-secondary);
    text-shadow: 0 0 6px rgba(0,0,0,1);
}


@media (hover:hover){
.feature-item:hover {
  
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-primary);
}}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.feature-item-1 {
  background-image: url('pictures/global_coverage.webp');
}
.feature-item-2 {
  background-image: url('pictures/long_autonomy.webp');
}
.feature-item-3 {
  background-image: url('pictures/antenna_array.webp');
}
.feature-item-4 {
  background-image: url('pictures/precision_accuracy.webp');
}
.feature-item-5 {
  background-image: url('pictures/unrivaled_reliability.webp');
}
.feature-item-6 {
  background-image: url('pictures/elemental_protection.webp');
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center center;
  border: var(--border-thickness) solid var(--color-primary);
  border-radius: var(--border-radius);
  transition: transform 0.3s, filter 0.3s;
  filter: grayscale(30%) brightness(80%);
}

@media (hover:hover){
.gallery-grid img:hover {
  
  filter: grayscale(0%) brightness(100%);
}}

.partners {
  text-align: center;
  display: block;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.partner-item {
  background: var(--color-medium);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-accent);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 180px;
  position: relative;
}

@media (hover:hover){
.partner-item:hover {
  
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-primary);
}}

.partner-item-logo-wrapper {
  width: 129.6px;
  height: 129.6px;
  border-radius: 50%;
  background-color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: var(--border-thickness) solid var(--color-accent);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.3);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
  margin-top: 15px;
}

@media (hover:hover){
.partner-item:hover .partner-item-logo-wrapper {
  
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 7px var(--color-secondary), 0 0 30px var(--color-primary);
  background-color: #353535;
}}

.partner-item img {
  max-width: 98%;
  max-height: 98%;
  object-fit: contain;
  filter: none;
  display: block;
  image-rendering: auto;
}

.partner-item p {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-secondary);
  font-size: 0.8rem;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  background: var(--color-dark);
  border: var(--border-thickness) solid var(--color-primary);
  border-radius: var(--border-radius);
  padding: 0.8rem;
  color: var(--color-secondary);
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact input:focus,
.contact textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary);
}

.contact textarea {
  resize: vertical;
  min-height: 100px;
}

.form-message {
  text-align: center;
  margin-top: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-height: 1.2em;
}

.form-message.success,
.form-message.error {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  color: #4CAF50;
}

.form-message.error {
  color: #F44336;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  border: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(100%) !important;
}

.usage-extended {
  margin-top: 2rem;
}

footer {
  background: var(--color-dark);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: var(--border-thickness) solid var(--color-primary);
  color: var(--color-secondary);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

footer p {
  margin-bottom: 0.5rem;
  text-align: center;
}

.footer-email {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
  font-size: 1.1rem;
  white-space: nowrap;
}

@media (hover:hover){
.footer-email:hover {
  color: var(--color-primary);
  text-shadow: 0 0 8px var(--color-primary);
}}

@media (min-width: 769px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
  }
  .feature-item {
    padding-top: 2.5rem;   /* добавили воздуха над заголовком */
    min-height: 260px;     /* вместо фиксированной высоты */
    height: auto !important;
  }
}




@media (max-width: 1024px) {
  .current-time {
    font-size: 1.2rem;
    margin-left: 10px;
  }
  .nav-menu {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .main-wrapper {
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
  }

  nav.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding-left: 8px;
    padding-right: 8px;
  }

  .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
  }

  .logo img {
    width: 70px;
    height: auto;
    margin-right: 4px;
  }

  .logo h1, .logo .logo-name {
    font-size: 0.95em;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 74px);
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background: #2a2a2a;
    flex-direction: column;
    padding-top: 5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    padding-left: 0;
  }
  
  .nav-menu.active {
    display: flex;
    transform: translateX(0);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
  }
  
  .nav-menu li {
    margin: 1rem 0;
    text-align: center;
  }

  #current-time {
    font-size: 0.95em;
    white-space: nowrap;
    margin-left: auto;
    line-height: 1;
    flex-shrink: 0;
    min-width: fit-content;
  }

  .hamburger {
    display: flex;
    order: 3;
    margin-left: auto;
    margin-left: 8px;
    flex-shrink: 0;
  }

  .hero h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .hero p {
    font-size: 0.95rem;
  }
  
  .section-block {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-item {
    height: 220px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid img {
    height: 250px;
  }
  
  .partner-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 2rem 0;
    min-height: auto;
    display: block;
  }
  
  .section-block .container {
    padding: 0;
  }
  
  .section-block h3 {
    text-align: center;
  }
  
  .partner-item-logo-wrapper {
    width: 99px;
    height: 99px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.3rem;
    line-height: 1.2;
  }
  h3 {
    font-size: 1.1rem;
  }
  .logo img {
    max-width: 50px;
    width: 50px;
  }
  .logo h1, .logo .logo-name {
    font-size: 0.8em;
    max-width: calc(100% - 54px);
  }
  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  .current-time,
  #current-time {
    font-size: 0.8em;
    margin-right: 5px;
  }
  .hero .container {
    padding: 15px;
  }
  .hero p {
    font-size: 0.85rem;
  }
  .partner-item p {
    font-size: 0.75rem;
  }
  .partner-item-logo-wrapper {
    width: 88px;
    height: 88px;
  }
}

@media (max-width: 375px) {
  .logo img {
    width: 45px;
  }

  .logo h1, .logo .logo-name,
  #current-time {
    font-size: 0.75em;
  }
  .logo h1, .logo .logo-name {
    max-width: calc(100% - 49px);
  }

  nav.container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .hamburger {
    margin-left: 5px;
  }
}
