.comments-widget{color:#20242a;max-width:900px;margin:2rem auto;font:16px/1.5 system-ui,sans-serif}.comments-widget *{box-sizing:border-box}.comments-widget input,.comments-widget textarea{width:100%;font:inherit;border:1px solid #ccd2da;border-radius:8px;margin:8px 0;padding:12px;display:block}.comments-widget textarea{min-height:110px}.comments-widget button{color:#fff;cursor:pointer;background:#245bd6;border:0;border-radius:8px;margin: 0px;padding:9px 14px}.comments-widget button:disabled{opacity:.5;cursor:not-allowed}.comments-widget .secondary,.comments-widget .actions button{color:#20242a;background:#edf1f6}.comments-widget .auth,.comments-widget .composer,.comments-widget .comment{border:1px solid #e0e4e9;border-radius:12px;margin:12px 0;padding:16px}.comments-widget .meta{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.comments-widget small{color:#697386} .comments-widget .error{color:#b42318}.comments-widget .more{margin:20px auto;display:block}
.reply-form {
    margin: 12px 0 15px 0;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e4e8;
}
.comment .actions button.like {padding:7px 10px; gap:5px; display:flex; align-items:center;}
.comment-text {padding-top:10px; padding-bottom:10px;}

.liked {color: #eb2e2e !important;}

.reply-content {
    display: block;
    width: 100%;
    min-height: 75px;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    resize: vertical;
    border: 1px solid #ddd;
    border-radius: 6px;
    font: inherit;
}

.submit-reply,
.cancel-reply {
    padding: 7px 14px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.submit-reply {
    background: #2563eb;
    color: white;
}

.cancel-reply {
    margin-left: 8px;
    background: #e5e7eb;
    color: #333;
}

.submit-reply:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.reply-to {
    display: inline-block;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.replies {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
    
}
.reply-item {margin-top: 30px;}
.reply {
    margin-top: 12px;
}

.highlight-comment {
    background-color: #fff3cd;
    transition: background-color 0.3s;
}

.reply-to {
    cursor: pointer;
}

.comment-user,
.reply-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #eee;
}

.reply-user .comment-avatar {
    width: 28px;
    height: 28px;
}

.reply-to {
    display: inline-block;
    cursor: pointer;
    color: #2879c7;
    margin: 4px 0;
}

.reply-to:hover {
    text-decoration: underline;
}

.auth {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 22px;
    background: #141e30;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    color: #fff;
   
}

.auth-title {
    margin: 0 0 25px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.35;
    color: #fff;
}

.auth input:not([type="hidden"]):not(.website) {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 15px;
    margin-bottom: 15px;
    border: 1px solid #29384d;
    border-radius: 11px;
    outline: none;
    background: #101b2c;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    transition: .2s;
    box-sizing: border-box;
}

.auth input::placeholder {
    color: #718096;
}

.auth input:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,.1);
}

.auth button {
    width: 100%;
    min-height: 49px;
    padding: 12px 16px;
    margin-top: 10px;
    border: none;
    border-radius: 11px;
    background: #4ade80;
    color: #092016;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.auth button:hover {
    background: #22c55e;
    transform: translateY(-1px);
}

.auth button:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.auth button.secondary {
    background: #1c2a40;
    border: 1px solid #34445b;
    color: #dbe4ef;
}

.auth button.secondary:hover {
    background: #263750;
    border-color: #4ade80;
    color: #4ade80;
}

.auth .captcha-block {
    padding: 16px;
    margin: 17px 0;
    border: 1px solid #29384d;
    border-radius: 13px;
    background: #101b2c;
}

.auth .captcha-image {
    display: block;
    width: 160px;
    max-width: 100%;
    height: 55px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
    margin-bottom: 10px;
}

.auth .captcha-block button.captcha-refresh {
    width: auto;
    min-height: 34px;
    padding: 7px 12px;
    margin: 0 0 12px;
    background: #263750;
    color: #dbe4ef;
    border: 1px solid #34445b;
    font-size: 12px;
    font-weight: 600;
}

.auth .captcha-block button.captcha-refresh:hover {
    color: #4ade80;
    border-color: #4ade80;
    background: #1c2a40;
}

.auth .captcha-block .captcha-answer {
    margin-bottom: 0 !important;
    height: 44px !important;
}

.auth .captcha-block .captcha-key {
    display: none;
}

.auth .website {
    display: none !important;
}

.auth #forgot-password-form {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid #29384d;
}

.auth #forgot-password-form > input {
    margin-bottom: 12px;
}

.auth #forgot-password-form button[type="submit"] {
    margin-top: 5px;
}

.auth #forgot-message {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #4ade80;
}

