
:root {
  --bg-color: #F5F5F2;
  --main-color: #1C2C4C;
  --accent-color: #822626;
  --add-color: #D0D4D8;
  --font-title: 'Lora', serif;
  --font-text: Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  background-color: var(--bg-color);
  font-family: var(--font-text);
  overflow-x: hidden;

}

body {
    padding-left: 175px !important;
    padding-right: 175px !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(245, 245, 242, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 999;
  transition: top 0.3s ease-in-out;
}

.logo {
  width: 85px;
  height: auto;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--main-color);
  font-size: 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent-color);
}

.header-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(130, 38, 38, 0.5); }
  50% { box-shadow: 0 0 10px 10px rgba(130, 38, 38, 0); }
}

.burger-phone {
  display: none;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 90vh;
  padding: 10rem 2rem 4rem 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-left, .hero-right {
  flex: 1 1 45%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-left h2 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.hero-left h1 {
  font-size: 2.5rem;
  font-family: var(--font-title);
  color: var(--main-color);
  margin-bottom: 1rem;
  max-width: 450px;
}

.hero-left p {
  font-size: 1rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  max-width: 370px;
}

.hero-left .btn {
  margin-right: 1rem;
}

.hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.card {
  background-color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--main-color);
}

.scroll-top-btn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(28, 44, 76, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.6;
}

@media (max-width: 768px) {



    .logo {
  width: 40px;
  height: auto;
}

  nav, .header-buttons {
    display: none;
  }
  .burger-phone {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .hero {
    flex-direction: column;
padding-bottom: 8rem;



  }
  .hero-left, .hero-right {
    flex: 1 1 100%;
  }

  body {
    padding-left: 0px !important;
    padding-right: 0px !important;
}


.services-pattern {
  width: 70% !important;
  
}

}

@media (min-width: 1768px) {


body {
    padding-left: 275px !important;
    padding-right: 275px !important;
}


}


  header {border-bottom: 1px solid rgb(177, 177, 177, 0.6);
 
  
  }




  .hero {
    position: relative;
  }


  @media (max-width: 768px) {

    .about-section {
      padding-bottom: 8rem !important;
     
    }

    .advantages {
      grid-template-columns: repeat(2, 1fr);
    }


    .services-section {
      padding-left: 1rem !important;
    padding-right: 1rem !important;
    }


  }

  .services-section {
    /* background: #F5F5F2; */
    padding: 4rem 1rem;
    padding-top: 0;
  }
  .section-title {
    font-family: 'Lora', serif;
    font-size: 2rem;
    text-align: center;
    color: #1C2C4C;
    margin-bottom: 5rem;
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  .service-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  }
  .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;

    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .icon1 {
  
    background-image: url('../img/et_document.svg');
    
  
  }
  .icon2 {
 
    background-image: url('../img/ph_umbrella-thin.svg');
    
  
  }
  .icon3 {
   
    background-image: url('../img/ph_gavel-thin.svg');
  
   
  }
  .icon4 {
   
   
    background-image: url('../img/ph_house-line-thin.svg');
   
   
  }
  .icon5 {
   
    background-image: url('../img/arcticons_ar-card.svg');

  }
  .icon6 {
   
  
    background-image: url('../img/arcticons_secure-vpn.svg');

  }
  .service-title {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    color: #1C2C4C;
    margin-bottom: 0.5rem;
  }
  .service-desc {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #333;
  }
  .show-more-wrapper {
    text-align: center;
    margin-top: 3rem;
  }
  .btn.show-more {
    background-color: #822626;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 0.2rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
  }
  .btn.show-more:hover {
    transform: scale(1.05);
  }
  @media (max-width: 768px) {


    body {
      padding-left: 0 !important;
      padding-right: 0 !important;
  }
    .services-grid {
      grid-template-columns: 1fr;
    
 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 0.5rem;}
    .service-card {
      padding: 0.7rem;
    }

    .service-title {
      font-size: 1rem;
    }
  
    .service-desc {
      font-size: 0.9rem;
    }

    .section-title {
      margin-bottom: 1.5rem;
    }

    /* .u-pattern {
      width: 100%;
    } */

  }


  .fade-init {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
  }
  .fade-init.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  #appointment {
    /* background: #F5F5F2; */
    padding: 4rem 1rem;
  }
  
  .section-description.center-text {
    text-align: center;
    font-size: 1.2rem;
    color: #1C2C4C;
    margin-bottom: 2rem;
  }
  
  .appointment-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }


  
  .appointment-form,
  .appointment-map {
    flex: 1 1 45%;
    min-width: 300px;
    
    
  }
  
  .appointment-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .appointment-form input {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #D0D4D8;
    border-radius: 0.5rem;
  }
  
  .appointment-form button {
    background-color: #822626;
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .appointment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  
  @media (max-width: 768px) {
    .appointment-grid {
      flex-direction: column;
    }

    .appointment-map,
    .appointment-form {
      padding-left: 10px;
      padding-right: 10px; }


    .section-description {
      display: none;
    }
  }


  .faq-section {
    padding: 60px 20px;
  }
  .accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .accordion-item {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  .accordion-title {
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    display: block;
  }
  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 16px;
    padding-right: 10px;
  }
  .accordion-item input[type="checkbox"]:checked ~ .accordion-content {
    max-height: 300px;
    margin-top: 10px;
  }
  @media (max-width: 768px) {


    .accordion-title {
      font-size: 16px;
    }
    .accordion-content {
      font-size: 15px;
    }
  }

  .advantages-section {
    width: 100%;
    padding: 60px 20px;
    /* background-color: #f9f9f9; */
  }
  
  .advantages-section .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
  }
  
  .pros-cons {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
  }
  
  .pros, .cons {
    flex: 1 1 400px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  
  .pros-title, .cons-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c2c2c;
  }
  
  .pros-list li, .cons-list li {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
  }
  
  .note {
    margin-top: 40px;
    text-align: center;
    font-style: italic;
    font-size: 14px;
    color: #555;
  }
  
  @media (max-width: 768px) {
    .pros-cons {
      flex-direction: column;
    }
  }

  .footer {
    background: linear-gradient(to right, #1b1f26, #232933);
    color: #fff;
    padding: 60px 20px 30px;
    font-family: 'Segoe UI', sans-serif;
    animation: fadeInUp 1s ease-out both;
  }

  .footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
  }

  .footer-logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
  }

  .footer-logo p {
    color: #ccc;
    font-size: 14px;
  }

  .footer-nav h3,
  .footer-contacts h3,
  .footer-social h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-nav ul {
    list-style: none;
    padding: 0;
  }

  .footer-nav ul li {
    margin-bottom: 8px;
  }

  .footer-nav a,
  .footer-contacts a,
  .footer-links a {
    color: #a9c1ff;
    text-decoration: none;
    transition: color 0.3s;
  }

  .footer-nav a:hover,
  .footer-contacts a:hover,
  .footer-links a:hover {
    color: #fff;
  }

  .footer-contacts p {
    margin: 6px 0;
    font-size: 14px;
  }

  .footer-social .social-icons a {
    display: inline-block;
    margin-right: 10px;
  }

  .footer-social .social-icons img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
  }

  .footer-social .social-icons a:hover img {
    transform: scale(1.2);
  }

  .footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
  }

  .footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #aaa;
  }

  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    /* background-position: ; */
}

