.child-layout {
    background: #f6f9fc;
    padding: 40px 0;
}

.child-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
}

/* Карточки */
.gallery-card,
.content-card,
.sidebar-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

/* Галерея */
.gallery-main img {
    width: 100%;
    border-radius: 20px 20px 0 0;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    padding: 15px;
    overflow-x: auto;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    opacity: .6;
    border: 2px solid transparent;
}

.thumb.active {
    opacity: 1;
    border-color: #ff7a33;
}

/* Контент */
.content-card {
    padding: 30px;
    margin-top: 30px;
}

.tabs {
    display: flex;
    gap: 25px;
    margin-bottom: 10px;
}

.tab {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.tab.active {
    border-bottom: 3px solid #6BC4FF;
    font-weight: 600;
    font-size: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Сайдбар */
.child-sidebar {
    position: sticky;
}

.sidebar-card {
    padding: 25px;
}

.sidebar-meta {
    color: #777;
    margin-bottom: 20px;
}

.sidebar-block span {
    font-size: 20px;
    color: #111;
    font-weight: 700;
    text-transform: uppercase;
}
.sidebar-block p{
    font-size: 18px;
}
.sidebar-card .progress {
  height: 20px;
}

.sidebar-card .progress__info {
    font-size: 16px;
   color: #64748b;
}

.sidebar-card .progress__info span{
    display: flex;
    flex-direction: column;
    gap: 0px;
    line-height: 1.2;
}

.sidebar-card .progress__info span b{
    color:#111;
}

.sidebar-card  .doc-item {
    display: flex;
    text-decoration: none;
    color: #1f2933;
    gap: 5px;
}

.sidebar-card  .doc-item:hover {
    color: #ff7a33;
}

.sidebar-card  .doc-item img{
    width: 24px;
}
.sidebar-card  .sidebar-block {
    margin-bottom: 20px;
}
.docs-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-direction: column;
  margin-top: 5px;
}
.sidebar-card h2{
    font-size: 36px;
}

.progress {
    height: 10px;
    background: #eaf6ff;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7a33, #ff9c66);
}

/* Кнопки */
.btn-main {
    display: block;
    background: var(--color-orange);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
      text-decoration: none;
}
.btn-main:hover {
    background-color: #ff7a33;
}

.btn-outline {
    display: block;
    margin-top: 10px;
    border: 2px solid #6BC4FF;
    color: #6BC4FF;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
}

.btn-outline:hover {
    border: 2px solid #6BC4FF;
    background: #6BC4FF;
    color: #fff;
}

.gallery-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

/* Контейнер */
.gallery-vertical {
    display: flex;
    gap: 16px;
}

/* Миниатюры */
.gallery-thumbs-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 650px;
    overflow-y: auto;
}
.child-head{
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.gallery-thumbs-vertical::-webkit-scrollbar {
    width: 4px;
}

.gallery-thumbs-vertical::-webkit-scrollbar-thumb {
    background: #6BC4FF;
    border-radius: 10px;
}

.thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    opacity: .6;
    border: 2px solid transparent;
    transition: .2s;
}

.thumb:hover {
    opacity: .85;
}

.thumb.active {
    opacity: 1;
    border-color: #ff7a33;
}

/* Основное изображение */
.gallery-main {
    flex: 1;
}

.gallery-main img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border-radius: 16px;
    object-position: center;
}

.child-sidebar {
    position: relative;
}

.sidebar-card {
    position: sticky;
    top: 20px;
}

.donation__pay.content-card {
    width: 100%;
  padding: 0px;
}

