/* asmi.css — кастомные стили */
.phone_link {
    text-decoration: none;
}

.phone_link:hover {
    color: #0384EB;
    background-image: -webkit-linear-gradient(left, #0075F0 0%, #13D9CF 100%);
    background-image: -o-linear-gradient(left, #0075F0 0%, #13D9CF 100%);
    background-image: linear-gradient(90deg, #0075F0 0%, #13D9CF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section.right-widget .widget-item:has(.widget-item__call):hover {
    background: linear-gradient(135deg, #44CCFF 0%, #5533EE 66%, #9933DD 100%);
}

section.right-widget .widget-item:has(.widget-item__call):hover svg path {
    fill: revert-layer;
}

.specialists-section {
    --specialists-surface: #f5f5f5;
    --specialists-text: #000;
    --specialists-muted: #8c8c8c;
    --specialists-border: #dbdbdb;
    --specialists-accent: #0066b3;
    --specialists-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);

    padding-block: clamp(48px, 7vw, 80px);
    background: #fff;
    color: var(--specialists-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

.specialists-section *,
.specialist-items .doctor-card * {
    box-sizing: border-box;
}

.specialists-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.specialists-header-text {
    max-width: 56ch;
}

.specialists-header h2 {
    margin: 0;
    color: #000;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.specialists-header .lead {
    max-width: 60ch;
    margin-top: 12px;
    color: var(--specialists-muted);
    font-size: 16px;
    line-height: 1.55;
}

.specialists-header-cta {
    flex-shrink: 0;
}

.specialists-grid,
.specialist-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.specialist-items {
    padding: 0 0 2em;
}

.doctor-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--specialists-border, #dbdbdb);
    border-radius: 8px;
    background: var(--specialists-surface, #f5f5f5);
    color: #000;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.doctor-card:hover {
    color: #000;
    box-shadow: var(--specialists-shadow, 0 10px 24px rgba(0, 0, 0, 0.12));
    transform: translateY(-2px);
}

.doctor-card:focus-within {
    border-color: var(--specialists-accent, #0066b3);
    box-shadow: 0 0 0 1px var(--specialists-accent, #0066b3);
}

.doctor-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #fff;
}

.doctor-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 20%;
}

.doctor-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 16px 16px 18px;
}

.doctor-name {
    margin: 0;
    color: #000;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.doctor-spec {
    margin: 0;
    color: var(--specialists-muted, #8c8c8c);
    font-size: 13px;
    line-height: 1.45;
}

.doctor-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.doctor-actions .btn {
    width: 100%;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.doctor-actions .btn:active {
    transform: translateY(1px);
}

.doctor-actions .btn-primary {
    padding: 12px 18px;
    background: linear-gradient(90deg, #097af0 0%, #30dbd5 100%);
    color: #fff;
}

.doctor-actions .btn-primary:hover {
    background: linear-gradient(90deg, #0768c8 0%, #26b8b3 100%);
}

.doctor-actions .btn-primary:focus-visible {
    outline: 2px solid #097af0;
    outline-offset: 2px;
}

.doctor-actions .btn-ghost {
    align-self: flex-start;
    width: auto;
    min-height: 32px;
    padding: 6px 4px;
    background: transparent;
    color: var(--specialists-accent, #0066b3);
    font-size: 13px;
}

.doctor-actions .btn-ghost:hover {
    color: #004d86;
}

.doctor-actions .btn-ghost:focus-visible {
    outline: 2px solid var(--specialists-accent, #0066b3);
    outline-offset: 4px;
}

.btn-arrow::after {
    content: "→";
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.15s ease;
}

.btn-arrow:hover::after {
    transform: translateX(2px);
}

@media (max-width: 1100px) {
    .specialists-grid,
    .specialist-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 720px) {
    .specialists-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
}

@media (max-width: 560px) {
    .specialists-grid,
    .specialist-items {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

.news-section {
    padding-block: clamp(48px, 7vw, 80px);
    background: #f5f5f5;
    color: #000;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.news-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.news-header-text {
    max-width: 56ch;
}

.news-header h2 {
    margin: 0;
    color: #000;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.news-header .lead {
    max-width: 60ch;
    margin-top: 12px;
    color: #8c8c8c;
    font-size: 16px;
    line-height: 1.55;
}

.news-header-cta {
    flex-shrink: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    background: #fff;
    color: #000;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
    color: #000;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.news-card:focus-within {
    border-color: #0066b3;
    box-shadow: 0 0 0 1px #0066b3;
}

.news-photo {
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    border-radius: 6px;
}

.news-photo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.news-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.news-title {
    margin: 0;
    color: #000;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.news-excerpt {
    margin: 0;
    color: #8c8c8c;
    font-size: 14px;
    line-height: 1.5;
}

.news-actions {
    margin-top: auto;
}

.news-actions .btn-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 8px 4px;
    color: #0066b3;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.news-actions .btn-ghost:hover {
    color: #004d86;
}

.news-actions .btn-ghost:focus-visible {
    outline: 2px solid #0066b3;
    outline-offset: 4px;
}

@media (max-width: 720px) {
    .news-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .news-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}