/* ПрофиДей Frontend — Landing page styles (Apple-inspired) */
:root {
    --bg: #ffffff;
    --fg: #1d1d1f;
    --fg-secondary: #86868b;
    --fg-tertiary: #aeaeb2;
    --border: #d2d2d7;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --bg-secondary: #fbfbfd;
    --radius: 12px;
    --radius-lg: 20px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-y: scroll; scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   Navbar
   ============================================================ */
.pd-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}
.pd-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}
.pd-logo {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}
.pd-logo:hover { color: var(--fg); }
.pd-logo-mark {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.pd-nav-links { display: flex; gap: 24px; align-items: center; list-style: none; margin: 0; padding: 0; }
.pd-nav-links a {
    font-size: 14px;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.pd-nav-links a:hover { color: var(--accent); }
.pd-nav-links a.pd-btn-primary,
.pd-nav-links a.pd-btn-primary:hover { color: #fff !important; }
.pd-nav-links .pd-btn-logout {
    font-size: 14px;
    color: var(--fg-secondary);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.15s;
}
.pd-nav-links .pd-btn-logout:hover { color: var(--accent); }

/* ============================================================
   Buttons
   ============================================================ */
.pd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
    line-height: 1;
}
.pd-btn-primary {
    background: var(--accent);
    color: #fff;
}
.pd-btn-primary:hover { background: var(--accent-hover); color: #fff; }
.pd-btn-primary:active { background: #005bbf; }
.pd-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}
.pd-btn-outline:hover { background: var(--accent); color: #fff; }
.pd-btn-lg { padding: 16px 32px; font-size: 17px; font-weight: 600; border-radius: 980px; }
.pd-btn-full { width: 100%; }
.pd-btn-sm { padding: 7px 18px; font-size: 13px; }

/* ============================================================
   Hero
   ============================================================ */
.pd-hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.pd-hero-logo {
    margin-bottom: 24px;
    animation: pd-fade-up 0.6s ease both;
}
.pd-hero-logo svg {
    display: block;
    margin: 0 auto;
}
.pd-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 980px;
    padding: 6px 18px;
    font-size: 13px;
    color: var(--fg-secondary);
    margin-bottom: 32px;
    animation: pd-fade-up 0.6s 0.05s ease both;
}
.pd-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34c759;
    animation: pd-pulse-dot 2s ease-in-out infinite;
}
@keyframes pd-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}
.pd-hero-title {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 20px;
    animation: pd-fade-up 0.6s 0.1s ease both;
}
.pd-hero-title-accent {
    background: linear-gradient(135deg, #0071e3 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pd-hero-sub {
    font-size: 21px;
    color: var(--fg-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.45;
    font-weight: 400;
    animation: pd-fade-up 0.6s 0.2s ease both;
}
.pd-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    animation: pd-fade-up 0.6s 0.3s ease both;
}
.pd-hero-price-tag {
    font-size: 17px;
    color: var(--fg-secondary);
    font-weight: 500;
}
.pd-hero-hint {
    font-size: 14px;
    color: var(--fg-tertiary);
    margin: 0;
    animation: pd-fade-up 0.6s 0.35s ease both;
}
.pd-hero-visual {
    position: relative;
    height: 100px;
    margin-top: 40px;
}
.pd-hero-float {
    position: absolute;
    font-size: 44px;
    opacity: 0.25;
    animation: pd-float-hero 6s ease-in-out infinite;
}
.pd-hero-float--1 { left: 5%; top: 0; animation-delay: 0s; }
.pd-hero-float--2 { left: 25%; top: 40px; animation-delay: 1s; font-size: 36px; }
.pd-hero-float--3 { left: 50%; top: 10px; animation-delay: 2s; font-size: 40px; }
.pd-hero-float--4 { left: 72%; top: 30px; animation-delay: 0.5s; font-size: 32px; }
.pd-hero-float--5 { left: 88%; top: 5px; animation-delay: 1.5s; font-size: 28px; }
@keyframes pd-float-hero {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(3deg); }
    66% { transform: translateY(6px) rotate(-3deg); }
}
@keyframes pd-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Section Head
   ============================================================ */
.pd-section-head {
    text-align: center;
    margin-bottom: 56px;
}
.pd-section-head h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
}
.pd-section-head p {
    font-size: 19px;
    color: var(--fg-secondary);
    margin: 0;
}
.pd-text-accent {
    background: linear-gradient(135deg, #0071e3 0%, #5856d6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   Benefits
   ============================================================ */
.pd-benefits {
    padding: 100px 0 100px;
    background: var(--bg-secondary);
}
.pd-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pd-benefit-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.pd-benefit-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0071e3, #5856d6);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.pd-benefit-card:hover::before { transform: scaleX(1); }
.pd-benefit-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    border-color: transparent;
    transform: translateY(-2px);
}
.pd-benefit-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,113,227,0.1) 0%, rgba(88,86,214,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.pd-benefit-icon { font-size: 28px; line-height: 1; }
.pd-benefit-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.pd-benefit-card p {
    font-size: 15px;
    color: var(--fg-secondary);
    margin: 0;
    line-height: 1.5;
}
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Features - карточки */
.pd-features {
    padding: 100px 0 100px;
    background: var(--bg-secondary);
}
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Карточка фичи */
.pd-feature-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pd-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

/* Визуальная часть карточки */
.pd-feature-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 20px;
}