.widget-btn {
    /* background-color: #F5F5F2; */
    background-color: transparent;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
    animation: bounce 1s infinite;

}



.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 999999;
}

.popup-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: popup-appear 0.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 17px;
    cursor: pointer;
    color: #3498db;
}

.popup-close:hover {
    color: #2980b9;
}

h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

p {
    color: #34495e;
    font-size: 16px;
    margin-bottom: 10px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
 
    align-items: center !important;
}

.social-icon img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.2);
}

.call-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.call-button:hover {
    background-color: #27ae60;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes popup-appear {
    0% {
        transform: scale(0.8);
    }
    100% {
        transform: scale(1);
    }
}


 .burger {
      display: none;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 22px;
      cursor: pointer;
      z-index: 1001;
    }

    .burger span {
      display: block;
      height: 4px;
      background-color: #1C2C4C;
      border-radius: 2px;
      transition: all 0.3s ease;
    }

    .menu {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      /* height: 60vh; */
      background-color: #fff;
      box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      padding: 40px 20px;
      transition: right 0.4s ease;
      z-index: 1000;
    }

    .menu.active {
      right: 0;
    }

    .menu h2 {
      font-size: 22px;
      margin-bottom: 30px;
      color: #822626;
    }

    .menu a {
      font-size: 18px;
      margin-bottom: 20px;
      text-decoration: none;
      color: #1C2C4C;
    }

    .socials {
      margin-top: auto;
    }

    .socials p,
    .socials a {
      font-size: 16px;
      margin: 5px 0;
      color: #822626;
      text-decoration: none;
    }

    .call-button {
      background-color: #822626;
      color: #fff;
      border: none;
      padding: 10px 20px;
      border-radius: 25px;
      font-size: 16px;
      cursor: pointer;
      animation: vibrate 1s infinite;
      margin-top: 15px;
    }

    @keyframes vibrate {
      0%, 100% { transform: translateX(0); }
      20% { transform: translateX(-2px); }
      40% { transform: translateX(2px); }
      60% { transform: translateX(-2px); }
      80% { transform: translateX(2px); }
    }

    @media (max-width: 768px) {

      .section-sw {
        display: none;
      }

      .burger {
        display: flex;
        position: fixed;
        top: 20px;
        right: 20px;
      }

      .logo {opacity: 0;}


    }


    @media (min-width: 1268px) {
      .appointment-form {
      max-width: 400px;
      }
    }

    .slider-container {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      /* height: 600px; */
  
      overflow: visible;
    }

    .slider {
      display: flex;
      gap: 1rem;
      width: 100%;
      /* max-width: 1200px; */
      justify-content: center;
      align-items: flex-end;
    }

    .slide {
      width: 200px;
      height: 200px;
      background-color: white;
      border-radius: 5px;
      overflow: hidden;
      transition: all 0.5s ease;
      flex-shrink: 0;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      position: relative;
      -webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
    }

    .slide img {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: contain;
      z-index: 0;
    }

    .slide.featured {
      width: 330px;
      height: 290px;
    }

    .caption {
      position: absolute;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      padding: 0.5rem;
      width: 100%;
      text-align: center;
      font-size: 1rem;
      color: #fff;
      opacity: 0;
      transition: opacity 0.3s ease;
      z-index: 2;
      padding-left: 2rem;
      padding-right: 2rem;
    }

    .slide.featured .caption {
      opacity: 1;
    }

    .nav-buttons {

      position: absolute;
      top: 1%;
      left: 0;
      transform: translateY(-30%);
      width: 5%;
      display: flex;
      justify-content: space-between;
      padding: 0 2rem;
    }

    .nav-buttons button {
      background: none;
      color: #822626;
      border: none;
      padding: 0.5rem 1rem;
      cursor: pointer;
      border-radius: 5px;
      font-size: 1.2rem;
      transition: background 0.3s ease;
    }

    .nav-buttons button:hover {
      color: #671d1d;
    }


    @media (min-width: 768px) {
      footer {
        margin-left: -175px;
        margin-right: -175px;
        width: calc(100% + 350px);
        
      }
      
      }
      
        @media (min-width: 1768px) {
      footer {
        margin-left: -275px;
        margin-right: -275px;
        width: calc(100% + 550px);
      }
      }


     #widget-btn {
        color: #1C2C4C;
      }