.auth #forgot-message:empty {
    display: none;
}

.auth .toggle-auth {
    margin-top: 18px;
}

.auth .vk-login,
.auth .yandex-login {
    margin-top: 10px;
}

@media (max-width: 480px) {
    .auth {
        padding: 23px 18px;
        border-radius: 17px;
    }

    .auth-title {
        font-size: 21px;
    }
}

.auth-modal {
    border: 0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 20px 70px rgba(30, 41, 59, .18);
    overflow: hidden;
    
    color: #1e293b;
}

.auth-modal .modal-header {
    padding: 27px 30px 10px;
}

.auth-modal .modal-body {
    padding: 20px 30px 30px;
}

.auth-logo {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #172033;
}

 

.auth-modal .modal-title {
    font-size: 21px;
    font-weight: 800;
    color: #172033;
    letter-spacing: -.5px;
}

.auth-modal .form-control {
    height: 49px;
    padding: 0 14px;
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    box-shadow: none;
}

.auth-modal .form-control:focus {
    background: #fff;
    border-color: #2a71d9;
    box-shadow: 0 0 0 3px #2a71d92e;
}

.auth-modal .form-control::placeholder {
    color: #6f7f97;
}

.auth-modal .btn-success {
    min-height: 49px;
    border: 0;
    border-radius: 11px;
    background: #000000;
    font-size: 14px;
    font-weight: 700;
    transition: .2s;
}

.auth-modal .btn-success:hover {
    background: #2a71d9;
    transform: translateY(-1px);
}

.auth-modal .btn-light {
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
}

.auth-modal .btn-light:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.auth-modal .captcha-block {
    margin: 17px 0;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #ffffff;
}

.auth-modal .captcha-image {
    display: inline-block;
    width: 160px;
    height: 55px;
    max-width: 100%;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    margin-bottom: 10px;
}

.auth-modal .captcha-refresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    margin-bottom: 10px;
    border: 0;
    background: transparent;
    color: #2a71d9;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.auth-modal .captcha-refresh:hover {
    color: #2a71d9;
}

.auth-modal .captcha-answer {
    margin-bottom: 0;
    height: 43px;
}

.auth-modal .captcha-key,
.auth-modal .website {
    display: none !important;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-top: 0px;
    flex-direction: column;
}

.social-buttons button {
    min-height: 46px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    margin: 0px;
    color: #000000;
}

.auth-modal .forgot-link {
    display: block;
    width: 100%;
    padding: 12px 0 0;
    border: 0;
    background: transparent;
    color: #2a71d9;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.auth-modal .forgot-link:hover {
    color: #2a71d9;
}

.forgot-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 16px;
    background: #ecfdf5;
    color: #2a71d9;
    font-size: 25px;
}

.forgot-title {
    font-size: 18px;
    font-weight: 800;
    color: #172033;
    margin-bottom: 9px;
}

.forgot-description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 20px;
}

#forgot-message {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #2a71d9;
}

@media (max-width: 575px) {
    .auth-modal {
        border-radius: 18px;
    }

    .auth-modal .modal-header {
        padding: 22px 20px 8px;
    }

    .auth-modal .modal-body {
        padding: 17px 20px 23px;
    }

    .auth-modal .modal-title {
        font-size: 19px;
    }
}

@media screen and (min-width: 768px) {
    #authModal .modal-dialog {
        width: 520px;
        margin: 30px auto;
    }
   
}
 #authModal  .modal-header {border:0px;}
    #authModal .close {background:transparent;opacity:1;top:20px;position:absolute;right:10px;z-index: 111;}
 #authModal .modal-body {width:320px;margin:0px auto;padding: 0px;padding-bottom: 30px;}