/* Текстовая часть карточки */
.pd-feature-card-body {
    padding: 24px 24px 28px;
}
.pd-feature-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
    line-height: 1;
}
.pd-feature-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.pd-feature-card-body p {
    font-size: 15px;
    color: var(--fg-secondary);
    line-height: 1.55;
    margin: 0 0 16px;
}

/* Feature mockups */
.pd-feature-mock {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    overflow: hidden;
    width: 100%;
}
.pd-feature-mock--calendar {
    max-width: 300px;
    padding: 12px 16px 16px;
}
.pd-mock-dots {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}
.pd-mock-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.pd-mock-dots span:first-child { background: #ff5f57; }
.pd-mock-dots span:nth-child(2) { background: #ffbd2e; }
.pd-mock-dots span:last-child { background: #28ca41; }
.pd-mock-cal-header {
    font-size: 13px;
    font-weight: 600;
    color: var(--fg);
    margin-bottom: 8px;
    text-align: center;
}
.pd-mock-cal-days, .pd-mock-cal-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
    font-size: 11px;
}
.pd-mock-cal-days { color: var(--fg-tertiary); margin-bottom: 4px; font-weight: 500; }
.pd-mock-cal-dates span {
    padding: 4px 1px;
    border-radius: 5px;
    color: var(--fg);
}
.pd-mock-today {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
}

.pd-feature-mock--stats {
    max-width: 280px;
    padding: 16px 20px;
}
.pd-mock-stat { margin-bottom: 12px; }
.pd-mock-stat-label { font-size: 10px; color: var(--fg-tertiary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.pd-mock-stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.pd-mock-stat-sub { font-size: 12px; color: #34c759; font-weight: 500; }
.pd-mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 64px;
}
.pd-mock-bar {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, #0071e3 0%, rgba(0,113,227,0.2) 100%);
    animation: pd-bar-grow 0.6s ease both;
}
.pd-mock-bar:nth-child(1) { animation-delay: 0s; }
.pd-mock-bar:nth-child(2) { animation-delay: 0.1s; }
.pd-mock-bar:nth-child(3) { animation-delay: 0.2s; }
.pd-mock-bar:nth-child(4) { animation-delay: 0.3s; }
.pd-mock-bar:nth-child(5) { animation-delay: 0.4s; }
.pd-mock-bar:nth-child(6) { animation-delay: 0.5s; }
@keyframes pd-bar-grow {
    from { height: 0; }
}

.pd-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pd-feature-list li {
    font-size: 14px;
    color: var(--fg-secondary);
    padding-left: 22px;
    position: relative;
}
.pd-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,113,227,0.15) 0%, rgba(88,86,214,0.15) 100%);
}
.pd-feature-list li::after {
    content: '✓';
    position: absolute;
    left: 3px;
    top: 4px;
    font-size: 8px;
    color: var(--accent);
    font-weight: 700;
}

.pd-feature-mock--phone { max-width: 180px; padding: 16px; text-align: center; }
.pd-mock-phone {
    width: 120px;
    height: 200px;
    border-radius: 18px;
    border: 2px solid var(--border);
    margin: 0 auto;
    position: relative;
    background: #fbfbfd;
}
.pd-mock-phone-notch {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background: var(--fg);
    margin: 10px auto 0;
}
.pd-mock-phone-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 28px);
    gap: 8px;
}
.pd-mock-app-icon-svg {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    flex-shrink: 0;
}
.pd-mock-app-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--fg);
}

