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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    overflow: hidden;
}

.app {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: white;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.progress-indicator {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
}

/* Offcanvas Menu */
.offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.offcanvas.active {
    right: 0;
}

.offcanvas-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.offcanvas-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
}

.offcanvas-body {
    padding: 1rem 0;
}

.nav-item {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    font-size: 0.9375rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-item:hover {
    background: #f8f9fa;
}

.nav-item.active {
    color: #1a1a1a;
    font-weight: 500;
    background: #f8f9fa;
}

.nav-item-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
}

.nav-item.active .nav-item-number {
    background: #1a1a1a;
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.slides-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.slide.active {
    transform: translateX(0);
    opacity: 1;
}

.slide.prev {
    transform: translateX(-100%);
}

.slide-content {
    padding: 2rem 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.slide-number {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.slide h2 {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.content-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #495057;
}

.content-text p {
    margin-bottom: 1.25rem;
}

.content-text h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 2rem 0 1rem 0;
    color: #1a1a1a;
}

.content-text h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: #212529;
}

/* Step Items */
.step-list {
    margin: 1.5rem 0;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.step-item p {
    margin: 0;
    padding-top: 2px;
}

/* Info Boxes */
.info-box {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 3px solid;
    font-size: 0.9375rem;
}

.tip-box {
    background: #f8f9fa;
    border-left-color: #6c757d;
}

.warning-box {
    background: #fff8f0;
    border-left-color: #fd7e14;
}

.important-note {
    background: #fef5f5;
    border-left-color: #dc3545;
}

/* Interactive Timer */
.interactive-timer {
    background: #f8f9fa;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    text-align: center;
}

.timer-display {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.timer-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 6;
}

.timer-progress {
    fill: none;
    stroke: #1a1a1a;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 1s linear, stroke 0.3s ease;
}

.timer-time {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.timer-controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.timer-preset-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.625rem 1.25rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.timer-preset-btn:hover {
    border-color: #1a1a1a;
}

.timer-preset-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.timer-action-btns {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.timer-action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.start-btn {
    background: #1a1a1a;
    color: white;
}

.start-btn:hover:not(:disabled) {
    background: #000;
}

.pause-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.pause-btn:hover:not(:disabled) {
    background: #e9ecef;
}

.reset-btn {
    background: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.reset-btn:hover {
    background: #f8f9fa;
}

.timer-action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@keyframes timerAlert {
    0%, 100% {
        background: #f8f9fa;
    }
    50% {
        background: #FF9191;
    }
}

.interactive-timer.alert {
    animation: timerAlert 1s ease-in-out infinite;
}

.slide.timer-finished {
    animation: slideAlert 1s ease-in-out infinite;
}

@keyframes slideAlert {
    0%, 100% {
        background: white;
    }
    50% {
        background: #fff5f5;
    }
}

/* Grid Layouts */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.grid-item {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.grid-item h4 {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.grid-item p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.temp-value {
    font-size: 1.75rem;
    font-weight: 300;
    color: #1a1a1a;
    margin-top: 0.5rem;
}

/* Simple Lists */
.simple-list {
    list-style: none;
    margin: 1rem 0;
}

.simple-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.simple-list li:last-child {
    border-bottom: none;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.tip-card {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
}

.tip-card h4 {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.tip-card p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

/* Navigation Footer */
.nav-footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    position: fixed;  /* Делаем футер фиксированным */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;      /* Убеждаемся что он выше других элементов */
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)); /* Учитываем iOS */
}

.nav-btn {
    flex: 1;
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.875rem 1.5rem;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.nav-btn:hover:not(:disabled) {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.nav-btn.next-btn {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.nav-btn.next-btn:hover:not(:disabled) {
    background: #000;
    color: #e9ecef;
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.install-btn{
    display: none;
}
/*Ссылки*/

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.link-card:hover {
    background: white;
    border-color: #e9ecef;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.link-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: #1a1a1a;
}

.link-content p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
}

.link-arrow {
    font-size: 1.25rem;
    color: #6c757d;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
    color: #1a1a1a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .slide-content {
        padding: 1.5rem 1.25rem;
    }

    .slide h2 {
        font-size: 1.5rem;
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .timer-circle {
        width: 160px;
        height: 160px;
    }

    .timer-time {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem;
    }

    .slide-content {
        padding: 1.25rem 1rem;
    }

    .nav-footer {
        padding: 0.875rem 1rem;
    }

    .link-card {
        padding: 1rem;
    }

    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .link-content h4 {
        font-size: 0.9375rem;
    }

    .link-content p {
        font-size: 0.8125rem;
    }
}

/*Accordion*/

.accordion-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.accordion-item {
    border-bottom: 1px solid #e9ecef;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    color: #495057;
    font-size: 0.9375rem;
}

.accordion-header:hover {
    color: #1a1a1a;
}

.accordion-header.active {
    color: #1a1a1a;
}

.accordion-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-left: 1rem;
    font-weight: 300;
}

.accordion-icon::before {
    content: '+';
    transition: opacity 0.2s ease;
}

.accordion-header.active .accordion-icon {
    color: #1a1a1a;
}

.accordion-header.active .accordion-icon::before {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1500px;
}

.accordion-inner {
    padding: 0 0 1.5rem 0;
}

.image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: #fff;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.example-caption {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.5;
}

.example-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    border: 1px solid #e9ecef;
}

.example-label.defect {
    background: #fff5f5;
    color: #dc3545;
    border-color: #ffcdd2;
}

.example-label.good {
    background: #f0f8f5;
    color: #28a745;
    border-color: #c8e6c9;
}

h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #1a1a1a;
}
/* ===== Новые разделы: навигация ===== */

.nav-section-label {
    padding: 1rem 1.5rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #adb5bd;
}

/* ===== Таймер ===== */

.timer-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timer-presets .timer-preset-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0.5rem 0.25rem;
    border-radius: 12px;
    line-height: 1.2;
}

.timer-presets .timer-preset-btn small {
    font-size: 0.6875rem;
    opacity: 0.7;
    font-weight: 400;
}

.timer-custom {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.timer-step-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.timer-step-btn:hover {
    border-color: #1a1a1a;
}

.timer-infusion {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: -1rem 0 1rem;
}

.next-infusion-btn {
    margin-top: 1rem;
    width: 100%;
}

/* ===== Дегустационный лист ===== */

.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 1.25rem 0 0.375rem;
}

.text-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: #1a1a1a;
    background: white;
    -webkit-appearance: none;
}

.text-input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.score-block {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.score-block.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.score-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.score-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a1a;
}

.score-weight {
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
}

.score-slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.625rem;
}

.score-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: #dee2e6;
    outline: none;
}

.score-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.score-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.score-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 2.25rem;
    text-align: right;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.chip {
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip-pos.selected {
    background: #e7f3ec;
    border-color: #28a745;
    color: #1c7c3c;
}

.chip-neg.selected {
    background: #fdeaea;
    border-color: #dc3545;
    color: #b02a37;
}

.chip-mid.selected {
    background: #e9ecef;
    border-color: #6c757d;
    color: #1a1a1a;
}

.chip-mini {
    display: inline-block;
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    color: #6c757d;
    cursor: default;
}

.total-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    color: white;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 0.375rem;
    font-size: 0.9375rem;
}

.total-score strong {
    font-size: 1.5rem;
    font-weight: 500;
}

.total-formula {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 1.25rem;
}

.save-session-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9375rem;
}

