@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500&display=swap");

body { margin: 0; font-family: var(--font-sans); font-weight: 400; line-height: 1.2; background: var(--surface); color: var(--text-primary); }
.as-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-4); }
.as-col { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-4); padding: var(--space-4); align-items: start; }
.as-label { font-size: 15px; color: var(--text-muted); }
:where(.as-btn, .as-icbtn, .as-input input, .as-check input):focus-visible { outline: 2px solid var(--blue-pressed); outline-offset: 2px; }

/* Button */
.as-btn { font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; color: var(--surface); }
.as-btn-m { height: var(--button-m-height); padding: 0 var(--space-4); border-radius: var(--radius-button-m); font-size: 18px; }
.as-btn-l { height: var(--button-l-height); padding: 0 var(--button-l-padding); border-radius: var(--radius-button-l); font-size: 22px; }
.as-btn-full { width: 100%; }
.as-btn-primary { background: var(--brand-blue); }
.as-btn-primary:hover, .as-btn-primary.is-hover { background: var(--blue-hover); }
.as-btn-primary:active, .as-btn-primary.is-active { background: var(--blue-pressed); }
.as-btn-dark { background: var(--dark-cta); }
.as-btn-dark:hover, .as-btn-dark.is-hover { background: var(--surface); color: var(--dark-cta); border-color: var(--dark-cta); }
.as-btn-dark:active, .as-btn-dark.is-active { background: var(--brand-blue); color: var(--surface); border-color: var(--brand-blue); }
.as-btn-soft { background: var(--lavender-surface); color: var(--blue-hover); }
.as-btn-soft:hover, .as-btn-soft.is-hover { background: var(--brand-blue); color: var(--surface); }
.as-btn-soft:active, .as-btn-soft.is-active { background: var(--blue-pressed); color: var(--surface); }
.as-btn-coral { background: var(--coral-cta); }
.as-btn-coral:hover, .as-btn-coral.is-hover { background: var(--coral-hover); }
.as-btn-coral:active, .as-btn-coral.is-active { background: var(--coral-pressed); }
.as-btn:disabled, .as-btn:disabled:hover { background: var(--disabled); color: var(--surface); border-color: transparent; cursor: not-allowed; }

/* IconButton (circle) */
.as-icbtn { width: var(--button-m-height); height: var(--button-m-height); border-radius: var(--radius-circle); border: 0; display: inline-grid; place-items: center; cursor: pointer; padding: 0; transition: background-color .15s, color .15s; }
.as-icbtn svg { width: var(--icon-s); height: var(--icon-s); }
.as-icbtn-arrow { background: var(--brand-blue); color: var(--surface); }
.as-icbtn-arrow:hover, .as-icbtn-arrow.is-hover { background: var(--blue-hover); }
.as-icbtn-arrow:active, .as-icbtn-arrow.is-active { background: var(--blue-pressed); }
.as-icbtn-profile { background: var(--lavender-surface); color: var(--blue-pressed); }
.as-icbtn-profile:hover, .as-icbtn-profile.is-hover { background: var(--lavender-strong); }
.as-icbtn-profile:active, .as-icbtn-profile.is-active { background: var(--blue-pressed); color: var(--surface); }
.as-icbtn:disabled { background: var(--disabled); color: var(--surface); cursor: not-allowed; }

/* Input */
.as-input { display: flex; flex-direction: column; gap: var(--space-1); min-width: 240px; }
.as-input-label { font-size: 15px; color: var(--text-primary); }
.as-input-box { position: relative; display: flex; align-items: center; }
.as-input input { box-sizing: border-box; width: 100%; height: var(--input-height); padding: var(--space-1) var(--space-3); border: 1px solid var(--input-border); border-radius: var(--radius-input); background: var(--surface); font: inherit; font-size: 16px; color: var(--text-primary); }
.as-input input::placeholder { color: var(--input-placeholder); }
.as-input input:focus { border-color: var(--brand-blue); outline: none; }
.as-input-icon { position: absolute; right: var(--space-3); width: var(--icon-s); height: var(--icon-s); color: var(--text-muted); }
.as-input.has-icon input { padding-right: calc(var(--space-3) + var(--icon-s) + var(--space-1)); }
.as-input-hint { font-size: 15px; color: var(--text-muted); }
.as-input.is-error input { border-color: var(--error); }
.as-input.is-error .as-input-icon, .as-input.is-error .as-input-hint { color: var(--error); }