/* ============================================================
   For Whom
   ============================================================ */
.pd-for-whom {
    padding: 100px 0;
    background: var(--bg-secondary);
}
.pd-for-whom-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pd-for-whom-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pd-for-whom-item:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.pd-for-whom-icon {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1;
}
.pd-for-whom-item h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.pd-for-whom-item p {
    font-size: 14px;
    color: var(--fg-secondary);
    margin: 0;
    line-height: 1.45;
}

/* ============================================================
   How It Works
   ============================================================ */
.pd-how-it-works {
    padding: 100px 0 120px;
}
.pd-steps {
    display: grid;
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
    align-items: start;
}
.pd-step {
    text-align: center;
    position: relative;
}
.pd-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0071e3 0%, #5856d6 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.pd-step-icon { font-size: 32px; margin-bottom: 12px; line-height: 1; }
.pd-step h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.pd-step p {
    font-size: 15px;
    color: var(--fg-secondary);
    margin: 0;
    line-height: 1.5;
}
.pd-step-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 40px;
}
.pd-step-divider::after {
    content: '';
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
    border-radius: 1px;
}

/* ============================================================
   Pricing
   ============================================================ */
.pd-pricing {
    padding: 100px 0 100px;
    background: var(--bg-secondary);
}
.pd-pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.pd-pricing-card:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
.pd-pricing-header { margin-bottom: 28px; }
.pd-pricing-name {
    font-size: 13px;
    color: var(--fg-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 12px;
}
.pd-pricing-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.pd-pricing-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--fg);
}
.pd-pricing-period { font-size: 17px; color: var(--fg-secondary); }
.pd-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pd-pricing-features li {
    font-size: 15px;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 10px;
}
.pd-pricing-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f0fff4;
    color: #34c759;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.pd-pricing-trial {
    font-size: 14px;
    color: var(--fg-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   FAQ
   ============================================================ */
.pd-faq { padding: 100px 0 100px; }
.pd-faq-list {
    max-width: 680px;
    margin: 0 auto;
}
.pd-faq-item {
    border-bottom: 1px solid var(--border);
}
.pd-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    color: var(--fg);
    cursor: pointer;
    text-align: left;
    letter-spacing: -0.01em;
    transition: color 0.15s;
}
.pd-faq-q:hover { color: var(--accent); }
.pd-faq-arrow {
    font-size: 14px;
    color: var(--fg-tertiary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.pd-faq-item.open .pd-faq-arrow { transform: rotate(180deg); }
.pd-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    font-size: 15px;
    color: var(--fg-secondary);
    line-height: 1.55;
}
.pd-faq-item.open .pd-faq-a {
    max-height: 300px;
    padding-bottom: 20px;
}
.pd-faq-a a { color: var(--accent); text-decoration: none; }
.pd-faq-a a:hover { text-decoration: underline; }

/* ============================================================
   Final CTA
   ============================================================ */
.pd-cta-final {
    padding: 100px 0 100px;
    text-align: center;
    background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
    border-top: 1px solid var(--border);
}
.pd-cta-final h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.pd-cta-final p {
    font-size: 19px;
    color: var(--fg-secondary);
}

/* ============================================================
   Auth card
   ============================================================ */
.pd-auth-wrap {
    display: flex;
    justify-content: center;
    padding: 60px 16px 80px;
    background: var(--bg-secondary);
}
.pd-auth-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.pd-auth-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
}
.pd-auth-card h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    text-align: center;
}
.pd-auth-subtitle { text-align: center; font-size: 14px; color: var(--fg-secondary); margin: 0 0 24px; }
.pd-auth-foot {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--fg-secondary);
}
.pd-auth-foot a { color: var(--accent); text-decoration: none; }
.pd-auth-foot a:hover { text-decoration: underline; }

