.guides-page {
    margin: 40px auto 80px;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    color: #1d2d53;
    max-width: 1100px;
    padding: 0 16px;
}

.guides-page__title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 8px;
}

.guides-page__lead {
    text-align: center;
    color: #4a5475;
    margin: 0 0 32px;
}

.guides-page__back {
    color: #1d2d53;
    text-decoration: none;
    font-weight: 600;
}

.guides-page__empty {
    text-align: center;
    color: #4a5475;
    padding: 40px 0;
}

/* Language cards grid */
.guide-langs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.guide-lang-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e1e5ee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-lang-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(29, 45, 83, 0.12);
}

.guide-lang-card__image {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e1e5ee;
}

.guide-lang-card__image--placeholder {
    background: linear-gradient(135deg, #1d2d53, #61afb4);
}

.guide-lang-card__body {
    padding: 14px 16px;
}

.guide-lang-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* FIFA-style guide cards */
.guide-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.guide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 4.2;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(160deg, #f3d27a 0%, #e7b04a 55%, #c4892a 100%);
    color: #1d2d53;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(29, 45, 83, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(29, 45, 83, 0.25);
}

.guide-card__top {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.guide-card__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.guide-card__rating-value {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.guide-card__rating-stars {
    font-size: 12px;
    line-height: 1;
    margin-top: 4px;
}

.guide-card__star {
    color: #4a3010;
}

.guide-card__star--full,
.guide-card__star--half {
    color: #ffffff;
}

.guide-card__langs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    max-width: 50%;
}

.guide-card__lang {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(29, 45, 83, 0.18);
    padding: 3px 8px;
    border-radius: 999px;
}

.guide-card__photo-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px;
}

.guide-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.guide-card__photo--placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(29, 45, 83, 0.2) 100%);
}

.guide-card__name-row {
    background: rgba(29, 45, 83, 0.92);
    color: #ffffff;
    padding: 12px 14px;
    text-align: center;
}

.guide-card__name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Guide detail page */
.guide-detail {
    max-width: 980px;
    margin: 40px auto 80px;
    padding: 0 16px;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    color: #1d2d53;
}

.guide-detail__head {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.guide-detail__photo-wrap {
    border-radius: 14px;
    overflow: hidden;
    background: #e1e5ee;
    aspect-ratio: 1 / 1.2;
}

.guide-detail__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-detail__photo--placeholder {
    background: linear-gradient(135deg, #1d2d53, #61afb4);
}

.guide-detail__name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
}

.guide-detail__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.guide-detail__rating-value {
    font-size: 22px;
    font-weight: 800;
}

.guide-detail__star {
    color: #c5c8d1;
    font-size: 18px;
}

.guide-detail__star--full {
    color: #f0b400;
}

.guide-detail__star--half {
    background: linear-gradient(90deg, #f0b400 50%, #c5c8d1 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.guide-detail__count {
    color: #8a93a8;
    font-size: 14px;
}

.guide-detail__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.guide-detail__lang {
    background: #e7f1f2;
    color: #1d2d53;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.guide-detail__bio {
    margin-bottom: 14px;
    line-height: 1.55;
}

.guide-detail__objects {
    margin-bottom: 20px;
    line-height: 1.55;
}

.guide-detail__h {
    font-size: 14px;
    text-transform: uppercase;
    color: #4a5475;
    margin: 0 0 6px;
    letter-spacing: 0.4px;
}

.guide-detail__order-btn,
.guide-detail__review-btn {
    display: inline-block;
    background: #1d2d53;
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: "Proxima Nova", Helvetica, Arial, sans-serif;
    transition: background 0.15s ease;
}

.guide-detail__order-btn:hover,
.guide-detail__review-btn:hover {
    background: #2a3f73;
}

.guide-detail__h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
}

.guide-detail__review-actions {
    margin-bottom: 24px;
}

.guide-detail__empty {
    color: #4a5475;
}

.guide-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.guide-review {
    background: #ffffff;
    border: 1px solid #e1e5ee;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

.guide-review.is-truncated {
    cursor: pointer;
}

.guide-review__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.guide-review__name {
    font-weight: 700;
}

.guide-review__star {
    color: #c5c8d1;
}

.guide-review__star--full {
    color: #f0b400;
}

.guide-review__star--half {
    background: linear-gradient(90deg, #f0b400 50%, #c5c8d1 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.guide-review__body {
    margin: 0 0 10px;
    line-height: 1.45;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    flex: 1;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-review.is-truncated .guide-review__body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 85%);
    pointer-events: none;
}

.guide-review__date {
    color: #8a93a8;
    font-size: 13px;
    margin-top: auto;
}

@media (max-width: 720px) {
    .guide-detail__head {
        grid-template-columns: 1fr;
    }
    .guide-detail__photo-wrap {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Suggest dropdown (Yandex) */
.ymaps-suggest-container,
.ymaps-suggest {
    z-index: 200;
}
