.feedback-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 16px 24px;
}

.feedback-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 16px;
}

.feedback-lead,
.feedback-thanks {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0 0 20px;
}

.feedback-thanks {
    font-weight: 700;
    color: var(--color-navy);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}

.feedback-kinds {
    border: 0;
    margin: 0;
    padding: 0;
}

.feedback-kinds legend {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding: 0;
}

.feedback-kind-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    cursor: pointer;
}

.feedback-choice:has(input:checked) {
    border-color: var(--color-bootstrap-primary);
    background: var(--surface);
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.feedback-field em {
    font-style: normal;
    font-weight: 500;
    color: var(--text-muted);
}

.feedback-note {
    margin: 4px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.feedback-field input,
.feedback-field select,
.feedback-field textarea {
    font: inherit;
    font-weight: 400;
    color: var(--text);
    background: var(--surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    width: 100%;
}

.feedback-field textarea {
    min-height: 140px;
    resize: vertical;
}

.feedback-field input:focus,
.feedback-field select:focus,
.feedback-field textarea:focus,
.feedback-choice input:focus-visible {
    outline: 2px solid var(--color-bootstrap-primary);
    outline-offset: 2px;
}

.feedback-error {
    color: #9f2d2d;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.feedback-submit {
    align-self: flex-start;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-bootstrap-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.feedback-submit:hover,
.feedback-submit:focus-visible {
    background: var(--color-navy);
}

.feedback-submit:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

:root[data-theme="dark"] .feedback-submit:hover,
:root[data-theme="dark"] .feedback-submit:focus-visible {
    background: var(--color-menu-hover);
    color: var(--text);
}

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

/* «Мугалимдердин пикирлери»: a swipeable row of quote cards. Native
   horizontal scroll with snap points, so a finger swipe works even before
   the script loads; the arrows and dots only steer that scroll. */
.comments-page {
    max-width: 960px;
}
.comments-lead {
    color: var(--text-muted);
    margin: 0 0 20px;
}

.comments-track {
    list-style: none;
    margin: 0 -4px;
    padding: 4px 4px 20px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.comments-track::-webkit-scrollbar {
    display: none;
}
.comments-track:focus-visible {
    outline: 2px solid var(--color-bootstrap-primary, #0d6efd);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}
@media (min-width: 768px) {
    .comments-track {
        grid-auto-columns: calc(50% - 8px);
    }
}

.comments-slide {
    scroll-snap-align: start;
    display: flex;
}

.comment-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--color-heading-accent);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
    padding: 24px 24px 20px;
}

.comment-mark {
    width: 36px;
    height: 27px;
    fill: var(--color-heading-accent);
    opacity: .35;
    margin-bottom: 12px;
}

.comment-text {
    flex: 1;
    margin: 0 0 20px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}
.comment-avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-menu-active);
    color: var(--color-navy);
    font-weight: 700;
    font-size: 1.1rem;
}
.comment-avatar svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}
.comment-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.comment-name {
    font-weight: 700;
    color: var(--color-navy);
}
.comment-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.comment-kind {
    margin-left: auto;
    flex: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--color-navy);
    background: var(--color-menu-active);
    border-radius: 999px;
    padding: 4px 10px;
}

.comments-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}
.comments-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border-subtle);
    background: var(--surface);
    color: var(--color-navy);
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}
.comments-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.comments-arrow:hover:not(:disabled) {
    background: var(--color-menu-active);
    border-color: var(--color-heading-accent);
}
.comments-arrow:focus-visible,
.comments-dot:focus-visible {
    outline: 2px solid var(--color-bootstrap-primary, #0d6efd);
    outline-offset: 2px;
}
.comments-arrow:disabled {
    opacity: .35;
    cursor: default;
}
.comments-dots {
    display: flex;
    gap: 4px;
}
.comments-dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.comments-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border-subtle);
    transition: width var(--transition-fast), background var(--transition-fast);
}
.comments-dot[aria-current="true"]::before {
    width: 20px;
    background: var(--color-heading-accent);
}

.comments-cta {
    margin-top: 32px;
    padding: 20px 24px;
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.comments-cta p {
    margin: 0;
    color: var(--text);
}
.comments-cta-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    background: var(--color-bootstrap-primary, #0d6efd);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.comments-cta-btn:hover,
.comments-cta-btn:focus-visible {
    background: var(--color-navy);
    color: #fff;
}

.comments-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.feedback-direct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 20px;
    padding: 16px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.feedback-direct p {
    margin: 0;
    flex: 1 1 260px;
    color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
    .comments-track { scroll-behavior: auto; }
    .comments-dot::before,
    .comments-arrow { transition: none; }
}

@media (max-width: 480px) {
    .feedback-page {
        padding-top: 28px;
    }

    .feedback-choice,
    .feedback-submit {
        width: 100%;
    }
}
