/*
 * Start Bootstrap - Landing Page v5.0.0 (https://startbootstrap.com/template-overviews/landing-page)
 * Copyright 2013-2018 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-landing-page/blob/master/LICENSE)
 */

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
      background-color: #efefef;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
}

.mb-5, .my-5 {
      margin-bottom: 2rem !important;
}

h2.mb-5 {
max-width: 640px;
margin: 0px auto;
}

 * { box-sizing: border-box; margin: 0; padding: 0; }

a, a:visited {
  color: #e1306c
}

a:hover {
  color: #c30e4a;
}



a.btn-red {
  color: #ff0000;
}

a.btn-red:hover {
  color: #bd0000;
}


p {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

header.masthead {
  position: relative;
  background-color: transparent;
  background-size: cover;
  padding-top: 3rem;
}

header.masthead .overlay {
  position: absolute;
  background-color: transparent;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.3;
}

.logo-link {
  margin: 0px 0px 0px;
  display: block;
}

.header-inner {
  position: relative;
}

.lang-switcher {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
}
.lang-switcher a {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  color: #888;
  text-decoration: none !important;
  border: 1px solid #ddd;
  background: #fff;
  line-height: 1.6;
}
.lang-switcher a:hover,
.lang-switcher a.active {
  background: #e1306c;
  color: #fff !important;
  border-color: #e1306c;
}

.lang-switcher--footer {
  position: static;
  justify-content: center;
  margin: 0 auto 10px;
}
.footer-white-links .lang-switcher a {
  color: #888;
}
.footer-white-links .lang-switcher a:hover,
.footer-white-links .lang-switcher a.active {
  color: #fff !important;
}

@media (max-width: 767px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-inner .lang-switcher {
    position: static;
    order: -1;
    margin-bottom: 10px;
  }
}

header.masthead h1 {
  font-size: 1.3rem;
}

h1 {
  line-height: 120%;
  font-size: 1rem;
  font-weight: 500;
    color: #888;
    margin: 35px 0px;
text-shadow: 1px 1px 1px #fff;
}

h1 a {
color: #888;
}

.row {
  box-sizing: border-box;
  width: 100%;
}



    #main.container {
      max-width: 100%;
  }


#downloadbox .download-list { 
display: flex;
    max-width: 1140px;
    margin: 0px auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3rem 0px;
}

.download-item {
max-width: 33%;
margin: 0px 0px 20px;
}

.content {
  max-width: 680px;
  padding: 40px 20px 20px;
  box-sizing: border-box;
  margin: 0px auto;
}

#main {
  background-color: #343a40;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  /* background-attachment: fixed; */
  position: relative;
  height: 100vh;
}

#main .content {
  position: relative;
  padding: 15vh 20px 15vh;
  z-index: 1;
}

#main:before {
content: ' ';
display: block;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
position: absolute;
background-color: rgba(0,0,0, 0.6);
z-index: 0;
}

.fa-circle-o-notch:before {
  content: "\f1ce";
  color: #fff !important;
}

.piarit {
    margin: 0rem auto 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.piarit a {
    display: block;
    margin: 0px 10px 0px 0px;
    flex: 1 1 100%;
    padding: 0px 25px;
    height: 50px;
    border-radius: 8px;
    line-height: 48px;
    font-size: 14px;
    color: #fff;
}
.piarit a:visited,
.piarit a:hover {
  color: #fff;
}

.piarit a:last-child {
  margin: 0px 0px;
}

.donation {
  margin: 0px auto;
      margin: 0px auto;
    display: block;
    max-width: 500px;
}

.donation iframe {
  display: block;
  margin: 0px auto;
  height: 320px;
}

.alert {
  position: relative;
  padding: .75rem 1.25rem;
  margin-bottom: 0rem;
}


@media (min-width: 768px) {
  header.masthead {
    padding-top: 3rem;
  }
}

.showcase .showcase-text {
  padding: 3rem;
}

.showcase .showcase-img {
  min-height: 30rem;
  background-size: cover;
}

.input-group-lg>.form-control, .input-group-lg>.input-group-append>.btn, .input-group-lg>.input-group-append>.input-group-text, .input-group-lg>.input-group-prepend>.btn, .input-group-lg>.input-group-prepend>.input-group-text {
  font-size: 1.0rem;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

@media (min-width: 768px) {
  .showcase .showcase-text {
    padding: 7rem;
  }
}

.ajax-res {
	display:none;
}

.lastphoto {
  position: absolute;
  color: #fff;
  text-decoration: underline;
  top: 40px;
  right: 40px;
  display: inline-block;
  z-index: 2;
}

.lastphoto:hover {
  color: #fff;
text-decoration: none;
}

.features-icons {
    margin: 2.5rem 0rem 0rem;
  padding: 8rem 0rem;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.9);
}

.icon-hover {
    width: 72px;
    height: 72px;
    transition: transform 0.2s ease;
}

.features-icons-item:hover .icon-hover {
    transform: scale(1.139); /* 82/72 = 1.139 */
}

#comments-app--u-qVoPi-1 {
  border-radius: 10px;
}

