/* ===========================================================
   ОБЩИЙ SVG-ФИЛЬТР ДЛЯ ТЕКСТУРЫ "БУМАГА/КАРАНДАШ"
   Подключается через filter: url(#pencil-texture)
   Сам <svg> с фильтром нужно один раз вставить в шаблон
   (см. блок ниже под стилями)
   =========================================================== */

/* Демо-фон, чтобы было видно как на белом */
body {
    margin: 0;
    padding: 60px 20px;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* ===========================================================
   1. ГЛАВНАЯ КРУГЛАЯ CTA — "Получить быструю консультацию"
   Заменяет .call-button-text-wrapper / .call-button-text
   =========================================================== */

.call-button-text-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
    /* внешнее белое кольцо рисуем через padding */
    padding: 14px;
    border-radius: 50%;
    /* лёгкая обводка-штрих внешнего круга */
    box-shadow:
            0 0 0 1.5px #b8b8b8 inset,
            6px 8px 14px -6px rgba(0,0,0,0.25);
    background: #fdfcf8; /* цвет "бумаги" */
    transition: transform 0.2s ease;
}

.call-button-text-wrapper:hover {
    transform: translateY(-2px) scale(1.02);
}

.call-button-text-wrapper:active {
    transform: translateY(1px) scale(0.99);
}

.call-button-text {
    /* сбрасываем дефолтный <button> */
    appearance: none;
    border: none;
    outline: none;
    margin: 0;
    cursor: pointer;

    /* размер и форма */
    width: 220px;
    height: 220px;
    border-radius: 50%;

    /* бирюзовый фон с текстурой через SVG-фильтр */
    background: #2a8ea0;
    filter: url(#pencil-fill);

    /* типографика */
    color: #fff;
    font-family: "Arial Black", "Helvetica", sans-serif;
    font-weight: 900;
    font-size: 19px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;

    /* лёгкая внутренняя «карандашная» обводка */
    box-shadow:
            inset 0 0 0 1px rgba(0,0,0,0.15),
            inset 0 -8px 20px rgba(0,0,0,0.08);

    transition: background 0.2s ease;
}

.call-button-text:hover {
    background: #2da0b3;
}

/* адаптив для мобилки */
@media (max-width: 480px) {
    .call-button-text {
        width: 170px;
        height: 170px;
        font-size: 15px;
    }
    .call-button-text-wrapper { padding: 11px; }
}

/* ===========================================================
   2. ВТОРИЧНАЯ КНОПКА — "Записаться на приём"
   Желтая прямоугольная со смайликом
   Класс .pencil-btn (использовать вместо обычных <a> / <button>)
   =========================================================== */

.pencil-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 32px 16px 24px;
    border: 2px solid #2a2a2a;
    border-radius: 10px;
    background: #fbe79a; /* мягкий желтый "карандаш" */
    filter: url(#pencil-fill);

    color: #1f1f1f;
    font-family: "Arial Black", "Helvetica", sans-serif;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;

    box-shadow:
            4px 5px 0 -2px rgba(0,0,0,0.15),
            inset 0 0 0 1px rgba(0,0,0,0.05);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pencil-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow:
            6px 7px 0 -2px rgba(0,0,0,0.18),
            inset 0 0 0 1px rgba(0,0,0,0.05);
}

.pencil-btn:active {
    transform: translate(2px, 2px);
    box-shadow:
            2px 3px 0 -2px rgba(0,0,0,0.15),
            inset 0 0 0 1px rgba(0,0,0,0.05);
}

.pencil-btn .smiley {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.pencil-btn .smiley circle,
.pencil-btn .smiley path {
    stroke: #1f1f1f;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

/* Вариант кнопки без иконки (для других мест на сайте) */
.pencil-btn--plain { padding: 16px 32px; }

/* Вариант "Перезвонить мне" — зеленый */
.pencil-btn--green {
    background: #b9e3a8;
}

/* Вариант компактный */
.pencil-btn--sm {
    font-size: 14px;
    padding: 10px 20px;
}
.pencil-btn--sm .smiley { width: 20px; height: 20px; }

@media (max-width: 480px) {
    .pencil-btn { font-size: 14px; padding: 12px 20px; gap: 10px; }
    .pencil-btn .smiley { width: 22px; height: 22px; }
}

