html {
  font-size: 20px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Josefin Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  background-color: #eceff3;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
    flex: 1; 
}
footer {
    flex-shrink: 0; 
}

:root {
  --main-blue: rgb(74, 174, 255);
  --shadow-color: rgba(0, 140, 255, 0.4);
  --text-color: #2c3e50;
}

header {
  position: sticky; 
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem; 
  background-color: var(--main-blue);
  box-shadow: 0 0.25rem 0.9375rem var(--shadow-color);
  border-bottom-left-radius: 1.25rem;
  border-bottom-right-radius: 1.25rem;
}

.header__logo {
  padding-left: 0.625rem;
}

.header__logo-title {
  margin: 0.625rem; 
  font-weight: 550;
  text-decoration: none;
  color: black;
  font-size: 1.625rem;
  display: block;
  text-wrap: wrap;
  width: 6.25rem;
  opacity: 0.7;
  animation: blink 3s infinite ease;
  transition: all 1.5s;
}

.header__logo-title:hover {
  opacity: 0.8;
  animation: none;
}

@keyframes blink {
  0% {
    color: black;
  }
  50% {
    color: white;
  }
  100% {
    color: black;
  }
}

.header__cont {
  display: flex;
  gap: 9.375rem;
  font-size: 1.375rem; 
  opacity: 0.7;
}

.header__cont-number {
  text-decoration: none;
  color: black;
}

.header__nav {
  padding-right: 0.625rem;
  padding-top: 0.9375rem;
  display: flex;
  gap: 6.5625rem;
  font-size: 1.125rem; 
  opacity: 0.8;
}

.header__nav-links {
  text-decoration: none;
  color: black;
  transition: all 0.3s ease;
}

.header__nav-links:hover {
  color: white;
}

.header__nav-panel {
  position: relative;
  z-index: 200;
}

.header__nav-panel:hover .header__panel-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translate(
    0.9375rem,
    0.625rem
  );
}

