/* Блок комментариев под разделом /Information/Info.
   Все правила внутри .cc — глобальные стили сайта (p, input, button) сюда не протекают. */

.cc {
    --cc-green: #187d35;
    --cc-green-dark: #12652a;
    --cc-ink: #0f172a;
    --cc-muted: #64748b;
    --cc-line: #e2e8f0;
    --cc-soft: #f6f9f7;
    margin: 48px 0 8px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--cc-line);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
    color: var(--cc-ink);
    font-size: 15px;
    line-height: 1.6;
    scroll-margin-top: 110px;
}
.cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc p { font-size: inherit; line-height: inherit; margin: 0; }

.cc-head { margin-bottom: 18px; }
.cc .cc-title {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin: 0; font-size: 22px; font-weight: 800; line-height: 1.25; color: var(--cc-ink);
}
.cc-title__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 14px;
    background: linear-gradient(135deg, #e8f5ec, #d4ecdb); color: var(--cc-green); font-size: 18px;
}
.cc-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 26px; padding: 0 9px; border-radius: 999px;
    background: var(--cc-green); color: #fff; font-size: 13px; font-weight: 700;
}
.cc-count[hidden] { display: none; }

/* ── Форма ── */
.cc-form {
    padding: 20px; border-radius: 18px; background: var(--cc-soft);
    border: 1px solid #e3ede6; margin-bottom: 24px;
}
.cc-form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.cc-field { position: relative; display: flex; flex-direction: column; gap: 6px; max-width: 360px; }
.cc-field--wide { max-width: none; }
.cc .cc-label { font-size: 14px; font-weight: 700; color: #1e293b; }
.cc .cc-input {
    width: 100%; padding: 12px 14px; border-radius: 14px;
    border: 1.5px solid #d6e2da; background: #fff; color: var(--cc-ink);
    font: inherit; font-size: 16px; /* 16px — иначе iOS увеличивает страницу при фокусе */
    line-height: 1.5; transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.cc .cc-input::placeholder { color: #94a3b8; }
.cc .cc-input:focus { outline: none; border-color: var(--cc-green); box-shadow: 0 0 0 4px rgba(24, 125, 53, .14); }
.cc .cc-textarea { min-height: 120px; max-height: 50vh; resize: vertical; padding-bottom: 28px; }
.cc-counter { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: #94a3b8; pointer-events: none; }
.cc-counter.is-warn { color: #b45309; font-weight: 700; }

.cc-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.cc-form__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 14px; }
.cc .cc-rules { display: flex; gap: 8px; max-width: 620px; font-size: 13px; line-height: 1.55; color: var(--cc-muted); }
.cc-rules i { margin-top: 3px; color: var(--cc-green); }
.cc .cc-submit {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px;
    background: var(--cc-green); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; box-shadow: 0 8px 20px rgba(24, 125, 53, .25);
    transition: background-color .2s, transform .2s, opacity .2s;
}
.cc .cc-submit:hover:not(:disabled) { background: var(--cc-green-dark); transform: translateY(-1px); }
.cc .cc-submit:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.cc .cc-submit.is-busy i { animation: cc-fly .9s ease-in-out infinite; }
@keyframes cc-fly { 50% { transform: translate(3px, -3px); opacity: .5; } }

.cc .cc-status { margin-top: 12px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.cc .cc-status[hidden] { display: none; }
.cc .cc-status.is-ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.cc .cc-status.is-bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── Список ── */
.cc-list { display: grid; gap: 4px; }
.cc-item { display: flex; gap: 14px; padding: 16px 4px; border-bottom: 1px solid #eef2f6; }
.cc-item:last-child { border-bottom: 0; }
.cc-item.is-fresh { animation: cc-in .5s ease; background: linear-gradient(90deg, rgba(24, 125, 53, .06), transparent 70%); border-radius: 14px; padding-left: 10px; padding-right: 10px; }
@keyframes cc-in { from { opacity: 0; transform: translateY(-6px); } }
.cc-ava {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .02em;
}
.cc-item__body { min-width: 0; flex: 1 1 auto; }
.cc-item__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.cc-item__name { font-size: 15px; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc-item__time, .cc-item__edited { font-size: 13px; color: #94a3b8; }
.cc-item__edited { font-style: italic; }
.cc .cc-item__text { margin-top: 4px; color: #334155; white-space: pre-line; overflow-wrap: anywhere; word-break: break-word; }

.cc .cc-empty { padding: 26px 16px; text-align: center; color: var(--cc-muted); border: 1.5px dashed var(--cc-line); border-radius: 16px; }
.cc .cc-empty--err { color: #b91c1c; border-color: #fecaca; }

.cc-skel { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; row-gap: 10px; align-content: center; padding: 16px 4px; }
.cc-skel::before { content: ""; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: #eef2f6; }
.cc-skel span { display: block; height: 12px; border-radius: 6px; background: #eef2f6; animation: cc-pulse 1.2s ease-in-out infinite; }
.cc-skel span:first-of-type { width: 30%; }
.cc-skel span:last-of-type { width: 80%; }
@keyframes cc-pulse { 50% { opacity: .45; } }

.cc .cc-more {
    display: block; margin: 16px auto 0; min-height: 44px; padding: 0 22px;
    border-radius: 14px; border: 1.5px solid var(--cc-line); background: #fff;
    color: var(--cc-ink); font: inherit; font-weight: 700; cursor: pointer;
}
.cc .cc-more:hover { border-color: var(--cc-green); color: var(--cc-green); }
.cc .cc-more[hidden] { display: none; }

/* ── Планшет ── */
@media (max-width: 1023.98px) {
    .cc { padding: 24px; }
}

/* ── Телефон ── */
@media (max-width: 767.98px) {
    .cc { margin: 32px 0 4px; padding: 18px 14px; border-radius: 20px; }
    .cc .cc-title { font-size: 19px; gap: 10px; }
    .cc-title__icon { width: 36px; height: 36px; border-radius: 12px; font-size: 16px; }
    .cc-form { padding: 14px; border-radius: 16px; }
    .cc-field { max-width: none; }
    .cc-form__foot { flex-direction: column; align-items: stretch; gap: 12px; }
    .cc .cc-submit { width: 100%; }
    .cc-item { gap: 12px; padding: 14px 0; }
    .cc-ava { width: 38px; height: 38px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-item.is-fresh, .cc .cc-submit.is-busy i, .cc-skel span { animation: none; }
}

@media print {
    .cc-form, .cc-more { display: none !important; }
    .cc { box-shadow: none; border: 0; padding: 0; }
}
