:root {
  --primary-color: #ffffff;
  --secondary-color: #f0f0f0;
  --accent-color: #3a7bd5;
  --text-color: #333333;
  --light-text-color: #ffffff;
}

* {
  box-sizing: border-box;
}

body, html {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--primary-color);
  width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  height: 80px;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
}

main {
  padding-top: 80px;
}

.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23f0f0f0" width="50" height="50" x="0" y="0"/><rect fill="%23f0f0f0" width="50" height="50" x="50" y="50"/></svg>');
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background-color: var(--text-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.benefits {
  background-color: var(--primary-color);
  padding: 50px 0 40px;
}

.benefits h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  color: var(--accent-color);
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  background-color: var(--primary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.benefit-item h3 {
  font-size: 1.3em;
  margin-bottom: 12px;
  color: var(--accent-color);
  font-weight: 600;
}

.benefit-item p {
  font-size: 0.95em;
  color: var(--text-color);
  line-height: 1.5;
}

.benefit-item::before {
  content: '';
  display: block;
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
  background-color: var(--accent-color);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.benefit-item:nth-child(1)::before {
  mask-image: url('images/benefits/helmet-main.png');
}

.benefit-item:nth-child(2)::before {
  mask-image: url('images/benefits/star-main.png');
}

.benefit-item:nth-child(3)::before {
  mask-image: url('images/benefits/leaf-main.png');
}

@media screen and (max-width: 768px) {
  .benefit-item::before {
    width: 50px;
    height: 50px;
  }
}

.products {
  padding: 80px 0 50px; /* Увеличиваем верхний padding */
  margin-top: -30px; /* Компенсируем лишнее пространство */
}

.products h2 {
  text-align: left;
  margin-bottom: 40px;
  color: var(--text-color);
  padding-top: 30px; /* Добавляем отступ сверху для заголовка */
}

.products-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.product {
  flex: 1;
  background-color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.product:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.product h3 {
  font-size: 1.2em;
  color: var(--text-color);
  margin-bottom: 10px;
}

.full-assortment {
  padding: 50px 0;
  background-color: var(--secondary-color);
}

.full-assortment h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.product-item {
  text-align: center;
}

.product-item img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.product-item:hover img {
  transform: scale(1.05);
}

.product-item p {
  margin-top: 10px;
  font-size: 14px;
}

.about-section {
  background-color: var(--primary-color);
  padding: 50px 0;
  text-align: left;
}

.about-section .container {
  max-width: 960px;
}

.about-section h2 {
  color: var(--accent-color);
  font-size: 2em;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0;
}

.order-3d {
  background-color: var(--secondary-color);
  padding: 50px 0;
  text-align: center;
}

.order-3d h2 {
  margin-bottom: 30px;
  color: var(--accent-color);
}

.order-3d form {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin: 0 auto;
}

.order-3d input {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--secondary-color);
  border-radius: 4px;
}

.order-3d button {
  background-color: var(--accent-color);
  color: var(--light-text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-3d button:hover {
  background-color: var(--text-color);
}

footer {
  background-color: var(--text-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 20px 0;
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #25D366;
  color: var(--light-text-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.whatsapp-button img {
  width: 40px;
  height: 40px;
}

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

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    display: block;
  }

  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    opacity: 0;
  }

  .nav-links.active {
    right: 0;
    opacity: 1;
  }

  .nav-links li {
    margin: 15px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
  }

  .nav-links li a {
    font-size: 1.5em;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 2em;
  }

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

  .products-grid {
    flex-direction: column;
  }

  .product {
    margin-bottom: 20px;
  }

  .products {
    padding-top: 60px; /* Меньший отступ для мобильных устройств */
  }

  .products h2 {
    padding-top: 20px; /* Меньший отступ для заголовка на мобильных устройствах */
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .product-item p {
    font-size: 12px;
  }

  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 25px;
  }

  .whatsapp-button img {
    width: 30px;
    height: 30px;
  }

  .order-form {
    width: 90%;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    transform: scale(1);
  }
70% {
box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
transform: scale(1.05);
}
100% {
box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
transform: scale(1);
}
}
.whatsapp-button {
position: fixed;
bottom: 40px;
right: 40px;
z-index: 1000;
width: 70px;
height: 70px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
animation: pulse 2s infinite;
background-color: transparent;
padding: 0;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.whatsapp-button:hover {
transform: scale(1.1) rotate(10deg);
}
.whatsapp-button svg {
width: 100%;
height: 100%;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
opacity: 0.8; /* Добавляем небольшую прозрачность */
}
@media screen and (max-width: 768px) {
.whatsapp-button {
width: 60px;
height: 60px;
bottom: 30px;
right: 30px;
}
}