.header__panel-link {
  color: rgb(0, 0, 0);
  position: relative;
  padding-bottom: 0.625rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.header__nav-panel:hover .header__panel-link {
  color: white;
}

.header__panel-wrapper {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.header__panel-list {
  box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.1); 
  background-color: white;
  border-radius: 0.625rem; 
  box-shadow: 0px 0px 1.0625rem rgba(2, 104, 187, 0.678); 
  width: 12.5rem; 
  transform: translateX(-0.9375rem); 
}

.header__panel-a {
  display: block;
  padding: 0.3125rem 0.625rem; 
  color: black;
  text-decoration: none;
  font-size: 1.125rem; 
}

/* Стили для бургера (скрыт на десктопе) */
.header__burger {
  display: none;
  width: 1.875rem;
  height: 1.62rem;
  position: relative;
  cursor: pointer;
  z-index: 10;
}

.header__burger span {
  position: absolute;
  background-color: black;
  left: 0;
  width: 100%;
  height: 0.125rem; 
  top: 0.75rem; 
  transition: all 0.3s ease;
}

.header__burger::before,
.header__burger::after {
  content: "";
  background-color: black;
  position: absolute;
  width: 100%;
  height: 0.125rem; 
  left: 0;
  transition: all 0.3s ease;
}

.header__burger::before {
  top: 0;
}
.header__burger::after {
  bottom: 0;
}

/* Анимация бургера в крестик */
.header__burger.active::before {
  transform: rotate(45deg);
  top: 0.75rem; 
}
.header__burger.active::after {
  transform: rotate(-45deg);
  bottom: 0.75rem; 
}
.header__burger.active span {
  transform: scale(0);
}

/* welcome */

.container {
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.welcome {
  margin-left: auto;
  margin-right: auto;
  max-width: 125rem;
  margin-top: -50px;
  background-image: url("./IconAndSomePhoto/backtwo.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.welcome__text {
  padding-top: 21.875rem;
  padding-bottom: 9.375rem;
  max-width: 42rem;
  margin-left: 5rem;

}
.welcome__text-text {
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.65);
  border-radius: 1.25rem;
  padding: 1rem 1rem 2rem 1rem;
}
.welcome__title,
h2 {
  font-size: 3.125rem; 
  color: black;
  opacity: 0.7;
}

.welcome__desk {
  font-size: 1.4rem; 
  max-width: 31.25rem; 
  opacity: 0.8;
}

.btn {
  text-decoration: none;
  text-align: center;
  color: rgba(0, 0, 0, 0.808);
  position: relative;
  font-size: 1.2rem; 
  text-transform: uppercase;
  width: 13rem;
  height: 3.125rem; 
  background-color: var(--main-blue);
  border-radius: 1.25rem; 
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.8;
  transition: all 0.3s;
}

.btn:hover {
  opacity: 1;
}

/* transition */

.transition .container {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -1.25rem;
  gap: 1.25rem; 
  max-width: 100%;
}

.poloska {
  width: 100%;
  height: 0.25rem; 
  background-color: rgba(46, 152, 238, 0.678);
}

.tochka {
  width: 2.5rem; 
}

/* Сервис */
.service {
  padding-bottom: 3.125rem; 
  padding-top: 3.125rem;
}

.service .container {
  display: block;
  justify-content: center;
}

.service__title {
  text-align: center;
  opacity: 0.8;
  font-size: 2.5rem; 
  padding-bottom: 4.375rem; 
}

.service__cards {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3125rem; 
}

.service__cards-card {
  width: 25rem; 
  height: 15.625rem; 
  background-color: white;
  border-radius: 0.625rem; 
  box-shadow: 0px 0px 0.625rem 0px rgba(139, 139, 139, 0.678); 
  transition: all 0.3s;
}

.service__cards-card:hover {
  box-shadow: 0px 0px 1.25rem 0px rgba(139, 139, 139, 0.678); 
}

.service__card-text {
  margin: 1.875rem 1.875rem 0 1.875rem; 
}

.service__subtitle {
  font-size: 1.5rem;
  opacity: 0.7;
}

.service__desk {
  margin-top: 1.875rem;
  font-size: 1.125rem; 
  opacity: 0.7;
  font-weight: 500;
}

.link {
  display: block;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 100;
  color: rgba(0, 140, 255, 0.87);
  margin-top: 3.125rem;
}

/* Описание */
.description {
  padding-bottom: 6.25rem; 
  background-color: white;
}

.description__title {
  text-align: center;
  font-size: 2.875rem; 
  font-weight: bold;
}

.description__plitka {
  display: flex;
  justify-content: center;
  align-items: center;
}

.description__img {
  max-width: 43.75rem; 
}

.description__text-title {
  font-size: 2.25rem;
  color: rgba(0, 140, 255, 0.89);
  font-weight: bold;
  padding-left: 1.375rem; 
}

.description__card {
  display: flex;
  align-items: center;
  text-wrap: wrap;
  max-width: 40.5rem;
  height: 4.125rem; 
  box-shadow: 0px 0.375rem 0.625rem 0px rgba(0, 140, 255, 0.678); 
  background-color: white;
  border-radius: 1.125rem;
  margin: 1.5625rem; 
  transition: transform 0.3s;
  opacity: 0.8;
  padding: 0.3rem 0.5rem;
}

.description__card:hover {
  transform: translateY(-0.625rem); 
}

.description__card-img {
  width: 3.125rem;
  height: 3.125rem; 
}

.description__card-desk {
  font-size: 1.4rem; 
  opacity: 1;
  padding-left: 0.5rem;
}

.before {
  width: 100%;
  margin-bottom: -3.125rem; 
}

.after {
  width: 100%;
  transform: rotate(180deg);
}


/* about */

.about {
  background-image: url("./IconAndSomePhoto/bacthr.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding-bottom: 6.25rem; 
  padding-top: 6.25rem; 
  margin-left: auto;
  margin-right: auto;
  max-width: 125rem;
  margin-top: 1rem;
}

.about__title {
  padding: 1rem;
  max-width: fit-content;
  margin-top: 9rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  opacity: 0.8;
  font-size: 3.125rem; 
  background-color: rgba(255, 255, 255, 0.504);
  border-radius: 5rem; 
}

.about__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  margin-left: 10rem;
  margin-right: 10rem;
}

.about__cards-card {
  background-color: rgba(255, 255, 255, 0.647);
  width: 13rem;
  height: 13rem;
  border-radius: 35%; 
  margin-top: 30rem; 
  box-shadow: 0 0 0.9375rem 0 rgba(139, 139, 139, 0.678);
}

.about__first {
  animation: MoveDownUp 10s linear infinite;
}

@keyframes MoveDownUp {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3.125rem);
  }
}

