/* ==== Reset & base ======================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background-color: #fff;
  font-family: 'Nunito Sans', sans-serif;
}

h2 { font-weight: 700; }

.sub-header {
  color: #777;
  padding-top: 30px;
  padding-bottom: 50px;
}

.fb2022-copy { display: none; }
.mainmargin   { margin-top: 180px; }

/* ==== Light icons section (4 карточки) =================================== */
.light-section {
  background-image: url("../img/circle.svg");
  background-repeat: no-repeat;
  background-size: auto 80%;
  background-position: center;
  padding: 100px 0;
}

.btn {
  border-radius: 20px;
  padding: 5px 20px;
}
.btn:hover { color: #fff; }

/* отдельная синия кнопка вне навбара */
.btn-blue {
  background-color: #0161cd;
  color:#fff;
}
.btn-blue:hover { filter: brightness(.9); }

ul.text-list { list-style: none; }
ul.text-list li {
  padding-left: 1em;
  text-indent: -1em;
}
ul.text-list li:before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: "\f111";
  color: rgba(97, 81, 249, .13);
  padding-right: 10px;
  font-size: .8em;
}

/* ==== Navbar / header ===================================================== */
nav { background-color: transparent; }
nav .navbar-brand { width: 150px; }
nav .navbar-brand img { width: 100%; }
nav .navbar-toggler:focus,
nav .navbar-toggler:active,
nav .navbar-toggler-icon:focus { outline: none; box-shadow: none; }
nav .fas { color: #fff; }
nav .navbar-nav .nav-item { padding: 5px; }
nav .navbar-nav .nav-item a { color: #fff; }
nav .navbar-nav .nav-item .btn-item {
  padding: 5px 20px;
  background-color: #fff;
  border: none;
  border-radius: 20px;
}
nav .active { font-weight: 700; color: #bed1ec !important; }

.nav-dark { background-color: #0c2533; }
.shadow-bg {
  background: linear-gradient(120deg, #6151f9cc 0%, #f75f9ecc 100%);
  backdrop-filter: blur(6px);
}

/* статично светлая шапка (когда надо без зависимости от скролла) */
.shadow-static {
  background-color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.shadow-static .navbar-nav .nav-item a { color: #0c2533 !important; }
.shadow-static .nav-link.active { color: #6151f9 !important; font-weight: 700; }
.shadow-static .fas { color: #0c2533; }

/* кнопка в навбаре */
.navbar .btn {
  border-radius: 20px;
  padding: 6px 18px;
  font-weight: 600;
}
.navbar .btn-primary {
  background-color: #ff4c61;
  border: none;
}
.navbar .btn-primary:hover { background-color: #e63b50; }

header {
  position: relative;
  background-image: linear-gradient(120deg, #6151f9 0%, #f75f9e 100%);
  width: 100%;
  color: #fff;
  border-bottom-right-radius: 100px;
  z-index: 0;
  padding-top: 100px;
}
header .header { z-index: 2; }
header .img-circle {
  position: absolute; width: 636px; height: 636px;
  top: 0; left: 0; transform: translate(-50%,-50%); z-index: -1;
}
header .img-dots {
  position: absolute; width: 88px; height: 74px; bottom: 0; left: 30%;
}
header h1 { font-weight: 700; }
header img { width: 100%; }
header .header-btn {
  text-decoration: none; margin-top: 20px; padding: 15px 25px;
  border-radius: 30px; background: #fff; color: #000 !important;
}
header .header-btn svg { margin-left: 10px; }

/* ==== Light cards ========================================================= */
.light-section .light-section-item { padding-bottom: 30px; }
.light-section .title { color: #000; padding-top: 40px; font-weight: 700; }
.light-section p { color: #777; }
.light-section a {
  background: transparent; border: none; font-weight: 700;
  text-decoration: none; color: #000;
}

/* ==== WHY CHOOSE (светлый блок с картинкой) ============================== */
.light-gray-section {
  background-color: #F7FAFE;
  width: 100%;
  overflow: hidden;
  position: relative;
  text-align: left;

  /* раскладка: текст слева, картинка справа */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 0; /* отступы задаются контейнером секции в HTML */
}

.light-gray-section .text {
  flex: 1 1 55%;
  z-index: 5;
  padding-right: 20px;
}

.light-gray-section ol { list-style: decimal inside; }
.light-gray-section li {
  font-weight: 700;
  font-size: 20px;
}
.light-gray-section li p {
  font-weight: 400;
  font-size: 1rem;
}

/* картинка справа как обычный блок */
.light-gray-section .bg-img {
  flex: 1 1 40%;
  position: static;
  text-align: center;
  margin-top: 0;
}
.light-gray-section .bg-img img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.light-gray-section .bg-img img:hover { transform: scale(1.03); }

/* опционально: красивая градиентная рамка через обёртку */
.img-frame {
  display: inline-block;
  padding: 4px;
  border-radius: 20px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
}
.img-frame > img { border-radius: 16px; display: block; }

/* ==== Various blocks (оставил как было) ================================== */
.bottom { position: relative; }
.bottom .img-circle-left img {
  position: absolute; height: 80%; left: 0; transform: translate(-50%);
}
.bottom .img-circle-right img {
  position: absolute; height: 80%; right: 0; transform: translate(50%);
}
.bottom h2 { font-weight: 700; padding-bottom: 30px; }

.testimonial .client .photo {
  width: 280px; height: 250px; border-radius: 10px; margin: auto;
}
.testimonial .client .photo img { width: 100%; }
.testimonial .client .name { font-weight: 600; font-size: 1.5em; padding: 10px 0; margin: 0; }
.testimonial .client .position { font-size: .8em; }
.testimonial .testimonial-text { padding: 20px 5px; font-size: .8em; }
.testimonial .quote { display: none; }

.controllers { position: absolute; bottom: 0; right: -50%; }
.controllers button { border: none; background: transparent; margin-left: 20px; }

.sidebar { background: #F7FAFE; }
.sidebar .input-group { margin-top: 10px; }
.sidebar .input-group .form-control { border-radius: 20px; padding: 5px 10px; }
.sidebar .input-group .form-control:focus { box-shadow: none; border-color: #0161cd; }
.sidebar .input-group .color {
  background: #0161cd; border: 3px solid #0161cd;
  border-bottom-right-radius: 20px; border-top-right-radius: 20px; color: #fff;
}
.sidebar .input-group .color:hover { cursor: pointer; }
.sidebar .recent-post { margin-top: 50px; }
.sidebar .recent-post h4 { margin-bottom: 30px; font-weight: 600; }
.sidebar .recent-post ul { margin: 0; padding: 0; overflow: hidden; }
.sidebar .recent-post ul li {
  overflow: hidden; font-size: 14px; margin-bottom: 20px; padding-bottom: 20px;
}
.sidebar .recent-post .recent-post-thumb {
  float: left; overflow: hidden; margin-right: 15px; height: 75px; width: 75px;
  border-radius: 50%; border: 5px solid rgba(97,81,249,.1);
}
.sidebar .recent-post .recent-post-thumb img { height: 100%; }
.sidebar .recent-post .recent-post-content h5 {
  font-size: 18px; font-weight: 600; cursor: pointer; line-height: 24px;
}
.sidebar .recent-post .recent-post-content h5 a { text-decoration: none; color: #000; }
.sidebar .recent-post .recent-post-content h5 a:hover { color: #0161cd; }
.sidebar .recent-post .recent-post-meta span { margin-right: 15px; }
.sidebar .recent-post .recent-post-meta span i { color: #0161cd; }

.sidebar .sidebar-benefits-items h4 { margin-bottom: 30px; font-weight: 600; }
.sidebar .sidebar-benefits-items .sidebar-benefits-item {
  margin-bottom: 20px; padding: 30px 15px; background: #fff; border-radius: 10px;
  box-shadow: 0 0 5px 5px rgba(0,0,0,.05);
}
.sidebar .sidebar-benefits-items .sidebar-benefits-item .sidebar-benefits-item-title {
  display: flex; gap: 20px; margin-bottom: 10px; align-items: baseline;
}
.sidebar .sidebar-benefits-items .sidebar-benefits-item .sidebar-benefits-item-title .icon { width: 80px; }
.sidebar .sidebar-benefits-items .sidebar-benefits-item .sidebar-benefits-item-title .icon img { width: 100%; }
.sidebar .sidebar-benefits-items .sidebar-benefits-item .sidebar-benefits-item-title .title {
  font-weight: 600; font-size: 18px;
}

.team-wrapper {
  padding: 50px 0;
  background-image: url("../img/circle.svg");
  background-position: center;
  background-repeat: no-repeat;
}
.team-wrapper .team {
  display: flex; flex-wrap: wrap; justify-content: space-around; margin-top: 50px;
}
.team-wrapper .team .team-item { padding: 20px; }
.team-wrapper .team .team-item .photo {
  width: 300px; height: 300px; overflow: hidden; border-radius: 10px;
}
.team-wrapper .team .team-item .photo img { height: 100%; }
.team-wrapper .team .team-item .name { font-weight: 600; font-size: 1.3em; }

.single-post img { width: 100%; padding: 0 0 20px; }
.single-post .post-sub-title { font-weight: 600; }
.single-post .post-meta {
  display: flex; background: #F7FAFE; padding: 5px 0; margin: 15px 0;
}
.single-post .post-meta div { margin-left: 15px; }
.single-post .post-meta div i { color: #0161cd; }
.single-post .blockquote { background: #F7FAFE; padding: 15px; }
.single-post .blockquote .icon { margin-right: 20px; }
.single-post .blockquote .icon i { font-size: 40px; color: rgba(12,37,51,.3); }
.single-post .quote-author { font-size: .8em; }
.single-post .share {
  padding: 15px 0 30px; display: flex; justify-content: space-between; gap: 15px;
}
.single-post .share a {
  padding: 5px 15px; text-decoration: none; color: #fff; display: inline-block; border-radius: 20px;
}
.single-post .share a.fb { background:#4267B2; }
.single-post .share a.google { background:#db4a39; }
.single-post .share a.twit { background:#1DA1F2; }
.single-post .share a.link { background:#0e76a8; }
.single-post .share a.pin { background:#E60023; }
.single-post .share a:hover { transform: scale(1.08); }
.single-post .navigation { display: flex; justify-content: space-between; }
.single-post .navigation a { color:#777; text-decoration:none; }
.single-post .navigation a:hover { cursor:pointer; color:#0161cd; }
.single-post #commentForm,
.single-post #contactForm { padding: 30px 0; }
.single-post #commentForm input,
.single-post #commentForm textarea,
.single-post #contactForm input,
.single-post #contactForm textarea { border-radius: 20px; }
.single-post #commentForm textarea,
.single-post #contactForm textarea { border-bottom-right-radius: 0; }
.single-post #commentForm textarea:focus,
.single-post #commentForm input:focus,
.single-post #contactForm textarea:focus,
.single-post #contactForm input:focus { box-shadow:none; border-color:#0161cd; }

.all-posts .post-item { display: flex; margin-bottom: 40px; }
.all-posts .post-item .post-img {
  overflow: hidden; margin-right: 15px; height: 200px; min-width: 200px;
  border-radius: 50%; border: 10px solid rgba(97,81,249,.1);
}
.all-posts .post-item .post-img img { height: 100%; }
.all-posts .post-item .post-main-info .post-title { font-weight: 600; font-size: 1.6em; }
.all-posts .post-item .post-main-info .post-meta { padding: 10px 0; background: #F7FAFE; margin-bottom: 10px; }
.all-posts .post-item a { text-decoration: none; color: #000; }
.all-posts .post-item a .hover { display: none; }
.all-posts .post-item a:hover { cursor: pointer; color: #0161cd; }
.all-posts .post-item a:hover .arrow { display: none; }
.all-posts .post-item a:hover .hover { display: inline-block; }

.pagination { margin-top: 30px; }
.pagination li a { color: #000; }
.pagination li a:hover { color: #0161cd; }
.pagination li .active,
.pagination li .active:hover {
  background:#0161cd; color:#fff; border-color:#0161cd;
}
.pagination li .a:focus { outline: none; }
.pagination .page-link:focus { box-shadow: none !important; }

.portfolio-page .portfolio .card { margin-bottom: 20px; }
.portfolio-page .portfolio .card a { display: block; }
.portfolio-page .portfolio .card-img-overlay {
  background-color: rgba(0,0,0,.6); height: 20%; top: 80%;
}

/* ==== Footer ============================================================= */
footer {
  background:#0c2533; color:#fff; text-align:center; margin-top: 80px;
}
footer .footer-item { padding-bottom: 20px; }
footer .footer-item .footer-item-title { font-size: 24px; font-weight: 700; padding-bottom: 20px; }
footer .footer-item a { display:block; text-decoration:none; color:#fff; padding-bottom: 16px; }
footer .footer-item a:hover { color:#0161cd; }
footer .footer-item .form-control {
  padding: 5px 20px; background: transparent; border: 1px solid #fff; border-radius: 20px;
}
footer input.form-control:focus { color: #fff; }
footer .copyright p a { text-decoration:none; color: rgba(255,255,255,.6); }
footer .copyright p a:hover { color:#0a58ca; }

/* ==== Media ============================================================== */
@media (min-width:768px){
  footer { text-align:left; }
  .bottom { text-align:left; }
  .testimonial { display:flex; }
  .testimonial .client .photo { width:280px; height:250px; border-radius:7px; }
  .testimonial .client .photo img { width:100%; }
  .testimonial .client .name { font-weight:600; font-size:1.5em; padding:10px 0; margin:0; }
  .testimonial .client .position { font-size:.8em; }
  .testimonial .testimonial-text { padding:20px 80px; }
  .controllers { position:absolute; bottom:0; right:0; }
}

@media (min-width:992px){
  header { padding: 100px 0; border-bottom-right-radius:150px; }
  header h1 { font-size: 50px; }
  header p  { font-size: 15px; }
  .testimonial .quote { display:block; }
  .testimonial .testimonial-text { font-size: 1em; }
}

@media (min-width:1200px){
  header { padding: 200px 0; border-bottom-right-radius:200px; }
  header h1 { font-size: 60px; }
  header p  { font-size: 17px; }
}

@media (max-width: 991.98px){
  /* на мобилке картинка уходит под текст */
  .light-gray-section { flex-direction: column; align-items: flex-start; }
  .light-gray-section .text { padding-right: 0; }
  .light-gray-section .bg-img { width: 100%; margin-top: 24px; }
}
.img-frame {
  display: inline-block;
  padding: 6px; /* толщина рамки */
  border-radius: 20px;
  background: linear-gradient(135deg, #a855f7, #ec4899); /* градиент рамки */
}

.img-frame img {
  display: block;
  width: 100%;
  max-width: 500px;   /* ширина картинки */
  height: auto;
  border-radius: 16px;
}
/* Блок с картинкой справа */
.light-gray-section .bg-img{
  flex: 1 1 42%;
  display: flex;
  justify-content: flex-end;   /* прижимаем к правому краю */
}

/* Рамка + целевая ширина на десктопе */
.img-frame{
  display: block;
  width: 560px;                /* >>> увеличивает картинку */
  max-width: 100%;
  padding: 8px;                /* толщина рамки */
  border-radius: 20px;
  background: linear-gradient(135deg,#a855f7,#ec4899);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.img-frame img{
  display:block;
  width:100%;                  /* растягиваем внутри рамки */
  height:auto;
  border-radius:16px;
}

/* Адаптив: на планшет/мобилу ширина по контейнеру */
@media (max-width: 991px){
  .light-gray-section{ display:block; }
  .light-gray-section .bg-img{
    justify-content:center;
    margin-top:24px;
  }
  .img-frame{ width:100%; max-width: 640px; }
}

.light-section-item img {
  width: 100%;
  max-width: 220px;  /* ограничиваем размер */
  height: 180px;     /* одинаковая высота */
  object-fit: cover; /* обрезает по размеру */
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.light-section-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.light-section-item a {
  display: inline-flex;       /* компактная кнопка */
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f7fafc;
  transition: all 0.3s ease;
}

.light-section-item a img {
  width: 16px;
  height: auto;
}

.light-section-item a:hover {
  background: linear-gradient(120deg, #6151f9 0%, #f75f9e 100%);
  color: #fff;
  transform: scale(1.05);
}
/* How it works – карточки одинаковой высоты */
.light-section-items {
  row-gap: 42px;
}

.light-section-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 16px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.light-section-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

/* одинаковый размер изображений */
.light-section-item > img {
  width: 260px;            /* подгони при желании: 240–300 */
  height: 170px;
  object-fit: cover;       /* аккуратно кадрирует, чтобы не тянуться */
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.10);
  margin-bottom: 18px;
}

/* заголовок и текст */
.light-section-item .title {
  margin: 4px 0 6px;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
}
.light-section-item p {
  margin: 0 0 10px;
  color: #555;
}

/* кнопка More – как раньше, но с небольшим центрированием */
.light-section-item a {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f7fafc;
  text-decoration: none;
  color: #111;
  transition: all .25s ease;
}
.light-section-item a:hover {
  background: linear-gradient(120deg,#6151f9 0%,#f75f9e 100%);
  color:#fff;
  transform: translateY(-1px);
}
.light-section-item a img { width: 16px; height: auto; }

/* мобильная подстройка */
@media (max-width: 575.98px) {
  .light-section-item > img { width: 85%; height: 160px; }
}
/* FAQ Section */
.faq-section {
  background: #f7fafe;
}
.faq-section h2 {
  font-weight: 700;
  margin-bottom: 10px;
}
.faq-section .faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  padding: 20px 24px;
  margin-bottom: 18px;
  transition: transform .25s ease;
}
.faq-section .faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}
.faq-section h4 {
  margin-bottom: 8px;
  color: #333;
  font-size: 1.1rem;
  font-weight: 600;
}
.faq-section p {
  margin: 0;
  color: #555;
}
/* CTA Section */
.cta-section {
  background: linear-gradient(120deg, #6151f9 0%, #f75f9e 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
}
.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.cta-section .sub-header {
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 30px;
}
.cta-section .btn-primary {
  background-color: #fff;
  color: #333 !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px;
  transition: all .3s ease;
}
.cta-section .btn-primary:hover {
  background-color: #f1f1f1;
  transform: scale(1.05);
}

.cta-section {
  margin-bottom: 0;
  padding-bottom: 80px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

footer {
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}


/* CTA-секция перед футером */
.cta-section {
  position: relative;
  padding: 80px 0 120px;                /* место для кнопки и волны */
  margin: 0;                            /* без внешних отступов */
  background: linear-gradient(120deg, #6151f9 0%, #f75f9e 100%);
  color: #fff;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  border-bottom-left-radius: 0;         /* низ без скругления — сольём с волной */
  border-bottom-right-radius: 0;
  overflow: visible;
}

/* Волна, которой «накрываем» границу с футером */
.cta-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;                         /* перекрыть возможный 1px зазор */
  width: 100%;
  height: 90px;                         /* высота волны */
  background: url("img/wave-footer.svg") no-repeat center bottom;
  background-size: 100% 100%;
  pointer-events: none;
}

/* футер сразу после CTA—без отступов сверху */
footer {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* SEO section */
.seo-section{
  background:#F7FAFE;
  padding:60px 0 40px;
}
.seo-section h2{
  font-weight:800;
  margin-bottom:14px;
}
.seo-section h3{
  margin-top:18px;
  font-weight:700;
  font-size:1.05rem;
}
.seo-list{ margin:8px 0 0 18px; }
.seo-list li{ margin:6px 0; }

/* read more wrapper */
.seo-readwrap{ position:relative; max-width:980px; }
.seo-readmore{
  max-height: 220px;          /* свернуто */
  overflow: hidden;
  transition:max-height .4s ease;
}
.seo-readmore.is-open{ max-height: 1200px; }  /* разворот */

.seo-fade{
  position:absolute; left:0; right:0; bottom:48px; height:80px;
  background:linear-gradient(180deg, rgba(247,250,254,0) 0%, #F7FAFE 90%);
  pointer-events:none;
}
.seo-fade.is-hidden{ display:none; }

.seo-toggle{
  margin-top:16px;
  background:#fff;
  border:1px solid #e6e8ee;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}
.seo-toggle:hover{ filter:brightness(.98); }
.seo-arrow{ margin-left:6px; }

.navbar .navbar-brand {
  margin-right: auto;   /* логотип прижат к левому краю */
  margin-left: 0 !important; 
  display: inline-block;
}
/* Fix brand always left; menu pushes right */
.navbar .navbar-brand{ margin-right:auto; margin-left:0 !important; display:inline-block; }
/* Ensure images don’t force centering */
.navbar .navbar-brand img{ display:inline-block; height:auto; }

/* Optional: align toggler nicely on mobile */
.navbar .navbar-toggler{ border:0; box-shadow:none !important; }

/* --- NAV FIX (force brand left, menu right) --- */
.navbar.fixed-top .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important; /* бренд слева, остальное вправо */
}

.navbar.fixed-top .navbar-brand {
  margin-left: 0 !important;
  margin-right: auto !important;            /* «прижимает» меню вправо */
  flex: 0 0 auto !important;
}

.navbar.fixed-top .navbar-collapse {
  flex: 1 1 auto !important;
}

.navbar.fixed-top .navbar-nav {
  margin-left: auto !important;             /* список уходит вправо */
  align-items: center;
}

/* На всякий случай, если где-то проставили text-center */
.navbar.fixed-top,
.navbar.fixed-top .container,
.navbar.fixed-top .navbar-brand {
  text-align: left !important;
}