/* Checkbox */
.as-check { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 16px; cursor: pointer; }
.as-check input { appearance: none; -webkit-appearance: none; margin: 0; width: var(--icon-s); height: var(--icon-s); border: 1px solid var(--disabled); border-radius: 6px; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.as-check input:checked { border-color: var(--brand-blue); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23506fe5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/18px no-repeat; }

/* Shared card bits */
.as-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 500; }
.as-rating svg { width: 18px; height: 18px; color: var(--coral-cta); }
.as-avatar { border-radius: var(--radius-circle); background: var(--lavender-surface); color: var(--blue-pressed); display: grid; place-items: center; font-weight: 500; overflow: hidden; flex: none; }
.as-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* TutorCard */
.as-tutor { position: relative; background: var(--surface); border-radius: var(--radius-modal); box-shadow: var(--shadow-card); padding: 56px var(--space-4) var(--space-4); margin-top: 48px; display: flex; flex-direction: column; gap: var(--space-2); }
.as-tutor .as-avatar { position: absolute; top: -48px; left: var(--space-4); width: 96px; height: 96px; font-size: 28px; border: 4px solid var(--surface); }
.as-tutor-name { font-size: 24px; font-weight: 500; }
.as-tutor-subject { font-size: 16px; color: var(--text-muted); }
.as-tutor-metrics { display: flex; gap: var(--space-3); align-items: center; font-size: 15px; color: var(--text-muted); }
.as-tutor-quote { background: var(--lavender-surface); border-radius: var(--space-3); padding: var(--space-3); font-size: 16px; }

/* PricingCard */
.as-price { background: var(--surface); border: 1px solid var(--input-border); border-radius: var(--radius-modal); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.as-price.is-featured { border: 2px solid var(--coral-cta); }
.as-price-badge { align-self: flex-start; background: var(--coral-cta); color: var(--surface); border-radius: var(--radius-button-m); padding: 4px var(--space-2); font-size: 15px; font-weight: 500; }
.as-price-title { font-size: 24px; font-weight: 500; }
.as-price-box { background: var(--lavender-surface); border-radius: var(--space-3); padding: var(--space-3); }
.as-price-value { font-size: 40px; font-weight: 500; }
.as-price-period { font-size: 15px; color: var(--text-muted); }
.as-price ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1); font-size: 16px; }
.as-price li { display: flex; gap: var(--space-1); }
.as-price li svg { flex: none; width: 20px; height: 20px; color: var(--brand-blue); }

/* ReviewCard & FormatCard */
.as-tone-mint { background: var(--pastel-mint); }
.as-tone-pink { background: var(--pastel-pink); }
.as-tone-yellow { background: var(--pastel-yellow); }
.as-tone-lavender { background: var(--pastel-lavender); }
.as-review { border-radius: var(--radius-modal); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.as-review-head { display: flex; gap: var(--space-2); align-items: center; }
.as-review .as-avatar { width: 48px; height: 48px; background: var(--surface); }
.as-review-author { font-size: 18px; font-weight: 500; }
.as-review-text { font-size: 16px; }
.as-format { border-radius: var(--radius-modal); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.as-format-title { font-size: 28px; font-weight: 500; }
.as-format-text { font-size: 18px; }

/* Modal */
.as-modal { box-sizing: border-box; position: relative; background: var(--surface); border-radius: var(--radius-modal); padding: var(--space-5); box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: var(--space-4); max-width: 100%; }
.as-modal-s { width: var(--modal-s); }
.as-modal-m { width: var(--modal-m); }
.as-modal-l { width: var(--modal-l); }
.as-modal-mobile { width: var(--container-375); padding: var(--space-4); border-radius: var(--radius-mobile-modal); }
.as-modal-title { font-size: 28px; font-weight: 500; margin: 0; padding-right: var(--space-6); }
.as-modal-mobile .as-modal-title { font-size: 24px; }
.as-modal-close { position: absolute; top: var(--space-3); right: var(--space-3); }
.as-modal-note { font-size: 15px; color: var(--text-muted); }
