/* ========================================
   БЛОК «НАШИ ДОСТИЖЕНИЯ»
   Файл: achievements.css
   ======================================== */

/* ── Секция ── */
.achievements-section {
    padding: 20px 0 0px;
    background: transparent !important;
}

/* Убираем белый фон у родительских блоков внутри секции */
.achievements-section *,
.achievements-section .blog-post,
.achievements-section .blog-post-content {
    background: transparent;
	box-shadow:none;
}

.achievements-section .section {
	box-shadow:none;
}


/* ── Заголовок ── */
.achievements-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 24px;

    color: #FF6F61;
    position: static;
    left: auto;
    transform: none;
    margin: 0 0 6px 0;
    padding: 0;
}

/* Радужное подчёркивание 
.achievements-title::after {
    content: '';
    display: block;
    margin: 8px auto 0;
    width: 280px;
    height: 5px;
    border-radius: 4px;
    background: linear-gradient(90deg, #FFD700, #FF6F61, #4FC3F7);
}*/

.achievements-emoji-row {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 6px;
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

/* ── Сетка (≤ 4 карточек) ── */
.ach-grid {
    display: grid;
    gap: 22px;
}
.ach-grid-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.ach-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ach-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ach-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Карусель (> 4 карточек) ── */
.ach-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.ach-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 18px;
}

.ach-carousel-track {
    display: flex;
    gap: 22px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 6px 2px 12px;
}

/* Карточка в карусели — фиксированная ширина */
.ach-carousel-track .ach-card {
    flex: 0 0 calc(25% - 17px);
    min-width: 220px;
}

@media (max-width: 1023px) {
    .ach-carousel-track .ach-card {
        flex: 0 0 calc(50% - 11px);
    }
}
@media (max-width: 639px) {
    .ach-carousel-track .ach-card {
        flex: 0 0 100%;
    }
}

/* ── Стрелки карусели ── */
.ach-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #333;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 193, 7, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ach-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.55);
}
.ach-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}
.ach-arrow-left  { margin-right: 10px; }
.ach-arrow-right { margin-left:  10px; }

/* ── Точки (dots) ── */
.ach-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    width: 100%;
}
.ach-dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #FFC107;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}
.ach-dot-btn.active,
.ach-dot-btn:hover {
    background: #FF6F61;
    border-color: #FF6F61;
    transform: scale(1.3);
}

/* ── Карточка достижения ── */
.ach-card {
    background: #fff !important;
    border-radius: 20px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
    border: 2px solid transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s,
                border-color 0.3s;
    opacity: 0;
    animation: achFadeUp 0.55s ease forwards;
    position: relative;
}

.ach-card:hover {
    transform: translateY(-7px) scale(1.015);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.14);
    border-color: var(--ach-accent, #FFC107);
}

/* Цветная полоска сверху */
.ach-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--ach-accent, #FFC107);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

/* ── Фото диплома ── */
.ach-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
    background: #f5f5f5 !important;
}
.ach-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
    display: block;
}
.ach-card:hover .ach-thumb img {
    transform: scale(1.07);
}

.ach-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 153, 0.75), rgba(255, 111, 97, 0.75));
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}
.ach-card:hover .ach-thumb::after {
    opacity: 1;
}

.ach-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    font-size: 2rem;
    opacity: 0;
    transition: transform 0.35s, opacity 0.35s;
    z-index: 2;
    pointer-events: none;
}
.ach-card:hover .ach-zoom-icon {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* ── Иконка (если нет фото) ── */
.ach-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    padding: 28px 20px 18px;
    background: color-mix(in srgb, var(--ach-accent, #FFC107) 15%, #fff) !important;
    transition: transform 0.3s;
}
.ach-card:hover .ach-icon-wrap {
    transform: rotate(-5deg) scale(1.12);
}

/* ── Тело карточки ── */
.ach-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    background: #fff !important;
}

/* Бейдж */
.ach-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: color-mix(in srgb, var(--ach-accent, #FFC107) 18%, #fff) !important;
    color: var(--ach-accent, #FFC107);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 100px;
    width: fit-content;
}
.ach-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ach-accent, #FFC107);
    animation: achBlink 1.8s ease infinite;
}
@keyframes achBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

.ach-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
}
.ach-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.ach-card-title a:hover {
    color: #FF6F61;
    text-decoration: underline;
}

.ach-desc {
    font-size: 0.83rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
}

.ach-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
}
.ach-place {
    background: var(--ach-accent, #FFC107) !important;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.4px;
}
.ach-card[data-color="yellow"] .ach-place { color: #3a2d1e; }
.ach-stars {
    font-size: 0.85rem;
    letter-spacing: 2px;
}

/* ── Lightbox ── */
.ach-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.ach-lightbox.open {
    opacity: 1;
    pointer-events: all;
}
.ach-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    object-fit: contain;
}
.ach-lightbox.open img {
    transform: scale(1);
}
.ach-lb-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12) !important;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}
.ach-lb-close:hover {
    background: rgba(255, 111, 97, 0.7) !important;
    transform: scale(1.1);
}

/* ── Анимация карточки ── */
@keyframes achFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Адаптивность ── */
@media (max-width: 1024px) {
    .ach-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ach-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .achievements-title { font-size: 22px; }
}

@media (max-width: 640px) {
    .ach-grid-2,
    .ach-grid-3,
    .ach-grid-4 { grid-template-columns: 1fr; }

    .ach-arrow { width: 34px; height: 34px; font-size: 12px; }
    .ach-arrow-left  { margin-right: 6px; }
    .ach-arrow-right { margin-left:  6px; }

    .achievements-title { font-size: 20px; }
    .achievements-emoji-row { font-size: 1.2rem; letter-spacing: 3px; }
}

@media (max-width: 480px) {
    .ach-body { padding: 14px 16px 16px; }
    .ach-card-title { font-size: 0.93rem; }
    .achievements-title { font-size: 18px; }
}