/* ============================================================
   Form fields
   ============================================================ */
.pd-field { margin-bottom: 10px; }
.pd-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--fg-secondary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pd-field input[type="text"],
.pd-field input[type="password"],
.pd-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--fg);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.pd-field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.pd-pass-wrap { position: relative; }
.pd-pass-wrap .pd-pass-input { padding-right: 44px; }
.pd-pass-toggle {
    position: absolute;
    right: 8px;
    top: 34px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 32px;
    text-align: center;
    padding: 0;
    z-index: 2;
}
.pd-pass-toggle:hover { opacity: 0.7; }
.pd-field .pd-error {
    font-size: 13px;
    color: #ff3b30;
    margin-top: 4px;
}
.pd-field .pd-hint {
    font-size: 13px;
    color: var(--fg-tertiary);
    margin-top: 4px;
}
.pd-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}
.pd-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}
.pd-check label {
    font-size: 13px;
    color: var(--fg-secondary);
    line-height: 1.4;
}
.pd-check label a { color: var(--accent); text-decoration: none; }
.pd-check label a:hover { text-decoration: underline; }
.pd-logout-form { display: inline; }
.pd-flash-wrap { max-width: 700px; margin-top: 24px; }

/* ============================================================
   Content pages
   ============================================================ */
.pd-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}
.pd-page h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 8px;
}
.pd-page .pd-page-meta {
    font-size: 15px;
    color: var(--fg-secondary);
    margin: 0 0 40px;
}
.pd-page hr { border: none; border-top: 1px solid var(--border); margin: 0 0 40px; }
.pd-page h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
}
.pd-page p { font-size: 17px; color: var(--fg-secondary); line-height: 1.6; margin: 0 0 16px; }
.pd-page-ul { font-size: 17px; line-height: 1.6; color: var(--fg); padding-left: 24px; }
.pd-muted { color: var(--fg-tertiary); }
.pd-error-icon { font-size: 48px; margin-bottom: 16px; text-align: center; }
.pd-error-msg { color: var(--fg-secondary); margin-top: 12px; text-align: center; }
.pd-contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ============================================================
   Alerts
   ============================================================ */
