* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #fff;
  color: #0b2b5a;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  display: block;
}

section:nth-child(1),
section:nth-child(3),
section:nth-child(5),
section:nth-child(6) {
  background-color: #ffffff;
}

section:nth-child(2),
section:nth-child(4) {
  background-color: #f0f0f0;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #dbe7ff;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  width: min(1100px, calc(100% - 32px));
}

.nav-inner .link_base{
    margin-left: 25px;
    text-decoration: none;
    color: #fff;
  }

.main_logo {
  width: clamp(150px, 22vw, 240px);
  height: auto;
  object-fit: contain;
}

h1, h2, h3 {
  line-height: 1.2;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(22px, 3vw, 34px);
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.nav-links a {
  color: #0b2b5a;
  text-decoration: none;
  transition: 0.3s;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #2d6cff;
}

.section {
  padding: 120px 0 80px;
}

.hero {
  padding-top: 140px;
}

.hero-grid,
.about-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.contacts-grid{
  position: relative;
  padding-top: 30px;
}
.contacts-grid h2{
  position: absolute;
  top: 0px;
  left: 0px;
}

.hero-img img,
.detail-hero,
.news-card img,
.service-card img,
.work-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-card img{
  height: 360px;
  object-fit: contain;
}

.hero-img img {
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(45, 108, 255, 0.15);
}

.hero-box,
.service-card,
.about-box,
.contact-box,
.news-card {
  background: #fff;
  border-radius: 24px;
}

.hero-box p {
  margin-top: 20px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #000;
  line-height: 1.1;
}

.hero-box p span {
  color: #2d6cff;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: bold;
}

.hero-box h2 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: bold;
  color: #2d6cff;
  margin-top: 10px;
}

.mini-form,
.contact-form {
  display: grid;
  gap: 12px;
}

input, button {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #cfe0ff;
  font: inherit;
  transition: 0.3s;
  outline: none;
  font-size: 16px;
  font-weight: bold;
  color: #2d6cff;
}

input:focus {
  border-color: #2d6cff;
}

button,
.btn {
  background: #2d6cff;
  color: #fff;
  padding: 12px 16px;
  border: 1px solid #2d6cff;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 14px;
}

button:hover,
.btn:hover {
  box-shadow: 0 12px 24px rgba(45, 108, 255, 0.25);
  color: #2d6cff;
  background: #fff;
}

.cards-grid,
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.news-slider {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  transition: 0.3s;
  max-height: 360px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 2px solid #000;
}

.news_under {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  position: absolute;
  bottom: 0;
  overflow: hidden;
  height: 60px;
  transition: 0.4s ease;
}

.news_name {
  text-align: center;
  font-size: 1em;
}

.news_under p {
  padding: 10px;
  text-align: left;
  display: none;
}

.news_under a {
  display: none;
  margin: 0 0 12px 10px;
}

.news-card:hover .news_under {
  height: 260px;
}

.news-card:hover .news_under p,
.news-card:hover .news_under a {
  display: block;
}

.news-slider {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slider-bullets {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.slider-bullets button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  padding: 0;
  background: #cfe0ff;
  border: 0;
}

.slider-bullets button.active {
  background: #2d6cff;
}

.service-card {
  border: 2px solid #2d6cff;
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  position: relative;
}

.service-card img {
  max-height: 300px;
  border-radius: 20px;
}

.p_cards_ser {
  padding-bottom: 52px;
  line-height: 1.5;
}

.service-card a {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.cert-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(11, 43, 90, 0.08);
}

.cert-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cert-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 43, 90, 0);
  transition: 0.3s ease;
  z-index: 1;
}

.cert-zoom-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 16px;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s ease;
  backdrop-filter: blur(4px);
}

.cert-item:hover::before {
  background: rgba(11, 43, 90, 0.38);
}

.cert-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.82);
}

.cert-item:hover .cert-zoom-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cert-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 16px;
}

.cert-modal.active {
  display: flex;
}

.cert-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 40, 0.78);
  backdrop-filter: blur(6px);
}

