:root {
    --color-primary: #f30808;
    --color-white: #ffffff;
    --color-dark: #000000;
    --color-dark-blue: #000C21;
    --color-gradient: linear-gradient(0deg, rgba(41, 45, 69, 0.8), rgba(12, 12, 15, 0.1));

    --font-family: 'Tektur', sans-serif;
    
    --max-width: 1200px;
    --padding: 15px;
    
    --rectangle-width: 20px;
    --rectangle-height: 8px;
    --rectangle-gap: 20px;
    --rectangle-color: var(--color-primary);
}

/**
  Нормализация блочной модели
 */
 *,
 *::before,
 *::after {
   box-sizing: border-box;
 }
 
 :where(ul, ol):where([class]) {
   padding-left: 0;
 }
 
 /**
  */
 body,
 :where(blockquote, figure):where([class]) {
   margin: 0;
 }
 
 :where(
   h1,
   h2,
   h3,
   h4,
   h5,
   h6,
   p,
   ul,
   ol,
   dl
 ):where([class]) {
   margin-block: 0;
 }
 
 :where(dd[class]) {
   margin-left: 0;
 }
 
 :where(ul[class]) {
   list-style: none;
 }
 /**
   Упрощаем работу с изображениями
  */
 /*img {
   display: block;
   max-width: 100%;
 }
 */
 input,
 textarea,
 select,
 button {
   font: inherit;
 }
 
 html {
   height: 100%;
   scroll-behavior: smooth;
 }
 
 body {
   min-height: 100%;
   line-height: 1.5;
 }
 
 @media (prefers-reduced-motion: reduce) {
   * {
     animation-duration: 0.01ms !important;
     animation-iteration-count: 1 !important;
     transition-duration: 0.01ms !important;
     scroll-behavior: auto !important;
   }
 }