.about__cards-card:nth-child(3n + 1) {
  margin-top: 6.25rem; 
}

.about__second {
  animation: MoveUpDown 10s linear infinite;
}

@keyframes MoveUpDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3.125rem); 
  }
}

.about__card-text {
  text-align: center;
  margin-top: 3.75rem;
  opacity: 0.7;
}

.about__card-title {
  font-size: 2.25rem; 
  color: rgba(0, 140, 255, 0.89);
  margin-bottom: 0;
}

.about__card-desk {
  font-size: 1.125rem; 
  margin-left: 1.875rem; 
  margin-right: 1.875rem;
}

/* trust */
.trust {
    padding: 5rem 0; 
    width: 100%;
    border-bottom: 0.3rem rgb(74, 174, 255) solid;
}
.trust .container {
  display: grid;
  justify-items: center;
}
.trust .btn {
  margin: 3rem;
}
.trust__title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}
/* Контейнер самого слайдера */
.mySwiper {
    width: 100%;
    height: 25rem; 
    padding: 1.25rem 0; 
}


.swiper-slide {
    width: auto !important; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.trust .swiper-slide img {
    height: 100%;
    width: 18rem;
    object-fit: cover;
    display: block; 
    border-radius: 1.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

/* Кнопки навигации */
.swiper-button-next, .swiper-button-prev {
    color: var(--main-blue);
    top: 50%;
    transform: translateY(-50%);
    width: 40px; 
    height: 40px;
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 16px; 
}

/* request / form */

.request {
  padding-top: 3.125rem; 
  padding-bottom: 3.125rem; 
  max-width: 70rem; 
  margin-left: auto;
  margin-right: auto;
}

.request .container {
  background-color: rgba(0, 0, 0, 0.849);
  padding: 3.125rem 6.25rem 6.25rem 6.25rem; 
  color: white;
  box-shadow: 0px 0px 2.1875rem 0px rgba(48, 48, 48, 0.678);
  border-radius: 0.625rem; 
}

.request__text {
  text-align: center;
  opacity: 0.8;
}

.request__title {
  color: white;
  font-size: 2.5rem; 
  margin: 0;
}

.request__desk {
  font-size: 1.375rem; 
  margin-top: 0.25rem;
}

.form {
  margin: 0 auto;
  display: grid;
  gap: 0.625rem; 
  justify-content: center;
  align-items: center;
  text-align: center;
}

.form__label {
  font-size: 1.375rem; 
  margin: 0 auto;
}

.form__input {
  border: 0;
  border-radius: 0.3125rem; 
  text-wrap: wrap;
  font-size: 1.125rem; 
  width: 15.625rem; 
  height: 3.125rem; 
  background-color: rgba(0, 0, 0, 0.185);
  border: 2px solid #3498db;
  color: white;
  margin: 0 auto;
  padding-left: 1.25rem; 
}

.form__input:focus {
  box-shadow: 0px 0px 0.9375rem 0px rgb(0, 140, 255);
}

.form__privacy {
    display: flex;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.form__checkbox {
    margin-right: 1rem;
    cursor: pointer;
    width: 1rem; 
    height: 1rem;
}

.form__privacy-label {
    font-size: 1rem;
    cursor: pointer;
}

.form__privacy-label a {
    color: white;
    text-decoration: underline;
}

.form__privacy-label a:hover {
    text-decoration: none;
}



.form__button {
  width: 12.5rem;
  height: 3.125rem; 
  font-size: 1.25rem;
  border-radius: 0.9375rem;
  background-color: rgba(0, 140, 255, 0.89);
  color: rgba(255, 255, 255, 0.884);
  border-color: rgba(0, 140, 255, 0.89);
  transition: all 0.3s;
  cursor: pointer;
  margin: 0 auto;
}

.form__button:hover {
  background-color: rgb(0, 140, 255);
  color: white;
}

.form__check {
  font-size: 1.375rem; 
  padding-top: 0.625rem; 
  text-align: center;
  opacity: 0.7;
}

/* more */

.more {
  background-image: url("./IconAndSomePhoto/morebackphoto.png");
  margin-left: auto;
  margin-right: auto;
  max-width: 125rem;
  margin-top: -50px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.more__title {
  padding-top: 5rem;
  text-align: center;
  opacity: 0.8;
}

.more .container {
  background-color: rgb(255 255 255 / 0.56);
  border-radius: 10%;
  max-width: 80rem;
}

.more__subtitle {
  text-align: center; 
  line-height: 3rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 52rem;
  margin-top: 5rem;
  margin-bottom: 5rem;
}

.more__text {
  font-size: 1.5rem;
}

.more__text-box {
  display: flex;
  justify-content: space-between;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.more__text-subtitle {
  text-wrap: nowrap;
}

.more__text-desk {
  max-width: 20rem;
  text-align: end;
  padding-top: 0.5rem;
}
/* ---- Gallery (Превьюшки) ---- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 20px;
}
.photos-title {
  text-align: center;
}
.photo-item {
  width: 18rem;
  height: 15rem;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* ---- Lightbox (Окно во весь экран) ---- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.98); 
    z-index: 5000;
}

/* Контейнер слайдера в лайтбоксе */
.gallery-swiper {
    width: 100vw;
    height: 100vh;
    overflow: hidden !important; 
}

/* Слайд в лайтбоксе - перебиваем стили другого слайдера */
.gallery-swiper .swiper-slide {
    width: 100vw !important; 
    height: 100vh !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; 
}
.photos .swiper-slide img {
  height: 90%;
}
/* Контейнер зума */
.swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.gallery-swiper .swiper-zoom-container img {
    width: 100%;
    height: 90%;
    object-fit: contain;
    border-radius: 0 !important; 
    box-shadow: none !important; 
    -webkit-user-drag: none;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 45px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 6000;
}

/* Стрелки */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: white !important;
    width: 45px;
    height: 45px;
}


/* footer */


footer {
  background-color: rgba(0, 0, 0, 0.932);
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: white;
}

footer .container {
  display: flex;
  justify-content: space-between;
  padding-left: 2rem;
  padding-right: 2rem;
}

.footer__logo-title {
  margin-top: 1rem;
  font-size: 2rem;
  opacity: 0.7;
  width: 10rem;
  display: block;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.footer__adres {
  font-size: 1rem;
  opacity: 0.7;
}

.footer__adres-adr {
  margin: 0.5rem;
  display: block;
}

.footer__cont {
  font-size: 1rem;
  opacity: 0.7;
}

.footer__cont-desk {
  display: block;
  margin: 0.5rem;
  cursor: pointer;
  color: white;
  text-decoration: none;
}

.footer__polit {
  text-align: center;
  border-top-style: solid;
  border-top-width: 0.1rem;
  border-color: black;
  padding-top: 1rem;
}

.footer__polit-konf {
  text-decoration: none;
  display: block;
  color: white;
  opacity: 0.7;
}


/* МОБИЛЬНАЯ АДАПТАЦИЯ */

@media (max-width: 2000px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 100em) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 84em) {
}

@media (max-width: 80em) {
  html {
    font-size: 13px;
  }
  .description__plitka {
    display: grid;
    align-items: center;
    justify-content: center;
  }
  .description__plitka > * {
    grid-area: 1 / 1; 
    align-items: center;
  }
  .description__text-title {
    text-align: center;
  }
  .description__card {
    padding: 0.7rem;
  }
  .description__img {
    display: none;
  }
}

@media (max-width: 62em) {
  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 40px;
  }
  .photo-item {
    width: 15rem; 
    height: 15rem;
  }

  .header__burger {
    display: block;
  }

  .header__info {
    position: fixed;
    top: -100vh; 
    left: 0;
    width: 100%;
    height: auto;
    background-color: rgb(74, 174, 255);
    padding: 0.625rem; 
    transition: all 0.5s ease;
    flex-direction: column;
    align-items: center;
    gap: 1.875rem; 
    box-shadow: 0 3.125rem 6.25rem rgba(0, 0, 0, 0.2); 
    border-bottom-left-radius: 1.875rem; 
    border-bottom-right-radius: 1.875rem; 
  }

  .header__info.active {
    top: 0;
  }

  .header__cont {
    flex-direction: column;
    gap: 0.3125rem;
    padding: 0.625rem; 
    text-align: center;
  }

  .header__nav {
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem; 
    padding: 0;
  }

  /* На мобилках выпадающее меню лучше сделать открытым или по клику */
  .header__panel-wrapper {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none; 
    margin-top: 0.625rem; 
  }
  .header__nav-panel {
    text-align: center;
  }

  .header__nav-panel:hover .header__panel-wrapper {
    display: block; 
    transform: none;
    align-items: center;
  }

  .header__panel-list {
    transform: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    width: auto;
  }
  .welcome .btn {
    opacity: 0.9;
  }
  .description__card {
    padding: 1.1rem;
  }
  .description__img {
    display: none;
  }
  .about__cards {
    max-width: 30rem;
    margin-top: -5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .about__third {
    animation: MoveDownUp 10s linear infinite;
  }

  .about__cards-card {
    margin-top: 6.25rem; 
  }

  .about__fourth {
    animation: MoveUpDown 10s linear infinite;
  }
  .about__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 55em) {
  .welcome__text {
    padding-top: 28rem;
    margin-left: 2rem;
    padding-bottom: 8rem;
  }
}

@media (max-width: 48em) {
  .welcome {
    background-image: url(./IconAndSomePhoto/backtwoPhone.jpg);
  }
  .welcome .container {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .welcome__text {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    padding-top: 13rem;
    padding-bottom: 12rem;
    max-width: 38rem;
  }

  .welcome__title,
  h2 {
    font-size: 2.5rem; 
  }

  .welcome__text-text {
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .description__card {
    margin: 1rem;
  }

  .about {
    background-image: url("./IconAndSomePhoto/backthrPhone.jpg");
  }

  .about__cards-card {
    width: 11.5rem; 
    height: 10rem; 
    padding-bottom: 2rem;
  }
  .mySwiper {
        height: 20rem;
    }
    .swiper-button-next, .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    .swiper-button-next::after, .swiper-button-prev::after {
        font-size: 12px;
    }
  .photo-item {
    width: 12rem; 
    height: 12rem; 
  }

  .container {
    padding: 0;
  }
  .request .container {
    padding: 2rem;
  }
  .about .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  footer .container {
    display: grid;
    grid-template-columns: repeat(1, 3fr); 
    justify-items: center;
    text-align: center;
  }
  .footer__logo-title {
    width: fit-content;
  }
  .more {
    background-image: url("./IconAndSomePhoto/morebackpotophone.png");
  }
  .more__text {
    font-size: 1.2rem;
  } 
  .more__subtitle {
    font-size: 1.3rem;
    line-height: 1.6rem;
  }
  .more .container {
    border-radius: 0%;
  }
  .gallery { padding: 0.625rem; gap: 0.625rem; }
}

@media (max-width: 350px) {
  .about .container {
    padding-left: 0rem;
    padding-right: 0rem;
  }

}



















































