.pd-alert {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.pd-alert-success { background: #f0fff4; color: #248a3d; }
.pd-alert-error { background: #fff2f0; color: #c5281e; }

/* ============================================================
   Footer
   ============================================================ */
.pd-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    background: var(--bg-secondary);
}
.pd-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.pd-footer p { margin: 0; font-size: 13px; color: var(--fg-tertiary); }
.pd-footer-links { display: flex; gap: 20px; }
.pd-footer-links a {
    font-size: 13px;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.pd-footer-links a:hover { color: var(--accent); }
.pd-footer-social {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}
.pd-footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.pd-footer-social-link:hover { color: var(--accent); }

/* ============================================================
   Cookie bar
   ============================================================ */
.pd-cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
    padding: 16px 0;
    z-index: 1000;
    display: none;
}
.pd-cookie-bar.visible { display: block; }
.pd-cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pd-cookie-text { margin: 0; font-size: 13px; color: var(--fg-secondary); line-height: 1.5; flex: 1; min-width: 200px; }
.pd-cookie-text a { color: var(--accent); text-decoration: none; }
.pd-cookie-text a:hover { text-decoration: underline; }
.pd-cookie-btn { padding: 8px 20px; font-size: 13px; white-space: nowrap; }

/* Container width modifiers */
.pd-container--hero { max-width: 800px; }
.pd-container--wide { max-width: 1000px; }
.pd-container--md { max-width: 900px; }

/* ============================================================
   Comparison (Как обычно → С ПрофиДей)
   ============================================================ */
.pd-compare {
    padding: 100px 0 100px;
}
.pd-compare-grid {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: stretch;
    gap: 0;
}
.pd-compare-col {
    border-radius: var(--radius-lg);
    padding: 36px 32px;
}
.pd-compare-col--bad {
    background: #fff5f5;
    border: 1px solid #ffd7d7;
}
.pd-compare-col--good {
    background: #f0fff4;
    border: 1px solid #b8e6c0;
}
.pd-compare-label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}
.pd-compare-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pd-compare-list li {
    font-size: 15px;
    color: var(--fg);
    line-height: 1.5;
    padding-left: 24px;
    position: relative;
}
.pd-compare-col--bad .pd-compare-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    color: #ff3b30;
    font-weight: 700;
    font-size: 13px;
}
.pd-compare-col--good .pd-compare-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #34c759;
    font-weight: 700;
    font-size: 13px;
}
.pd-compare-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-compare-vs {
    font-size: 14px;
    font-weight: 700;
    color: var(--fg-tertiary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-compare-loss {
    font-size: 16px;
    font-weight: 700;
    color: #ff3b30;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #ffd7d7;
}
.pd-compare-save {
    font-size: 16px;
    font-weight: 700;
    color: #248a3d;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #b8e6c0;
}

/* ============================================================
   Screenshots
   ============================================================ */
.pd-screenshots {
    padding: 100px 0 100px;
    background: var(--bg-secondary);
}
.pd-screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
}
.pd-screenshot-card {
    text-align: center;
}
.pd-screenshot-frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 16px;
    background: var(--bg);
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-screenshot-caption {
    font-size: 15px;
    color: var(--fg-secondary);
    margin: 0;
}

/* ============================================================
   Pricing payback
   ============================================================ */
.pd-pricing-payback {
    text-align: center;
    font-size: 17px;
    color: var(--fg-secondary);
    margin: 24px 0 0;
    line-height: 1.5;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}
.pd-pricing-payback strong {
    color: var(--fg);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .pd-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .pd-feature-card { max-width: 480px; margin: 0 auto; width: 100%; }
    .pd-feature-card-body h3 { font-size: 19px; }
    .pd-feature-mock--calendar,
    .pd-feature-mock--stats,
    .pd-feature-mock--phone { max-width: 100%; }
    .pd-features { padding: 72px 0 72px; }
    .pd-steps {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .pd-step-divider { display: none; }
    .pd-compare-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .pd-compare-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px 0;
    }
    .pd-compare-vs {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .pd-hero { padding: 56px 16px 40px; }
    .pd-hero-title { font-size: 40px; }
    .pd-hero-sub { font-size: 17px; }
    .pd-hero-actions { flex-direction: column; gap: 12px; }
    .pd-hero-visual { height: 60px; margin-top: 24px; }
    .pd-hero-float { font-size: 28px !important; }
    .pd-section-head h2 { font-size: 30px; }
    .pd-benefits-grid,
    .pd-for-whom-grid { grid-template-columns: 1fr; }
    .pd-benefits { padding: 60px 16px 60px; }
    .pd-for-whom { padding: 60px 16px 60px; }
    .pd-how-it-works { padding: 60px 16px 60px; }
    .pd-faq { padding: 60px 16px 60px; }
    .pd-pricing { padding: 60px 16px 60px; }
    .pd-cta-final { padding: 60px 16px 60px; }
    .pd-cta-final h2 { font-size: 30px; }
    .pd-auth-card { padding: 32px 24px; }
    .pd-pricing-card { padding: 32px 24px; }
    .pd-pricing-amount { font-size: 40px; }
    .pd-footer .container { flex-direction: column; text-align: center; }
    .pd-footer-social { justify-content: center; }
    .pd-page { padding: 40px 16px 60px; }
    .pd-page h1 { font-size: 28px; }
    .pd-contacts-grid { grid-template-columns: 1fr; }
    .pd-compare { padding: 40px 16px 40px; }
    .pd-compare .container { padding: 0; }
    .pd-compare-col { padding: 28px 20px; border-radius: var(--radius-lg); }
    .pd-compare-label { font-size: 18px; }
    .pd-compare-list li { font-size: 14px; padding-left: 22px; }
    .pd-compare-loss,
    .pd-compare-save { font-size: 15px; }
    .pd-screenshots-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .pd-screenshots { padding: 60px 16px 60px; }
    .pd-pricing-payback { font-size: 15px; }
}

/* ============================================================
   Public Master Page (frontend)
   ============================================================ */

.pd-public-page {
    min-height: calc(100vh - 52px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    background: var(--bg-secondary, #fbfbfd);
}

.pd-public-container {
    width: 100%;
    max-width: 480px;
}

.pd-public-card {
    background: var(--bg);
    border-radius: 24px;
    padding: 44px 36px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    text-align: center;
}

.pd-public-logo {
    margin-bottom: 20px;
}

.pd-public-logo svg {
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pd-public-name {
    font-size: 26px;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 16px;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.pd-public-desc {
    font-size: 15px;
    color: var(--fg-secondary);
    line-height: 1.65;
    margin-bottom: 32px;
    text-align: left;
}

.pd-public-desc p {
    margin: 0 0 10px;
}

.pd-public-desc p:last-child {
    margin-bottom: 0;
}

.pd-public-section {
    text-align: left;
    margin-bottom: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.pd-public-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.pd-public-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    margin: 0 0 14px;
    letter-spacing: -0.2px;
}

.pd-public-services {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pd-public-service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
}

.pd-public-service-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.pd-public-service-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent, #0071e3);
}

.pd-public-service-name {
    color: var(--fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-public-service-duration {
    font-size: 12px;
    color: var(--fg-tertiary, #aeaeb2);
    white-space: nowrap;
}

.pd-public-service-price {
    color: var(--fg-secondary);
    font-weight: 500;
    margin-left: 16px;
    white-space: nowrap;
}

.pd-public-contacts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pd-public-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--accent, #0071e3);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.pd-public-contact:hover {
    background: rgba(0,113,227,0.04);
    color: var(--accent, #0071e3);
}

.pd-public-contact-icon {
    flex-shrink: 0;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.pd-public-contact-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-public-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--fg-tertiary, #aeaeb2);
}

.pd-public-footer a {
    color: var(--fg-tertiary, #aeaeb2);
    text-decoration: none;
}

.pd-public-footer a:hover {
    color: var(--fg-secondary);
}

/* Mobile adaptation */
@media (max-width: 500px) {
    .pd-public-page {
        padding: 24px 12px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .pd-public-card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .pd-public-name {
        font-size: 22px;
    }

    .pd-public-desc {
        font-size: 14px;
    }
}

/* ============================================================
   Clickable service items
   ============================================================ */

.pd-public-service--clickable {
    cursor: pointer;
    border-radius: 8px;
    padding: 10px 8px;
    margin: 0 -8px;
    transition: background 0.15s ease;
}

.pd-public-service--clickable:hover {
    background: rgba(0,113,227,0.04);
}

/* ============================================================
   Service Modal
   ============================================================ */

.pd-service-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 24px;
}

.pd-service-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.pd-service-modal-open {
    overflow: hidden;
}

.pd-service-modal-card {
    background: var(--bg);
    border-radius: 20px;
    padding: 36px 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    text-align: center;
}

.pd-service-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary, #f5f5f7);
    color: var(--fg-secondary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.pd-service-modal-close:hover {
    background: var(--border);
    color: var(--fg);
}

.pd-service-modal-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--fg);
    margin: 0 0 16px;
    letter-spacing: -0.3px;
}

.pd-service-modal-info {
    font-size: 14px;
    color: var(--fg-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.pd-service-modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent, #0071e3);
}

/* ============================================================
   Section CTA — кнопка после каждого блока
   ============================================================ */
.pd-section-cta {
    text-align: center;
    padding: 32px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.pd-section-cta-tag {
    font-size: 13px;
    color: var(--fg-tertiary);
}