#widget-btn.invert {
  color: white; /* Белый цвет иконки, когда фон тёмный */
}

 .swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background:transparent;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

     .employee-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      max-width: 300px;
      margin: 30px auto;
      background-color:white;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
      text-align: center;
    }

    .employee-card img {
      width: 120px;
      height: 120px;
      object-fit: contain;
      /* border-radius: 50%; */
      /* border: 3px solid #1a1a2e; */
      margin-bottom: 16px;
    }

    .employee-card h2 {
      margin: 0 0 8px;
      font-size: 20px;
      color: #1a1a2e;
    }

    .employee-card p {
      margin: 0;
      font-size: 16px;
      color: #444;
    }

    /* Только для деск экранов */
    @media (min-width: 768px) {
      .section-sm {
        display: none;
      }
    }

    .swiper-button-next, .swiper-button-prev {
      color: #822626 !important;
    }

    .swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
  content:'◀'
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  content:'▶'
}

:root {
  --swiper-navigation-size:20px
}

    @media (max-width: 801px) {

      .btn-d {display: none !important;}

      .appointment-map-y {
        height: 300px;
       pointer-events: none;
      }

      .socials {
      margin-top: 20px;
      margin-bottom: 0px !important;
    }

      .logo {
        display: none;
      }
    }

    