.dop-childs {
    display: flex;
    gap: 20px;
    justify-content: space-evenly;
    padding: 10px;
    flex-wrap: wrap;
  }

  .child-single-dop-label {
      width: 48%;
      display: block;
      cursor: pointer;
  }

  .child-single-dop {
      display: flex;
      gap: 15px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(45, 43, 43, 0.2);
      overflow: hidden;
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 2px solid transparent;
      height: 100%;
  }

  .child-single-dop-label:hover .child-single-dop {
      box-shadow: 0 4px 12px rgba(45, 43, 43, 0.4);
  }

  .child-single-dop-img-container {
      width: 180px;
      min-width: 120px;
      position: relative;
      overflow: hidden;
      padding-left: 10px;
  }

  .child-single-dop-img {
      width: 100%;
      height: 100%;
      position: relative;
      clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
  }

  .child-single-dop-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
  }

  .child-single-dop-desc {
      padding: 15px 15px 15px 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      flex-grow: 1;
  }

  .child-single-dop-desc h5 {
      margin: 0 0 8px 0;
      color: #333;
      font-size: 16px;
  }

  .child-single-dop-desc span {
      color: #666;
      font-size: 14px;
      line-height: 1.4;
  }

  .child-single-dop-desc span b {
      color: #444;
  }

  .child-single-dop-desc .plus-money {
      text-align: center;
      padding: 10px;
      font-size: 16px;
      font-weight: 600;
      color: #ff3a1e;
  }

  .child-single-dop-desc .plus-money .value {
      font-size: 16px;
      font-weight: 600;
      color: #ff3a1e;
  }

  /* Стили для чекбокса */
  .child-checkbox {
      position: absolute;
      opacity: 0;
      width: 0;
      height: 0;
  }

  .child-checkbox:checked ~ .child-single-dop {
      border: 2px solid #ff3a1e;
      box-shadow: 0 4px 12px rgba(45, 43, 43, 0.4);
  }

  /* Иконка выбора */
  .child-single-dop::after {
      content: "";
      position: absolute;
      top: 10px;
      right: 10px;
      width: 20px;
      height: 20px;
      border: 2px solid #ff3a1e;
      border-radius: 50%;
      background-color: white;
      transition: all 0.3s ease;
  }

  .child-checkbox:checked ~ .child-single-dop::after {
      background-color: #ff3a1e;
      border-color: #ff3a1e;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
      background-size: 12px;
      background-position: center;
      background-repeat: no-repeat;
  }
  .u5-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-u5 {
    font-size: 28px;
    font-weight: 800;
    color: #fa3305;
  }
  .u5-desc{
    display: flex;
    flex-direction: column;
  }
  .u5-sub{
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
  }

  .donation__panel.is-active {
    flex-direction: column;
  }
  .donation__panel__row {
    display: flex;
    gap: 20px;
  }
  .new-btn-3 {
    font-size: 14px;
  padding: 10px 10px;
  background-image: unset;
  background-color: #05affa;
  max-height: 40px;
  border-radius: 12px;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  }

  .comment-title {
	margin-bottom: 30px;
}
.comment-title h4 {
	font-size: 24px;
	font-family: 'Roboto', sans-serif;
}
.comments ul {
	list-style: none;
}
.comments .comment-list li:not(:last-child) {
	margin-bottom: 20px;
}
.comment-box .comment-text {
	overflow: hidden;
}
.comment-box .comment-avatar {
	float: left;
	margin-right: 20px;
}
.comment-box .comment-avatar {
  max-width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.comment-box .comment-avatar img {
	width: 100px;
}
.comment-box .comment-text .avatar-name h5 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 7px;
	font-family: 'Roboto', sans-serif;
}
.comment-box .comment-text .avatar-name {
	margin-bottom: 3px;
	overflow: hidden;
	position: relative;
}
.comment-box .comment-text .avatar-name span {
	font-size: 16px;
	color: #555555;
}
.comment-box .comment-text .avatar-name .reply {
	color: #2d334d;
	display: inline-block;
	font-size: 14px;
	font-weight: 400;
	transition: .3s;
	line-height: 1;
	margin-top: 4px;
	position: absolute;
	right: 0;
	top: 0;
}
.comment-box .comment-text .avatar-name .reply:hover {
	color: #05affa;
}
.comment-box .comment-text .avatar-name a i {
	margin-right: 5px;
}
.comment-box .comment-text p {
	margin: 0px;
}

.comment-box{
  border-radius: 10px;
  /* border: 1px solid #ff3a1e4d; */
  box-shadow: 0 0 10px rgba(136, 136, 136, 0.48);
  padding: 20px;
  display: flex;
}

/* .coments-block h1, .coments-block h2, .coments-block h3, .coments-block h4, .coments-block h5, .coments-block h6 {
  color: #05affa;
} */