.cert-modal__box {
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  height: min(86vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  background: #fff;
}

.cert-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0b2b5a;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
}

.cert-modal__nav {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.cert-modal__nav button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #0b2b5a;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.body-no-scroll {
  overflow: hidden;
}

.work-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.header{
  width: 100%;
  padding-inline: 160px;
}

.work-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(to top, rgba(11, 43, 90, 0.8), rgba(45, 108, 255, 0.2));
}

.about-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.about-box {
  padding: 24px;
  min-height: 250px;
  transition: 0.3s;
  width: 100%;
  border: 2px solid #0b2b5a;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.about-box i {
  font-size: 60px;
  color: #2d6cff;
  transition: 0.3s;
}

.about-box .prem_h {
  font-weight: bold;
  font-size: clamp(18px, 2vw, 21px);
  color: #2d6cff;
  transition: 0.3s;
  text-align: center;
}

.about-box .prem_p {
  font-weight: bold;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #2d6cff;
  transition: 0.3s;
  width: 100%;
  text-align: left;
  line-height: 1.4;
}

.header_box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.about-box:hover {
  background: #2d6cff;
  color: #fff;
  box-shadow: 0 18px 40px rgba(45, 108, 255, 0.25);
}

.about-box:hover i,
.about-box:hover .prem_h,
.about-box:hover .prem_p {
  color: #fff;
}

.footer {
  text-align: center;
  padding: 3px;
  background: #0b2b5a;
  color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-inline: 20px;
}

.footer span a{
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-weight: bold;
}

.back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  background: #2d6cff;
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
}

.news_btn{
  max-width: 120px;
}

.or {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  color: #2d6cff;
  margin: 10px;
}

.socials {
  padding-top: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.socials p {
  color: #000;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.socials a,
.socials span {
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #2d6cff;
}

.mb-1{
  margin-top: 20px;
  line-height: 30px;
}

.link_base{
  color: #fff;
  background: #2d6cff;
  padding: 10px 15px;
  border: 2px solid #2d6cff;
  border-radius: 10px;
  transition: 0.5s;
  text-decoration: none;
  outline: none;
}
.link_base:hover{
  background: #fff;
  color: #2d6cff;
}

.modal-open {
  overflow: hidden;
}

.service-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 16px;
}

.service-modal.active {
  display: flex;
}

.service-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 24, 55, 0.65);
  backdrop-filter: blur(6px);
}

.service-modal__box {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 32px));
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.25s ease;
}

.service-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f6fb;
  color: #0b2b5a;
  font-size: 26px;
  cursor: pointer;
}

