:root {
    --bg-primary: #f2f2f7;
    --bg-card: #ffffff;
    --text-primary: #1c1c1e;
    --text-secondary: #8e8e93;
    --text-tertiary: #c7c7cc;
    --accent: #0A84FF;
    --radius-card: 20px;
    --radius-button: 14px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.header {
    text-align: center;
    margin-bottom: 28px;
    padding-top: 20px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.services {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 20px;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}

.service-card:active {
    transform: scale(0.97);
    opacity: 0.8;
}

.service-icon {
    font-size: 36px;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
    min-width: 0;
}

.service-info h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.service-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.service-arrow {
    font-size: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.placeholder {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.placeholder-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.placeholder-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: auto;
}

@supports (padding: max(0px)) {
    body {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}


/* --- Кнопка переключения темы --- */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 22px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Тёмная тема --- */
[data-theme="dark"] {
    --bg-primary: #1c1c1e;
    --bg-card: #2c2c2e;
    --text-primary: #f2f2f7;
    --text-secondary: #98989e;
    --text-tertiary: #636366;
    --accent: #0A84FF;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
}