/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #333;
}

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

/* Header styles */
.header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .header {
    padding: 0px;
  }
}

@supports (backdrop-filter: blur(10px)) {
  .header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

@supports not (backdrop-filter: blur(10px)) {
  .header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

.contact-info {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.nav-menu__icons-mobile {
  display: none;
}
@media (max-width: 768px) {
  .contact-info {
    display: none;
  }
  .nav-menu__icons-mobile {
    display: flex;
  }
}
.contact-item {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.contact-item:hover {
  color: #007bff;
}

/* Navigation styles */
.nav {
  background-color: #f8f9fa;
  padding: 15px 0;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .nav {
    margin-top: 20px;
  }
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  position: relative;
  z-index: 4;
}

/* Hero section */
.hero {
  padding: 100px 0;
  text-align: center;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Задний фон для секции на главной странице */
  background-image: url("src/bg.jpeg");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 1;
}

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

.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 18px;
  color: #666;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  margin-bottom: 20px;
}

.hero .address {
  font-size: 16px;
  color: #333;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero .address i {
  color: #ff0000;
}

/* About section */
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
  color: #333;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

/* Categories section */
.categories {
  padding: 80px 0;
}

.categories h2 {
  text-align: center;
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 328px));
  gap: 30px;
  padding: 20px 0;
  justify-content: center;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-card img {
  width: 100%;
  max-height: 209px;
  background-color: #fff;
  padding: 15px;
  height:100%;
}

.category-card h3 {
  font-size: 20px;
  margin: 0;
  padding: 20px;
  text-align: center;
  background-color: #fff;
  border-top: 1px solid #eee;
}

.category-card p {
  font-size: 14px;
  color: #666;
  padding: 0 20px 20px;
  margin: 0;
  background-color: #fff;
}

/* Contact form */
.contact {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.contact h2 {
  text-align: center;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

textarea{
    resize: none;
}

.btn {
  background-color: #007bff;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

/* Footer styles */
.footer {
  background-color: #333;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-info {
  max-width: 400px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo h3 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #fff;
}

.footer-description p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #fff;
}

.footer-contacts {
  margin-bottom: 20px;
}

.footer-contacts p {
  margin-bottom: 5px;
}

.footer-contacts a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.work-hours {
  color: #ccc;
  font-size: 12px;
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #fff;
  font-size: 20px;
  transition: color 0.3s;
}

.social-link:hover {
  color: #007bff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.footer-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  color: #ccc;
}

.footer-address i {
  color: #ff0000;
}

/* Responsive footer styles */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-info {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-menu {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding: 40px 0 20px;
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    background-color: #f8f9fa;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    transition: 0.5s ease;
    z-index: 3;
    display: flex;
    align-items: center;
  }

  .nav-menu.active {
    top: 0%;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

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

/* Features section */
.features {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 32px;
  color: #333;
  text-transform: uppercase;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.features-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.feature-item i {
  color: #ff0000;
  font-size: 20px;
  margin-top: 3px;
}

.feature-item p {
  margin: 0;
  font-size: 16px;
  color: #333;
  line-height: 1.4;
}

.features-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-cta {
  background-color: #ff0000;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  background-color: #e60000;
  transform: translateY(-2px);
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #333;
}

.modal h2 {
  margin-bottom: 30px;
  text-align: center;
  color: #333;
}

/* Responsive styles for features section */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-item {
    max-width: 500px;
    margin: 0 auto;
  }

  .btn-cta {
    width: 100%;
    max-width: 400px;
  }
}

/* About page styles */
.about-page {
  padding: 120px 0 80px;
}

.about-page h1 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  color: #333;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text .lead {
  font-size: 20px;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.about-text p {
  margin-bottom: 20px;
  color: #666;
}

.about-text ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.about-text ul li {
  margin-bottom: 10px;
  color: #666;
}

.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.advantage-item {
  text-align: center;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item i {
  font-size: 36px;
  color: #ff0000;
  margin-bottom: 20px;
}

.advantage-item h3 {
  margin-bottom: 15px;
  color: #333;
}

.advantage-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

/* Contacts page styles */
.contacts-page {
  padding: 120px 0 80px;
}

.contacts-page h1 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
  color: #333;
}

.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-block {
  margin-bottom: 40px;
}

.contact-block h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.contact-item-large {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item-large i {
  font-size: 24px;
  color: #ff0000;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-details a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}

.messengers,
.social-links {
  display: grid;
  grid-template-columns: repeat(2, 0fr);
  gap: 20px;
}

.messenger-link,
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.3s, background-color 0.3s;
}

.messenger-link:hover,
.social-link:hover {
  transform: translateY(-2px);
  background-color: #e9ecef;
}

.messenger-link i,
.social-link i {
  font-size: 24px;
}

.contact-form-block {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

/* Responsive styles for new pages */
@media (max-width: 992px) {
  .contacts-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  .about-page,
  .contacts-page {
    padding: 100px 0 60px;
  }

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

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

/* Category page styles */
.category-page {
  padding: 120px 0 80px;
}

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

.category-header h1 {
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
}

.category-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

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

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 10px;
}

.product-info p {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}

.category-features {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 8px;
}

.category-features h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
  color: #333;
}

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

.category-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
}

.category-features li i {
  color: #ff0000;
  font-size: 18px;
}

.category-cta {
  text-align: center;
}

/* Responsive styles for category pages */
@media (max-width: 768px) {
  .category-page {
    padding: 100px 0 60px;
  }

  .category-header h1 {
    font-size: 28px;
  }

  .category-description {
    font-size: 16px;
  }

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

  .product-card img {
    height: 200px;
  }
}

.about-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  color: #333;
  font-size: 16px;
}

.about-address i {
  color: #ff0000;
}

.social-buttons {
  position: fixed;
  bottom: 50%;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2;
}

.social-button {
  border-radius: 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
  text-decoration: none;
  align-items: center;
  padding: 4px;
  transition: 0.3s ease;
}

.social-button span {
  color: white;
}

.social-button img {
  width: 36px;
  height: 36px;
}

.button-telegram {
  background: #0088cc;
}

.button-whatsapp {
  background: #2cb742;
}

.button-telegram:hover {
  background: #0088ccc0;
}

.button-whatsapp:hover {
  background: #2cb741a8;
}

input[name="copyphone"] {
    display: block;
    width: 2px;
    height: 2px;
    margin-bottom: -2px;
    border: none;
    padding: 0;
    opacity: 0.01;
}