.place_person{
  color: #000;
  text-align: center;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
.service-modal__form {
  display: grid;
  gap: 12px;
}

.service-modal__form input {
  padding: 14px 16px;
  border: 1px solid #d6e3ff;
  border-radius: 14px;
  outline: none;
  width: 100%;
}

.service-modal__form input:focus {
  border-color: #2d6cff;
  box-shadow: 0 0 0 4px rgba(45, 108, 255, 0.12);
}

@keyframes modalIn {
  from { transform: translateY(12px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@media(max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .news-slider {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-boxes {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 900px){
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .section {
    padding: 100px 0 70px;
  }

  .hero {
    padding-top: 120px;
  }

  .news_btn{
    max-width: auto;
  }

  .about-boxes{
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .news-slider {
    grid-template-columns: 1fr;
  }

  .service-card a {
    position: static;
    width: 100%;
  }

  .p_cards_ser {
    padding-bottom: 0;
  }

  .news-card {
    max-height: none;
  }

  .news_under {
    height: auto;
    position: static;
    background: rgba(255, 255, 255, 0.95);
  }

  .news_under p,
  .news_under a {
    display: block;
  }

  .about-boxes {
    grid-template-columns: 1fr;
  }

  .header_box {
    justify-content: space-between;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media(max-width: 640px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .navbar {
    position: sticky;
  }

  .nav-inner {
    padding: 12px 0;
    position: relative;
  }
  .nav-inner .link_base{
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .main_logo {
    width: 170px;
  }

  .section {
    padding: 90px 0 60px;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-box p {
    font-size: 15px;
  }

  .hero-box h2 {
    font-size: 18px;
  }

  .service-card,
  .hero-box,
  .about-box,
  .contact-box,
  .news-card {
    border-radius: 18px;
  }

  .service-card img {
    max-height: 220px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .cert-item {
    aspect-ratio: 1 / 1;
  }

  .cert-zoom-btn {
    width: 46px;
    height: 46px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
  }

  .service-modal__box {
    width: min(100%, 520px);
    padding: 20px;
    border-radius: 20px;
  }

  .cert-modal__box {
    width: 100%;
    height: 78vh;
  }

  .cert-modal__nav {
    bottom: 10px;
  }
}

.text_works_main{
  font-size: 16px;
  font-weight: bold;
  color: #2d6cff;
  text-align: center;
}

@media(max-width: 480px){
  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 13px;
  }

  h2 {
    font-size: 20px;
  }

  .main_logo {
    width: 150px;
  }

  .cards-grid,
  .works-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-item {
    width: 100%;
  }

  .cert-modal__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .cert-modal__nav button {
    width: 46px;
    height: 46px;
  }

  .back-btn {
    top: 12px;
    left: 12px;
    padding: 10px 14px;
  }
}

.news-swiper {
  padding-bottom: 60px;
}

.news-swiper .swiper-slide {
  height: auto;
}

.news-card {
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid #000;
  border-radius: 24px;
  background: #fff;
}

.news-card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  display: block;
}

.news_under {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  position: absolute;
  bottom: 0;
  transition: 0.35s ease;
  overflow: hidden;
  height: 60px;
}

.news-card:hover .news_under {
  height: 260px;
}

.news-card:hover .news_under p,
.news-card:hover .news_under a {
  display: block;
}

.news_under p,
.news_under a {
  display: none;
}

.news-controls {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.news-pagination {
  position: static !important;
  width: auto !important;
}

.news-nav {
  display: flex;
  gap: 10px;
}

.news-prev,
.news-next {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #2d6cff;
  background: #fff;
  color: #2d6cff;
  cursor: pointer;
  transition: 0.25s;
  font-size: 18px;
}

.news-prev:hover,
.news-next:hover {
  background: #2d6cff;
  color: #fff;
}

max-width: 900px {
  .news-card img {
    height: 280px;
  }
}
.second_logo{
  border-radius: 20px;
}

/* секция "Наши клиенты" */

#works.section {
  padding: 60px 0;
  background: #f9fafb;
}

#works .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

#works h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.works-nav {
  display: flex;
  gap: 10px;
}

.works-nav button {
  border: none;
  background: #e5e7eb;
  color: #4b5563;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.works-nav button:hover {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37,99,235,0.25);
}

.works-nav i {
  font-size: 14px;
}

/* Swiper контейнер */

.works-swiper {
  padding-bottom: 40px; /* место под булеты */
}

.works-swiper .swiper-slide {
  height: auto;
}

/* карточка клиента */

.work-card {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.12);
}

.work-image-wrap {
  position: relative;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.work-image-wrap img {
  width: 300px;
  height: 250px;
  object-fit: contain;
  border-radius: 20px;
}

.work-overlay {
  padding: 10px 14px 14px;
  font-size: 14px;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
  display: none;
}

/* пагинация Swiper для блока клиентов */

.works-pagination.swiper-pagination {
  bottom: 0;
}

.works-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  margin: 0 4px !important;
}

.works-pagination .swiper-pagination-bullet-active {
  background: #2563eb;
}

/* адаптив */

@media(max-width: 767px) {
  #works h2 {
    font-size: 22px;
  }

  #works .section-header{
    flex-direction: column;
    gap: 20px;
  }

  .works-nav button {
    width: 32px;
    height: 32px;
  }
}
.contact-form .form-error {
  margin-top: 6px;
  font-size: 13px;
  color: #ef4444;
}