/* ==========================================================================
   YourClean — Modern Components v3.0
   Elegant minimalism with smooth interactions
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

/* Button sizes */
.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
}

.btn--md {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
}

.btn--lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
}

.btn--xl {
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn--full {
    width: 100%;
}

/* PRIMARY BUTTON — Turquoise gradient (бирюзовый) */
.btn--primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-md);
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-primary-sm);
}

/* ACCENT BUTTON — Turquoise */
.btn--accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent-sm);
}

.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent-md);
}

/* EMERALD BUTTON — Изумрудный (эко-плашки, преимущества) */
.btn--emerald {
    background: var(--gradient-emerald);
    color: white;
    box-shadow: var(--shadow-emerald-sm);
}

.btn--emerald:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-emerald-md);
}

/* ORANGE BUTTON — Оранжевый (скидки, важные уведомления) */
.btn--orange {
    background: var(--gradient-orange);
    color: white;
    box-shadow: var(--shadow-orange-sm);
}

.btn--orange:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-orange-md);
}

/* OUTLINE BUTTON — Clean minimal */
.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-sm);
}

/* GHOST BUTTON */
.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn--ghost:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

/* WHITE BUTTON (for dark backgrounds) */
.btn--white {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.btn--white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--color-bg);
}

/* OUTLINE WHITE */
.btn--outline-white {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* GREEN BUTTON (for specific use cases) */
.btn--green {
    background: var(--color-success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn--green:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Button icon */
.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.btn__icon--left {
    margin-right: var(--space-2);
    margin-left: 0;
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card--bordered {
    border: 1px solid var(--color-border);
}

.card--elevated {
    box-shadow: var(--shadow-md);
}

.card--elevated:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* GRADIENT CARD */
.card--gradient {
    background: var(--gradient-card);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
}

.card__body {
    padding: var(--space-6);
}

.card__body--lg {
    padding: var(--space-8);
}

.card__header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.card__footer {
    padding: var(--space-6);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-bg-alt);
}

/* ==========================================================================
   SERVICE CARDS — Modern hover effects
   ========================================================================== */
.service-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Accent line on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-cta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--color-primary-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-xl);
    background: var(--gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    box-shadow: var(--shadow-primary-sm);
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-primary-md);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.service-card__description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-5);
    line-height: var(--leading-relaxed);
}

.service-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.service-card__feature {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.service-card__feature-icon {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    background: var(--color-success-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card__feature-icon svg {
    width: 12px;
    height: 12px;
    color: var(--color-success);
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-light);
}

.service-card__price {
    display: flex;
    flex-direction: column;
}

.service-card__price-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.service-card__price-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
}

/* ==========================================================================
   PRICING CARDS — Level selection
   ========================================================================== */
.pricing-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    border: 2px solid var(--color-border);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--radius-2xl) + 2px);
    background: var(--gradient-cta);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
}

.pricing-card:hover,
.pricing-card--active {
    border-color: transparent;
    box-shadow: var(--shadow-primary-md);
}

.pricing-card:hover::before,
.pricing-card--active::before {
    opacity: 1;
}

.pricing-card--popular {
    transform: scale(1.02);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-accent);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-accent-sm);
}

.pricing-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    text-align: center;
    margin-bottom: var(--space-4);
}

.pricing-card__price {
    text-align: center;
    margin-bottom: var(--space-6);
}

.pricing-card__price-old {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: var(--space-1);
}

.pricing-card__price-current {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--color-primary);
}

.pricing-card__price-period {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ==========================================================================
   TABS — Level selector
   ========================================================================== */
.tabs {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
}

.tab {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.tab:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.tab.active {
    color: white;
    background: var(--gradient-cta);
    box-shadow: var(--shadow-primary-sm);
}

/* Premium tabs */
.tabs--premium {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.tabs--premium .tab.active {
    box-shadow: var(--shadow-primary-md);
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--primary {
    background: var(--color-primary-100);
    color: var(--color-primary);
}

.badge--accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-accent-sm);
}

.badge--success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.badge--promo {
    background: var(--gradient-cta);
    color: white;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-primary-sm);
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form__group {
    margin-bottom: var(--space-5);
}

.form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form__label--required::after {
    content: ' *';
    color: var(--color-error);
}

.form__input,
.form__select,
.form__textarea {
    width: 100%;
    padding: var(--space-4);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form__input:hover,
.form__select:hover,
.form__textarea:hover {
    border-color: var(--color-primary-200);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-100);
}

.form__input--error {
    border-color: var(--color-error);
}

.form__input--error:focus {
    box-shadow: 0 0 0 4px var(--color-error-light);
}

.form__error {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-error);
}

.form__help {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* Checkbox with custom styling */
.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form__checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.form__checkbox-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   RANGE SLIDER
   ========================================================================== */
.range-slider {
    width: 100%;
    padding: var(--space-4) 0;
}

.range-slider__input {
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-border);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.range-slider__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--gradient-cta);
    box-shadow: var(--shadow-primary-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.range-slider__input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-primary-md);
}

.range-slider__input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: var(--gradient-cta);
    box-shadow: var(--shadow-primary-sm);
    cursor: pointer;
    border: none;
}

.range-slider__labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   STAT COUNTERS
   ========================================================================== */
.stat {
    text-align: center;
    padding: var(--space-6);
}

.stat__value {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    background: var(--gradient-cta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat__label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.review-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.review-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.review-card__stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.review-card__star {
    width: 20px;
    height: 20px;
    color: #FCD34D;
    filter: drop-shadow(0 2px 4px rgba(252, 211, 77, 0.3));
}

.review-card__text {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-5);
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-cta);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.review-card__name {
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.review-card__date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */
.skeleton {
    background: linear-gradient(90deg,
            var(--color-border) 0%,
            var(--color-bg-alt) 50%,
            var(--color-border) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: rotate 0.8s linear infinite;
}