@media (max-width: 767px) {
  .header .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
 html, body {
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--color-white);
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header_section {
  width: 100%;
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header_section .container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--padding);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_section h1 {
  margin: 0;
  font-size: 1.5rem;
  text-align: center;
}
.logo-default {
  display: block;
}

.logo-scroll {
  display: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a:active,
nav ul li a.active {
  color: var(--color-primary);
}

.header_section.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  animation: slideDown 1s ease;
}

.header_section.sticky nav ul li a {
  color: var(--color-dark);
}

.header_section.sticky nav ul li a:hover,
.header_section.sticky nav ul li a:active,
.header_section.sticky nav ul li a.active {
  color: var(--color-primary);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.home {
  width: 100%;
  height: 1000px;
  background-image: url('../static/image/bg_02.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(2, 7, 14, 0.925);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0);
  z-index: 1;
}

.home-text {
  position: relative;
  z-index: 2;
  font-size: 52px;
  font-weight: bold;
  top: -350px;
}

.services .container {
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--padding);
  margin: 0 auto;
}

.justify-centr-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section-title {
  margin-top: 100px;
  text-align: center;
}

.title-with-rectangles {
  position: relative;
  display: inline-block;
}

.title-with-rectangles h3 {
  margin: 0;
  font-size: 2rem;
  color: var(--color-dark);
}

.title-with-rectangles::before,
.title-with-rectangles::after {
  content: "";
  display: inline-block;
  width: var(--rectangle-width);
  height: var(--rectangle-height);
  background-color: var(--rectangle-color);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.title-with-rectangles::before {
  left: calc(-1 * (var(--rectangle-gap) + var(--rectangle-width)));
}

.title-with-rectangles::after {
  right: calc(-1 * (var(--rectangle-gap) + var(--rectangle-width)));
}

.section-title p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--color-dark);
}

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

.grid-item {
  text-align: center;
  border: 1px solid #ccc;
  padding: 15px;
}

.grid-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.grid-item p {
  font-size: 16px;
  color: #333;
}

.additional-services {
  margin-top: 100px;
}

.additional-services .grid-item {
  background-color: #f9f9f9;
}

.image-text-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.text-content {
  text-align: left;
}

.image-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.image-content img:hover {
  transform: scale(1.05);
}
.grid-container.one-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-container.one-column .grid-item {
  width: 100%;
  text-align: center;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #f9f9f9;
}

.grid-container.one-column .grid-item img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.grid-container.one-column .grid-item p {
  font-size: 16px;
  color: #333;
}

.floating-button {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: bold;
  border: none;
  padding: 15px 20px;
  border-radius: 50px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s, transform 0.3s;
}

.floating-button:hover {
  background-color: #d00;
  transform: translateY(-50%) scale(1.1);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  animation: modalAppear 0.3s ease;
}

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

.modal-content h3 {
  color: var(--color-white);
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.close-button {
  position: absolute;
  right: 15px;
  top: 15px;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.3s;
}

.close-button:hover {
  color: var(--color-primary);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-white);
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.modal-content .btn-primary {
  width: 100%;
  padding: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
}

.modal-content .btn-primary:hover {
  background-color: #d00;
  transform: translateY(-2px);
}

.modal-content .btn-primary:active {
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 20px;
    margin: 10px;
  }

  .modal-content h3 {
    font-size: 20px;
  }

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

footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .header_section .container {
    flex-direction: column;
    padding: 10px;
  }

  .header_section h1 {
    font-size: 1.2rem;
    margin: 10px 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .home {
    height: 600px;
  }

  .home-text {
    font-size: 28px;
    top: -150px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .image-text-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
    padding: 15px;
  }

  .floating-button {
    right: 10px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .footer__content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer__left,
  .footer__center,
  .footer__right {
    width: 100%;
  }
}
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .price-factors__list {
    position: static;
    transform: none;
    margin-top: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .price-factors__list li {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
  }

  .price-factors__image img {
    object-fit: contain;
    width: 100%;
    height: auto;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .home-text {
    font-size: 42px;
    top: -250px;
  }

  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .price-factors__list {
    position: static;
    transform: none;
    margin-top: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-md);
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .price-factors__list li {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
  }

  .price-factors__image img {
    object-fit: contain;
    width: 100%;
    height: auto;
  }
}

.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: 0.3s;
}

.header_section.sticky .burger-menu span {
    background-color: var(--color-dark);
}

.burger-menu.active span {
    background-color: var(--color-primary) !important;
}

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

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

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}
@media screen and (max-width: 768px) {
  .price-factors__list {
      position: static;
      transform: none;
      margin-top: var(--spacing-sm);
      background: rgba(255, 255, 255, 0.95);
      padding: var(--spacing-sm);
      border-radius: 8px;
      width: 100%;
      box-sizing: border-box;
  }

  .price-factors__list li {
      font-size: calc(var(--font-size-base) - 2px);
      margin-bottom: var(--spacing-xs);
  }

  .price-factors__image img {
      object-fit: contain;
      width: 100%;
      height: auto;
  }
}
@media screen and (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    nav {
        display: none;
        width: 100%;
    }

    nav.active {
        display: block;
    }
}

.section-title {
    margin-top: 50px;
}

.grid-item {
    margin-bottom: 20px;
}

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

.home-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.container {
    padding: 0 15px;
}

.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.notification-content {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 25px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease;
}

.notification-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.4;
}

.notification-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

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

.notification-btn:active {
    transform: translateY(0);
}

.privacy-notice {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .privacy-notice {
        font-size: 11px;
    }
}

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.error-page h1 {
    font-size: 120px;
    margin: 0;
    color: var(--color-primary);
}

.error-page p {
    font-size: 24px;
    margin: 20px 0;
}

.footer__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-white);
    font-size: 18px;
    margin: 15px 0;
}

.phone-icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.footer__phone:hover .phone-icon img {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .phone-icon img {
        width: 24px;
        height: 24px;
    }
}

.social-button__icon img {
    width: 32px;
    height: 32px;
    transition: transform 0.3s;
}

.social-button:hover .social-button__icon img {
    transform: scale(1.1);
}

.social-button {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-white);
    font-size: 16px;
    margin: 10px 0;
}

.social-button__text {
    transition: color 0.3s;
}

.social-button:hover .social-button__text {
    color: var(--color-primary);
}

@media screen and (max-width: 768px) {
    .social-button__icon img {
        width: 24px;
        height: 24px;
    }
    
    .social-button {
        font-size: 14px;
    }
}
@media (max-width: 768px) {
  .header_section .container {
    min-height: 55px;
    padding: 5px var(--padding);
  }
  
  .header_section .logo img {
    height: 36px;
  }
  
  .header_section h1 {
    font-size: 1.2rem;
    margin: 0 10px;
  }
}