.comments .children {
	margin-left: 100px;
}
.children .comment-box {
	padding-top: 0;
}
.post-comment-form input,
.post-comment-form textarea {
	width: 100%;
	height: 60px;
	margin-bottom: 20px;
	border: 2px solid #f4f4f4;
	padding: 0 20px;
	box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.04);
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
}
.post-comment-form textarea {
	height: 200px;
	padding: 20px;
}
.post-comment-form input:focus,
.post-comment-form textarea:focus {
	border-color: #05affa;
}
.post-comment-form input::-moz-placeholder,
.post-comment-form textarea::-moz-placeholder {
	color: #777;
	font-size: 15px;
}
.post-comment-form input::placeholder,
.post-comment-form textarea::placeholder {
	color: #777;
	font-size: 15px
}

.post-comment-form {
    margin-top: 30px;
}

.thm-btn {
    display: block;
    background: var(--color-orange);
    color: #fff;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    text-decoration: none;
    border: 0;
    padding: 15px 26px;
}
.thm-btn:hover {
    background-color: #ff7a33;
}
.hide-pc {
    display: none!important;
}
.hide-mob {
    display: block!important; 
}
.gallery-horizontal {
    width: 100%;
    min-width: 0; /* 🔴 КЛЮЧЕВО */
}

.gallery-swiper {
    width: 100%;
}

.gallery-swiper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

/* прозрачные стрелки */
.swiper-button-next,
.swiper-button-prev {
    opacity: 0;
    transition: opacity .3s;
    color: #000;
}

.gallery-swiper:hover .swiper-button-next,
.gallery-swiper:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
}
.child-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
}

.gallery-card {
    min-width: 0;
    overflow: hidden;
}
.child-main{
    min-width: 0;
}

.gallery-horizontal,
.gallery-swiper {
    width: 100%;
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    opacity: 0.5;
    font-size: 12px!important;
    color: #fff!important;
    background-color: #2f2c2ca6!important;
    padding: 30px!important;
    border-radius: 50px!important;
}
.swiper-button-next::after{
  margin-left: 5px;
}
.swiper-button-prev::after {
    margin-right: 5px;
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
  opacity: .35!important;
}
/* Адаптив */
@media (max-width: 993px) {
        .gallery-swiper .swiper-button-prev,
    .gallery-swiper .swiper-button-next {
        display: none!important;
    }
    .child-grid {
        grid-template-columns: 1fr;
    }

    .child-sidebar {
        position: static;
    }

    .gallery-vertical {
        flex-direction: column-reverse;
    }
    .gallery-card,.content-card {
        padding: 15px;
        margin-top: 15px;
    }
    .gallery-card {
        border-radius: 20px 20px 0px 0px;
    }
    .child-layout {
        padding: 15px 0;
    }
    .child-head {
        font-size: 22px;
        text-align: center;
    }
    .child-head {
        margin-bottom: 10px;
    }
    .thumb {
        width: 24%;
        height: auto
    }
    .gallery-thumbs-vertical {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 1%;
    }
    .gallery-main img {
        width: 100%;
        height: auto;
    }
    .tab.active {
        border-bottom: 2px solid #6BC4FF;
        font-size: 20px;
    }
    .hide-mob {
        display: none!important;
    }
    .hide-pc {
        display: block!important;
    }
    .sidebar-card {
        position: unset;
        border-radius: 0px 0px 20px 20px;
        padding: 15px;
        padding-top: 15px;
        padding-top: 5px;
    }
    .comment-box {
        display: block;
    }

    .main-u5 {
        font-size: 18px;
        text-align: center;
    }
    .u5-help {
         flex-direction: column;
    }
    .dop-childs {
        display: flex;
        gap: 10px;
        justify-content: flex-start;
        padding: 0;
        flex-wrap: unset;
        flex-direction: column;
    }
    .child-single-dop-label {
         width: 100%;
    }
    .child-single-dop-img-container {
         width: 80px;
         min-width: 80px;
    }
    .donation__panel.is-active {
        padding: 15px;
    }
    .child-single-dop-img {
        height: 100%;
    }
    .child-single-dop-desc {
        padding: 5px 5px 5px 0;
    }
    .thm-btn {
         padding: 10px 15px;
    }
    .sidebar-card h2 {
        font-size: 26px;
    }
    .sidebar-card .sidebar-block {
        margin-bottom: 10px;
    }
    .sidebar-block p {
        font-size: 16px;
    }
    .sidebar-block span {
         font-size: 18px;
    }
    .u5-sub {
         margin-bottom: 0px;
         text-align: center;
    }
    .comment-box .comment-avatar img {
        width: 60px;
    }
}

@media (max-width: 375px) {
  .child-head {
    font-size: 20px;
  }
}