/*
Назначение:
     Стили страниц услуг /yanao/ (лендинг КТ и далее): hero, прайс,
     анимации в духе Magic UI (fade-up, border-beam, shimmer CTA).

История
     изменений:
v1.0
     – Страница КТ. (2026-09-22)
*/

.yanao-svc {
    --svc-blue: #2fa8ff;
    --svc-blue-dark: #1a86d4;
    --svc-ink: #1f2a37;
    --svc-muted: #5b6775;
    --svc-line: #e6edf3;
    --svc-soft: #f5f9fc;
    color: var(--svc-ink);
}

.yanao-svc * {
    box-sizing: border-box;
}

.yanao-svc__hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(ellipse 80% 60% at 90% 10%, rgba(47, 168, 255, 0.22), transparent 55%),
        linear-gradient(160deg, #eef6fc 0%, #f8fafc 45%, #ffffff 100%);
    padding: 48px 0 36px;
}

.yanao-svc__hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.yanao-svc__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 168, 255, 0.1);
    color: var(--svc-blue-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.yanao-svc__hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.yanao-svc__lead {
    margin: 0 0 22px;
    max-width: 34em;
    font-size: 17px;
    line-height: 1.55;
    color: var(--svc-muted);
}

.yanao-svc__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.yanao-svc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.yanao-svc__btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.yanao-svc__btn--primary {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, var(--svc-blue), var(--svc-blue-dark));
    box-shadow: 0 10px 24px rgba(47, 168, 255, 0.35);
}

.yanao-svc__btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: yanao-shimmer 3.2s ease-in-out infinite;
}

.yanao-svc__btn--ghost {
    color: var(--svc-blue-dark);
    background: #fff;
    border: 1px solid rgba(47, 168, 255, 0.45);
}

.yanao-svc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--svc-muted);
}

.yanao-svc__meta li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yanao-svc__meta li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--svc-blue);
}

.yanao-svc__media {
    position: relative;
}

.yanao-svc__media-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #dbe7f2;
    box-shadow: 0 24px 48px rgba(31, 42, 55, 0.16);
}

.yanao-svc__media-frame::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(120deg, #2fa8ff, transparent 40%, #7dd3fc, transparent 70%, #2fa8ff);
    background-size: 200% 200%;
    animation: yanao-beam 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.yanao-svc__media-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.yanao-svc__media-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.62);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.yanao-svc__section {
    padding: 56px 0 0;
}

.yanao-svc__section h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.yanao-svc__section-lead {
    margin: 0 0 28px;
    max-width: 40em;
    color: var(--svc-muted);
    font-size: 17px;
    line-height: 1.55;
}

.yanao-svc__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.yanao-svc__card {
    padding: 22px;
    border: 1px solid var(--svc-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(31, 42, 55, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yanao-svc__card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(31, 42, 55, 0.08);
}

.yanao-svc__card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.yanao-svc__card p {
    margin: 0;
    color: var(--svc-muted);
    font-size: 14px;
    line-height: 1.5;
}

.yanao-svc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
}

.yanao-svc__list li {
    position: relative;
    padding-left: 22px;
    color: var(--svc-muted);
    font-size: 15px;
    line-height: 1.45;
}

.yanao-svc__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(47, 168, 255, 0.25);
    box-shadow: inset 0 0 0 2px var(--svc-blue);
}

.yanao-svc__price-wrap {
    border: 1px solid var(--svc-line);
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
}

.yanao-svc__price-note {
    padding: 14px 18px;
    background: var(--svc-soft);
    border-bottom: 1px solid var(--svc-line);
    color: var(--svc-muted);
    font-size: 15px;
    line-height: 1.45;
}

.yanao-svc__price-table {
    width: 100%;
    border-collapse: collapse;
}

.yanao-svc__price-table th,
.yanao-svc__price-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--svc-line);
    font-size: 15px;
    vertical-align: top;
}

.yanao-svc__price-table th {
    background: #fafcfe;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a8794;
}

.yanao-svc__price-table tr:last-child td {
    border-bottom: 0;
}

.yanao-svc__price-table tr:hover td {
    background: rgba(47, 168, 255, 0.04);
}

.yanao-svc__price {
    white-space: nowrap;
    font-weight: 700;
    color: var(--svc-ink);
}

.yanao-svc__group-title {
    margin: 28px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--svc-blue-dark);
}

.yanao-svc__gallery {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 12px;
}

.yanao-svc__gallery figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #e8eef4;
}

.yanao-svc__gallery img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.yanao-svc__gallery figure:hover img {
    transform: scale(1.04);
}

.yanao-svc__gallery figure:first-child {
    grid-row: span 2;
}

.yanao-svc__gallery figcaption {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--svc-muted);
    background: #fff;
    border-top: 1px solid var(--svc-line);
}

.yanao-svc__band {
    margin-top: 56px;
    padding: 40px 0 48px;
    background:
        radial-gradient(circle at 15% 20%, rgba(47, 168, 255, 0.18), transparent 40%),
        linear-gradient(180deg, #0f2740 0%, #163553 100%);
    color: #fff;
}

.yanao-svc__band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.yanao-svc__band h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.yanao-svc__band p {
    margin: 0;
    max-width: 34em;
    color: rgba(255, 255, 255, 0.78);
}

.yanao-svc__band .yanao-svc__btn--primary {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.yanao-svc__faq details {
    margin-bottom: 10px;
    border: 1px solid var(--svc-line);
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
}

.yanao-svc__faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.yanao-svc__faq summary::-webkit-details-marker {
    display: none;
}

.yanao-svc__faq details p {
    margin: 10px 0 0;
    color: var(--svc-muted);
    font-size: 14px;
    line-height: 1.5;
}

.yanao-svc [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.yanao-svc [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.yanao-svc__bottom-space {
    height: 48px;
}

@keyframes yanao-shimmer {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}

@keyframes yanao-beam {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@media (max-width: 900px) {
    .yanao-svc__hero-grid,
    .yanao-svc__cards,
    .yanao-svc__list,
    .yanao-svc__gallery {
        grid-template-columns: 1fr;
    }

    .yanao-svc__gallery figure:first-child {
        grid-row: auto;
    }

    .yanao-svc__hero {
        padding-top: 28px;
    }

    .yanao-svc__media-frame img {
        aspect-ratio: 16 / 11;
    }
}