.features-icons h3 {
font-size: 1.2rem;
font-weight: 600;
}

.features-icons-item a {
  color: #feff00;
}

.features-icons-item a:hover {
  color: #d2c707;
}

.lead {
  font-size: 1.05rem;
  font-weight: 300;
  margin: 10px 0px;
}

.row {
  justify-content: space-between;
}

@media (min-width: 992px) {
  .col-lg-4 {
      -ms-flex: 0 0 24.4%;
      flex: 0 0 24.4%;
      max-width: 24.4%;
  }
}

.features-icons .features-icons-item {
  max-width: 20rem;
}

.features-icons .features-icons-item .features-icons-icon {
  height: 7rem;
}

.features-icons .features-icons-item .features-icons-icon i {
  font-size: 4.5rem;
}

.features-icons .features-icons-item:hover .features-icons-icon i {
  font-size: 5rem;
}

.instructions {
    padding-top: 4rem;
    padding-bottom: 3rem;
}

.instructions .testimonial-item {
  max-width: 18rem;
}

.instructions .testimonial-item img {
  max-width: 12rem;
  -webkit-box-shadow: 0px 5px 5px 0px #adb5bd;
  box-shadow: 0px 5px 5px 0px #adb5bd;
}

.call-to-action {
  position: relative;
  background-color: #343a40;
  background: url("../img/bg-masthead.jpg") no-repeat center center;
  background-size: cover;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.call-to-action .overlay {
  position: absolute;
  background-color: #212529;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.3;
}

footer.footer {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #fff;
}


.bg-pink {
  background-color: #E1306C!important;
}
.bg-blue {
  background-color: #5851DB!important;
}
.text-pink {
  color: #e1306c;
}

.btn-green {
  color: #fff;
  background-color: #54c36a;
  border-color: #54c36a;
}

.btn-green:hover {
  color: #fff;
  background-color: #4bcb65;
  border-color: #4bcb65;
}

.btn-blue {
  color: #fff;
  background-color: #5851DB;
  border-color: #5851DB;
}
.btn-blue:hover {
  color: #fff;
  background-color: #4d46cc;
  border-color: #4d46cc;
}
.btn-pink {
  color: #fff;
  background-color: #E1306C;
  border-color: #E1306C;
}
.btn-pink:hover {
  color: #fff;
  background-color: #c30e4a;
  border-color: #E1306C;
}
.footer-white-links a{
  color: #fff;
}
.footer-white-links a:hover{
  color: #f8f9fab5;
}



    .wrap { max-width: 640px; margin: 0 auto; text-align: center; }
    .subtitle { text-align: center; font-size: 13px; color: #888; margin-bottom: 28px; }

    .input-row { display: flex;
    gap: 10px;
    flex-wrap: wrap;
   }

   .input-wrap {
    position: relative;
    flex: 1;
}


    .input-row input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    display: block;
    width: 100%;
    height: 50px;
    margin-bottom: 5px;
    box-sizing: border-box;
    }
    .input-row input:focus { border-color: #e1306c; }
    .input-row button {
    padding: 12px 24px;
    background: #e1306c;
    color: #fff;
    border: none;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    display: block;
    width: 100%;
    height: 50px;
    }
    .input-row button:hover { background: #c13584; }
    .input-row button:disabled { background: #ccc; cursor: not-allowed; }


.input-wrap input {
    width: 100%;
    padding: 12px 54px 12px 16px; /* отступ справа для кнопки */
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    letter-spacing: -0.5px;
}
.input-wrap input:focus { border-color: #e1306c; }

    .input-wrap button.paste-btn {
    position: absolute;
    width: 50px;
    right: 0px;
    top: calc(50% - 3px);
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 0px;
    opacity: 1.0;
    transition: background 0.2s;
    line-height: 1;
    background: #e1306c;
    box-sizing: border-box;
    height: 49px;
}
    .input-wrap button.paste-btn:hover { background-color: #c13584; }


    #result { 
      margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
  justify-content: normal;
}

    .form-group {
    margin: 1rem auto 0px;
}

    /* Debug блок */
    .debug-box {
        background: #1e1e1e; color: #ccc; font-family: monospace;
        font-size: 12px; padding: 16px; border-radius: 8px;
        margin-bottom: 16px; overflow-x: auto; white-space: pre-wrap;
        word-break: break-all;
    }
    .debug-title { font-size: 12px; color: #888; margin-bottom: 6px; }

    .media-card {
        background: #fff; border: 1px solid #eee;
width: 32%;
    border-radius: 10px;
    padding: 16px;
    margin: 0px 0.6% 14px;
    text-align: left;
    overflow: hidden;
    }

    .media-card:first-child {
width: 100%;
    }
    .media-card img, .media-card video {
        width: 100%; border-radius: 6px; display: block; margin-bottom: 10px;
    }
    .caption {
        font-size: 13px; color: #555; margin-bottom: 10px;
        border-left: 3px solid #e1306c; padding-left: 10px;
        text-align: left;
    }
    .author { font-size: 12px; color: #888; margin-bottom: 10px; }
    .carousel-label { font-size: 13px; font-weight: 600; color: #555; margin-bottom: 8px; }

    .btn-download, .btn-download:visited {
        display: block; padding: 10px 20px; background: #333;
        color: #fff; text-decoration: none; border-radius: 6px;
        font-size: 13px; transition: background 0.2s;
        text-align: center; border: none; cursor: pointer; width: 100%;
        box-sizing: border-box;
    }
    .btn-download:hover { background: #e1306c; color: #fff; text-decoration: none; }

    .btn-zip {
        background: #27ae60;
        font-size: 14px;
        font-weight: 600;
        padding: 12px 20px;
    }
    .btn-zip:hover { background: #1e9450; color: #fff; }

    .media-card--header { background: #f9f9f9; }


    .error { color: #c0392b; padding: 14px; background: #fff0f0; border-radius: 8px; width: 100%; }
    .loader { text-align: center; color: #888; padding: 32px; width: 100%;}

    .badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 5px;
    margin-left: 6px;
    vertical-align: top;
    box-sizing: border-box;
    }
    .badge-video { background: #e1306c; color: #fff; }
    .badge-image { background: #3897f0;color: #fff; }

    .history-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 45px 0px 25px;
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.history-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #eee;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s;
}
.history-item:hover { transform: scale(1.03); }

.history-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px;
}

.history-item-author {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-type {
    font-size: 11px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2px;
}

.history-item-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 20px;
}

.history-item-orig {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}
.history-item:hover .history-item-orig {
    opacity: 1;
}
.history-item-orig:hover {
    background: rgba(225,48,108,0.85);
    color: #fff;
}




@media (max-width: 767px) {

  header.masthead {
    padding: 2rem 0rem 0rem;
  }

.media-card {
  width: 100%;
      margin: 0px 0% 14px;
}

.donation iframe {
height: 500px;
}

  h1 {
    line-height: 150%;
    font-size: 1.3rem;
  }

  header.masthead h1 {
    font-size: 1.3rem;
    padding: 0px 15px;
    box-sizing: border-box;
    letter-spacing: -0.5px;
    margin: 0px auto 20px;
  }

  .wrap {
        padding: 0px 0px;
    box-sizing: border-box;
  }

  .input-row {
    padding: 0px 15px;
    box-sizing: border-box;
  }

  #result, .form-group, .history-grid, .telegram-chat {
  padding: 0px 15px;
  box-sizing: border-box;
          width: 100%;
        overflow: auto;
                padding: 0px 15px 10px;
}

#result {
    margin-top: 10px;
}

  .history-title {
    margin: 25px 0px 25px;
  }
  .download-item {
    max-width: 98%;
    }

  .logo-link {
    margin: 20px auto 20px;
    display: block;
    width: 280px;
  }

.logo-link img {
  max-width: 100%;
  height: auto;
}

.lastphoto {
  position: absolute;
  color: #fff;
  text-decoration: underline;
  top: auto;
  bottom: 60px;
  right: auto;
  left: 0px;
  display: inline-block;
  width: 100%;
  text-align: center;
}

#main .content {
  position: relative;
  padding: 15vh 0px 15vh;
}

.row {
  display: block;
    width: 100%;
    margin: 0px auto;
}

.features-icons {
  padding: 4rem 0rem;
      margin: 2rem 0rem 0rem;
}

.col-lg-4 {
  display: block;
  margin: 0px auto 40px;
}

.instructions {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.h2, h2 {
  font-size: 1.4rem;
}

.input-group>.custom-select:not(:last-child), .input-group>.form-control:not(:last-child) {
  font-size: 13px;
}


footer.footer {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

}