/* История дегустаций */

.history-empty {
    color: #6c757d;
    font-size: 0.875rem;
}

.history-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.history-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "title total" "meta total";
    gap: 0 0.75rem;
    width: 100%;
    text-align: left;
    background: white;
    border: none;
    padding: 0.875rem 1rem;
    cursor: pointer;
    font-family: inherit;
}

.history-title {
    grid-area: title;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1a1a1a;
}

.history-meta {
    grid-area: meta;
    font-size: 0.75rem;
    color: #6c757d;
}

.history-total {
    grid-area: total;
    align-self: center;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
}

.history-details {
    padding: 0.375rem 1rem 1rem;
    border-top: 1px solid #f1f3f5;
    background: #fcfcfd;
}

.history-param {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: #495057;
    border-bottom: 1px solid #f1f3f5;
}

.history-param > span:first-child {
    flex: 1;
}

.history-chips {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.history-comment {
    font-size: 0.8125rem;
    color: #495057;
    margin: 0.75rem 0 0;
    font-style: italic;
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.875rem;
}

.mini-btn {
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.375rem 0.875rem;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.mini-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.mini-btn-danger:hover {
    border-color: #dc3545;
    color: #dc3545;
}

/* ===== Справочник ===== */

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

.ref-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 480px;
    font-size: 0.8125rem;
}

.ref-table th,
.ref-table td {
    text-align: left;
    padding: 0.5rem 0.625rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
}

.ref-table th {
    font-weight: 500;
    color: #1a1a1a;
    background: #f8f9fa;
    white-space: nowrap;
}

.ref-table-compact {
    min-width: 540px;
}

.dict-search {
    margin-bottom: 0.5rem;
}

.dict-count {
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.dict-group-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 1.25rem 0 0.25rem;
}

.dict-scope {
    font-size: 0.6875rem;
    font-weight: 400;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.375rem;
}

.dict-item {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.dict-term {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.125rem;
}

.dict-def {
    font-size: 0.8125rem;
    color: #6c757d;
    line-height: 1.5;
}

.tone {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 10px;
    padding: 0.0625rem 0.5rem;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.tone-pos { background: #e7f3ec; color: #1c7c3c; }
.tone-neg { background: #fdeaea; color: #b02a37; }
.tone-mid { background: #e9ecef; color: #6c757d; }

.not-defect {
    background: #f0f8f5;
    border-left: 3px solid #28a745;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.625rem 0;
    font-size: 0.8125rem;
    color: #495057;
}

.norm-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
}

.norm-card h4 {
    margin-bottom: 0.75rem;
}

.norm-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.375rem 0;
    font-size: 0.8125rem;
    color: #495057;
    line-height: 1.5;
}

.norm-bad {
    color: #b02a37;
    font-size: 0.75rem;
}

.swatch {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #dee2e6;
    margin-top: 2px;
}

/* Про-блоки «Глубже» */

.pro-list {
    margin-top: 2rem;
    border-top: none;
}

.pro-list .accordion-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.pro-list .accordion-header {
    padding: 0.875rem 1rem;
    font-weight: 500;
}

.pro-list .accordion-inner {
    padding: 0 1rem 1.25rem;
}