.auth-modal .btn-success {width:100%;margin-bottom: 10px;}
.toggle-auth {width:100%;}
.modal-title {text-align:center;}
.vk-login {background:#0277ff!important; border:0px!important; color:#fff!important}
.social-buttons img {margin-right:10px;}
 .hr_soc {text-align:center;opacity:0.5;margin-top:20px;margin-bottom:20px; }
.hr_soc:before {height:1px;width:100%;background: #00000024;content:'';display:block;bottom: -14px;position:relative}
 .hr_soc span {background:#fff;position:relative;padding:10px;font-size: 15px;}
.auth-modal .form-control:-webkit-autofill,
.auth-modal .form-control:-webkit-autofill:hover,
.auth-modal .form-control:-webkit-autofill:focus,
.auth-modal .form-control:-webkit-autofill:active {
    /* Замените #ffffff на цвет фона вашего инпута */
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    /* Замените #000000 на цвет текста */
    -webkit-text-fill-color: #000000 !important;
    /* Предотвращает мигание цвета */
    transition: background-color 5000s ease-in-out 0s;
}

/* Для Firefox (если нужно) */
.auth-modal .form-control:autofill {
    filter: none;
}

.fade2 {
    opacity: 0;
    transition: none;
  transition: transform 0.3s linear, opacity 0.3s linear;
}

.fade2.in {
    opacity: 1;
   
    display: block !important;
    transition: transform 0.3s linear, opacity 0.3s linear;
}
.fade2  .modal-dialog { transform: scale(0.9);transition: transform 0.3s linear, opacity 0.3s linear;}
.fade2.in .modal-dialog { transform: scale(1);transition: transform 0.3s linear, opacity 0.3s linear;}
.modal-backdrop {z-index:10000}
.modal-dialog {z-index:10002!important}
.modal {
    z-index: 10002;
}

.error_reg,
.success_reg,
.error,.error_login,#forgot-message {
    padding: 14px 18px;
    margin: 15px 0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: messageFadeIn .3s ease;
}

/* Ошибка регистрации */
.error_reg,
.error,.error_login  {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
}
#forgot-message  { 
    background: #f5fbff;
    border: 1px solid #0098ff;
}
/* Успешная регистрация */
.success_reg {
    color: #067647;
    background: #ecfdf3;
    border: 1px solid #abefc6;
}

#forgot-message:before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #0098ff;
    font-size: 13px;
    font-weight: 700;
}

/* Иконки */
.error_reg::before,
.error::before,.error_login:before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #d92d20;
    font-size: 13px;
    font-weight: 700;
}

.success_reg::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: #12b76a;
    font-size: 13px;
    font-weight: 700;
}

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media(max-width:500px) {
    #authModal .modal-body {
    width: 100%;
    margin: 0px auto;
    padding: 20px;
    padding-bottom: 30px;
}
    #authModal .close {top: 15px;right: 0px;}
    .auth-modal .modal-title {text-align:left;}
    .comment-user b {font-size:14px;}
    .reply-user b {font-size:13px;}
    .comments-widget small {font-size: 11px;}
}
.user-name img {margin-right:8px;}

.comments-widget textarea {
    margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    box-shadow: none;
    resize: none;
}

.comments-widget textarea:focus {
    background: #fff;
    border-color: #2a71d9;
    box-shadow: 0 0 0 3px #2a71d92e;
}

.comments-widget textarea::placeholder {
    color: #6f7f97;
}
.composer {position:relative;}
.composer .dropdown {position:absolute; right:5px; top:10px; }
.composer .dropdown button {background:transparent!important;}
.composer .dropdown .dropdown-menu {border-radius:10px!important; right:0px; left:auto} 
.actions {display:flex;}
.actions .reply {margin-left:10px; font-size:14px;}
.cancel-reply {background:#edf1f5!important; color:#000!important; font-size:14px; margin-left:10px!important;}
.submit-reply { font-size:14px;}

.comment_v_notlogin {border: 1px solid #e0e4e9;
    border-radius: 12px;
    margin: 12px 0;
    padding: 16px;}
.comment_v_notlogin div {margin-bottom: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #ffffff;
    color: #6f7f97;
    font-size: 14px;
    box-shadow: none; padding:13px; padding-bottom:40px; }
 .comment_v_notlogin button {background: #0277ff !important;
    border: 0px !important;
    color: #fff !important; outline:none!important;}

.comment-text { 
    word-wrap: break-word;
}


.comments-widget>.errors {
    position: fixed;
    right: 20px;
    bottom: 20px;
    top: auto;
    z-index: 99999;

    max-width: 360px;
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 8px;

    background: #dc3545;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;

    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);

    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);

    transition: opacity .25s ease,
                transform .25s ease,
                visibility .25s ease;
}

.comments-widget > .errors.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 480px) {
    .comments-widget>.errors {
        left: 12px;
        right: 12px;
        bottom: 12px;
        min-width: 0;
        max-width: none;
    }
}.privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.3;
    color: #555;
    margin-bottom: 15px;
}
.privacy label {display:flex; gap:10px;}

.privacy input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    cursor: pointer;
    accent-color: #2563eb;
}

.privacy label {
    cursor: pointer;
    margin: 0;
}

.privacy a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color .2s ease;
}

.privacy a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.privacy:focus-within {
    border-color: #93b4f5;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}

.privacy input[type="checkbox"] {
    appearance: none;
    outline:none;
    -webkit-appearance: none;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 1px solid #c5cbd5;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: .2s;
    padding: 0px;
}

.privacy input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #2563eb;
}

.privacy input[type="checkbox"]:checked::after {
    content: "✓";
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}